From fae5df1d3f1ae875ac546cacfb4744b2e8230ca2 Mon Sep 17 00:00:00 2001
From: yz3456 <2753272399@qq.com>
Date: 星期一, 29 七月 2024 11:07:24 +0800
Subject: [PATCH] 修改了bug

---
 ruoyi-ui/src/views/marry/index.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/ruoyi-ui/src/views/marry/index.vue b/ruoyi-ui/src/views/marry/index.vue
index a37d005..19720b4 100644
--- a/ruoyi-ui/src/views/marry/index.vue
+++ b/ruoyi-ui/src/views/marry/index.vue
@@ -223,7 +223,7 @@
         <el-container >
 
 
-          <el-row :gutter="10" class="mb8">
+          <el-row :gutter="10" class="mb8" v-if="userId != 2">
             <el-col  >
               <el-button
                 plain
@@ -358,7 +358,7 @@
               </template>
             </el-table-column>
             <!-- 鎿嶄綔 -->
-            <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
+            <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2">
               <template slot-scope="scope" v-if="scope.row.roleId !== 1">
                 <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]"
                            @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">淇敼</el-button>
@@ -539,13 +539,14 @@
 import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
 import {listMarry,updateMarry,delMarryOld,addMarryOld,updateMarryOld} from "@/api/marry/index";
 import { blobValidate } from '../../utils/ruoyi'
+import {getInfo} from "@/api/login";
 
 export default {
   name: "show",
   dicts: ['sys_normal_disable'],
   data() {
     return {
-
+userId: undefined,
       showOldSpouse:false,//鏄剧ず鍓嶄换淇℃伅
       // 閬僵灞�
       disabled: false,
@@ -729,9 +730,16 @@
   },
   created() {
     this.getList()
+    this.getInfo()
   },
   methods: {
-
+    getInfo(){
+          console.log('-----------------')
+          getInfo().then(response=>{
+            console.log(response.user.roles[0].roleId,'roleID')
+            this.userId = response.user.roles[0].roleId
+          })
+        },
     handleMarryStatusChange() {
       // 鍒ゆ柇褰撳墠閫変腑鐨勫濮荤姸鎬佹槸鍚︿负鍐嶅
       if (this.mrs === '3') {
@@ -770,7 +778,7 @@
 
 
     getList() {
-      this.loading = false;
+      this.loading = true;
       //涓汉淇℃伅
       listMarry(this.queryParams).then(response => {
 
@@ -838,7 +846,7 @@
           deptCheckStrictly: true,
           remark: undefined
         };
-      this.resetForm("form");
+      this.resetForm("elForm");
     },
 
 

--
Gitblit v1.9.1