Commit 3b8de951 by gao_yingdong

单位效能评估添加返回按钮, 单位下钻不生效处理

parent f53bd794
......@@ -17,6 +17,7 @@
<template #listOperation="scope">
<span class="hbyp" @click="addCY(scope.scope)">打印</span>
<span class="hbyp" @click="addDc(scope.scope)">导出</span>
<span class="hbyp" v-if="zutList.length > 0" @click="goSyj(scope.scope)">返回</span>
</template>
</right-content>
<!-- 用户量 弹窗 -->
......@@ -32,7 +33,7 @@
:cxQueryField="cxQueryField1"
:cxDefaultFormThead="cxDefaultFormThead1"
:cxUrl="cxUr"
ref="rightContent"
ref="rightContents"
>
</right-content>
<!-- <el-table
......@@ -415,6 +416,8 @@ export default {
children: [],
},
],
// 返回参数
zutList: [],
};
},
created() {
......@@ -424,6 +427,18 @@ export default {
this.getMenuBtCX(); // 表头设置
},
methods: {
// 返回
goSyj() {
debugger;
if (this.zutList.length == 1) {
this.zutList = [];
}
this.cxFormData.unitcode =
this.zutList.length > 1
? this.zutList.splice(this.zutList.length - 2, 1).join()
: ''
this.$refs.rightContent.doQuery("yes");
},
// 打印
addCY() {
window.print();
......@@ -485,6 +500,7 @@ export default {
// 单位下钻
toInfor(scope) {
debugger;
this.zutList.push(scope.dwdm);
this.cxFormData.unitcode = scope.dwdm;
this.$refs.rightContent.doQuery("yes");
},
......@@ -497,7 +513,7 @@ export default {
this.cxFormData1.unitcode = scope.row.dwdm;
(this.cxFormData1.qryType = scope.$index == 0 ? "bdw" : "bxq"),
(this.tableLoading = true);
this.$refs.rightContent.doQuery("yes");
this.$refs.rightContents.doQuery("yes");
// this.getGrXnpgXX(scope);
},
// 个人接口
......@@ -516,8 +532,10 @@ export default {
this.tableDataLength = res.data.total;
this.tableData = res.data.rows;
this.tableLoading = false;
this.cxFormData1.unitcode = "";
} else {
this.tableLoading = false;
this.cxFormData1.unitcode = "";
this.$message.error("查询失败");
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment