Browse Source

修改权限

lex-xin 4 years ago
parent
commit
b4cd46149b
2 changed files with 6 additions and 6 deletions
  1. 4 4
      src/views/chargeManager/three.vue
  2. 2 2
      vue.config.js

+ 4 - 4
src/views/chargeManager/three.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="m-container">
     <div class="m-core">
-      <div @click="chargeOperation('create')" v-permission="'paymentConfig/add'" class="newBand">添加</div>
+      <div @click="chargeOperation('create')" v-permission="'paymentConfig/addTypeRoute'" class="newBand">添加</div>
       <!-- 列表 -->
       <div class="tableWrap">
         <el-table :data="tableList" :header-cell-style="{background:'#EDEEF0',color:'#444'}">
@@ -20,12 +20,12 @@
             <template slot-scope="scope">
               <el-button
                 @click="chargeOperation('update', scope.row)"
-                v-permission="'paymentConfig/update'"
+                v-permission="'paymentConfig/updateTypeRoute'"
                 type="text"
               >修改</el-button>
               <el-button
                 @click="chargeDel(scope.row)"
-                v-permission="'paymentConfig/del'"
+                v-permission="'paymentConfig/delTypeRoute'"
                 type="text"
               >删除</el-button>
             </template>
@@ -265,7 +265,7 @@ export default {
         this.$nextTick(() => {
           this.form = {
             id: data.id,
-            typeRouteScale: data.typeRouteScale ? data.typeRouteScale : []
+            typeRouteScale: data.typeRouteScale ? JSON.parse(JSON.stringify(data.typeRouteScale)) : []
           }
         })
       }

+ 2 - 2
vue.config.js

@@ -18,10 +18,10 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // //  https://online.dayaedu.com
 // let target = 'https://online.dayaedu.com' //线上
 // let target = 'http://dyme.utools.club' //test环境
-let target = 'http://192.168.3.139:8000' // 箭河
+// let target = 'http://192.168.3.139:8000' // 箭河
 // let target = 'http://192.168.3.248:8000' //邹璇
 // let target = 'http://192.168.3.8:8000' //勇哥
-// let target = 'http://dev.dayaedu.com' // 测试服
+let target = 'http://dev.dayaedu.com' // 测试服
 // let target = 'http://192.168.3.196' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {