From 5749770d6d8fc6f98e68868f98e00eeb87b633d2 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Tue, 05 Sep 2023 17:36:09 +0800
Subject: [PATCH] 后台管理代码
---
src/views/qyp-project-order/index.vue | 11 ++---
src/views/qyp-project-order/history.vue | 8 ++--
src/views/qyp-project-management/promotion.vue | 16 ++++----
src/views/qyp-project-order/admin.vue | 38 +++++++------------
src/views/account-management/account-list.vue | 6 +-
src/api/order.js | 2 +
src/views/qyp-project-management/index.vue | 19 ++++-----
src/views/qyp-project-order/draw.vue | 2
8 files changed, 46 insertions(+), 56 deletions(-)
diff --git a/src/api/order.js b/src/api/order.js
index 9f29ab6..b9bc853 100644
--- a/src/api/order.js
+++ b/src/api/order.js
@@ -12,6 +12,7 @@
export function orderBaseExport(params) {
return request({
url: '/qyp/order/orderBaseExport',
+ responseType: "arraybuffer",
method: 'get',
params
})
@@ -21,6 +22,7 @@
return request({
url: '/qyp/order/orderExport',
method: 'get',
+ responseType: "arraybuffer",
params
})
}
diff --git a/src/views/account-management/account-list.vue b/src/views/account-management/account-list.vue
index e5cced7..1218f59 100644
--- a/src/views/account-management/account-list.vue
+++ b/src/views/account-management/account-list.vue
@@ -2,7 +2,7 @@
* @Author: 小明丶
* @Date: 2020-05-11 17:38:01
* @LastEditors: zhaoxiaoqiang 287285524@qq.com
- * @LastEditTime: 2023-09-05 15:48:52
+ * @LastEditTime: 2023-09-05 17:01:35
* @Description: 账户管理
-->
<template>
@@ -318,7 +318,7 @@
/**更新用户状态**/
updateContract(params) {
let {userId,status} = params.row;
- let data = { userId,status:status==1?0:1};
+ let data = { userId,status};
userManageDisabled(data).then(res => {
if(res) {
this.$notify({
@@ -326,7 +326,7 @@
message: '状态更新成功',
type: 'success'
})
- //this.qureys()
+ this.qureys()
}
}).catch(err => {})
},
diff --git a/src/views/qyp-project-management/index.vue b/src/views/qyp-project-management/index.vue
index 4fc164a..d9398b0 100644
--- a/src/views/qyp-project-management/index.vue
+++ b/src/views/qyp-project-management/index.vue
@@ -49,9 +49,8 @@
</el-select>
</el-form-item>
</div>
- <el-form-item style="text-align: right;">
- <!-- v-if='filterBtnById("150102")' -->
- <el-button type="primary" style="margin-left: 10px;margin-bottom: 8px;" @click="onSearch">查 询</el-button>
+ <el-form-item style="text-align: right;" >
+ <el-button type="primary" v-if='filterBtnById("420101")' style="margin-left: 10px;margin-bottom: 8px;" @click="onSearch">查 询</el-button>
</el-form-item>
</el-form>
</div>
@@ -67,7 +66,7 @@
@getDataList="getDataList"
:exportUrl="{
url: '/qyp/project/export',
- powerId: '',
+ powerId: '420104',
name: '项目列表',
}"
></Etable>
@@ -220,9 +219,9 @@
type:'text'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(420102)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
@@ -243,9 +242,9 @@
},
style: {
"margin-left": "15px",
- // display: this.filterBtnById(150104)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(420103)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
diff --git a/src/views/qyp-project-management/promotion.vue b/src/views/qyp-project-management/promotion.vue
index 5994076..fca0c3e 100644
--- a/src/views/qyp-project-management/promotion.vue
+++ b/src/views/qyp-project-management/promotion.vue
@@ -86,7 +86,7 @@
</div>
<div class="table_box">
<div style="margin-left: 10px;text-align: right;">
- <el-button type="primary" size="small" @click="addPromotion">新增推广位</el-button>
+ <el-button type="primary" size="small" v-if='filterBtnById("420201")' @click="addPromotion">新增推广位</el-button>
</div>
<Etable
hasIndex
@@ -96,7 +96,7 @@
@getDataList="getDataList"
:exportUrl="{
url: '/qyp/promote/export',
- powerId: '150103',
+ powerId: '420204',
name: '项目列表',
}"
></Etable>
@@ -219,9 +219,9 @@
size:'small'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(420203)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
@@ -242,9 +242,9 @@
size:'small'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(420202)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
diff --git a/src/views/qyp-project-order/admin.vue b/src/views/qyp-project-order/admin.vue
index 5fcea8f..7151975 100644
--- a/src/views/qyp-project-order/admin.vue
+++ b/src/views/qyp-project-order/admin.vue
@@ -100,7 +100,7 @@
</div>
<div class="table_box">
<div style="margin-left: 10px;text-align: right;">
- <el-button type="primary" size="small" @click="addProduct">导出excel</el-button>
+ <el-button type="primary" size="small" @click="addProduct" v-if='filterBtnById("430201")' >导出excel</el-button>
</div>
<Etable
hasIndex
@@ -113,7 +113,7 @@
@handleSelectionChange="handleSelectionChange"
:exportUrl="{
url: '/qyp/order/orderExport',
- powerId: '',
+ powerId: '430206',
name: '订单列表',
}"
></Etable>
@@ -224,9 +224,9 @@
type:'text'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(430202)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
@@ -245,18 +245,14 @@
type:'text'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(430203)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
-
this.isWhith = 1;
this.productShow = true;
- // this.title = '订单详情';
- // let {orderId} = scope.row;
- // this.getProductDetail(orderId);
},
},
},
@@ -269,17 +265,14 @@
type:'text'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(430204)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
this.isWhith = 2;
this.productShow = true;
- // this.title = '订单详情';
- // let {orderId} = scope.row;
- // this.getProductDetail(orderId);
},
},
},
@@ -292,17 +285,14 @@
type:'text'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(430205)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
this.isWhith = 3;
this.productShow = true;
- // this.title = '订单详情';
- // let {orderId} = scope.row;
- // this.getProductDetail(orderId);
},
},
},
diff --git a/src/views/qyp-project-order/draw.vue b/src/views/qyp-project-order/draw.vue
index 05e4283..d5c1c3d 100644
--- a/src/views/qyp-project-order/draw.vue
+++ b/src/views/qyp-project-order/draw.vue
@@ -52,7 +52,7 @@
:columns="columns"
:exportUrl="{
url: '/qyp/order/useExport',
- powerId: '',
+ powerId:'430208',
name: '权益领取',
}"
>
diff --git a/src/views/qyp-project-order/history.vue b/src/views/qyp-project-order/history.vue
index c8a0d42..9033426 100644
--- a/src/views/qyp-project-order/history.vue
+++ b/src/views/qyp-project-order/history.vue
@@ -3,7 +3,7 @@
* @Author: zhaoxiaoqiang 287285524@qq.com
* @Date: 2023-08-24 15:16:23
* @LastEditors: zhaoxiaoqiang 287285524@qq.com
- * @LastEditTime: 2023-09-01 11:19:29
+ * @LastEditTime: 2023-09-05 17:14:35
* @FilePath: \qyp_plat\src\views\qyp-project-order\history.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -180,9 +180,9 @@
disabled:!scope.row.canRefund&&!scope.row.tcjCanRefund
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(430207)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
diff --git a/src/views/qyp-project-order/index.vue b/src/views/qyp-project-order/index.vue
index ca6068c..faa828b 100644
--- a/src/views/qyp-project-order/index.vue
+++ b/src/views/qyp-project-order/index.vue
@@ -77,14 +77,13 @@
</el-form-item>
</div>
<el-form-item style="text-align: right;">
- <!-- v-if='filterBtnById("150102")' -->
<el-button type="primary" style="margin-left: 10px;margin-bottom: 8px;" @click="onSearch">查 询</el-button>
</el-form-item>
</el-form>
</div>
<div class="table_box">
<div style="margin-left: 10px;text-align: right;">
- <el-button type="primary" size="small" @click="addProduct">导出excel</el-button>
+ <el-button type="primary" size="small" @click="addProduct" v-if='filterBtnById("430101")' >导出excel</el-button>
</div>
<Etable
hasIndex
@@ -97,7 +96,7 @@
@handleSelectionChange="handleSelectionChange"
:exportUrl="{
url: '/qyp/order/orderExport',
- powerId: '',
+ powerId: '430102',
name: '订单列表',
}"
></Etable>
@@ -183,9 +182,9 @@
type:'text'
},
style: {
- // display: this.filterBtnById(150101)
- // ? "inline-block"
- // : "none",
+ display: this.filterBtnById(430103)
+ ? "inline-block"
+ : "none",
},
on: {
click: () => {
--
Gitblit v1.8.0