|
@@ -68,7 +68,6 @@
|
|
|
import moment from "moment"
|
|
|
import searchModal from './searchModal.vue'
|
|
|
import wPicker from "@/components/w-picker/w-picker.vue"
|
|
|
- import { getLookUpDatas } from '@/api/data.js'
|
|
|
import { queryMyTask } from '@/api/task.js'
|
|
|
export default {
|
|
|
components: { wPicker, searchModal },
|
|
@@ -125,7 +124,9 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.getLookUpData('TASK_STATUS') // 获取任务状态
|
|
|
+ // 获取任务状态 对象深度克隆
|
|
|
+ this.tabList = this.$u.deepClone(this.$store.state.vuex_taskStatus)
|
|
|
+ this.tabList.unshift({dispName: '全部', code: ''})
|
|
|
this.searchForm.beginDate = this.get7day(-6)
|
|
|
this.searchForm.endDate = this.get7day(0)
|
|
|
this.resetPage()
|
|
@@ -143,17 +144,6 @@
|
|
|
this.searchForm = params
|
|
|
this.pageInit(1)
|
|
|
},
|
|
|
- // 获取数据字典数据
|
|
|
- getLookUpData(code) {
|
|
|
- getLookUpDatas({ type: code }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- if(code == 'TASK_STATUS'){ // 状态
|
|
|
- res.data.unshift({dispName: '全部', code: ''})
|
|
|
- this.tabList = res.data
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
// 查询列表
|
|
|
pageInit(pageNo){
|
|
|
if (pageNo) {
|