From 83d28119e25b7b396fd2b0f1da1e95ed9728f437 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 08 Sep 2023 14:24:42 +0800
Subject: [PATCH] 更换
---
src/views/qyp-project-management/promotion.vue | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/views/qyp-project-management/promotion.vue b/src/views/qyp-project-management/promotion.vue
index 5994076..17e8270 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>
@@ -107,7 +107,7 @@
<el-form-item label="项目" prop="projId">
<el-select v-model="ruleForm.projId" placeholder="请选择项目">
<el-option
- v-for="item in relustObj.projList"
+ v-for="item in relustObj.activeProjList"
:key="item.code"
:label="item.name"
:value="item.code"
@@ -190,10 +190,10 @@
width: "180",
},
{
- lable: "创建时间",
+ lable: "推广位创建时间",
prop: "creTime",
align: "center",
- width: "180",
+ width: "200",
},
{
lable: "推广位状态",
@@ -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