From c58ea09f663991f7d2028c71461d1fdca5bb560b Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Tue, 17 May 2022 14:08:48 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E5=88=86=E9=85=8D=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/tableCollection/index.vue | 48 +++++++++++++++---- .../parameterlist/components/addModel.vue | 2 - 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index f188a3caa..8813b4c1b 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -52,9 +52,6 @@ {{ record.dataValue == null? '--': record.dataValue}} - - {{ record.dataValue == null? '--': record.dataValue}} - @@ -81,7 +78,7 @@ - + {{ item.label }} @@ -115,6 +112,9 @@ import eventBUs from '../../common/event' import { getAction, postAction } from '@/api/manage' import CollectionType from '@/components/CollectionType' +import { ACCESS_TOKEN } from '@/store/mutation-types' +import axios from 'axios' +import Vue from 'vue' export default { name: 'index', props: { @@ -139,6 +139,7 @@ export default { }, data() { return { + token:Vue.ls.get(ACCESS_TOKEN), jsonBody: [], checkboxList: [], tableAll: false, @@ -174,6 +175,8 @@ export default { sm: { span: 7 } }, querySdtList: [], // 工程接口人 + Dateline: {}, + getquerySdtId: '', // 当前工程接口人的id } }, mounted() { @@ -181,6 +184,8 @@ export default { methods: { // 获取工程接口人 getquerySdtList(record) { + // 当前工程接口人的id + this.getquerySdtId = record.id getAction(this.url.getquerySdtList, {projectId: this.$route.query.id, dutyTerritory: record.dutyTerritory}).then((res) => { if (res.success) { this.querySdtList = res.result @@ -189,12 +194,37 @@ export default { }, // 工程接口人 保存 handleSubmit(record) { - this.areaVisible = false - postAction(this.url.updateSdt, {projectId: this.$route.query.id, dutyTerritory: record.dutyTerritory}).then((res) => { - if (res.success) { - this.querySdtList = res.result + 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 } }) + .then( (res) =>{ + console.log(res) + if (res.data.success) { + _this.$message.success(res.data.result) + _this.areaVisible = false + _this.getTableList() + }else{ + _this.$message.warning(res.data.result) + } + }) + .catch( (error) =>{ + console.log(error); + }); }, // 工程接口人 取消 cancleImports() { diff --git a/jero-web/src/views/parameter/parameterlist/components/addModel.vue b/jero-web/src/views/parameter/parameterlist/components/addModel.vue index 71b4cab15..742504b83 100644 --- a/jero-web/src/views/parameter/parameterlist/components/addModel.vue +++ b/jero-web/src/views/parameter/parameterlist/components/addModel.vue @@ -471,11 +471,9 @@ export default { this.$nextTick(() => { this.formInline = value this.contentList = this.certCategoryParamsInfoEOListItem - console.log(this.contentList,'this.contentListthis.contentListthis.contentList') this.contentList.map((item,index) => { item.textVal = item.certCategory_dictText }) - console.log(this.contentList,'333333333333') }) }, handleCancel() {