From 228e511cd5916e061da5476fa73bc6791f30d73e Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 03 八月 2023 10:51:02 +0800 Subject: [PATCH] 主数据状态搜索 --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 31 +++++++++++++++++++++++-------- 1 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index 430e090..1e6c015 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -17,8 +17,8 @@ </el-button> <el-input v-model="WupinFindValue" placeholder="璇疯緭鍏ュ叧閿瓧鎸夊洖杞︽煡璇�" size="small" style="width: 180px; margin-left: 5px; margin-top: 10px" - @keyup.enter.native="tableFindInp" v-if="tableData.length != 0"></el-input> - <span style="margin-left: 10px" v-if="tableData.length != 0"> + @keyup.enter.native="tableFindInp" v-if="tableHeadFindData.length > 0"></el-input> + <span style="margin-left: 10px" v-if="tableHeadFindData.length > 0"> <p style="font-size: 13px;display: inline-block;"> 鐘舵�侊細</p> <el-select v-model="statusSelect" slot="prepend" placeholder="璇烽�夋嫨" size="small" @change="cellSelectHandler"> <el-option label="鍏ㄩ儴" value="all"></el-option> @@ -165,7 +165,7 @@ }, data() { return { - statusSelect:"", + statusSelect:"all", searchResults: [], //棣栭〉鍙充晶鎼滅储 WupinFindValue: "", @@ -250,8 +250,8 @@ }, computed: {}, created() { - const index = this.$route.query.id.indexOf('@'); - this.result = this.$route.query.id.substring(0, index); + const index = this.$route.query.id.indexOf('@name=') + '@name='.length; + this.result = this.$route.query.id.substring(index); }, mounted() { }, @@ -276,7 +276,6 @@ }, tableDataArray: { handler(newval, oldval) { - this.statusSelect='' this.tableData = newval; this.searchResults = newval this.doLayout() @@ -327,7 +326,23 @@ methods: { //鐘舵�佹悳绱� cellSelectHandler(row){ - console.log(row) + if(row === 'all'){ + this.cellStatusFind() + }else { + this.cellStatusFind(row) + } + }, + cellStatusFind(lcstatus){ + TableData({ + templateOid: this.templateOid, + codeClassifyOid: this.codeClassifyOid, + page: this.page.currentPage, + limit: this.page.pageSize, + 'conditionMap[lcstatus]':lcstatus + }).then(res=>{ + console.log(res) + this.tableData=res.data.data + }) }, //灞曞紑闄勪欢 handleCollapse(activeNames) { @@ -404,7 +419,7 @@ processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => { if (res.data.data.records && res.data.data.records.length!=0) { this.userName = localStorage.getItem("username"); - this.parameter.template = this.userName + '-鍙戝竷['+this.result+'-' + this.selectRow[0].name + ']'; + this.parameter.template = this.userName + '-鐢宠['+this.result+'-' + this.selectRow[0].name + ']'; this.parameter.type = 'PUBLIC'; this.parameter.code=this.templateOid this.title = '娴佺▼瀹℃壒' -- Gitblit v1.9.3