From bc365ef47ae4e01754aeadbae26170e11c9bb80e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 六月 2026 16:56:12 +0800
Subject: [PATCH] 新疆马铃薯 1.删除按钮添加操作权限
---
src/views/collaborativeApproval/rulesRegulationsManagement/index.vue | 41 +++++++++++++++++++++--------------------
1 files changed, 21 insertions(+), 20 deletions(-)
diff --git a/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue b/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue
index f7ba9d9..a6b8d29 100644
--- a/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue
+++ b/src/views/collaborativeApproval/rulesRegulationsManagement/index.vue
@@ -62,11 +62,11 @@
:rules="regulationRules"
ref="regulationFormRef"
label-width="100px">
- <el-form-item label="鍒跺害缂栧彿"
- prop="regulationNum">
- <el-input v-model="regulationForm.regulationNum"
- placeholder="璇疯緭鍏ュ埗搴︾紪鍙�" />
- </el-form-item>
+<!-- <el-form-item label="鍒跺害缂栧彿"-->
+<!-- prop="regulationNum">-->
+<!-- <el-input v-model="regulationForm.regulationNum"-->
+<!-- placeholder="璇疯緭鍏ュ埗搴︾紪鍙�" />-->
+<!-- </el-form-item>-->
<el-form-item label="鍒跺害鏍囬"
prop="title">
<el-input v-model="regulationForm.title"
@@ -108,20 +108,20 @@
placeholder="閫夋嫨鐢熸晥鏃堕棿"
style="width: 100%" />
</el-form-item>
- <el-form-item label="閫傜敤鑼冨洿"
- prop="scope">
- <el-checkbox-group v-model="regulationForm.scope">
- <el-checkbox label="all">鍏ㄤ綋鍛樺伐</el-checkbox>
- <el-checkbox label="manager">绠$悊灞�</el-checkbox>
- <el-checkbox label="hr">浜轰簨閮ㄩ棬</el-checkbox>
- <el-checkbox label="finance">璐㈠姟閮ㄩ棬</el-checkbox>
- <el-checkbox label="tech">鎶�鏈儴闂�</el-checkbox>
- </el-checkbox-group>
- </el-form-item>
+
<el-form-item label="鏄惁闇�瑕佺‘璁�"
prop="requireConfirm">
<el-switch v-model="regulationForm.requireConfirm" />
<span class="ml-10">寮�鍚悗鍛樺伐闇�瑕侀槄璇荤‘璁�</span>
+ </el-form-item>
+
+ <el-form-item label="闄勪欢涓婁紶">
+ <AttachmentUploadFile
+ v-model:fileList="regulationForm.storageBlobDTOs"
+ :limit="10"
+ :fileSize="50"
+ buttonText="鐐瑰嚮涓婁紶闄勪欢"
+ />
</el-form-item>
</el-form>
<template #footer>
@@ -139,7 +139,7 @@
<div v-if="currentRegulationDetail">
<el-descriptions :column="2"
border>
- <el-descriptions-item label="鍒跺害缂栧彿">{{ currentRegulationDetail.id }}</el-descriptions-item>
+<!-- <el-descriptions-item label="鍒跺害缂栧彿">{{ currentRegulationDetail.id }}</el-descriptions-item>-->
<el-descriptions-item label="鍒跺害鏍囬">{{ currentRegulationDetail.title }}</el-descriptions-item>
<el-descriptions-item label="鍒嗙被">{{ getCategoryText(currentRegulationDetail.category) }}</el-descriptions-item>
<el-descriptions-item label="鐗堟湰">{{ currentRegulationDetail.version }}</el-descriptions-item>
@@ -235,6 +235,7 @@
addRuleFile,
} from "@/api/collaborativeApproval/rulesRegulationsManagementFile.js";
import PIMTable from "@/components/PIMTable/PIMTable.vue";
+ import AttachmentUploadFile from "@/components/AttachmentUpload/file/index.vue";
// 鍝嶅簲寮忔暟鎹�
const operationType = ref("add");
@@ -265,8 +266,8 @@
status: "active",
readCount: 0,
effectiveTime: "",
- scope: [],
requireConfirm: false,
+ storageBlobDTOs: []
});
const readStatus = ref({
@@ -286,7 +287,7 @@
effectiveTime: [
{ required: true, message: "璇烽�夋嫨鐢熸晥鏃堕棿", trigger: "change" },
],
- scope: [{ required: true, message: "璇烽�夋嫨閫傜敤鑼冨洿", trigger: "change" }],
+
};
const regulationSearchForm = reactive({
@@ -298,7 +299,7 @@
// 琛ㄦ牸鍒楅厤缃�
const regulationTableColumn = ref([
- { label: "鍒跺害缂栧彿", prop: "regulationNum"},
+ // { label: "鍒跺害缂栧彿", prop: "regulationNum"},
{ label: "鍒跺害鏍囬", prop: "title" },
{
label: "鍒嗙被",
@@ -442,8 +443,8 @@
status: "active",
readCount: 0,
effectiveTime: "",
- scope: [],
requireConfirm: false,
+ storageBlobDTOs: []
});
};
--
Gitblit v1.9.3