From 15ba0ee98f3aaf16bf949a7eb5b9bf6e07d93d39 Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Thu, 23 Jun 2022 12:08:00 +0800 Subject: [PATCH] [update] 54853 --- .../src/components/tableCollection/index.vue | 66 ++++++++++--------- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index 82260a907..1f7548d3c 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -55,7 +55,7 @@ > - + @@ -212,9 +212,9 @@ areaVisible: false, form: {}, rules: { - // templatetitle: [ - // { required: true, message: this.$t('enterTitle'), trigger: 'blur' } - // ] + querySdt: [ + { required: true, message: this.$t('PleaseSelect')+this.$t('engineeringInterfacePerson'), trigger: 'blur' } + ] }, wrapperCol: { xs: { span: 24 }, @@ -285,35 +285,39 @@ handleSubmit(record) { let _this = this let param = { sdt: this.Dateline.querySdt, ids: this.getquerySdtId } - axios({ - url: '/jero-boot/params/collectManifest/updateSdt', - method: 'post', - data: param, - transformRequest: [function(data) { - let ret = '' - for (let it in data) { - ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&' - } - return ret - }], - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - 'X-Access-Token': _this.token + this.$refs.ruleForm.validate(valid => { + if (valid) { + axios({ + url: '/jero-boot/params/collectManifest/updateSdt', + method: 'post', + data: param, + transformRequest: [function(data) { + let ret = '' + for (let it in data) { + ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&' + } + return ret + }], + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + 'X-Access-Token': _this.token + } + }) + .then((res) => { + console.log(res) + if (res.data.success) { + _this.$message.success(res.data.result) + _this.areaVisible = false + this.getLoginUserType() + } else { + _this.$message.warning(res.data.result) + } + }) + .catch((error) => { + console.log(error) + }) } }) - .then((res) => { - console.log(res) - if (res.data.success) { - _this.$message.success(res.data.result) - _this.areaVisible = false - this.getLoginUserType() - } else { - _this.$message.warning(res.data.result) - } - }) - .catch((error) => { - console.log(error) - }) }, // 工程接口人 取消 cancleImports() {