licp
2024-05-28 df85764203947543c0ced0a0cdf8b7299f6b40ff
src/views/accounting/jmreport/index.vue
@@ -18,6 +18,7 @@
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
@@ -65,8 +66,10 @@
                        prop: 'workShop',
                        label: '车间',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text',
                        isSearch: true,searchInfoType:'select',
                        optList: () => {
                        return this.workShopList
                        }
                    },
                    {
                        minWidth: '100',
@@ -123,13 +126,26 @@
                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>