Commit d11daa27 authored by zhengke's avatar zhengke

修改

parent 56c87b74
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6" v-if="isHaveViewSupplierAction">
<div>供应商:{{saveObj.SupplierName}} <div>供应商:{{saveObj.SupplierName}}
<template v-if="isHaveViewContractAction"> <template v-if="isHaveViewContractAction">
<a v-if="saveObj.SupplierContract&&saveObj.SupplierContract!=''" :href="saveObj.SupplierContract" <a v-if="saveObj.SupplierContract&&saveObj.SupplierContract!=''" :href="saveObj.SupplierContract"
...@@ -470,7 +470,20 @@ ...@@ -470,7 +470,20 @@
return action && action.FunctionCode; return action && action.FunctionCode;
} }
return false; 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() { mounted() {
this.msg.Id = this.Id; this.msg.Id = this.Id;
......
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6" v-if="isHaveViewSupplierAction">
<div>供应商:{{saveObj.SupplierName}} <div>供应商:{{saveObj.SupplierName}}
<template v-if="isHaveViewContractAction"> <template v-if="isHaveViewContractAction">
<a v-if="saveObj.SupplierContract&&saveObj.SupplierContract!=''" :href="saveObj.SupplierContract" <a v-if="saveObj.SupplierContract&&saveObj.SupplierContract!=''" :href="saveObj.SupplierContract"
...@@ -376,6 +376,18 @@ ...@@ -376,6 +376,18 @@
return action && action.FunctionCode; return action && action.FunctionCode;
} }
return false; 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() { mounted() {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns" 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"> <template v-slot:top="props">
<div class="col-2 q-table__title">留学就业审核信息</div> <div class="col-2 q-table__title">留学就业审核信息</div>
<q-space /> <q-space />
...@@ -235,6 +235,13 @@ ...@@ -235,6 +235,13 @@
field: 'Id' field: 'Id'
} }
], ],
//表格可见列
visibleColumns: [
'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission",
"PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id','SupplierName',
], //可见列
PageCount: 0, PageCount: 0,
isShowStudy: false, //是否显示留学弹窗 isShowStudy: false, //是否显示留学弹窗
Id: 0, Id: 0,
...@@ -254,6 +261,18 @@ ...@@ -254,6 +261,18 @@
return action && action.FunctionCode; return action && action.FunctionCode;
} }
return false; 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() { mounted() {
...@@ -270,6 +289,10 @@ ...@@ -270,6 +289,10 @@
} }
}) })
} }
if(!this.isHaveViewSupplierAction)
{
this.visibleColumns.splice(this.visibleColumns.length-1,1);
}
}, },
methods: { 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