| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-form v-model="searchForm" :option="serachOption" @submit="searchSubmit"></avue-form> |
| | | <avue-crud |
| | | :addBtn="false" |
| | | :option="option" |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | searchForm: {}, |
| | | serachOption: { |
| | | labelWidth: 90, |
| | | menuSpan: 6, |
| | | submitText: "查询", |
| | | emptyBtn: false, |
| | | column: [ |
| | | { |
| | | label: "任务时间", |
| | | prop: "daterange", |
| | | type: "daterange", |
| | | format: 'YYYY-MM-DD', |
| | | valueFormat: 'YYYY-MM-DD', |
| | | startPlaceholder: '日期开始范围自定义', |
| | | endPlaceholder: '日期结束范围自定义', |
| | | span: 6 |
| | | }, |
| | | { |
| | | label: '执行人员', |
| | | prop: 'assigneeName', |
| | | span: 6 |
| | | }, |
| | | { |
| | | label: '关键字', |
| | | prop: 'keyword', |
| | | span: 6 |
| | | } |
| | | ] |
| | | }, |
| | | search: { |
| | | keyword: "", |
| | | machineGroupCode: "" |
| | |
| | | menu: false, |
| | | column: [ |
| | | { |
| | | label: '任务时间', |
| | | type: 'input', |
| | | prop: '', |
| | | search: true, |
| | | hide: true |
| | | }, |
| | | { |
| | | label: '执行人员', |
| | | type: 'input', |
| | | prop: '', |
| | | search: true |
| | | prop: 'assigneeName', |
| | | }, |
| | | { |
| | | label: '任务名称', |
| | | prop: '', |
| | | prop: 'taskName', |
| | | }, |
| | | { |
| | | label: '任务节点', |
| | | prop: '', |
| | | prop: 'assignee', |
| | | }, |
| | | { |
| | | label: '任务到达时间', |
| | | prop: '', |
| | | prop: 'createTime', |
| | | }, |
| | | { |
| | | label: '要求完成时间', |
| | | prop: '', |
| | | prop: 'claimTime', |
| | | }, |
| | | { |
| | | label: '详情', |
| | | prop: '', |
| | | search: true, |
| | | label: '关键字', |
| | | prop: 'keyword', |
| | | hide: true |
| | | } |
| | | ], |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | searchSubmit(params,done) { |
| | | this.onLoad(params); |
| | | done(); |
| | | }, |
| | | handleEdit(row,index) { |
| | | |
| | | }, |
| | |
| | | refreshChange() { |
| | | |
| | | }, |
| | | onLoad() { |
| | | this.loading = true; |
| | | var obj = { |
| | | keyword: this.search.keyword, |
| | | machineGroupCode: this.search.machineGroupCode, |
| | | current: this.mypage.current, |
| | | size: this.mypage.size, |
| | | onLoad(params) { |
| | | if(this.searchForm.daterange == undefined) { |
| | | this.searchForm.createTimeBegin = ""; |
| | | this.searchForm.createTimeEnd = ""; |
| | | }else if(this.searchForm.daterange.length == 1) { |
| | | this.searchForm.createTimeBegin = this.searchForm.daterange[0]; |
| | | }else if(this.searchForm.daterange.length == 2) { |
| | | this.searchForm.createTimeBegin = this.searchForm.daterange[0]; |
| | | this.searchForm.createTimeEnd = this.searchForm.daterange[1]; |
| | | } |
| | | console.log(this.searchForm,111) |
| | | this.loading = true; |
| | | axios({ |
| | | url: '/blade-mdm/machine/page', |
| | | url: '/blade-mdm/flow/mgr/overtime-list', |
| | | method: 'get', |
| | | date: obj, |
| | | params: this.searchForm, |
| | | }).then( |
| | | res => { |
| | | const data = res.data.data; |