| | |
| | | <div style="width: 90%"> |
| | | <el-form-item label="项目名称:"> |
| | | <el-select |
| | | v-model="formInline.status" |
| | | v-model="formInline.projId" |
| | | style="width:200px" |
| | | clearable |
| | | placeholder="请选择" |
| | |
| | | </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 |
| | |
| | | @getDataList="getDataList" |
| | | :exportUrl="{ |
| | | url: '/qyp/promote/export', |
| | | powerId: '150103', |
| | | powerId: '420204', |
| | | name: '项目列表', |
| | | }" |
| | | ></Etable> |
| | |
| | | size:'small' |
| | | }, |
| | | style: { |
| | | // display: this.filterBtnById(150101) |
| | | // ? "inline-block" |
| | | // : "none", |
| | | display: this.filterBtnById(420203) |
| | | ? "inline-block" |
| | | : "none", |
| | | }, |
| | | on: { |
| | | click: () => { |
| | |
| | | size:'small' |
| | | }, |
| | | style: { |
| | | // display: this.filterBtnById(150101) |
| | | // ? "inline-block" |
| | | // : "none", |
| | | display: this.filterBtnById(420202) |
| | | ? "inline-block" |
| | | : "none", |
| | | }, |
| | | on: { |
| | | click: () => { |
| | |
| | | status:[{ required: true, message: "请选择上架状态", trigger: "change" }] |
| | | }, |
| | | formInline: { |
| | | projId:"all", |
| | | status:"all", |
| | | }, |
| | | searchData: {}, |
| | |
| | | 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]; |
| | | } |
| | | } |