Commit d92f1ff2 by chenwq

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

1 parent 86a62504
......@@ -54,7 +54,7 @@ export default {
loading: false,
taskPercent: '',
searchForm: {},
isCheckStatus: false,
// isCheckStatus: false,
// 表格
getListApi: this.$apis.sop.getSopStaffTaskListApi,
tableParams: {
......@@ -93,15 +93,16 @@ export default {
},
mounted() {
this.getTaskStatus()
// this.getTaskStatus()
this.getBaseInfo()
},
methods: {
beforeSearchFn() {
return new Promise((resolve, reject) => {
return new Promise(resolve => {
this.searchForm.sopId = this.sopId
this.isCheckStatus ? resolve() : reject()
resolve()
// this.isCheckStatus ? resolve() : reject()
})
},
......@@ -110,17 +111,17 @@ export default {
this.$refs.staffListRef.data.length ? (this.$refs.staffListRef.tableHeightValues = '') : this.$refs.staffListRef.setTableHeightFun()
},
getTaskStatus() {
this.loading = true
this.$apis.sop
.getTaskStatusApi({})
.then(res => { })
.finally(() => {
this.loading = false
this.isCheckStatus = true
this.$refs.staffListRef.refreshTable()
})
},
// getTaskStatus() {
// this.loading = true
// this.$apis.sop
// .getTaskStatusApi({})
// .then(res => { })
// .finally(() => {
// this.loading = false
// this.isCheckStatus = true
// this.$refs.staffListRef.refreshTable()
// })
// },
getBaseInfo() {
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!