From da2330bb7951c602ebe72a9f53ff13d0895b3349 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期五, 15 十二月 2023 10:57:55 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue b/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue index 3b0098c..c47d7cf 100644 --- a/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue +++ b/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue @@ -90,13 +90,6 @@ </zt-table-button> </template> </el-table-column> - <el-table-column fixed="right" prop="files" label="涓婁紶闄勪欢" width="240" align="center"> - <template v-slot="{ row }"> - <!-- <zt-table-button @click="files(row.id)">涓婁紶闄勪欢</zt-table-button>--> - <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row" - v-model="row.files"/> - </template> - </el-table-column> </el-table> <div v-if="showAddAndEdit && !dataForm.disabled" class="icon-container" @click="handleCommand"> <!-- 鏀剧疆鍥哄畾鐨勫浘鏍� --> @@ -129,9 +122,7 @@ </div> <div style="width: calc(100% - 120px)" class="el-border-left"> <el-form-item class="el-CMTextarea" style="width: 100%;padding: 5px"> - <el-input v-if="stepMarker=='pzxck_cmcz'" type="textarea" :rows="2" placeholder="璇疯緭鍏ュ唴瀹�" - v-model="dataForm.configItemOutbound.CmOperations"></el-input> - <span v-else>{{dataForm.configItemOutbound.CmOperations}}</span> + <el-button v-if="stepMarker=='pzxck_cmcz'" type="primary" @click="download()">鍑哄簱</el-button> </el-form-item> <el-form-item label-width="80%" label="鎿嶄綔浜猴細" style="width: 65%"> <span>{{dataForm.configItemOutbound.operator}}</span> @@ -261,7 +252,7 @@ handleCommand() { this.$nextTick(()=>{ console.log(this.dataForm.projectId,'this.dataForm.projectId') - this.ids = this.dataForm.configOutboundList.map(item=>item.outboundSelectId).join(',') + this.ids = this.dataForm.configOutboundList.map(item=>item.selectId).join(',') this.$refs.configItemList.$refs.dialog.init(this.dataForm.projectId,this.ids) }) // this.dataForm.configItemList.push({}) @@ -301,10 +292,18 @@ let apiURL = `/configItemOutbound/ConfigItemOutbound/exportConfigOutbound` window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}` }, + download(){ + let params = qs.stringify({ + token: Cookies.get('token'), + id:this.dataForm.id + }) + let apiURL = `/configItemOutbound/ConfigItemOutbound/outbound` + window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}` + }, // 鑾峰彇淇℃伅 async getInfo() { let params = { - changeId: this.dataForm.id, + outboundId: this.dataForm.id, projectId: this.dataForm.projectId } let res = await this.$http.get(`/configItemOutbound/ConfigItemOutbound/getDto`, {params: params}) -- Gitblit v1.9.1