liudong
2024-08-05 ada965001c31dae9abb1a6cbc55becfc9f4b6eaa
src/views/authority/resource/index.vue
@@ -79,7 +79,7 @@
        <a-form-item field="menuType" label="资源类型">
          <a-select v-model="resourceform.menuType" :options="options" :field-names="fieldNames"
                    :style="{width:'320px'}"
                    placeholder="请选择"  />
                    placeholder="请选择" />
        </a-form-item>
        <a-form-item field="perms" label="资源控制权限字符">
          <a-input v-model="resourceform.perms" />
@@ -107,15 +107,15 @@
// 0目录 1菜单 2按钮
let options = ref([
  {
    key: "0",
    key: "3",
    value: "目录"
  },
  {
    key: "1",
    key: "0",
    value: "菜单"
  },
  {
    key: "2",
    key: "1",
    value: "按钮"
  }
]);
@@ -141,6 +141,20 @@
const onIconClick = (nodeData) => {
  resourceform.value.parentId = nodeData.menuId;
  resourceform.value.component = "";
  resourceform.value.createTime = "";
  resourceform.value.description = "";
  resourceform.value.icon = "";
  resourceform.value.menuId = "";
  resourceform.value.menuName = "";
  resourceform.value.menuType = "";
  resourceform.value.orderNum = "0"
  resourceform.value.parentName = nodeData.menuName;
  resourceform.value.path = "";
  resourceform.value.perms = "";
  resourceform.value.status = "";
  resourceform.value.syesourcetype = "";
  visible.value = true;
};