| | |
| | | import { mapGetters } from 'vuex' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import { pageList } from '@/api/accounting/personReport' |
| | | import { remote } from '@/api/admin/dict' |
| | | export default { |
| | | components: { |
| | | ttable |
| | |
| | | prop: 'workShop', |
| | | label: '车间', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | isSearch: true,searchInfoType:'select', |
| | | optList: () => { |
| | | return this.workShopList |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | |
| | | operator: null |
| | | }, |
| | | prelang: "operation", |
| | | workShopList:[], |
| | | } |
| | | }, |
| | | mounted(){ |
| | | this.getWorkShopList() |
| | | }, |
| | | methods:{ |
| | | // table自带事件 |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | }, |
| | | getWorkShopList(){ |
| | | remote('work_shop').then((response) => { |
| | | if (response.data.code === 0) { |
| | | this.workShopList = response.data.data |
| | | } else { |
| | | this.workShopList = [] |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |