yuxc
2025-01-15 2bea732496b4f5051233ed94e206160992351596
Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue
@@ -135,6 +135,10 @@
            <el-form-item label="别名:" class="is-required">
              <el-input v-model="form.alias" placeholder="请输入别名"></el-input>
            </el-form-item>
            <el-form-item label="图标:">
              <input-icon v-model="form.source" placeholder="请选择图标">
              </input-icon>
            </el-form-item>
            <el-form-item label="编号:" class="is-required">
              <el-input-number v-model="form.sort" :disabled="form.category === 1" :max="63" :min="1"></el-input-number>
            </el-form-item>
@@ -241,6 +245,7 @@
        menu: false,
        addBtn: false,
        defaultExpandAll: false,
        defaultExpandedKeys:['system'],
        props: {
          label: 'label',
          value: 'id',
@@ -289,7 +294,6 @@
  methods: {
    // 树行点击
    nodeClick(row, node) {
      console.log(row.childType);
      this.form = {...row};
      this.nodeRow = {...row};
      this.currentClickNode = node;
@@ -497,6 +501,7 @@
      const params = {
        id: this.form.id,
        isValid: this.form.isValid,
        source:this.form.source,
        alias: this.form.alias
      }
      updateAlias(params).then(res => {
@@ -547,7 +552,9 @@
          let node = this.currentClickNode.parent;
          node.loaded = false;
          node.expand();
          this.$refs.tree.setCurrentNode(this.currentClickNode);
          this.$nextTick(()=>{
            this.$refs.tree.setCurrentKey(this.currentClickNode.data.id);
          });
        } else {
          this.refresh = Math.random(); // 刷新左侧树
        }