| | |
| | | import { get, post, postBlob, postForm } from '@/utils/request.js' |
| | | import { formatMessage } from '@/utils/localeUtils.js'; |
| | | import { message } from 'ant-design-vue'; |
| | | import { |
| | | MinusCircleOutlined, |
| | | } from "@ant-design/icons-vue"; |
| | | |
| | | const formTable = ref(null); |
| | | const submitButton = ref(null); |
| | |
| | | }; |
| | | |
| | | const onFinish = values => { |
| | | // console.log('Success:', values); |
| | | open.value = false; |
| | | post(isSave.value ? '/api/mat/save' : '/api/mat/update', formData.value).then((resp) => { |
| | | let result = resp.data; |
| | |
| | | <a-form-item :label="formatMessage('db.man_mat.tag_id', '所属归类')" name="tagId" style="width: 250px;" |
| | | :rules="[{ required: true, message: '上级菜单不能为空!' }]"> |
| | | <a-tree-select v-model:value="formData.tagId" show-search style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :placeholder="formatMessage('page.input', '请输入')" |
| | | allow-clea tree-data-simple-mode :tree-data="TagQueryTree" tree-node-filter-prop="name" |
| | | :field-names="{ |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :placeholder="formatMessage('page.input', '请输入')" allow-clea tree-data-simple-mode |
| | | :tree-data="TagQueryTree" tree-node-filter-prop="name" :field-names="{ |
| | | children: 'children', |
| | | label: 'name', |
| | | value: 'id', |