From e2f0865c2a1167d36208a8c41eb5f18c684c786b Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Thu, 07 Sep 2023 09:50:56 +0800
Subject: [PATCH] 编辑权益项目
---
src/views/qyp-project-management/promotion.vue | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/src/views/qyp-project-management/promotion.vue b/src/views/qyp-project-management/promotion.vue
index 5994076..05a422f 100644
--- a/src/views/qyp-project-management/promotion.vue
+++ b/src/views/qyp-project-management/promotion.vue
@@ -11,7 +11,7 @@
<div style="width: 90%">
<el-form-item label="项目名称:">
<el-select
- v-model="formInline.status"
+ v-model="formInline.projId"
style="width:200px"
clearable
placeholder="请选择"
@@ -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: () => {
@@ -270,6 +270,7 @@
status:[{ required: true, message: "请选择上架状态", trigger: "change" }]
},
formInline: {
+ projId:"all",
status:"all",
},
searchData: {},
@@ -336,15 +337,15 @@
this.formInline.projCreEndTime = null;
}
if (this.promotionCreatedTime && this.promotionCreatedTime.length) {
- this.formInline.promCreEndTime = this.createdTime[0];
- this.formInline.promCreStartTime = this.createdTime[1];
+ this.formInline.promCreEndTime = this.promotionCreatedTime[0];
+ this.formInline.promCreStartTime = this.promotionCreatedTime[1];
} else {
this.formInline.promCreEndTime = null;
this.formInline.promCreStartTime = null;
}
let objForm = JSON.parse(JSON.stringify(this.formInline));
for (let key in objForm) {
- if (objForm[key] === "all") {
+ if (objForm[key] === "all"||objForm[key] === ""||objForm[key] === null) {
delete objForm[key];
}
}
--
Gitblit v1.8.0