yangys
2025-09-16 88becf7028224b017beeb3e989d9e9c1436b0992
偏离单信息增强提示
已修改2个文件
34 ■■■■ 文件已修改
src/views/flow/components/TodolistRightTop.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/wel/shemi.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/flow/components/TodolistRightTop.vue
@@ -57,8 +57,8 @@
        <el-form-item label="程序包名">
            <el-input v-model="formInline.programPackageName" placeholder="" style="width: 200px"></el-input>
        </el-form-item>
        <el-form-item label="偏离单">
            <el-input v-model="formInline.deviation" placeholder="" style="width: 200px"></el-input>
        <el-form-item label="偏离单" class="pld">
            <el-input v-model="formInline.deviation" placeholder="" style="width: 200px;"></el-input>
        </el-form-item>
        <el-form-item label="当前节点">
            <el-input v-model="formInline.taskName" placeholder="" style="width: 200px"></el-input>
@@ -107,5 +107,12 @@
    }
}
</script>
<style lang="scss" scoped>
.pld{
  .el-input.is-disabled :deep(.el-input__inner) {
    color: rgb(188, 9, 9) !important;
    -webkit-text-fill-color:rgb(233, 23, 23) !important;
<style lang="scss" scoped></style>
  }
}
</style>
src/views/wel/shemi.vue
@@ -44,14 +44,14 @@
        <template #name="{ row }">
          <span>{{ row.name }}</span>
          <el-tag v-if="row.nodeType == 60" size="mini" effect="plain">v{{ row.versionNumber }}</el-tag>
          <el-button icon="el-icon-download" @click="handleDownload(row)" class="treebtn" v-if="row.nodeType == 70" :size="size" text title="下载"></el-button>
          <el-button class="treebtn" :size="size" text v-if="permission.replace_button && row.nodeType == 60 && row.parentIds.indexOf('0,1,') > -1"
            icon="el-icon-switch" type="primary" @click="replacement(row)" placeholder="替换" title="替换"></el-button>
      <!---->
           <el-button icon="el-icon-unlock" class="treebtn" v-if="permission.lock_button && row.nodeType == 60 && row.parentIds.indexOf('0,2') > -1 && row.isLocked != 1"text type="primary" @click="showLockDlg(row)" placeholder="锁定" title="锁定"></el-button>
        
            <el-button icon="el-icon-lock" class="treebtn" :size="size" text
                v-if="permission.lock_button && row.nodeType == 60 && row.parentIds.indexOf('0,2') > -1 && row.isLocked == 1"
                v-if="permission.lock_button && row.nodeType == 60 && (row.parentIds.indexOf('0,2') > -1 || row.parentIds.indexOf('0,3') > -1)&& row.isLocked == 1"
              type="primary" @click="showUnLockDlg(row)" placeholder="解锁" title="解锁"></el-button>
           
        </template>
@@ -103,6 +103,7 @@
        <template #name="{ row }">
          <span>{{ row.name }}</span>
          <el-tag v-if="row.nodeType == 60" size="mini" effect="plain">v{{ row.versionNumber }}</el-tag>
          <el-button icon="el-icon-download" @click="handleDownload(row)" class="treebtn" v-if="row.nodeType == 70" :size="size" text title="下载"></el-button>
          <!-- 替换  v-if="permission.auto_dispatch"-->
          <el-button class="treebtn" :size="size" text v-if="permission.replace_button && row.nodeType == 60 && row.parentIds.indexOf('0,1,') > -1"
            icon="el-icon-switch" type="primary" @click="replacement(row)" placeholder="替换" title="替换"></el-button>
@@ -181,7 +182,9 @@
import { Delete, Edit, Search, Share, Upload ,Lock,Unlock} from '@element-plus/icons-vue'
import debounce from 'lodash/debounce';
import NProgress from 'nprogress';
import { downloadXls } from '@/utils/util';
import { exportBlob } from '@/api/common';
import { ElMessage } from 'element-plus';
import ReplaceLeft from './components/ReplaceLeft.vue';
import ReplaceRightTop from './components/ReplaceRightTop.vue';
@@ -796,6 +799,18 @@
      this.onLoad();
      this.isSearch = !curS
    },
    handleDownload(row){
      NProgress.start();
      exportBlob(
          `/blade-mdm/program/node/download-by-nodeid?nodeId=${row.id}`
      ).then(res => {
          if (res.status !== 200) {
              return this.$message.error(res.msg);
          }
          downloadXls(res.data, `${row.name}`);
          NProgress.done();
      });
    },
    showLockDlg(row){
      //this.lockForm = row;
      this.lockForm.id = row.id;