|
@@ -10,22 +10,10 @@
|
|
|
text-color="#666"
|
|
|
active-text-color="#fff"
|
|
|
router>
|
|
|
- <el-menu-item v-for="item in auth_data" :key="item.systemappid" :index="item.path" >
|
|
|
- <span slot="title" @click="clickNow(item)">{{item.meta.title}}</span>
|
|
|
+ <el-menu-item v-for="item in auth_data" :key="item.systemappid" :index="item.path" @click="clickNow(item)">
|
|
|
+ <span slot="title" >{{item.meta.title}}</span>
|
|
|
</el-menu-item>
|
|
|
</el-menu>
|
|
|
-<!-- <el-dialog
|
|
|
- title="提示"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
-
|
|
|
- width="70%"
|
|
|
- >
|
|
|
- <span>这是一段信息</span>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>-->
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
@@ -58,7 +46,8 @@ export default {
|
|
|
} else {
|
|
|
if (this.auth_data[0].isneedpay){
|
|
|
this.activePath = this.$route.path
|
|
|
- this.$router.push({path:'/mask',meta:{title: '无权限333'},query:{show:true}})
|
|
|
+ this.$router.push({path:'/mask',meta:{title: '无权限333'}})
|
|
|
+ this.open()
|
|
|
}else {
|
|
|
this.activePath = this.$route.path
|
|
|
}
|
|
@@ -66,6 +55,55 @@ export default {
|
|
|
},
|
|
|
clickNow(val){
|
|
|
this.isneedpay = val.isneedpay
|
|
|
+ this.activePath = this.$route.path
|
|
|
+ if (val.isneedpay){
|
|
|
+ this.$router.push({path:'/mask',meta:{title: '无权限333'} })
|
|
|
+ this.open()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ open() {
|
|
|
+ this.$confirm('当前模块未付费,是否付费使用?', '付费提醒', {
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ closeOnClickModal:false,
|
|
|
+ confirmButtonText: '付费',
|
|
|
+ cancelButtonText: '提醒付费'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let module = JSON.parse(sessionStorage.getItem('module_info'))
|
|
|
+ let moduleList = []
|
|
|
+ module.forEach(item=>{
|
|
|
+ if (item.systemname === '通用'){
|
|
|
+ moduleList = item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let apps = []
|
|
|
+ moduleList.modules.forEach(item=>{
|
|
|
+ if (item.systemmodulename === '个人中心'){
|
|
|
+ apps = item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ sessionStorage.setItem('active_modules',JSON.stringify(apps))
|
|
|
+ this.activePath = '/pay_orders'
|
|
|
+ this.$router.replace({path:'/pay_orders',query:{isPay:'1'}})
|
|
|
+ sessionStorage.setItem('currentPath','/pay_orders')
|
|
|
+ let active_modules = JSON.parse(sessionStorage.getItem('active_modules'))
|
|
|
+ this.auth_data = active_modules.apps
|
|
|
+ })
|
|
|
+ .catch(async action => {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "classname": "system.payorder.payorder",
|
|
|
+ "method": "sendMessage",
|
|
|
+ "content": {
|
|
|
+ "sys_payorderid": 0
|
|
|
+ },
|
|
|
+ })
|
|
|
+ if (res.code === 1){
|
|
|
+ this.$message({
|
|
|
+ message: '已提醒负责人付费',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -73,14 +111,14 @@ export default {
|
|
|
this.getAuthList()
|
|
|
},
|
|
|
watch:{
|
|
|
- $route(to,from){
|
|
|
+ $route(to,from) {
|
|
|
if (!to.meta.keeproute) {
|
|
|
- if (this.isneedpay){
|
|
|
- this.activePath = this.$route.path
|
|
|
- this.$router.push({path:'/mask',meta:{title: '无权限333'},query:{show:true}})
|
|
|
+ if (this.isneedpay) {
|
|
|
+ this.activePath = '/pay_orders'
|
|
|
}else {
|
|
|
this.activePath = this.$route.path
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|