|
|
@ -107,7 +107,7 @@ |
|
|
|
>搜索</el-button |
|
|
|
> --> |
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
|
|
|
>重置</el-button |
|
|
|
>重置</el-button |
|
|
|
> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@ -120,7 +120,7 @@ |
|
|
|
size="mini" |
|
|
|
@click="handleAdd" |
|
|
|
v-hasPermi="['yg:dikeMark:add']" |
|
|
|
>新增</el-button |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
@ -131,7 +131,7 @@ |
|
|
|
:disabled="single" |
|
|
|
@click="handleUpdate" |
|
|
|
v-hasPermi="['yg:dikeMark:edit']" |
|
|
|
>修改</el-button |
|
|
|
>修改</el-button |
|
|
|
> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
@ -142,7 +142,7 @@ |
|
|
|
:disabled="multiple" |
|
|
|
@click="handleDelete" |
|
|
|
v-hasPermi="['yg:dikeMark:remove']" |
|
|
|
>删除</el-button |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</el-col> |
|
|
|
<right-toolbar |
|
|
@ -237,7 +237,7 @@ |
|
|
|
icon="el-icon-edit" |
|
|
|
@click="handleUpdate(scope.row)" |
|
|
|
v-hasPermi="['yg:dikeMark:edit']" |
|
|
|
>修改</el-button |
|
|
|
>修改</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
@ -245,7 +245,7 @@ |
|
|
|
icon="el-icon-delete" |
|
|
|
@click="handleDelete(scope.row)" |
|
|
|
v-hasPermi="['yg:dikeMark:remove']" |
|
|
|
>删除</el-button |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -639,7 +639,7 @@ export default { |
|
|
|
form: {}, |
|
|
|
comForm: { |
|
|
|
dikeName: null, |
|
|
|
embankmentCode: null, |
|
|
|
dikeCode: null, |
|
|
|
adcd: null, |
|
|
|
}, |
|
|
|
noticeForm: {}, |
|
|
@ -739,8 +739,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; |
|
|
@ -761,8 +761,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"; |
|
|
@ -792,27 +792,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() { |
|
|
@ -845,13 +845,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, |
|
|
@ -871,7 +871,7 @@ export default { |
|
|
|
this.warnForm = { |
|
|
|
id: null, |
|
|
|
adcd: null, |
|
|
|
embankmentCode: null, |
|
|
|
dikeCode: null, |
|
|
|
markName: null, |
|
|
|
dikeName: null, |
|
|
|
markLocation: null, |
|
|
@ -891,7 +891,7 @@ export default { |
|
|
|
this.guideForm = { |
|
|
|
id: null, |
|
|
|
adcd: null, |
|
|
|
embankmentCode: null, |
|
|
|
dikeCode: null, |
|
|
|
markName: null, |
|
|
|
dikeName: null, |
|
|
|
markLocation: null, |
|
|
@ -911,7 +911,7 @@ export default { |
|
|
|
this.nameForm = { |
|
|
|
id: null, |
|
|
|
adcd: null, |
|
|
|
embankmentCode: null, |
|
|
|
dikeCode: null, |
|
|
|
markName: null, |
|
|
|
dikeName: null, |
|
|
|
markLocation: null, |
|
|
@ -978,7 +978,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; |
|
|
|
}, |
|
|
@ -994,12 +994,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); |
|
|
@ -1067,26 +1067,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) { |
|
|
@ -1134,7 +1134,7 @@ export default { |
|
|
|
}, |
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleDelete(row) { |
|
|
|
const ids = row.embankmentCode || this.ids; |
|
|
|
const ids = row.dikeCode || this.ids; |
|
|
|
if (ids) { |
|
|
|
this.$confirm("是否删除选中的数据?", "警告", { |
|
|
|
confirmButtonText: "确定", |
|
|
|