优化
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.workorder_status"
|
||||
v-for="item in dict.formula_status"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
@@ -121,7 +121,7 @@ import Date from '@/utils/datetime'
|
||||
|
||||
export default {
|
||||
name: 'Powderorder',
|
||||
dicts: ['workorder_status'],
|
||||
dicts: ['formula_status'],
|
||||
components: { pagination, crudOperation, rrOperation },
|
||||
mixins: [presenter(), header(), crud()],
|
||||
cruds() {
|
||||
@@ -161,15 +161,16 @@ export default {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
this.crud.data = []
|
||||
this.cols = []
|
||||
if (this.query_flag) {
|
||||
this.crud.query.begin_time = (new Date().daysAgo(7)).strftime('%F', 'zh')
|
||||
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
|
||||
this.query_flag = false
|
||||
const now = this.crud.query
|
||||
crudPowderorder.getHeader(now).then(res => {
|
||||
this.cols = res
|
||||
})
|
||||
}
|
||||
const now = this.crud.query
|
||||
crudPowderorder.getHeader(now).then(res => {
|
||||
this.cols = res
|
||||
})
|
||||
return true
|
||||
},
|
||||
onInput() {
|
||||
|
||||
Reference in New Issue
Block a user