Selaa lähdekoodia

修改权限管理

lex-xin 5 vuotta sitten
vanhempi
commit
42e0d9942d

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/index.html


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/css/app.208795c3.css


+ 1 - 0
dist/static/css/chunk-3ae6ee74.e2e52d5c.css

@@ -0,0 +1 @@
+.el-button--primary[data-v-7bff8c40],.el-button--primary[data-v-7bff8c40]:active,.el-button--primary[data-v-7bff8c40]:focus,.el-button--primary[data-v-7bff8c40]:hover{background:#14928a;border-color:#14928a;color:#fff}.el-row[data-v-7bff8c40]{margin-top:40px}.el-col[data-v-7bff8c40]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-right:50%}.el-input-group[data-v-7bff8c40]{width:200px;margin:0 20px}[data-v-7bff8c40] .el-tree-node__content{height:40px!important}.moreRule[data-v-7bff8c40]{background:#f0f0f0;position:relative}.moreRule .el-form-item__error[data-v-7bff8c40]{color:#f56c6c;font-size:12px;line-height:1;position:absolute;left:120px;top:100%;margin-top:-21px}.add[data-v-7bff8c40]{margin-bottom:22px;background:#f0f0f0;padding-bottom:22px}.moreRuleIn .el-form-item[data-v-7bff8c40]{display:inline-block}.moreRuleIn .el-form-item[data-v-7bff8c40]:first-child .el-form-item__content{margin-left:120px!important}.moreRuleIn .el-form-item[data-v-7bff8c40] .el-form-item__content{margin-left:0!important}.max[data-v-7bff8c40],.min[data-v-7bff8c40]{display:inline-block;width:180px;text-align:center;margin-right:10px}

+ 1 - 0
dist/static/css/chunk-4ea75eda.bccd24f3.css

@@ -0,0 +1 @@
+.el-button--primary[data-v-3d572e2a],.el-button--primary[data-v-3d572e2a]:active,.el-button--primary[data-v-3d572e2a]:focus,.el-button--primary[data-v-3d572e2a]:hover{background:#14928a;border-color:#14928a;color:#fff}.el-row[data-v-3d572e2a]{margin-top:40px}.el-col[data-v-3d572e2a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-right:50%}.el-input-group[data-v-3d572e2a]{width:200px;margin:0 20px}[data-v-3d572e2a] .el-tree-node__content{height:40px!important}[data-v-3d572e2a] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-3d572e2a]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-3d572e2a]{font-size:28px;color:#8c939d;width:120px;height:120px;line-height:120px;text-align:center}.avatar[data-v-3d572e2a]{width:120px;height:120px;display:block}

+ 0 - 1
dist/static/css/chunk-5ab5a3f4.1309e11b.css

@@ -1 +0,0 @@
-.el-button--primary[data-v-bef884a0],.el-button--primary[data-v-bef884a0]:active,.el-button--primary[data-v-bef884a0]:focus,.el-button--primary[data-v-bef884a0]:hover{background:#14928a;border-color:#14928a;color:#fff}.el-row[data-v-bef884a0]{margin-top:40px}.el-col[data-v-bef884a0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-right:50%}.el-input-group[data-v-bef884a0]{width:200px;margin:0 20px}[data-v-bef884a0] .el-tree-node__content{height:40px!important}[data-v-bef884a0] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-bef884a0]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-bef884a0]{font-size:28px;color:#8c939d;width:120px;height:120px;line-height:120px;text-align:center}.avatar[data-v-bef884a0]{width:120px;height:120px;display:block}

+ 1 - 1
dist/static/css/chunk-7a1b3ebc.5a0b0199.css → dist/static/css/chunk-6168c896.0781446e.css

@@ -1 +1 @@
-.m-core[data-v-2c5c6151]{margin-top:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}.m-core .el-input[data-v-2c5c6151]{width:180px}.m-core h4[data-v-2c5c6151]{font-size:16px;background-color:#ccc;color:#fff;text-align:center;width:100%;height:40px;line-height:40px;margin-bottom:20px}.m-core .center[data-v-2c5c6151],.m-core .right[data-v-2c5c6151],.m-core .vipLeft[data-v-2c5c6151]{width:400px}.planList[data-v-2c5c6151]{padding:0 25px}.planList .planTop[data-v-2c5c6151]{height:40px;line-height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #ccc;margin-top:20px}.planList .planTop>p[data-v-2c5c6151]{font-size:14px}.planList .planCore .row[data-v-2c5c6151]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:40px;line-height:40px;font-size:14px}.okBtn[data-v-2c5c6151]{width:120px;height:40px;line-height:40px;text-align:center;color:#fff;border-radius:4px;margin-right:20px;cursor:pointer;background-color:#f97215;float:right}
+.m-core[data-v-75610906]{margin-top:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}.m-core .el-input[data-v-75610906]{width:180px}.m-core h4[data-v-75610906]{font-size:16px;background-color:#ccc;color:#fff;text-align:center;width:100%;height:40px;line-height:40px;margin-bottom:20px}.m-core .center[data-v-75610906],.m-core .right[data-v-75610906],.m-core .vipLeft[data-v-75610906]{width:400px}.planList[data-v-75610906]{padding:0 25px}.planList .planTop[data-v-75610906]{height:40px;line-height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #ccc;margin-top:20px}.planList .planTop>p[data-v-75610906]{font-size:14px}.planList .planCore .row[data-v-75610906]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:40px;line-height:40px;font-size:14px}.okBtn[data-v-75610906]{width:120px;height:40px;line-height:40px;text-align:center;color:#fff;border-radius:4px;margin-right:20px;cursor:pointer;background-color:#f97215;float:right}

+ 0 - 1
dist/static/css/chunk-da74c238.3f2597cc.css

@@ -1 +0,0 @@
-.el-button--primary[data-v-1948c35e],.el-button--primary[data-v-1948c35e]:active,.el-button--primary[data-v-1948c35e]:focus,.el-button--primary[data-v-1948c35e]:hover{background:#14928a;border-color:#14928a;color:#fff}.el-row[data-v-1948c35e]{margin-top:40px}.el-col[data-v-1948c35e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-right:50%}.el-input-group[data-v-1948c35e]{width:200px;margin:0 20px}[data-v-1948c35e] .el-tree-node__content{height:40px!important}.moreRule[data-v-1948c35e]{background:#f0f0f0;position:relative}.moreRule .el-form-item__error[data-v-1948c35e]{color:#f56c6c;font-size:12px;line-height:1;position:absolute;left:120px;top:100%;margin-top:-21px}.add[data-v-1948c35e]{margin-bottom:22px;background:#f0f0f0;padding-bottom:22px}.moreRuleIn .el-form-item[data-v-1948c35e]{display:inline-block}.moreRuleIn .el-form-item[data-v-1948c35e]:first-child .el-form-item__content{margin-left:120px!important}.moreRuleIn .el-form-item[data-v-1948c35e] .el-form-item__content{margin-left:0!important}.max[data-v-1948c35e],.min[data-v-1948c35e]{display:inline-block;width:180px;text-align:center;margin-right:10px}

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/app.29415c78.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-05d2050a.3245e634.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-10467d40.cf352e41.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-1b7f2982.beae0635.js


+ 0 - 0
dist/static/js/chunk-21a5b3d9.1611202a.js → dist/static/js/chunk-21a5b3d9.51508276.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-392a4f99.b8ea410c.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-392a4f99.d86d0102.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-3ae6ee74.2653f9ea.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-485913bc.1044ac74.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-485913bc.e3bafd29.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-4ea75eda.4eb57b9d.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-5d8763ff.bc66efeb.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-6168c896.641ec0cf.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-7a1b3ebc.94a12e19.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-7a6e47c8.79c2e103.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-a0648dce.bb938248.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-a873cf36.e6899762.js


+ 0 - 0
dist/static/js/chunk-cadb5664.e23ca95b.js → dist/static/js/chunk-cadb5664.01263fba.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-d7425894.faf21a8f.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-e5308c14.a91a8f27.js


+ 27 - 27
src/views/setSilder/addSilder.vue

@@ -1,9 +1,6 @@
 <template>
   <div class="slider-container">
     <el-button @click='onOperation("create")'>添加按钮</el-button>
-    <!-- <el-button @click='removeSilder'>删除按钮</el-button> -->
-    <!-- <el-button @click='resetSilder'>修改按钮</el-button> -->
-    <!-- <el-button @click="lookSilder" type='error'>查询</el-button> -->
 
     <el-table :data="tableList"
               style="width: 100%;margin-bottom: 20px;"
@@ -13,19 +10,21 @@
       <el-table-column prop="name"
                        label="菜单名称">
       </el-table-column>
-      <el-table-column prop="hid"
-                       label="是否隐藏">
-      </el-table-column>
       <el-table-column prop="id"
                        label="元素ID">
       </el-table-column>
+      <el-table-column prop="type"
+                       label="菜单类型">
+      </el-table-column>
       <el-table-column prop="path"
                        label="文件路径">
       </el-table-column>
       <el-table-column prop="permission"
                        label="权限标识">
       </el-table-column>
-      
+      <el-table-column prop="hid"
+                       label="是否隐藏">
+      </el-table-column>
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button @click="onOperation('update', scope.row)"
@@ -69,8 +68,17 @@
         </el-form-item>
         <el-form-item label="是否隐藏"
                       :label-width="formLabelWidth">
-          <el-input v-model="form.hid"
-                    autocomplete="off"></el-input>
+          <el-select v-model="form.hid">
+            <el-option label="否" :value="0"></el-option>
+            <el-option label="是" :value="1"></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="菜单类型"
+                      :label-width="formLabelWidth">
+          <el-select v-model="form.type">
+            <el-option label="菜单" :value="0"></el-option>
+            <el-option label="按钮" :value="1"></el-option>
+          </el-select>
         </el-form-item>
         <el-form-item label="排序"
                       :label-width="formLabelWidth">
@@ -103,7 +111,8 @@ export default {
         parentId: null,
         sort: 1,
         component: null,
-        hid: 0
+        hid: 0,
+        type: 0
       }
     }
   },
@@ -136,7 +145,8 @@ export default {
           sort: row.sort,
           component: row.component,
           id: row.id,
-          hid: row.hid
+          hid: row.hid,
+          type: row.type
         }
       }
     },
@@ -150,7 +160,8 @@ export default {
           permission: form.permission,
           sort: form.sort,
           parentId: form.parentId,
-          hid: form.hid
+          hid: form.hid,
+          type: form.type
         }).then(res => {
           if (res.code == 200) {
             this.$message({
@@ -195,7 +206,8 @@ export default {
           parentId: res.parentId,
           component: res.component,
           sort: res.sort,
-          hid: res.hid
+          hid: res.hid,
+          type: res.type
         }
         if (res.sysMenus && res.sysMenus.length > 0) {
           tempList.children = this.setTableData(res.sysMenus)
@@ -224,22 +236,10 @@ export default {
         parentId: null,
         sort: 1,
         component: null,
+        hid: 0,
+        type: 0
       }
       this.$refs[formName].resetFields()
-    },
-    // 修改菜单栏
-    resetSilder () {
-      resetSilder({
-        // path: 'insideSetting',
-        // component: 'insideSetting',
-        // name: '分部内部设置',
-        // permission: '/insideSetting',
-        // sort: '1',
-        // parentId: '21',
-        // id: '24'
-      }).then(res => {
-        console.log(res)
-      })
     }
 
   },

+ 2 - 2
src/views/studentManager/index.vue

@@ -61,8 +61,8 @@ export default {
   name: 'studentDetail',
   data () {
     return {
-      activeIndex: '6',
-      acitveStatus: [false, false, false, false, false, true, false]
+      activeIndex: '1',
+      acitveStatus: [true, false, false, false, false, false, false]
     }
   },
   methods: {

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä