Commit f5b07875 by 杨北旺

sop分析

1 parent e94e838b
......@@ -161,7 +161,7 @@ export default {
this.selectedLabelList.forEach(item => {
item.labelList.forEach(subItem => {
// this.searchForm.labelStandInfoList.push({
this.searchForm.tagLists.push({
this.searchForm.tagLists.push({
groupId: item.labelGroup.id,
groupName: item.labelGroup.name,
groupType: item.labelType,
......
......@@ -55,6 +55,7 @@ export default {
sopStatistics: {}
},
searchForm: {},
isCheckStatus: false,
// 表格
getListApi: this.$apis.sop.getSopStaffTaskListApi,
tableParams: {
......@@ -93,6 +94,7 @@ export default {
},
mounted() {
this.getTaskStatus()
this.getBaseInfo()
},
......@@ -120,9 +122,9 @@ export default {
},
beforeSearchFn() {
return new Promise(resolve => {
return new Promise((resolve, reject) => {
this.searchForm.sopId = this.sopId
resolve()
this.isCheckStatus ? resolve() : reject()
})
},
......@@ -131,6 +133,12 @@ export default {
this.$refs.staffListRef.data.length ? (this.$refs.staffListRef.tableHeightValues = '') : this.$refs.staffListRef.setTableHeightFun()
},
getTaskStatus() {
this.$apis.sop.getTaskStatusApi({}).then(res => {
this.isCheckStatus = true
})
},
getBaseInfo() {
this.$apis.sop.getSopBaseInfoApi({ sopId: this.sopId }).then(res => {
this.sopInfo = res
......
......@@ -9,7 +9,7 @@
<touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id"></touch-list>
</el-tab-pane>
<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-tabs>
<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!