818ef1d0 by renchao@pashanhoo.com

style:申请单元列表操作功能的完善

1 parent 00cf89f7
<!--
* @Description: workFrame左侧菜单列表-普通
* @Autor: renchao
* @LastEditTime: 2023-10-13 10:52:12
* @LastEditTime: 2023-10-17 09:49:08
-->
<template>
<div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
......@@ -15,7 +15,7 @@
申请单元列表({{ unitData.length }})
<el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button>
</div>
<el-menu v-model="activeIndex" :default-active="activeIndex" @select="unitClick">
<el-menu v-model="activeIndex" :default-active="activeIndex" :key="key" @select="unitClick">
<el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index">
<p class="dot" v-if="item.issave == '0'"></p>
<div class="menu-con">
......@@ -47,10 +47,12 @@
export default {
data () {
return {
key: 0,
//受理申请标识码
bsmSlsq: this.$route.query.bsmSlsq,
bestepid: this.$route.query.bestepid,
bsmBusiness: this.$route.query.bsmBusiness,
type: this.$route.query.type,
// 默认选中
activeIndex: '0',
// 折叠
......@@ -172,6 +174,7 @@
* @author: renchao
*/
handleDel (item) {
let that = this
this.$confirm("确定要删除吗, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......@@ -182,12 +185,17 @@
formdata.append("bsmSldyList", item.bsmSldy.split(","));
deleteSlbdcdy(formdata).then((res) => {
if (res.code == 200) {
this.$message.success("删除成功");
this.loadBdcdylist()
that.$message.success("删除成功");
that.loadBdcdylist()
debugger
if (that.activeIndex != '-1') {
that.activeIndex = '0'
sessionStorage.setItem('keyPath', '0');
}
} else {
this.$message.error(res.message);
}
});
})
})
.catch(() => {
this.$message({
......@@ -229,6 +237,7 @@
this.currentSelectProps.batchOperation = false;
this.activeIndex = index.toString();
sessionStorage.setItem('keyPath', this.activeIndex);
this.key++
//选中表单传递数据
this.$emit('getCurrentSelectProps', this.currentSelectProps);
this.$parent.stepForm(index);
......
<!--
* @Description: workFrame左侧菜单列表-分割
* @Autor: renchao
* @LastEditTime: 2023-10-13 11:24:29
* @LastEditTime: 2023-10-17 09:30:20
-->
<template>
<div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
......@@ -64,6 +64,7 @@
bsmSlsq: this.$route.query.bsmSlsq,
bsmBusiness: this.$route.query.bsmBusiness,
bestepid: this.$route.query.bestepid,
type: this.$route.query.type,
// 变更前单元默认选中
activeIndex: '0',
// 变更后单元默认选中
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-21 10:35:34
* @LastEditTime: 2023-10-17 09:29:06
-->
<template>
<div class="from-clues">
......@@ -161,7 +161,7 @@
"/workFrameView?bsmSlsq=" +
item.bsmSlsq +
"&bsmBusiness=" +
item.bsmBusiness
item.bsmBusiness + '&type=jdcx'
);
window.open(href, `workFrameView${item.bsmSlsq}`)
}
......