yrik 4 年之前
父節點
當前提交
6d6c8349f0

+ 2 - 2
ruoyi-ui/src/settings.js

@@ -1,8 +1,8 @@
 module.exports = {
 module.exports = {
   title: 'OA管理系统',
   title: 'OA管理系统',
-  // urls: `http://118.178.139.79:7090`,
+  urls: `http://118.31.23.65:7090`,
   // urls: `http://192.168.101.11:8090`,
   // urls: `http://192.168.101.11:8090`,
-   urls: `http://192.168.101.110:8090`,
+   // urls: `http://192.168.101.110:8090`,
 
 
   /**
   /**
    * 侧边栏主题 深色主题theme-dark,浅色主题theme-light
    * 侧边栏主题 深色主题theme-dark,浅色主题theme-light

+ 80 - 39
ruoyi-ui/src/views/system/election/index.vue

@@ -42,7 +42,8 @@
               />
               />
             </div>
             </div>
           </el-tab-pane>
           </el-tab-pane>
-          <el-tab-pane label="按角色" name="second" style="height: 400px;">
+           <!-- v-hasPermi="['sys_dept:M'] == true ? jue = 0 :jue = 1" -->
+          <el-tab-pane v-if="['sys_dept:M'] == true ? jue = 0 :jue = 1"      label="按角色" name="second" style="height: 400px;">
             <treeselect v-model="form.parentId" :options="deptOptionstwo" :normalizer="normalizer" :flat="true" :maxHeight="150" @select="djieskle" placeholder="点击选择角色" />
             <treeselect v-model="form.parentId" :options="deptOptionstwo" :normalizer="normalizer" :flat="true" :maxHeight="150" @select="djieskle" placeholder="点击选择角色" />
           </el-tab-pane>
           </el-tab-pane>
           <el-tab-pane label="按组" name="third" style="height: 400px;">
           <el-tab-pane label="按组" name="third" style="height: 400px;">
@@ -121,6 +122,7 @@ import { getTableQuery, getQueryList, tableSubimt, tableSubimtanit, addbjectSave
 
 
 import { group, getRole, getPersonnel, getMembers,delRoleses } from '@/api/system/election';
 import { group, getRole, getPersonnel, getMembers,delRoleses } from '@/api/system/election';
 import { listDept } from '@/api/system/dept';
 import { listDept } from '@/api/system/dept';
+import { getInfo } from '@/api/login';
 import { listRole } from '@/api/system/role';
 import { listRole } from '@/api/system/role';
 import { treeselect } from '@/api/system/dept';
 import { treeselect } from '@/api/system/dept';
 import Treeselect from '@riophae/vue-treeselect';
 import Treeselect from '@riophae/vue-treeselect';
@@ -172,10 +174,20 @@ export default {
       dhiuw:[],
       dhiuw:[],
       // 组id
       // 组id
       elezu:0,
       elezu:0,
-      jeihqdcee:[]
+      jeihqdcee:[],
+      jue:false,
+      buemg:false,
+      zuge:false,
+      iuid:0
     };
     };
   },
   },
+  created() {
+    this.iuid = this.$route.query.id - 0;
+    this.jegeuser()
+    this.members(this.iuid,1)
+  },
   mounted() {
   mounted() {
+    console.log(this.jue)
     this.getTreeselect();
     this.getTreeselect();
     // this.staff(100)
     // this.staff(100)
     // this.getUser();
     // this.getUser();
@@ -274,7 +286,7 @@ export default {
       console.log(node, instanceId);
       console.log(node, instanceId);
     },
     },
     djieskletwo(node, instanceId) {
     djieskletwo(node, instanceId) {
-      this.members(node.id);
+      this.members(node.id,2);
       this.elezu = node.id
       this.elezu = node.id
       console.log(node, instanceId);
       console.log(node, instanceId);
     },
     },
@@ -376,7 +388,7 @@ export default {
      console.log(eledete)
      console.log(eledete)
      // this.elezu
      // this.elezu
      this.loading = true;
      this.loading = true;
-     delRoleses(this.elezu,eledete).then(response => {
+     delRoleses(this.iuid,eledete).then(response => {
        // this.lisehtwo = response.data;
        // this.lisehtwo = response.data;
        // this.dhiuw = response.data
        // this.dhiuw = response.data
        if(response.code == 200){
        if(response.code == 200){
@@ -478,42 +490,71 @@ export default {
       });
       });
     },
     },
     // 按照组查询人员
     // 按照组查询人员
-    members(index) {
-      let hueg = []
-      let jheugq = []
-      hueg = this.lisehtwo
-      this.loading = true;
-      console.log(this.lisehtwo)
-      this.lisehtwo.splice(0,this.dhiuw.length-2)
-      console.log(this.lisehtwo)
-      console.log(this.dhiuw.length-2)
-      this.liseh = []
-      // for (let i = this.dhiuw.length - 1; i >= 0; i--) {
-      //   if (this.dhiuw[i].id == urls) {
-      //     this.config.splice(i, 1);
-      //   }
-      // }
-      // this.jeihqdcee = this.lisehtwo
-      getMembers(index).then(response => {
-        // this.deptOptionsthre = this.handleTree(response.data, "id");       this.liseh = response.data;
-        // response.data
-        // this.lisehtwo.push(response.data)
-        // this.lisehtwo = []
-        this.dhiuw = []
-        this.dhiuw = response.data
-        console.log(this.dhiuw,87)
-        if(this.dhiuw.length == 0){
-          console.log(34,this.dhiuw)
-           this.lisehtwo = this.jeihqdcee
-        }else{
-          // this.dhiuw.filter(route=>{
-            // this.lisehtwo.push(route)
-            this.lisehtwo = this.lisehtwo.concat(this.dhiuw)
-          // })
-        }
+    members(index,val) {
+      if(val == 1){
+        // 最外层
+        let hueg = []
+        let jheugq = []
+        hueg = this.lisehtwo
+        this.loading = true;
+        console.log(this.lisehtwo)
+        this.lisehtwo.splice(0,this.dhiuw.length-2)
+        console.log(this.lisehtwo)
+        console.log(this.dhiuw.length-2)
+        this.liseh = []
+        // for (let i = this.dhiuw.length - 1; i >= 0; i--) {
+        //   if (this.dhiuw[i].id == urls) {
+        //     this.config.splice(i, 1);
+        //   }
+        // }
+        // this.jeihqdcee = this.lisehtwo
+        getMembers(index).then(response => {
+          // this.deptOptionsthre = this.handleTree(response.data, "id");       this.liseh = response.data;
+          // response.data
+          // this.lisehtwo.push(response.data)
+          // this.lisehtwo = []
+          this.dhiuw = []
+          this.dhiuw = response.data
+          console.log(this.dhiuw,87)
+          if(this.dhiuw.length == 0){
+            console.log(34,this.dhiuw)
+             this.lisehtwo = this.jeihqdcee
+          }else{
+            // this.dhiuw.filter(route=>{
+              // this.lisehtwo.push(route)
+              this.lisehtwo = this.lisehtwo.concat(this.dhiuw)
+            // })
+          }
 
 
-        this.loading = false;
-      });
+          this.loading = false;
+        });
+      }else if(val == 2){
+        // 里层点击
+        getMembers(index).then(response => {
+         this.liseh = response.data;
+         this.dhiuw = response.data
+          this.loading = false;
+        });
+      }
+
+    },
+    //获取权限
+    jegeuser(){
+      getInfo().then(res =>{
+        console.log(res.permissions)
+        res.permissions.filter( route =>{
+          if(route == 'system:role:list'){
+            this.jue = true
+          }
+          if(route == 'system:user:list'){
+            this.buemg = true
+          }
+          if(route == 'system:group:index'){
+            this.zuge = true
+          }
+        })
+        // this.jue
+      })
     }
     }
   }
   }
 };
 };

+ 7 - 4
ruoyi-ui/src/views/system/issue/index.vue

@@ -8,7 +8,7 @@
         <el-form-item :label="titlet + '字号:'" prop="message_code">
         <el-form-item :label="titlet + '字号:'" prop="message_code">
           <el-input placeholder="请输入内容" v-model="querjtgoe.message_code">
           <el-input placeholder="请输入内容" v-model="querjtgoe.message_code">
               <el-button slot="append" @click="ziao">历史字号</el-button>
               <el-button slot="append" @click="ziao">历史字号</el-button>
-            </el-input>
+          </el-input>
         </el-form-item>
         </el-form-item>
         </el-col>
         </el-col>
         <el-col :span="12" style="border: 1px solid red; border-bottom: 0; border-left: 0; padding: 15px 0 15px 10px;">
         <el-col :span="12" style="border: 1px solid red; border-bottom: 0; border-left: 0; padding: 15px 0 15px 10px;">
@@ -356,7 +356,8 @@ export default {
 
 
       },
       },
       taegshouw:false,
       taegshouw:false,
-      jeuiygqa:''
+      jeuiygqa:'',
+      soufa:false
 
 
 
 
     };
     };
@@ -376,9 +377,11 @@ export default {
     this.jeuiygqa = this.$route.query.tabname
     this.jeuiygqa = this.$route.query.tabname
     if(this.$route.query.tabname == 'shouwen'){
     if(this.$route.query.tabname == 'shouwen'){
       this.titlet = '收文'
       this.titlet = '收文'
-    }else if(this.$route.query.tabname == 1){
+      this.soufa = true
+      // if(this.$route.query.tabname == 1)
+    }else {
       this.titlet = '发文'
       this.titlet = '发文'
-
+       this.soufa = false
     }
     }
     if(this.objeuisd !== -1){
     if(this.objeuisd !== -1){
       this.frowtse.businessType = this.$route.query.id - 0;
       this.frowtse.businessType = this.$route.query.id - 0;

+ 3 - 2
ruoyi-ui/src/views/system/surface/index.vue

@@ -205,7 +205,7 @@
         if (this.tabnaem == 'shouwen'  ) {
         if (this.tabnaem == 'shouwen'  ) {
           console.log(34)
           console.log(34)
           this.$router.push({
           this.$router.push({
-            path: '/business/collection',
+            path: '/business/issue',
             query: {
             query: {
               id,
               id,
               tables,
               tables,
@@ -411,7 +411,8 @@
             console.log(buy)
             console.log(buy)
             this.queryData.buttonList = buy
             this.queryData.buttonList = buy
             if(this.tabnaem == 'shouwen'){
             if(this.tabnaem == 'shouwen'){
-              this.queryData.buttonList = buy + 'Q'
+              // this.queryData.buttonList = buy + 'Q'
+              this.queryData.buttonList = buy 
             }
             }
           }else{
           }else{
             this.queryData.buttonList = 'Q'
             this.queryData.buttonList = 'Q'