BUG 29015

This commit is contained in:
aixianling
2022-04-11 10:13:48 +08:00
parent 09d107514b
commit 63649d631f
2 changed files with 85 additions and 240 deletions

View File

@@ -19,76 +19,76 @@
</template>
<script>
import forMyApproval from "./components/forMyApproval";
import approvalDetail from "./components/approvalDetail";
import forMyApproval from "./components/forMyApproval";
import approvalDetail from "./components/approvalDetail";
export default {
name: "AppApprovalManage",
label: "审批管理",
components: {approvalDetail},
provide() {
return {
approval: this
}
},
props: {
instance: Function,
dict: Object,
permissions: Function
},
data() {
return {
currIndex: '0',
showList: true,
currentPage: "",
detail: {},
}
},
computed: {
tabs() {
return [
{
label: "待我审批", name: "forMyApproval", value: "0", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
{
label: "我已审批", name: "forMyApproval", value: "1", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
{
label: "抄送我的", name: "forMyApproval", value: "3", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
{
label: "超时督办", name: "forMyApproval", value: "4", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
]
},
currentTab() {
return this.tabs[this.currIndex] || {}
}
},
methods: {
goPage(obj) {
this.currentPage = this.tabs[Number(this.currIndex)][obj.key];
obj.row && (this.detail = obj.row)
this.showList = false;
},
goBack() {
this.showList = true;
this.$nextTick(() => {
this.$refs[this.currIndex][0].getList();
})
},
export default {
name: "AppApprovalManage",
label: "审批管理(秀山)",
components: {approvalDetail},
provide() {
return {
approval: this
}
},
props: {
instance: Function,
dict: Object,
permissions: Function
},
data() {
return {
currIndex: '0',
showList: true,
currentPage: "",
detail: {},
}
},
computed: {
tabs() {
return [
{
label: "待我审批", name: "forMyApproval", value: "0", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
{
label: "我已审批", name: "forMyApproval", value: "1", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
{
label: "抄送我的", name: "forMyApproval", value: "3", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
{
label: "超时督办", name: "forMyApproval", value: "4", comp: forMyApproval, detail: approvalDetail,
permission: ""
},
]
},
currentTab() {
return this.tabs[this.currIndex] || {}
}
},
methods: {
goPage(obj) {
this.currentPage = this.tabs[Number(this.currIndex)][obj.key];
obj.row && (this.detail = obj.row)
this.showList = false;
},
goBack() {
this.showList = true;
this.$nextTick(() => {
this.$refs[this.currIndex][0].getList();
})
},
}
}
</script>
<style lang="scss" scoped>
.approval-manage {
width: 100%;
height: 100%;
background-color: #F3F6F9;
}
.approval-manage {
width: 100%;
height: 100%;
background-color: #F3F6F9;
}
</style>