Commit 3b8de951 by gao_yingdong

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

parent f53bd794
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<template #listOperation="scope"> <template #listOperation="scope">
<span class="hbyp" @click="addCY(scope.scope)">打印</span> <span class="hbyp" @click="addCY(scope.scope)">打印</span>
<span class="hbyp" @click="addDc(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> </template>
</right-content> </right-content>
<!-- 用户量 弹窗 --> <!-- 用户量 弹窗 -->
...@@ -32,7 +33,7 @@ ...@@ -32,7 +33,7 @@
:cxQueryField="cxQueryField1" :cxQueryField="cxQueryField1"
:cxDefaultFormThead="cxDefaultFormThead1" :cxDefaultFormThead="cxDefaultFormThead1"
:cxUrl="cxUr" :cxUrl="cxUr"
ref="rightContent" ref="rightContents"
> >
</right-content> </right-content>
<!-- <el-table <!-- <el-table
...@@ -415,6 +416,8 @@ export default { ...@@ -415,6 +416,8 @@ export default {
children: [], children: [],
}, },
], ],
// 返回参数
zutList: [],
}; };
}, },
created() { created() {
...@@ -424,6 +427,18 @@ export default { ...@@ -424,6 +427,18 @@ export default {
this.getMenuBtCX(); // 表头设置 this.getMenuBtCX(); // 表头设置
}, },
methods: { 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() { addCY() {
window.print(); window.print();
...@@ -485,6 +500,7 @@ export default { ...@@ -485,6 +500,7 @@ export default {
// 单位下钻 // 单位下钻
toInfor(scope) { toInfor(scope) {
debugger; debugger;
this.zutList.push(scope.dwdm);
this.cxFormData.unitcode = scope.dwdm; this.cxFormData.unitcode = scope.dwdm;
this.$refs.rightContent.doQuery("yes"); this.$refs.rightContent.doQuery("yes");
}, },
...@@ -497,7 +513,7 @@ export default { ...@@ -497,7 +513,7 @@ export default {
this.cxFormData1.unitcode = scope.row.dwdm; this.cxFormData1.unitcode = scope.row.dwdm;
(this.cxFormData1.qryType = scope.$index == 0 ? "bdw" : "bxq"), (this.cxFormData1.qryType = scope.$index == 0 ? "bdw" : "bxq"),
(this.tableLoading = true); (this.tableLoading = true);
this.$refs.rightContent.doQuery("yes"); this.$refs.rightContents.doQuery("yes");
// this.getGrXnpgXX(scope); // this.getGrXnpgXX(scope);
}, },
// 个人接口 // 个人接口
...@@ -516,8 +532,10 @@ export default { ...@@ -516,8 +532,10 @@ export default {
this.tableDataLength = res.data.total; this.tableDataLength = res.data.total;
this.tableData = res.data.rows; this.tableData = res.data.rows;
this.tableLoading = false; this.tableLoading = false;
this.cxFormData1.unitcode = "";
} else { } else {
this.tableLoading = false; this.tableLoading = false;
this.cxFormData1.unitcode = "";
this.$message.error("查询失败"); 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