| | |
| | | <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 subpage_Div" |
| | | style="border: 1px solid #dcdfe6" |
| | | > |
| | | <el-form :inline="true" class="demo-form-inline"> |
| | | <el-form |
| | | :inline="true" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-input |
| | | size="small" |
| | |
| | | :disabled="count1 != 0 ? true : false" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t("common.increase") }}</el-button |
| | | > |
| | | >{{ $t("common.increase") }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-tree |
| | |
| | | <!-- |
| | | <!-- <el-divider class="eldivider" /> --> |
| | | <!-- <div class="dividing-line"></div> --> |
| | | <div class="table_box" style="height: 100%"> |
| | | <div |
| | | class="table_box" |
| | | style="height: 100%" |
| | | > |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="dbTableData" |
| | |
| | | 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" |
| | |
| | | size="small" |
| | | plain |
| | | type="danger" |
| | | >{{ $t("common.delete") }}</el-button |
| | | > |
| | | >{{ $t("common.delete") }}</el-button> |
| | | <el-button |
| | | v-if="btnStatus.update" |
| | | @click="EditProject(scope.row)" |
| | | type="warning" |
| | | plain |
| | | size="small" |
| | | >{{ $t("common.update") }}</el-button |
| | | > |
| | | >{{ $t("common.update") }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input v-model="editFrom.country" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.country')"></el-input> |
| | | <el-input |
| | | v-model="editFrom.country" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.country')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.province')"> |
| | | <el-input v-model="editFrom.province" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.province')"></el-input> |
| | | <el-input |
| | | v-model="editFrom.province" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.province')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.county')"> |
| | | <el-input v-model="editFrom.location" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.city')"></el-input> |
| | | <el-input |
| | | v-model="editFrom.location" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.city')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.corpname')"> |
| | | <el-input v-model="editFrom.corpname" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.construction')"></el-input> |
| | | <el-input |
| | | v-model="editFrom.corpname" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.construction')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.department')"> |
| | | <el-input |
| | |
| | | <el-input |
| | | v-model="editFrom.conperiod" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.constructionperiod')" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.constructionperiod')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.contents')"> |
| | | <el-input v-model="editFrom.contents" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.projectContent')"></el-input> |
| | | <el-input |
| | | v-model="editFrom.contents" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.projectContent')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.projstate')"> |
| | | <el-input |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.remarks')"> |
| | | <el-input v-model="editFrom.remarks" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueRemarks')"></el-input> |
| | | <el-input |
| | | v-model="editFrom.remarks" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueRemarks')" |
| | | ></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 size="small" type="primary" @click="insertEditFrom">{{ |
| | | >{{ $t("common.reset") }}</el-button> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | @click="insertEditFrom" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | </div> |
| | |
| | | this.getSelectProject(); |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { }); |
| | | }, |
| | | async innerClose() { |
| | | this.showMap = false; |
| | |
| | | this.editFrom = { geom: " " }; |
| | | this.$store.state.projeOl = null; |
| | | }, |
| | | |
| | | async delprojectData(id) { |
| | | const data = await project_delete({ gid: id }); |
| | | if (data.code == 200) { |
| | | this.$message({ |
| | | message: "删除成功!", |
| | | type: "success", |
| | | }); |
| | | this.getSelectProject(); |
| | | } else { |
| | | this.$message({ |
| | | message: "删除失败!", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }, |
| | | //删除项目 |
| | | async deleteProject(row) { |
| | | var that = this; |
| | | this.$confirm("此操作将永久删除该项目, 是否继续?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(async () => { |
| | | const data = await project_delete({ gid: row.gid }); |
| | | if (data.code == 200) { |
| | | this.$message({ |
| | | message: "删除成功!", |
| | | type: "success", |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: "删除失败!", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | |
| | | that.delprojectData(row.gid) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: "info", |
| | | message: "已取消删除", |