1
lzhe
2025-08-16 4abca82b83bc21b18ec7ad491b343cf1233f4618
1
已修改1个文件
21 ■■■■■ 文件已修改
src/views/wel/shemi.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/wel/shemi.vue
@@ -46,7 +46,7 @@
        <!-- <el-button :size="size" text v-if="row.nodeType == 70" icon="el-icon-position" type="primary" @click="downsend(row)" placeholder="下发" title="下发"></el-button> -->
        <!-- 替换 -->
        <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,1,')>-1" icon="el-icon-switch" type="primary" @click="replacement(row)" placeholder="替换" title="替换"></el-button>
        <!-- <el-icon><Switch /></el-icon> -->
        <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,2')>-1" icon="el-icon-lock" type="primary" @click="locked(row)" placeholder="锁定" title="锁定"></el-button>
      </template>
    </avue-crud>
    <!-- 新增节点 -->
@@ -629,6 +629,25 @@
    
  },
  methods: {
    locked(row) {
      this.$confirm('是否锁定吗?', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      }).then(() => {
        axios({
          url: '/blade-mdm/program/node/lock',
          method: 'post',
          params: {id: row.id}
        }).then(res => {
          if(res.data.code == 200) {
            this.$message({type: 'success',message: '操作成功!'});
          }else {
            this.$message({type: 'success',message: res.data.msg});
          }
        });
      });
    },
    handleSubmit(form, done) {
      //发起程序替换流程
      var obj = {