Commit d92f1ff2 by chenwq

员工完成率列表-删除接口

1 parent 86a62504
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
loading: false, loading: false,
taskPercent: '', taskPercent: '',
searchForm: {}, searchForm: {},
isCheckStatus: false, // isCheckStatus: false,
// 表格 // 表格
getListApi: this.$apis.sop.getSopStaffTaskListApi, getListApi: this.$apis.sop.getSopStaffTaskListApi,
tableParams: { tableParams: {
...@@ -93,15 +93,16 @@ export default { ...@@ -93,15 +93,16 @@ export default {
}, },
mounted() { mounted() {
this.getTaskStatus() // this.getTaskStatus()
this.getBaseInfo() this.getBaseInfo()
}, },
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise(resolve => {
this.searchForm.sopId = this.sopId this.searchForm.sopId = this.sopId
this.isCheckStatus ? resolve() : reject() resolve()
// this.isCheckStatus ? resolve() : reject()
}) })
}, },
...@@ -110,17 +111,17 @@ export default { ...@@ -110,17 +111,17 @@ 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() { // getTaskStatus() {
this.loading = true // this.loading = true
this.$apis.sop // this.$apis.sop
.getTaskStatusApi({}) // .getTaskStatusApi({})
.then(res => { }) // .then(res => { })
.finally(() => { // .finally(() => {
this.loading = false // this.loading = false
this.isCheckStatus = true // this.isCheckStatus = true
this.$refs.staffListRef.refreshTable() // this.$refs.staffListRef.refreshTable()
}) // })
}, // },
getBaseInfo() { getBaseInfo() {
this.$apis.sop.getSopBaseInfoApi({ sopId: this.sopId }).then(res => { this.$apis.sop.getSopBaseInfoApi({ sopId: this.sopId }).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!