From 100ef1c097be26870f4f92fabf70f5b9b7e0f265 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 25 十月 2023 18:19:35 +0800
Subject: [PATCH] 整合代码

---
 Source/UBCS-WEB/src/views/integration/applicationForm.vue |  161 +++++++++++++++++++++++++++++------------------------
 1 files changed, 88 insertions(+), 73 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/integration/applicationForm.vue b/Source/UBCS-WEB/src/views/integration/applicationForm.vue
index 4aa0f2e..4c11990 100644
--- a/Source/UBCS-WEB/src/views/integration/applicationForm.vue
+++ b/Source/UBCS-WEB/src/views/integration/applicationForm.vue
@@ -1,11 +1,11 @@
 <template>
     <basic-container>
-        <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page"
+        <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" :permission="permissionList"
             ref="crud" @refresh-change="getDataList" @search-change="handleSearch" @search-reset="handleReset"
             @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList"
             @selection-change="selectionChange" @row-click="handleRowClick">
             <template slot="menuLeft">
-                <el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus">闆嗗洟鐢宠鐘舵��
+                <el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus" v-if="permissionList.status">闆嗗洟鐢宠鐘舵��
                 </el-button>
             </template>
         </avue-crud>
@@ -15,6 +15,7 @@
 <script>
 import { getList, queryApplyStat } from '@/api/integration/application.js'
 import { dateFormat } from '@/util/date.js'
+import {mapGetters} from 'vuex'
 export default {
     data() {
         return {
@@ -27,79 +28,93 @@
             },
             searchParam: {},
             stateParam: {},
-            option: {
-                height: "auto",
-                tip:false,
-                index: true,
-                border: true,
-                addBtn: false,
-                columnBtn: false,
-                searchMenuSpan: 8,
-                highlightCurrentRow: true,
-                menu: false,
-                selection: true,
-                column: [
-                    {
-                        label: '鐢宠鍗曞彿',
-                        prop: 'id',
-                        width: 300,
-                        fixed: true,
-                        search: true,
-                    }, {
-                        label: '闆嗗洟鐮�',
-                        width: 200,
-                        prop: 'groupCode',
-                        search: true,
-                    }, {
-                        label: '鎿嶄綔绫诲瀷',
-                        width: 200,
-                        prop: 'operationType',
-                        type: 'select',
-                        search: true,
-                        dicData: [{
-                            label: '鐢宠',
-                            value: 1
-                        }, {
-                            label: '鏇存敼',
-                            value: 2
-                        }]
-                    }, {
-                        label: '鐢宠鍗曟暟鎹俊鎭�',
-                        width: 300,
-                        prop: 'description'
-                    },
-                    {
-                        label: '鍒涘缓鏃堕棿',
-                        width: 200,
-                        prop: 'createTime',
-                        type: 'datetime',
-                        search: true,
-                    },
-                    {
-                        label: '鏇存敼鏃堕棿',
-                        width: 200,
-                        prop: 'lastModifyTime',
-                        type: 'datetime',
-                        search: true,
-                    }, {
-                        label: '杩斿洖鏍囪瘑',
-                        width: 100,
-                        prop: 'code'
-                    },
-                    {
-                        label: '杩斿洖淇℃伅',
-                        width: 300,
-                        prop: 'content'
-                    },
-                    {
-                        label: '娑堟伅淇℃伅',
-                        width: 300,
-                        prop: 'msg'
-                    }
-                ]
-            }
         }
     },
+    computed:{
+      ...mapGetters(["permission"]),
+      permissionList(){
+        return{
+          searchBtn:this.vaildData(this.permission.applicationForm.applicationForm_search,false),
+          emptyBtn:this.vaildData(this.permission.applicationForm.applicationForm_search,false),
+          status:this.vaildData(this.permission.applicationForm.applicationForm_status,false)
+        }
+      },
+      option(){
+        return{
+            height: "auto",
+            tip:false,
+            index: true,
+            border: true,
+            addBtn: false,
+            columnBtn: false,
+            searchBtn:this.permissionList.searchBtn,
+            emptyBtn:this.permissionList.emptyBtn,
+            searchMenuSpan: 8,
+            highlightCurrentRow: true,
+            menu: false,
+            selection: true,
+            column: [
+              {
+                label: '鐢宠鍗曞彿',
+                prop: 'id',
+                width: 300,
+                fixed: true,
+                search: true,
+              }, {
+                label: '闆嗗洟鐮�',
+                width: 200,
+                prop: 'groupCode',
+                search: true,
+              }, {
+                label: '鎿嶄綔绫诲瀷',
+                width: 200,
+                prop: 'operationType',
+                type: 'select',
+                search: true,
+                dicData: [{
+                  label: '鐢宠',
+                  value: 1
+                }, {
+                  label: '鏇存敼',
+                  value: 2
+                }]
+              }, {
+                label: '鐢宠鍗曟暟鎹俊鎭�',
+                width: 300,
+                prop: 'description'
+              },
+              {
+                label: '鍒涘缓鏃堕棿',
+                width: 200,
+                prop: 'createTime',
+                type: 'datetime',
+                search: true,
+              },
+              {
+                label: '鏇存敼鏃堕棿',
+                width: 200,
+                prop: 'lastModifyTime',
+                type: 'datetime',
+                search: true,
+              }, {
+                label: '杩斿洖鏍囪瘑',
+                width: 100,
+                prop: 'code'
+              },
+              {
+                label: '杩斿洖淇℃伅',
+                width: 300,
+                prop: 'content'
+              },
+              {
+                label: '娑堟伅淇℃伅',
+                width: 300,
+                prop: 'msg'
+              }
+            ]
+        }
+      }
+    },
     methods: {
         async handleStatus() {
             const { oids } = this.stateParam

--
Gitblit v1.9.3