Commit 56c87b74 authored by 黄奎's avatar 黄奎

页面修改

parent 8d3ac721
......@@ -17,7 +17,7 @@
<div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name">
row-key="name" :visible-columns="visibleColumns">
<template v-slot:top="props">
<div class="col-2 q-table__title">就业信息</div>
<q-space />
......@@ -271,6 +271,12 @@
field: 'Id'
}
],
//表格可见列
visibleColumns: [
'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission",
"PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id','SupplierName',
], //可见列
PageCount: 0,
isShowStudy: false, //是否显示留学弹窗
studyObj: {}, //留学对象
......@@ -290,6 +296,18 @@
return action && action.FunctionCode;
}
return false;
},
//是否有查看供应商权限
isHaveViewSupplierAction(state) {
if (state.user.userInfo.ActionMenuList) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier") {
return x;
}
});
return action && action.FunctionCode;
}
return false;
}
}),
mounted() {
......@@ -297,6 +315,10 @@
},
created() {
this.getSaleStateList();
if(!this.isHaveViewSupplierAction)
{
this.visibleColumns.splice(this.visibleColumns.length-1,1);
}
},
methods: {
//获取销售状态列表
......
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