wangting
2024-10-28 a67acbd55451349df089e4d9aa3cb748e225b05b
Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue
@@ -139,7 +139,7 @@
      append-to-body="true"
      class="avue-dialog"
      title="操作分类"
      width="60%"
      width="500px"
    >
      <avue-crud
        ref="methodsCrud"
@@ -148,11 +148,10 @@
        :table-loading="methodsLoading"
        @row-click="rowMethodsClickHandler"
        @selection-change="selectMethodsChange">
      </avue-crud>
      <span slot="footer" class="dialog-footer">
         <el-button @click="methodsVisble = false">取 消</el-button>
         <el-button type="primary" @click="methodsSaveClickHandler">保 存</el-button>
         <el-button @click="methodsVisble = false">取 消</el-button>
        </span>
    </el-dialog>
    <!--导入    -->
@@ -193,6 +192,7 @@
        addBtn: false,
        menu: false,
        height: 500,
        header:false,
        column: [
          {
            label: '操作分类',
@@ -411,10 +411,10 @@
    // 增加操作类型
    addMethodsClickHandler() {
      this.methodsLoading = true;
      getSysModelTreeMenuByPID({parentId: 'sysOptionNode'}).then(res => {
      getSysModelTreeMenuByPID({parentId: 'operateNode'}).then(res => {
        if (res.data.code === 200 && res.data.data.length>0) {
          this.methodsVisble = true;
          const data = res.data.data[0].children;
          const data = res.data.data;
          this.methodsData = data;
          this.methodsLoading = false;
        }else {
@@ -441,7 +441,7 @@
          this.methodsVisble = false;
          this.$message.success(res.data.msg);
          this.form.childType = null;
          this.refresh = Math.random(); // 刷新左侧树
          this.handleRefreshTree('add')
        }
      })
    },