1
李喆(开发组)
2025-07-31 d848889b1326a4a790b68655d3628ed120661da6
src/views/wel/index.vue
@@ -39,7 +39,7 @@
        <el-button :size="size" text v-if="row.nodeType != 70" icon="el-icon-setting" type="primary" placeholder="修改" @click="showEdit(row)" title="修改"></el-button>
        <el-button :size="size" text icon="el-icon-delete" type="primary" @click="showDel(row)" placeholder="删除" title="删除"></el-button>
        <el-button :size="size" text v-if="row.nodeType < 60" icon="el-icon-document-add" type="primary" @click="showAdd(row)" placeholder="新增子级" title="新增子级"></el-button>
        <el-button :size="size" text v-if="row.nodeType == 60" icon="el-icon-upload" type="primary" @click="showUpload(row)" placeholder="文件上传" title="文件上传"></el-button>
        <el-button :size="size" text v-if="row.nodeType == 60 || row.nodeType == 50" icon="el-icon-upload" type="primary" @click="showUpload(row)" placeholder="文件上传" title="文件上传"></el-button>
        <!-- 涉密网才有 -->
        <el-button :size="size" text v-if="row.nodeType == 70 && isSM" icon="el-icon-pie-chart" type="primary" @click="upgrade(row)" placeholder="升版" title="升版"></el-button>
        <!-- 工控网才有 -->
@@ -183,7 +183,7 @@
        menuPosition: "right",
        column: [
          {
            label: '节点类型',
            label: '节点类型1',
            prop: 'nodeType',
            labelWidth: "120",
            type: 'select',
@@ -645,7 +645,7 @@
          this.tabsForm.nodeTypeName = item.dictValue;
        }
      })
      if(this.tabsForm.nodeType < 70) {
      if(this.tabsForm.nodeType != 70) {
        this.tabsOption = this.tabsOption1;
      }else {
        this.tabsOption = this.tabsOption2;
@@ -715,6 +715,8 @@
      })
    },
    showAdd (row) {  //新增子节点
      console.log(this.nodeTypeList,111)
      console.log(this.nodeTypeList[0].dictKey,222)
      if(!row) {
        this.modalTitle = "新增根节点";
        this.modalForm.nodeType = "10";