zhaoxiaoqiang
2023-09-06 57b7e93baf35afbb9e1c569477052daa01de4699
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];
          }
        }