feat(advert): 广告管理页面增删改查

This commit is contained in:
有来技术
2021-12-26 12:56:21 +08:00
parent 42decdb662
commit 811a1ee652
5 changed files with 419 additions and 33 deletions

View File

@@ -145,7 +145,7 @@ const {proxy}: any = getCurrentInstance();
const props = defineProps({
menuId: {
type: String,
default: undefined
default: ''
},
menuName: {
type: String,
@@ -158,7 +158,6 @@ watch(() => props.menuId as any, (newVal, oldVal) => {
handleQuery()
})
const state = reactive({
loading: true,
// 选中ID数组
@@ -182,9 +181,9 @@ const state = reactive({
formData: {
id: undefined,
name: undefined,
urlPerm: undefined,
btnPerm: undefined,
menuId: undefined
urlPerm: '',
btnPerm: '',
menuId: ''
},
rules: {
name: [
@@ -332,8 +331,9 @@ function resetForm() {
state.formData = {
id: undefined,
name: undefined,
urlPerm: undefined,
btnPerm: undefined
urlPerm: '',
btnPerm: '',
menuId: ''
}
}