From b2d96e32bcce976c31fc44a745e9351b971bb675 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期一, 29 四月 2024 11:21:53 +0800 Subject: [PATCH] 修改任务下单 --- src/components/tool/value-table.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue index 593b320..bcf2326 100644 --- a/src/components/tool/value-table.vue +++ b/src/components/tool/value-table.vue @@ -105,7 +105,7 @@ @row-click="rowClick" :show-summary="data.countFleid!=undefined && data.countFleid.length > 0" :summary-method="getSummaries" :row-class-name="tableRowClassName" :row-key="record=>record.id" :current-row-key="data.currentId" :highlight-current-row="data.highlight===undefined||data.highlight" - :span-method="spanMethod"> + :span-method="spanMethod" :key="specialKey"> <el-table-column type="selection" width="65" v-if="data.showSelect" :key="Math.random()"> </el-table-column> <el-table-column type="index" align="center" label="搴忓彿" width="65" v-if="data.isIndex" :key="Math.random()"> @@ -236,6 +236,7 @@ <el-input v-model="upData[a.label]" size="small" clearable :placeholder="`璇疯緭鍏�${a.value}`" v-if="showType(a.label, data.selectField) == null&&!showUpload(a.label)&&!showCascader(a.label)"></el-input> <el-select v-model="upData[a.label]" size="small" v-if="showType(a.label, data.selectField) != null" + :multiple="data.selectField[a.label].choose" style="width: 100%;" :placeholder="`璇烽�夋嫨${a.value}`" clearable filterable> <el-option v-for="(b, bi) in data.selectField[a.label].select" :key="bi" :value="b.value" :label="b.label"></el-option> @@ -263,6 +264,7 @@ <el-input v-model="upData[a.label]" size="small" clearable :placeholder="`璇疯緭鍏�${a.value}`" v-if="showType(a.label, data.selectField) == null&&!showUpload(a.label)&&!showCascader(a.label)"></el-input> <el-select v-model="upData[a.label]" size="small" v-if="showType(a.label, data.selectField) != null" + :multiple="data.selectField[a.label].choose" style="width: 100%;" :placeholder="`璇烽�夋嫨${a.value}`" clearable> <el-option v-for="(b, bi) in data.selectField[a.label].select" :key="bi" :value="b.value" :label="b.label"></el-option> @@ -446,7 +448,8 @@ // position:0 // } ], - param: {} + param: {}, + specialKey:'table-' } }, watch: { @@ -473,6 +476,7 @@ this.token = { 'token': sessionStorage.getItem('token') } + this.specialKey = this.specialKey+Math.random()*100; }, methods: { rowspan(spanArr, position, spanName) { @@ -873,6 +877,11 @@ } } this.addLoad = true + for (var a in this.data.selectField) { + if (this.data.selectField[a].choose == true) { + this.upData[a] = JSON.stringify(this.upData[a]) + } + } this.upHead.forEach((item, index) => { if (this.data.cascaderField && this.data.cascaderField[item.label]) { if (this.upData[item.label]) { -- Gitblit v1.9.3