|
@@ -15,9 +15,15 @@
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<!-- v-if="userInfo().roleName !== '财务'" -->
|
|
<!-- v-if="userInfo().roleName !== '财务'" -->
|
|
- <span class="add-acount-policy-btn"><a-button @click="handleDownloadProfit">下载利润表</a-button></span>
|
|
|
|
- <span class="add-acount-policy-btn"><a-button @click="handleDownloadSettlement">下载结算单</a-button></span>
|
|
|
|
- <span class="add-acount-policy-btn"><a-button type="primary" @click="handleUploadAccount">上传截图</a-button></span>
|
|
|
|
|
|
+ <span v-if="profitBtnStatus" class="add-acount-policy-btn">
|
|
|
|
+ <a-button @click="handleDownloadProfit">下载利润表</a-button>
|
|
|
|
+ </span>
|
|
|
|
+ <span v-if="settlementBtnStatus" class="add-acount-policy-btn">
|
|
|
|
+ <a-button @click="handleDownloadSettlement">下载结算单</a-button>
|
|
|
|
+ </span>
|
|
|
|
+ <span v-if="accountBtnStatus" class="add-acount-policy-btn">
|
|
|
|
+ <a-button type="primary" @click="handleUploadAccount">上传截图</a-button>
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="control-con-header">
|
|
<div class="control-con-header">
|
|
@@ -336,6 +342,9 @@ export default {
|
|
return {
|
|
return {
|
|
userOperateList: ['快手运营总监', '运营助理', '运营专员', '头条运营经理', '外部运营经理', '快手运营', '商务运营', '运营总经理', '直播运营', '头条运营总监', '快手运营助理', '快手运营经理', '头条运营', '头条运营助理'],
|
|
userOperateList: ['快手运营总监', '运营助理', '运营专员', '头条运营经理', '外部运营经理', '快手运营', '商务运营', '运营总经理', '直播运营', '头条运营总监', '快手运营助理', '快手运营经理', '头条运营', '头条运营助理'],
|
|
userSaleList: ['外部销售', '销售总监', '销售', '销售助理', '销售支持经理', '销售AM'],
|
|
userSaleList: ['外部销售', '销售总监', '销售', '销售助理', '销售支持经理', '销售AM'],
|
|
|
|
+ profitBtnStatus: false,
|
|
|
|
+ settlementBtnStatus: false,
|
|
|
|
+ accountBtnStatus: false,
|
|
downLoadAccountNum: 0,
|
|
downLoadAccountNum: 0,
|
|
downLoadImgNum: 0,
|
|
downLoadImgNum: 0,
|
|
mode2: ['month', 'month'],
|
|
mode2: ['month', 'month'],
|
|
@@ -451,6 +460,22 @@ export default {
|
|
this.searchForm = this.$form.createForm(this);
|
|
this.searchForm = this.$form.createForm(this);
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ const userRoleName = this.userInfo().roleName;
|
|
|
|
+ if (userRoleName === '财务') {
|
|
|
|
+ this.profitBtnStatus = true;
|
|
|
|
+ this.settlementBtnStatus = true;
|
|
|
|
+ }
|
|
|
|
+ else if (this.userOperateList.includes(userRoleName)) {
|
|
|
|
+ this.accountBtnStatus = true;
|
|
|
|
+ }
|
|
|
|
+ else if (this.userSaleList.includes(userRoleName)) {
|
|
|
|
+ this.settlementBtnStatus = true;
|
|
|
|
+ }
|
|
|
|
+ else if (userRoleName === '管理员') {
|
|
|
|
+ this.profitBtnStatus = true;
|
|
|
|
+ this.settlementBtnStatus = true;
|
|
|
|
+ this.accountBtnStatus = true;
|
|
|
|
+ }
|
|
this.handleInitTable();
|
|
this.handleInitTable();
|
|
this.handleGetAllSaleList();
|
|
this.handleGetAllSaleList();
|
|
this.handleGetAllAdverList();
|
|
this.handleGetAllAdverList();
|