From 9f9f7637f0cfd99497d2a5457089c7e92951a426 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 24 十一月 2023 14:46:34 +0800 Subject: [PATCH] 本地日志文件下载工具类中的方法修改,sql拼接错误修改 --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 46 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index e3dbe61..483d080 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -62,7 +62,7 @@ </el-link> </template> </el-table-column> - <el-table-column v-for="item in this.tableHeadFindData" v-if="!item.hidden && item.prop !== 'id' && item.prop !== 'lcstatus'" + <el-table-column v-for="item in this.tableHeadFindData" v-if="!item.hidden && item.prop !== 'id' && item.prop !== 'lcstatus' && Object.keys(item.referConfig).length <= 0" :key="item.id" :formatter="item.formatter" :label="item.label" :prop="item.prop" @@ -71,7 +71,14 @@ :width="item.width" align="center"> </el-table-column> - + <!-- 鍙傜収鏁版嵁--> + <el-table-column v-for="(item,index) in referArray" :key="index" v-if="item.referConfig && Object.keys(item.referConfig).length > 0 && !item.hidden" :label="item.title" prop="jiliangdw" + :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width" + align="center"> + <template slot-scope="scope"> + <span>{{ scope.row.jiliangdwname }}</span> + </template> + </el-table-column> </el-table> </div> </el-row> @@ -169,7 +176,8 @@ deleteCode, upSaveCode, applyGroupCode, - receiveEditApply + receiveEditApply, + applySaveCode } from "@/api/GetItem"; import {processTS, changeStatus} from "@/api/template/setPersonnel" import {listCodeAttributeByClassId} from "@/api/integration/integration.js"; @@ -253,8 +261,12 @@ LinkList: [], isCodeArrayPushed: false, // 缂栫爜鏁扮粍娣诲姞鏍囪瘑鍙橀噺 CodeArray: [], + //鐢熷懡鍛ㄦ湡鏁扮粍 lcstatusArray:[], + //鍙傜収鏁版嵁鏁扮粍 + referArray:[], islcstatusPushed:false, + isReferPushed:false, // 鐘舵�佹悳绱� statusSelect: "all", // 鍏抽敭瀛楁煡璇� @@ -429,7 +441,16 @@ // console.log('lcstatusArray', this.lcstatusArray); this.islcstatusPushed = true; } - // console.log('new',newval) + if(!this.isReferPushed){ + if (newval.find(item => Object.keys(item.referConfig).length > 0)) { + this.referArray.push(newval.find(item => Object.keys(item.referConfig).length > 0)); + }else { + this.referArray.push([]) + } + } + this.isReferPushed=true; + console.log('new',this.referArray) + console.log('ss',newval.find(item => Object.keys(item.referConfig).length > 0)) this.WupinFindValue = '' }, }, @@ -533,10 +554,28 @@ this.applyvisible = true; }); }, - applySumbit(){ - + applySumbit(val){ + // console.log('val',val) + if(func.notEmpty(val.ts)) { + val.ts = func.formattedDateTime(val.ts); + //console.log(val.ts); + } + applySaveCode(val).then(res => { + this.$nextTick(() => { + this.applyvisible = false; + this.$message.success("淇濆瓨鎴愬姛"); + this.onLoad() + }) + }) }, - amendSumbit(){ + amendSumbit(val){ + applySaveCode(val).then(res => { + this.$nextTick(() => { + this.amendvisible = false; + this.$message.success("淇濆瓨鎴愬姛"); + this.onLoad() + }) + }) }, //鏍囧噯淇 -- Gitblit v1.9.3