From 88becf7028224b017beeb3e989d9e9c1436b0992 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 16 九月 2025 10:43:52 +0800
Subject: [PATCH] 偏离单信息增强提示
---
src/views/flow/components/TodolistRightTop.vue | 13 ++++++++++---
src/views/wel/shemi.vue | 21 ++++++++++++++++++---
2 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/src/views/flow/components/TodolistRightTop.vue b/src/views/flow/components/TodolistRightTop.vue
index 2830f27..2b170e1 100644
--- a/src/views/flow/components/TodolistRightTop.vue
+++ b/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>
\ No newline at end of file
+ }
+}
+</style>
diff --git a/src/views/wel/shemi.vue b/src/views/wel/shemi.vue
index 35002e5..6210a4d 100644
--- a/src/views/wel/shemi.vue
+++ b/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="瑙i攣" title="瑙i攣"></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;
--
Gitblit v1.9.3