diff --git a/ant-design-vue-jeecg/src/views/system/config/modules/ContainerTypeForm.vue b/ant-design-vue-jeecg/src/views/system/config/modules/ContainerTypeForm.vue index 03faf90..5e2b395 100644 --- a/ant-design-vue-jeecg/src/views/system/config/modules/ContainerTypeForm.vue +++ b/ant-design-vue-jeecg/src/views/system/config/modules/ContainerTypeForm.vue @@ -28,11 +28,11 @@ </a-col> <a-col :span="24"> <a-form-model-item label="绑定的库位类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="locationType"> - <j-multi-select-tag + <j-select-multiple v-model="model.locationType" :options="locationTypeOptions" placeholder="请选择库位类型"> - </j-multi-select-tag> + </j-select-multiple> </a-form-model-item> </a-col> <a-col :span="24"> @@ -69,9 +69,7 @@ <script> import {httpAction, getAction} from '@/api/manage' -import {validateDuplicateValue} from '@/utils/util' -import {getCompanyList, getLocationTypeList} from '@/api/api' -import {disabledAuthFilter} from "@/utils/authFilter" +import {getLocationTypeList, getCompanyList} from '@/api/api' export default { name: 'ContainerTypeForm', @@ -106,7 +104,7 @@ export default { {required: true, message: '请输入名称!'}, ], locationType: [ - {required: true, message: '请输入库位类型!'}, + {required: true, message: '请选择库位类型!'}, ], }, url: { @@ -123,7 +121,6 @@ export default { }, created() { //备份model原始值 - this.loadFrom(); this.modelDefault = JSON.parse(JSON.stringify(this.model)); }, methods: { @@ -141,14 +138,12 @@ export default { } }); }, - // 禁用异步获取API数据 - isDisabledAuth(code) { - return disabledAuthFilter(code); - }, add() { + this.loadFrom(); this.edit(this.modelDefault); }, edit(record) { + this.loadFrom(); this.model = Object.assign({}, record); this.visible = true; },