|
|
@ -39,7 +39,7 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="排序:" name="sortCode">
|
|
|
|
<a-form-item label="排序:" name="sortCode">
|
|
|
|
<a-input-number style="width: 100%" v-model:value="formData.sortCode" :max="100" />
|
|
|
|
<a-input-number style="width: 100%" v-model:value="formData.sortCode" :max="1000" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
<template #footer>
|
|
|
|
<template #footer>
|
|
|
@ -66,12 +66,15 @@
|
|
|
|
const defaultExpandedKeys = ref([0])
|
|
|
|
const defaultExpandedKeys = ref([0])
|
|
|
|
|
|
|
|
|
|
|
|
// 打开抽屉
|
|
|
|
// 打开抽屉
|
|
|
|
const onOpen = (record, type) => {
|
|
|
|
const onOpen = (record, type, parentId) => {
|
|
|
|
visible = true
|
|
|
|
visible = true
|
|
|
|
formData.value = {
|
|
|
|
formData.value = {
|
|
|
|
sortCode: 99,
|
|
|
|
sortCode: 99,
|
|
|
|
category: type
|
|
|
|
category: type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (parentId) {
|
|
|
|
|
|
|
|
formData.value.parentId = parentId
|
|
|
|
|
|
|
|
}
|
|
|
|
if (record) {
|
|
|
|
if (record) {
|
|
|
|
formData.value = Object.assign({}, record)
|
|
|
|
formData.value = Object.assign({}, record)
|
|
|
|
formData.value.category = type
|
|
|
|
formData.value.category = type
|
|
|
|