| | |
| | | <template> |
| | | <div class="verSionBox"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('dataManage.dataManage')}`, |
| | | `${$t('dataManage.projectManage')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="verSionContent"> |
| | | <div class="verSion_leftTree"> |
| | |
| | | </el-tree> |
| | | </div> |
| | | <div class="verSion_rightContent"> |
| | | <el-form :inline="true" class="demo-form-inline"> |
| | | <el-form |
| | | :inline="true" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | |
| | | @click="insertProject" |
| | | :disabled="count1 != 0 ? true : false" |
| | | type="success" |
| | | >{{ $t('common.append') }}</el-button |
| | | > |
| | | size="small" |
| | | >{{ $t('common.append') }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-divider class="eldivider" /> |
| | |
| | | prop="geom" |
| | | :label="$t('dataManage.projectObj.location')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="province" |
| | | :label="$t('dataManage.projectObj.province')" |
| | | prop="corpname" |
| | | :label="$t('dataManage.projectObj.corpname')" |
| | | /> |
| | | <el-table-column |
| | | prop="country" |
| | | :label="$t('dataManage.projectObj.country')" |
| | | /> |
| | | <el-table-column |
| | | prop="corpname" |
| | | :label="$t('dataManage.projectObj.corpname')" |
| | | prop="province" |
| | | :label="$t('dataManage.projectObj.province')" |
| | | /> |
| | | <el-table-column |
| | | prop="location" |
| | | :label="$t('dataManage.projectObj.county')" |
| | | /> |
| | | <el-table-column |
| | | prop="department" |
| | |
| | | prop="remarks" |
| | | :label="$t('dataManage.projectObj.remarks')" |
| | | /> |
| | | <el-table-column label="操作" width="200"> |
| | | <el-table-column |
| | | label="操作" |
| | | width="200" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | v-if="btnStatus.delete" |
| | | @click="deleteProject(scope.row)" |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | size="small" |
| | | type="danger" |
| | | >{{ $t('common.delete') }}</el-button |
| | | > |
| | | >{{ $t('common.delete') }}</el-button> |
| | | <el-button |
| | | v-if="btnStatus.update" |
| | | @click="EditProject(scope.row)" |
| | | icon="el-icon-edit" |
| | | type="info" |
| | | size="mini" |
| | | >{{ $t('common.update') }}</el-button |
| | | > |
| | | size="small" |
| | | >{{ $t('common.update') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 10px" class="pagination_box"> |
| | | <div |
| | | style="margin-top: 10px" |
| | | class="pagination_box" |
| | | > |
| | | <!-- <el-pagination |
| | | @size-change="handleLoaderSizeChange" |
| | | @current-change="handleLoaderCurrentChange" |
| | |
| | | <el-input v-model="editFrom.projtype"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.location')"> |
| | | <el-input :disabled="true" v-model="editFrom.geom"></el-input> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="editFrom.geom" |
| | | ></el-input> |
| | | <el-link |
| | | @click="ShowInner" |
| | | style="color: white; margin-left: 20px" |
| | |
| | | > |
| | | </el-link> |
| | | </el-form-item> |
| | | |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input v-model="editFrom.country"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.province')"> |
| | | <el-input v-model="editFrom.province"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input v-model="editFrom.country"></el-input> |
| | | <el-form-item :label="$t('dataManage.projectObj.county')"> |
| | | <el-input v-model="editFrom.location"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.corpname')"> |
| | | <el-input v-model="editFrom.corpname"></el-input> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | :disabled="behavior != '新增项目' ? true : false" |
| | | @click="setRestEditFrom" |
| | | >{{ $t('common.reset') }}</el-button |
| | | > |
| | | <el-button class="primary" @click="insertEditFrom">{{ |
| | | >{{ $t('common.reset') }}</el-button> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | @click="insertEditFrom" |
| | | >{{ |
| | | $t('common.confirm') |
| | | }}</el-button> |
| | | </div> |
| | |
| | | project_insert, |
| | | project_delete, |
| | | project_update, |
| | | project_selectLocation, |
| | | } from '../../api/api'; |
| | | import ProjectOl from '../../components/ProjectOl.vue'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | |
| | | this.getSelectProject(); |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { }); |
| | | }, |
| | | innerClose() { |
| | | async innerClose() { |
| | | this.showMap = false; |
| | | this.innerVisible = false; |
| | | ; |
| | | |
| | | var wkt = this.$wkt.parse(this.$store.state.projeOl); |
| | | |
| | | const data = await project_selectLocation({ x: wkt.coordinates[0], y: wkt.coordinates[1] }) |
| | | console.log(data.result) |
| | | if (data.code == 200) { |
| | | |
| | | for (var i in data.result) { |
| | | var key = data.result[i].key; |
| | | var val = data.result[i].value; |
| | | if (key == "国") { |
| | | this.editFrom.country = val; |
| | | } else if (key == "省") { |
| | | this.editFrom.province = val; |
| | | }else if (key == "市") { |
| | | this.editFrom.location = val; |
| | | } |
| | | } |
| | | } |
| | | this.editFrom.geom = this.$store.state.projeOl; |
| | | }, |
| | | async insertEditFrom() { |
| | |
| | | this.$message.error('列表获取失败'); |
| | | return; |
| | | } |
| | | |
| | | // this.count = data.result; |
| | | this.count1 = data.count; |
| | | this.dbTableData = data.result; |
| | |
| | | .verSionBox { |
| | | height: 98%; |
| | | width: 98%; |
| | | padding: 1%; |
| | | padding: 1%; |
| | | .verSionContent { |
| | | width: 100%; |
| | | height: 92%; |
| | |
| | | border: 1px solid white; |
| | | border-radius: 5px; |
| | | padding: 1%; |
| | | |
| | | |
| | | overflow-y: auto; |
| | | } |
| | | .verSion_rightContent { |