style:申请单元列表操作功能的完善
Showing
3 changed files
with
18 additions
and
8 deletions
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: workFrame左侧菜单列表-普通 | 2 | * @Description: workFrame左侧菜单列表-普通 | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-10-13 10:52:12 | 4 | * @LastEditTime: 2023-10-17 09:49:08 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 
| ... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ | 
| 15 | 申请单元列表({{ unitData.length }}) | 15 | 申请单元列表({{ unitData.length }}) | 
| 16 | <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button> | 16 | <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button> | 
| 17 | </div> | 17 | </div> | 
| 18 | <el-menu v-model="activeIndex" :default-active="activeIndex" @select="unitClick"> | 18 | <el-menu v-model="activeIndex" :default-active="activeIndex" :key="key" @select="unitClick"> | 
| 19 | <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> | 19 | <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> | 
| 20 | <p class="dot" v-if="item.issave == '0'"></p> | 20 | <p class="dot" v-if="item.issave == '0'"></p> | 
| 21 | <div class="menu-con"> | 21 | <div class="menu-con"> | 
| ... | @@ -47,10 +47,12 @@ | ... | @@ -47,10 +47,12 @@ | 
| 47 | export default { | 47 | export default { | 
| 48 | data () { | 48 | data () { | 
| 49 | return { | 49 | return { | 
| 50 | key: 0, | ||
| 50 | //受理申请标识码 | 51 | //受理申请标识码 | 
| 51 | bsmSlsq: this.$route.query.bsmSlsq, | 52 | bsmSlsq: this.$route.query.bsmSlsq, | 
| 52 | bestepid: this.$route.query.bestepid, | 53 | bestepid: this.$route.query.bestepid, | 
| 53 | bsmBusiness: this.$route.query.bsmBusiness, | 54 | bsmBusiness: this.$route.query.bsmBusiness, | 
| 55 | type: this.$route.query.type, | ||
| 54 | // 默认选中 | 56 | // 默认选中 | 
| 55 | activeIndex: '0', | 57 | activeIndex: '0', | 
| 56 | // 折叠 | 58 | // 折叠 | 
| ... | @@ -172,6 +174,7 @@ | ... | @@ -172,6 +174,7 @@ | 
| 172 | * @author: renchao | 174 | * @author: renchao | 
| 173 | */ | 175 | */ | 
| 174 | handleDel (item) { | 176 | handleDel (item) { | 
| 177 | let that = this | ||
| 175 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 178 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 
| 176 | confirmButtonText: "确定", | 179 | confirmButtonText: "确定", | 
| 177 | cancelButtonText: "取消", | 180 | cancelButtonText: "取消", | 
| ... | @@ -182,12 +185,17 @@ | ... | @@ -182,12 +185,17 @@ | 
| 182 | formdata.append("bsmSldyList", item.bsmSldy.split(",")); | 185 | formdata.append("bsmSldyList", item.bsmSldy.split(",")); | 
| 183 | deleteSlbdcdy(formdata).then((res) => { | 186 | deleteSlbdcdy(formdata).then((res) => { | 
| 184 | if (res.code == 200) { | 187 | if (res.code == 200) { | 
| 185 | this.$message.success("删除成功"); | 188 | that.$message.success("删除成功"); | 
| 186 | this.loadBdcdylist() | 189 | that.loadBdcdylist() | 
| 190 | debugger | ||
| 191 | if (that.activeIndex != '-1') { | ||
| 192 | that.activeIndex = '0' | ||
| 193 | sessionStorage.setItem('keyPath', '0'); | ||
| 194 | } | ||
| 187 | } else { | 195 | } else { | 
| 188 | this.$message.error(res.message); | 196 | this.$message.error(res.message); | 
| 189 | } | 197 | } | 
| 190 | }); | 198 | }) | 
| 191 | }) | 199 | }) | 
| 192 | .catch(() => { | 200 | .catch(() => { | 
| 193 | this.$message({ | 201 | this.$message({ | 
| ... | @@ -229,6 +237,7 @@ | ... | @@ -229,6 +237,7 @@ | 
| 229 | this.currentSelectProps.batchOperation = false; | 237 | this.currentSelectProps.batchOperation = false; | 
| 230 | this.activeIndex = index.toString(); | 238 | this.activeIndex = index.toString(); | 
| 231 | sessionStorage.setItem('keyPath', this.activeIndex); | 239 | sessionStorage.setItem('keyPath', this.activeIndex); | 
| 240 | this.key++ | ||
| 232 | //选中表单传递数据 | 241 | //选中表单传递数据 | 
| 233 | this.$emit('getCurrentSelectProps', this.currentSelectProps); | 242 | this.$emit('getCurrentSelectProps', this.currentSelectProps); | 
| 234 | this.$parent.stepForm(index); | 243 | this.$parent.stepForm(index); | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: workFrame左侧菜单列表-分割 | 2 | * @Description: workFrame左侧菜单列表-分割 | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-10-13 11:24:29 | 4 | * @LastEditTime: 2023-10-17 09:30:20 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 
| ... | @@ -64,6 +64,7 @@ | ... | @@ -64,6 +64,7 @@ | 
| 64 | bsmSlsq: this.$route.query.bsmSlsq, | 64 | bsmSlsq: this.$route.query.bsmSlsq, | 
| 65 | bsmBusiness: this.$route.query.bsmBusiness, | 65 | bsmBusiness: this.$route.query.bsmBusiness, | 
| 66 | bestepid: this.$route.query.bestepid, | 66 | bestepid: this.$route.query.bestepid, | 
| 67 | type: this.$route.query.type, | ||
| 67 | // 变更前单元默认选中 | 68 | // 变更前单元默认选中 | 
| 68 | activeIndex: '0', | 69 | activeIndex: '0', | 
| 69 | // 变更后单元默认选中 | 70 | // 变更后单元默认选中 | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-09-21 10:35:34 | 4 | * @LastEditTime: 2023-10-17 09:29:06 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> | 
| ... | @@ -161,7 +161,7 @@ | ... | @@ -161,7 +161,7 @@ | 
| 161 | "/workFrameView?bsmSlsq=" + | 161 | "/workFrameView?bsmSlsq=" + | 
| 162 | item.bsmSlsq + | 162 | item.bsmSlsq + | 
| 163 | "&bsmBusiness=" + | 163 | "&bsmBusiness=" + | 
| 164 | item.bsmBusiness | 164 | item.bsmBusiness + '&type=jdcx' | 
| 165 | ); | 165 | ); | 
| 166 | window.open(href, `workFrameView${item.bsmSlsq}`) | 166 | window.open(href, `workFrameView${item.bsmSlsq}`) | 
| 167 | } | 167 | } | ... | ... | 
- 
Please register or sign in to post a comment