Commit f5b07875 by 杨北旺

sop分析

1 parent e94e838b
...@@ -55,6 +55,7 @@ export default { ...@@ -55,6 +55,7 @@ export default {
sopStatistics: {} sopStatistics: {}
}, },
searchForm: {}, searchForm: {},
isCheckStatus: false,
// 表格 // 表格
getListApi: this.$apis.sop.getSopStaffTaskListApi, getListApi: this.$apis.sop.getSopStaffTaskListApi,
tableParams: { tableParams: {
...@@ -93,6 +94,7 @@ export default { ...@@ -93,6 +94,7 @@ export default {
}, },
mounted() { mounted() {
this.getTaskStatus()
this.getBaseInfo() this.getBaseInfo()
}, },
...@@ -120,9 +122,9 @@ export default { ...@@ -120,9 +122,9 @@ export default {
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise((resolve, reject) => {
this.searchForm.sopId = this.sopId this.searchForm.sopId = this.sopId
resolve() this.isCheckStatus ? resolve() : reject()
}) })
}, },
...@@ -131,6 +133,12 @@ export default { ...@@ -131,6 +133,12 @@ export default {
this.$refs.staffListRef.data.length ? (this.$refs.staffListRef.tableHeightValues = '') : this.$refs.staffListRef.setTableHeightFun() this.$refs.staffListRef.data.length ? (this.$refs.staffListRef.tableHeightValues = '') : this.$refs.staffListRef.setTableHeightFun()
}, },
getTaskStatus() {
this.$apis.sop.getTaskStatusApi({}).then(res => {
this.isCheckStatus = true
})
},
getBaseInfo() { getBaseInfo() {
this.$apis.sop.getSopBaseInfoApi({ sopId: this.sopId }).then(res => { this.$apis.sop.getSopBaseInfoApi({ sopId: this.sopId }).then(res => {
this.sopInfo = res this.sopInfo = res
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id"></touch-list> <touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id"></touch-list>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="员工完成率分析" name="staffList"> <el-tab-pane label="员工完成率分析" name="staffList">
<staff-list v-if="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list> <staff-list v-show="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-button :size="size" class="sop-back-btn" type="primary" @click="handleBack">返回</el-button> <el-button :size="size" class="sop-back-btn" type="primary" @click="handleBack">返回</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!