From 426cad0dd0eef1aefb59c6aaa2e2a2448773dc0b Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期一, 24 七月 2023 17:29:24 +0800 Subject: [PATCH] 1、修改查询按钮时的条件,使用编码来查询。 2、增加申请编码时增加设置默认的租户编码。 3、对传入in('条件sql拼接报错问题进行了修改。 4、模板的启用前进行了对分类启用状态的一个判断工作。 --- Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue | 26 +++++--------------------- 1 files changed, 5 insertions(+), 21 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue index 6747729..0863be2 100644 --- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue @@ -278,6 +278,7 @@ tableDataArray: { handler(newval, oldval) { this.tableData = newval; + this.searchResults=newval }, }, tableHeadFindData: { @@ -568,6 +569,7 @@ list.forEach((item) => { this.parameter.ids.push(item.oid); }); + console.log(this.parameter) }, //閫夋嫨 handleSelection(list, row) { @@ -659,36 +661,18 @@ this.batchImportData.codeClassifyOid = this.codeClassifyOid }, //杈撳叆鍥炶溅鎼滅储 - tableFindInp(event) { - console.log('鍥炶溅閿鎸変笅'); - console.log(this.WupinFindValue) - console.log(this.tableData) - // 鍦ㄨ繖閲屾墽琛屼綘鐨勬搷浣� - // let referList=[] - // this.tableData.filter(item => { - // console.log(item.name.includes(this.WupinFindValue)) - // console.log(item.name.indexOf(this.WupinFindValue)>=0) - // }) - // const regex = new RegExp(this.WupinFindValue, 'i'); - // this.tableData.filter(item => { - // console.log(regex.test(item.name)) - // // return regex.test(item.name); - // }); + tableFindInp() { if (this.WupinFindValue.trim() === '') { - this.searchResults = []; // 杈撳叆鍊间负绌猴紝娓呯┖鎼滅储缁撴灉 + this.$message.warning('杈撳叆鍊间笉鑳戒负绌�') return; } - - this.tableData = this.tableData.filter(item => { + this.tableData = this.searchResults.filter(item => { if (typeof item.name === 'string') { return item.name.includes(this.WupinFindValue); }else { return false; // item.name涓嶆槸瀛楃涓茬被鍨嬶紝杩斿洖false } - }); - console.log(this.searchResults); - } } -- Gitblit v1.9.3