From 082b572b91abd0d5ae8e409714553130448aa6d1 Mon Sep 17 00:00:00 2001 From: 张涛 <“2538313560@qq.com”> Date: 星期五, 30 八月 2024 17:25:44 +0800 Subject: [PATCH] fix:薪资调整 --- src/views/systemSetting/dataDictionary/index.vue | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/views/systemSetting/dataDictionary/index.vue b/src/views/systemSetting/dataDictionary/index.vue index 9c1b9da..f7d4cfc 100644 --- a/src/views/systemSetting/dataDictionary/index.vue +++ b/src/views/systemSetting/dataDictionary/index.vue @@ -11,27 +11,27 @@ <div class="body-card"> <div class="list-view"> <div class="bottom-tabs" > - <div class="tab-pane" @click="getTab(0)" :style="{ - background: TabsIndex == 0 ? '#2a78fb' : '#F1F3F8', - color: TabsIndex == 0 ? '#fff' : '#666' - }"> - 搴勫彛绠$悊 - </div> <div class="tab-pane" @click="getTab(1)" :style="{ background: TabsIndex == 1 ? '#2a78fb' : '#F1F3F8', color: TabsIndex == 1 ? '#fff' : '#666' }"> - 杞﹂棿绠$悊 + 搴勫彛绠$悊 </div> <div class="tab-pane" @click="getTab(2)" :style="{ background: TabsIndex == 2 ? '#2a78fb' : '#F1F3F8', color: TabsIndex == 2 ? '#fff' : '#666' }"> - 甯﹀彿棰滆壊 + 杞﹂棿绠$悊 </div> <div class="tab-pane" @click="getTab(3)" :style="{ background: TabsIndex == 3 ? '#2a78fb' : '#F1F3F8', color: TabsIndex == 3 ? '#fff' : '#666' + }"> + 甯﹀彿棰滆壊 + </div> + <div class="tab-pane" @click="getTab(4)" :style="{ + background: TabsIndex == 4 ? '#2a78fb' : '#F1F3F8', + color: TabsIndex == 4 ? '#fff' : '#666' }"> 瑙勬牸 </div> @@ -73,7 +73,7 @@ computed: {}, data() { return { - TabsIndex:0, + TabsIndex:1, loading: false, productTableList: {}, editConfig:{ @@ -122,6 +122,7 @@ // 鎼滅储 onFilterSearch(searchText) { this.getDataParams.keyword=searchText, + this.pagerOptions.currPage = 1; this.getData() }, // 鏂板 @@ -165,26 +166,26 @@ }, async getProductOrderInfo() { this.getData() - if (this.TabsIndex == 0) { + if (this.TabsIndex == 1) { // 搴勫彛绠$悊 this.editConfig.dialogTitleType="搴勫彛" this.tableBottomColumn = this.tableColumn // 琛ㄥご this.showBottomCol = this.showCol // 鍔ㄦ�佽〃澶� this.setBottomList() - }else if (this.TabsIndex == 1) { + }else if (this.TabsIndex == 2) { // 杞﹂棿绠$悊 this.editConfig.dialogTitleType="杞﹂棿" this.tableBottomColumn = this.workshopTableColumn this.showBottomCol = this.showWorkshopCol this.setBottomList() - } else if (this.TabsIndex == 2) { + } else if (this.TabsIndex == 3) { // 甯﹀彿棰滆壊 this.editConfig.dialogTitleType="甯﹀彿棰滆壊" this.tableBottomColumn = this.colorTableColumn this.showBottomCol = this.showColorCol this.setBottomList() - } else if (this.TabsIndex == 3) { + } else if (this.TabsIndex == 4) { // 瑙勬牸 this.editConfig.dialogTitleType="瑙勬牸" this.tableBottomColumn = this.specsTableColumn @@ -247,12 +248,8 @@ }) }, rowClick(row,type){ - if(type==="鏌ョ湅"){ - this.editConfig.dialogTitle="鏌ョ湅" - this.editConfig.visible=true - this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex} - }else if(type==="淇敼"){ - this.editConfig.dialogTitle="淇敼" + if(type!=="鍒犻櫎"){ + this.editConfig.dialogTitle=type this.editConfig.visible=true this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex} }else if(type==="鍒犻櫎"){ @@ -263,6 +260,7 @@ }).then(() => { deleteDict({id:row.ID}).then((res)=>{ if(res&&res.code===200){ + this.pagerOptions.currPage = 1; this.getData() this.$message({ type: 'success', @@ -270,7 +268,9 @@ }); } }) - }) + }).catch(() => { + console.log("鍙栨秷鍒犻櫎") + }); } } } -- Gitblit v1.8.0