From fdfa9db347597966a8ebe50c186b38af243d2709 Mon Sep 17 00:00:00 2001 From: zth <1205836521@qq.com> Date: Wed, 12 Feb 2025 16:57:57 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/linkNameSelect/linkDike.vue | 3 +- src/components/linkNameSelect/linkSluice.vue | 1 + src/layout/components/Navbar.vue | 35 ++++++--- .../identificationPlate/index.vue | 74 +++++++++---------- .../confirmDelimitationManage/index.vue | 10 +-- .../declare/components/listPage/index.vue | 22 +++--- .../identificationPlate/index.vue | 28 +++---- 7 files changed, 95 insertions(+), 78 deletions(-) diff --git a/src/components/linkNameSelect/linkDike.vue b/src/components/linkNameSelect/linkDike.vue index b31c3d8..e09c3bb 100644 --- a/src/components/linkNameSelect/linkDike.vue +++ b/src/components/linkNameSelect/linkDike.vue @@ -30,14 +30,12 @@ style="width: 100%" v-scroll="selectSearch" filterable - :filter-method="aaaa" clearable remote reserve-keyword :remote-method="remoteMethod" :loading="loading" @change="handleChange" - @blur="handleChange" > 搜索 --> 重置重置 @@ -121,7 +121,7 @@ size="mini" @click="handleAdd" v-hasPermi="['yg:dikeMark:add']" - >新增新增 @@ -132,7 +132,7 @@ :disabled="single" @click="handleUpdate" v-hasPermi="['yg:dikeMark:edit']" - >修改修改 @@ -143,7 +143,7 @@ :disabled="multiple" @click="handleDelete" v-hasPermi="['yg:dikeMark:remove']" - >删除删除 修改修改 删除删除 @@ -637,7 +637,7 @@ export default { form: {}, comForm: { dikeName: null, - embankmentCode: null, + dikeCode: null, adcd: null, }, noticeForm: {}, @@ -761,8 +761,8 @@ export default { // if (this.comForm.dikeName) { // this[counterType][this[counterType].length - 1].dikeName = // this.comForm.dikeName; - // this[counterType][this[counterType].length - 1].embankmentCode = - // this.comForm.embankmentCode; + // this[counterType][this[counterType].length - 1].dikeCode = + // this.comForm.dikeCode; // } // 赋值标牌类型 // this[counterType][this[counterType].length - 1].type = type; @@ -783,8 +783,8 @@ export default { // if (this.comForm.dikeName) { // this.counter0[this.counter0.length - 1].dikeName = // this.comForm.dikeName; - // this.counter0[this.counter0.length - 1].embankmentCode = - // this.comForm.embankmentCode; + // this.counter0[this.counter0.length - 1].dikeCode = + // this.comForm.dikeCode; // } // // 赋值标牌类型 // this.counter0[this.counter0.length - 1].type = "0"; @@ -814,27 +814,27 @@ export default { // this.$refs[ele].appendChild(child.$el); //插入元素内部的最后一个子节点之后 }, chooseEmbankmenName(data) { - // embankmentCode - this.comForm.embankmentCode = data.embankmentCode; + // dikeCode + this.comForm.dikeCode = data.dikeCode; this.comForm.adcd = data.adcd; // console.log(33333, this.comForm); // // 将第一个表单和后面新增的表单赋值,水闸编码和水闸名称 // this.$refs["noticeForm0"][0].form.dikeName = data.dikeName; - // this.$refs["noticeForm0"][0].form.embankmentCode = data.embankmentCode; + // this.$refs["noticeForm0"][0].form.dikeCode = data.dikeCode; // // this.$refs["noticeForm0"][0].form.type = "0"; // this.counter0.forEach((item) => { // item.dikeName = data.dikeName; - // item.embankmentCode = data.embankmentCode; + // item.dikeCode = data.dikeCode; // }); // // this.noticeForm.dikeName = data.dikeName; // this.warnForm.dikeName = data.dikeName; // this.nameForm.dikeName = data.dikeName; // this.guideForm.dikeName = data.dikeName; - // // this.noticeForm.embankmentCode = data.embankmentCode; - // this.warnForm.embankmentCode = data.embankmentCode; - // this.nameForm.embankmentCode = data.embankmentCode; - // this.guideForm.embankmentCode = data.embankmentCode; + // // this.noticeForm.dikeCode = data.dikeCode; + // this.warnForm.dikeCode = data.dikeCode; + // this.nameForm.dikeCode = data.dikeCode; + // this.guideForm.dikeCode = data.dikeCode; }, /** 查询水闸标识标牌列表 */ getList() { @@ -867,13 +867,13 @@ export default { this.counter3 = [{}]; this.comForm = { dikeName: null, - embankmentCode: null, + dikeCode: null, adcd: null, }; this.noticeForm = { id: null, adcd: null, - embankmentCode: null, + dikeCode: null, markName: null, dikeName: null, markLocation: null, @@ -893,7 +893,7 @@ export default { this.warnForm = { id: null, adcd: null, - embankmentCode: null, + dikeCode: null, markName: null, dikeName: null, markLocation: null, @@ -913,7 +913,7 @@ export default { this.guideForm = { id: null, adcd: null, - embankmentCode: null, + dikeCode: null, markName: null, dikeName: null, markLocation: null, @@ -933,7 +933,7 @@ export default { this.nameForm = { id: null, adcd: null, - embankmentCode: null, + dikeCode: null, markName: null, dikeName: null, markLocation: null, @@ -1000,7 +1000,7 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map((item) => item.embankmentCode); + this.ids = selection.map((item) => item.dikeCode); this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -1016,12 +1016,12 @@ export default { this.reset(); this.isEdit = true; console.log(77777, row); - const embankmentCode = row.embankmentCode; - getDikeMark(embankmentCode).then((response) => { + const dikeCode = row.dikeCode; + getDikeMark(dikeCode).then((response) => { // this.form = response.data; console.log("回显的数据", response); this.comForm.dikeName = response.data[0].dikeName; - this.comForm.embankmentCode = response.data[0].embankmentCode; + this.comForm.dikeCode = response.data[0].dikeCode; this.comForm.adcd = response.data[0].adcd; console.log("this.comForm", this.comForm); this.counter0 = response.data.filter((item) => item.type == 0); @@ -1089,26 +1089,26 @@ export default { this.counter0.length > 1 ? this.counter0 : this.$refs["noticeForm0"][0].form.markName - ? [this.$refs["noticeForm0"][0].form] - : []; + ? [this.$refs["noticeForm0"][0].form] + : []; const C1 = this.counter1.length > 1 ? this.counter1 : this.$refs["warnForm0"][0].form.markName - ? [this.$refs["warnForm0"][0].form] - : []; + ? [this.$refs["warnForm0"][0].form] + : []; const C2 = this.counter2.length > 1 ? this.counter2 : this.$refs["guideForm0"][0].form.markName - ? [this.$refs["guideForm0"][0].form] - : []; + ? [this.$refs["guideForm0"][0].form] + : []; const C3 = this.counter3.length > 1 ? this.counter3 : this.$refs["nameForm0"][0].form.markName - ? [this.$refs["nameForm0"][0].form] - : []; + ? [this.$refs["nameForm0"][0].form] + : []; // console.log("C0C0", C0, C1); if (this.isEdit) { @@ -1156,7 +1156,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const ids = row.embankmentCode || this.ids; + const ids = row.dikeCode || this.ids; if (ids) { this.$confirm("是否删除选中的数据?", "警告", { confirmButtonText: "确定", diff --git a/src/views/dike/safetyManage/confirmDelimitationManage/index.vue b/src/views/dike/safetyManage/confirmDelimitationManage/index.vue index e448262..ecca5ab 100644 --- a/src/views/dike/safetyManage/confirmDelimitationManage/index.vue +++ b/src/views/dike/safetyManage/confirmDelimitationManage/index.vue @@ -45,7 +45,7 @@ @change="handleQuery" > 搜索 --> 重置重置 @@ -174,7 +174,7 @@ icon="el-icon-view" @click="viewInfo(scope.row)" v-hasPermi="['df:qqhj:view']" - >查看查看 确权划界确权划界 重置重置 @@ -65,7 +65,7 @@ :disabled="!multiple" @click="handleAdd" v-hasPermi="['df:jbxx:add']" - >申报申报 重置重置 @@ -121,7 +121,7 @@ size="mini" @click="handleAdd" v-hasPermi="['yg:sluiceMark:add']" - >新增新增 @@ -132,7 +132,7 @@ :disabled="single" @click="handleUpdate" v-hasPermi="['yg:sluiceMark:edit']" - >修改修改 @@ -143,7 +143,7 @@ :disabled="multiple" @click="handleDelete" v-hasPermi="['yg:sluiceMark:remove']" - >删除删除 修改修改 删除删除 @@ -1097,26 +1097,26 @@ export default { this.counter0.length > 1 ? this.counter0 : this.$refs["noticeForm0"][0].form.markName - ? [this.$refs["noticeForm0"][0].form] - : []; + ? [this.$refs["noticeForm0"][0].form] + : []; const C1 = this.counter1.length > 1 ? this.counter1 : this.$refs["warnForm0"][0].form.markName - ? [this.$refs["warnForm0"][0].form] - : []; + ? [this.$refs["warnForm0"][0].form] + : []; const C2 = this.counter2.length > 1 ? this.counter2 : this.$refs["guideForm0"][0].form.markName - ? [this.$refs["guideForm0"][0].form] - : []; + ? [this.$refs["guideForm0"][0].form] + : []; const C3 = this.counter3.length > 1 ? this.counter3 : this.$refs["nameForm0"][0].form.markName - ? [this.$refs["nameForm0"][0].form] - : []; + ? [this.$refs["nameForm0"][0].form] + : []; // // console.log("C0C0", C0, C1); if (this.isEdit) {