From 7815d256ec9817bf80f552e9da26b22534144fc0 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 20 十二月 2023 15:15:51 +0800
Subject: [PATCH] modified: src/views/plan/manufacturingorder/index.vue modified: vue.config.js
---
src/views/basic/customizeparamtemplatetype/index.vue | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/views/basic/customizeparamtemplatetype/index.vue b/src/views/basic/customizeparamtemplatetype/index.vue
index 4d374ea..7882777 100644
--- a/src/views/basic/customizeparamtemplatetype/index.vue
+++ b/src/views/basic/customizeparamtemplatetype/index.vue
@@ -8,7 +8,10 @@
:ajaxFun="ajaxFun"
ref="paramTemplateTypeTable"
>
- <template #toolbar></template>
+ <template #toolbar>
+ <el-button type="primary" @click="addOrUpdateHandle"
+ v-if="permissions.basic_templatetyperelation_add">鏂板</el-button>
+ </template>
</ttable>
<!-- 寮圭獥, 鏂板 / 淇敼 -->
<table-form
@@ -24,6 +27,7 @@
import { remote } from '@/api/admin/dict'
import ttable from '@/views/common/ztt-table.vue'
import TableForm from './templatetype-form'
+import { mapGetters } from 'vuex'
export default {
data() {
@@ -87,13 +91,7 @@
searchInfoType: 'datetimerange'
}
],
- toolbar: [
- {
- text: '鏂板',
- type: 'primary',
- fun: this.addOrUpdateHandle
- }
- ],
+ toolbar: [],
operator: [
{
text: '鍒犻櫎',
@@ -113,6 +111,9 @@
dataTypeList: []
}
},
+ computed:{
+ ...mapGetters(['permissions'])
+ },
components: {
ttable,
TableForm
@@ -123,6 +124,10 @@
methods: {
// 鏂板 / 淇敼
addOrUpdateHandle(row) {
+ if(!this.permissions.basic_templatetyperelation_edit && row.id!=null){
+ this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
+ return
+ }
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(row == null ? null : row.id)
@@ -130,6 +135,10 @@
},
// 鍒犻櫎
deleteHandle(row) {
+ if(!this.permissions.basic_templatetyperelation_del){
+ this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�")
+ return
+ }
this.$confirm('鏄惁纭鍒犻櫎绫诲瀷鍚嶇О涓�' + row.templateTypeName, '鎻愮ず', {
confirmButtonText: '纭畾',
cancelButtonText: '鍙栨秷',
--
Gitblit v1.9.3