yangys
2025-08-17 cafa9ae77da5ae18db0336a353a79a639b7cc299
Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdmweb
已修改2个文件
21 ■■■■■ 文件已修改
src/views/flowmgr/programexport.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/wel/shemi.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/flowmgr/programexport.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2025-06-20 20:48:17
 * @LastEditors: 李喆(开发组) lzhe@yxqiche.com
 * @LastEditTime: 2025-08-11 16:34:15
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-08-17 10:17:27
 * @FilePath: /mdmweb/src/views/flowmgr/programexport.vue
-->
<template>
@@ -184,10 +184,12 @@
                    {
                        label: '通过时间',
                        prop: 'createTime',
                        sortable: true,
                    },
                    {
                        label: '已办时间',
                        prop: 'updateTime',
                        sortable: true,
                    },
                    {
                        label: '通过时间',
@@ -199,6 +201,7 @@
                        valueFormat: 'YYYY-MM-DD HH:mm:ss',
                        searchRange: true,
                        searchSpan: 8,
                        sortable: true,
                    },
                ],
            }
src/views/wel/shemi.vue
@@ -46,8 +46,8 @@
        <!-- <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-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>
        <!-- <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,2')>-1" icon="el-icon-unlock" type="primary" @click="locked(row)" placeholder="解锁" title="解锁"></el-button> -->
        <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,2')>-1 && !row.isLocked" icon="el-icon-lock" type="primary" @click="locked(row,true)" placeholder="锁定" title="锁定"></el-button>
        <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,2')>-1 && row.isLocked" icon="el-icon-unlock" type="primary" @click="locked(row,false)" placeholder="解锁" title="解锁"></el-button>
      </template>
    </avue-crud>
    <!-- 新增节点 -->
@@ -630,16 +630,18 @@
    
  },
  methods: {
    locked(row) {
      this.$confirm('是否锁定吗?', {
    locked(row, isLock) {
      row.isLocked == isLock
      this.$confirm(`是否${isLock ? '锁定' : '解锁'}`, {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      }).then(() => {
        axios({
          url: '/blade-mdm/program/node/lock',
          url: isLock ? '/blade-mdm/program/node/lock' : '/blade-mdm/flow/lock/start-unlock',
          method: 'post',
          params: {id: row.id}
          params: {id: row.id,node: row.id}
        }).then(res => {
          if(res.data.code == 200) {
            this.$message({type: 'success',message: '操作成功!'});