From 0bc12c0a71522cbc4a0e9c4fc8afd7ce40201bae Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 22 八月 2023 11:16:24 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue index 2c79a93..3697124 100644 --- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue +++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue @@ -16,6 +16,7 @@ @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" + @row-click="rowClick" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @@ -83,8 +84,6 @@ }, created() { this.getParams(); - // console.log('referConfig:') - // console.log(this.referConfig) }, mounted() { if(this.referConfig.options.page){ @@ -157,13 +156,13 @@ this.option.column = [{ prop: 'id', label: '鑻辨枃鍚嶇О', - sort: true, + sortable: true, width: 150, search: true }, { prop: 'name', label: '涓枃鍚嶇О', - sort: true, + sortable: true, width: 150, search: true }, { @@ -177,6 +176,7 @@ hidden: (!this.controllerSecret) }]; } else { + debugger; this.option.column = this.options.tableConfig.cols.map(item => { if (item.field != 'LAY_TABLE_INDEX' && item.field != 'LAY_CHECKED') { return { @@ -184,7 +184,9 @@ label: item.title, prop: item.field, formatter:item.template, - search: true + search:this.options.tableConfig.queryColumns.some(qItem=>{ + return qItem.field==item.field + }) } } }) @@ -235,7 +237,7 @@ this.value=value.join(','); this.text=text.join(',') - this.$emit("setValue", {field:this.referConfig.field,showField:this.referConfig.showField,value:this.value,text:this.text,rawData:this.selectionList}); + this.$emit("setValue", {field:this.referConfig.field,showField:this.referConfig.showField,value:this.value,text:this.text,rawData:this.selectionList,fieldMap:this.referConfig.fieldMap}); this.visible=false; }, searchReset() { @@ -254,6 +256,11 @@ sizeChange(pageSize){ this.page.pageSize = pageSize; }, + rowClick (row) { + this.$refs.referDefalutCrud.toggleSelection(); + this.$refs.referDefalutCrud.toggleRowSelection(row); //閫変腑褰撳墠琛� + this.selectionList=[row] + }, selectionChange(list) { if (!this.isMuti && list.length > 1) { const nowVal = list.shift(); -- Gitblit v1.9.3