From 8cbf8b701c8e232b07659248bbe6b6d91723182a Mon Sep 17 00:00:00 2001 From: xzt <1113240624@qq.com> Date: Wed, 28 Feb 2024 15:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=B4=E9=97=B8=E5=AE=89=E5=85=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86tab=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listPage/options/accidentRecord.vue | 2 + .../listPage/options/designParameter2.vue | 9 +- .../listPage/options/dischargeCapacity2.vue | 84 +++++++++---------- .../options/engineeringCharacteristics.vue | 26 ++++-- .../listPage/options/engineeringStructure.vue | 9 +- .../components/listPage/options/index.vue | 10 +-- 6 files changed, 82 insertions(+), 58 deletions(-) diff --git a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/accidentRecord.vue b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/accidentRecord.vue index a8cf143..6c056da 100644 --- a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/accidentRecord.vue +++ b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/accidentRecord.vue @@ -315,6 +315,7 @@ import { export default { name: "Cxjl", + props: ["wagaCode"], data() { return { // 遮罩层 @@ -473,6 +474,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.wagaCode = this.wagaCode; if (this.form.wagaCode != null) { updateCxjl(this.form).then((response) => { if (response.code === 200) { diff --git a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/designParameter2.vue b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/designParameter2.vue index 327ac3e..0e94bc0 100644 --- a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/designParameter2.vue +++ b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/designParameter2.vue @@ -112,6 +112,7 @@ import { export default { name: "Sjcs", + props: ["wagaCode"], data() { return { // 遮罩层 @@ -240,10 +241,11 @@ export default { /** 查询设计参数列表 */ getList() { this.loading = true; + this.queryParams.data.wagaCode = this.wagaCode; listSjcs(this.queryParams).then((response) => { - this.sjcsList = response.records; - this.total = response.total; - this.loading = false; + if (response.records[0]) { + this.form = response.records[0]; + } }); }, // 取消按钮 @@ -345,6 +347,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.wagaCode = this.wagaCode; if (this.form.wagaCode != null) { updateSjcs(this.form).then((response) => { if (response.code === 200) { diff --git a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/dischargeCapacity2.vue b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/dischargeCapacity2.vue index 02752d9..5584328 100644 --- a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/dischargeCapacity2.vue +++ b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/dischargeCapacity2.vue @@ -4,54 +4,26 @@ - + + + - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + @@ -106,6 +78,7 @@ import { export default { name: "Xlnl", + props: ["wagaCode"], data() { return { // 遮罩层 @@ -156,7 +129,32 @@ export default { // 表单参数 form: {}, // 表单校验 - rules: {}, + rules: { + uswl: [ + { + pattern: + /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/, + message: "请输入数字,可保留两位小数", + trigger: "blur", + }, + ], + dswl: [ + { + pattern: + /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/, + message: "请输入数字,可保留两位小数", + trigger: "blur", + }, + ], + ttfl: [ + { + pattern: + /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/, + message: "请输入数字,可保留两位小数", + trigger: "blur", + }, + ], + }, }; }, created() { @@ -166,10 +164,11 @@ export default { /** 查询泄流能力列表 */ getList() { this.loading = true; + this.queryParams.data.wagaCode = this.wagaCode; listXlnl(this.queryParams).then((response) => { - this.xlnlList = response.records; - this.total = response.total; - this.loading = false; + if (response.records[0]) { + this.form = response.records[0]; + } }); }, // 取消按钮 @@ -261,6 +260,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.wagaCode = this.wagaCode; if (this.form.wagaCode != null) { updateXlnl(this.form).then((response) => { if (response.code === 200) { diff --git a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringCharacteristics.vue b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringCharacteristics.vue index 6cb512e..97a59de 100644 --- a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringCharacteristics.vue +++ b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringCharacteristics.vue @@ -32,10 +32,18 @@ - + /> --> + + {{ dict.dictLabel }} + @@ -121,6 +129,7 @@ import { export default { name: "Gctx", + props: ["wagaCode"], data() { return { // 遮罩层 @@ -141,6 +150,8 @@ export default { title: "", // 是否显示弹出层 open: false, + // 是否穿堤建筑物字典 + leStruFlagOptions: [], // 查询参数 queryParams: { pageNum: 1, @@ -181,15 +192,19 @@ export default { }, created() { this.getList(); + this.getDicts("whether").then((response) => { + this.leStruFlagOptions = response.data; + }); }, methods: { /** 查询工程特性列表 */ getList() { this.loading = true; + this.queryParams.data.wagaCode = this.wagaCode; listGctx(this.queryParams).then((response) => { - this.gctxList = response.records; - this.total = response.total; - this.loading = false; + if (response.records[0]) { + this.form = response.records[0]; + } }); }, // 取消按钮 @@ -291,6 +306,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.wagaCode = this.wagaCode; if (this.form.wagaCode != null) { updateGctx(this.form).then((response) => { if (response.code === 200) { diff --git a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringStructure.vue b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringStructure.vue index 4d54c0b..23007a6 100644 --- a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringStructure.vue +++ b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/engineeringStructure.vue @@ -162,6 +162,7 @@ import { export default { name: "Gcjg", + props: ["wagaCode"], data() { return { // 遮罩层 @@ -237,10 +238,11 @@ export default { /** 查询工程结构列表 */ getList() { this.loading = true; + this.queryParams.data.wagaCode = this.wagaCode; listGcjg(this.queryParams).then((response) => { - this.gcjgList = response.records; - this.total = response.total; - this.loading = false; + if (response.records[0]) { + this.form = response.records[0]; + } }); }, // 取消按钮 @@ -362,6 +364,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.wagaCode = this.wagaCode; if (this.form.wagaCode != null) { updateGcjg(this.form).then((response) => { if (response.code === 200) { diff --git a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/index.vue b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/index.vue index e063d5d..30c44fb 100644 --- a/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/index.vue +++ b/src/views/sluice/safetyManage/declarationManage/declare/components/listPage/options/index.vue @@ -63,7 +63,7 @@ :disabled="!routeList[1].isEdit" :lazy="true" > - +