外部投放加导出权限

parent 411e01ab
...@@ -12,8 +12,8 @@ module.exports = { ...@@ -12,8 +12,8 @@ module.exports = {
//本地代理设置 //本地代理设置
proxyTable: { proxyTable: {
'/api': { '/api': {
target: 'http://10.1.23.103', // 接口的域名 // target: 'http://10.1.23.103', // 接口的域名
// target: 'https://wechat-test.changchangenglish.com/', target: 'https://wechat-test.changchangenglish.com/',
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
} }
}, },
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" plain @click="doExport"> <el-button type="primary" plain v-if="$store.state.export" @click="doExport">
导出 导出
</el-button> </el-button>
</el-form-item> </el-form-item>
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
limit: 10, limit: 10,
roleList:[], roleList:[],
exportMenuList:[ exportMenuList:[
'2-3','5-10','5-2','5-1','5-3','5-8','5-9','3-1' '2-3','5-10','5-2','5-1','5-3','5-8','5-9','3-1','7-9'
], ],
dialog:{ dialog:{
title:'新增角色', title:'新增角色',
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
j.readonly= false; j.readonly= false;
j.delete = false; j.delete = false;
if(this.exportMenuList.indexOf(j.cover)>-1)j.export = false; if(this.exportMenuList.indexOf(j.cover)>-1)j.export = false;
if(j.name==='月课订单列表' || j.name==='日课订单列表' || j.name==="来源码管理" || j.cover==="5-9" || j.cover==="2-3" || j.cover==="3-1")j.refund = false; if(j.name==='月课订单列表' || j.name==='日课订单列表' || j.name==="来源码管理" ||j.cover==="5-9" || j.cover==="2-3" || j.cover==="3-1")j.refund = false;
}) })
} }
}); });
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
j.readonly= false; j.readonly= false;
j.delete = false; j.delete = false;
if(this.exportMenuList.indexOf(j.cover)>-1)j.export = false; if(this.exportMenuList.indexOf(j.cover)>-1)j.export = false;
if(j.name==='月课订单列表' || j.name==='日课订单列表' || j.name==="来源码管理"|| j.cover==="5-9" || j.cover==="2-3" )j.refund = false; if(j.name==='月课订单列表' || j.name==='日课订单列表' || j.name==="来源码管理"|| j.cover==="5-9" || j.cover==="2-3" || j.cover==="3-1")j.refund = false;
}) })
} }
}); });
......
...@@ -40,10 +40,11 @@ export default { ...@@ -40,10 +40,11 @@ export default {
methods: { methods: {
initPage() { initPage() {
this.loading = true this.loading = true
let pageJson = { let pageJson = Object.assign({},this.dialogObj.json)
limit:this.dialogObj.json.limit, // let pageJson = {
page:this.dialogObj.json.page // limit:this.dialogObj.json.limit,
} // page:this.dialogObj.json.page
// }
getSourceByDateApi(this.dialogObj.periods_id,this.dialogObj.user_id,pageJson).then(res => { getSourceByDateApi(this.dialogObj.periods_id,this.dialogObj.user_id,pageJson).then(res => {
this.detail = res.list; this.detail = res.list;
this.total = res.total; this.total = res.total;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment