zhanghua
2023-02-21 20df92a5019c38c053a1f0e9176c8fe212ce5054
店铺管理bug
3个文件已修改
211 ■■■■■ 已修改文件
src/views/operate/fivepack/threepack/components/content.vue 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/fivepack/threepack/components/updateUser/index.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/viewEvent/index.vue 85 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/fivepack/threepack/components/content.vue
@@ -6,8 +6,7 @@
          <div class="search-item">
            <span>输入查询:</span>
            <el-input
              style="flex: 1;margin-left: 15px"
              style="flex: 1; margin-left: 15px"
              :placeholder="
                isStorePage() ? '店铺(门店)名称' : '请输入店铺编号'
              "
@@ -16,7 +15,11 @@
          </div>
          <div class="search-item">
            <span>店铺状态:</span>
            <el-select v-model="storeStatus" style="margin-left: 15px" placeholder="选择店铺状态">
            <el-select
              v-model="storeStatus"
              style="margin-left: 15px"
              placeholder="选择店铺状态"
            >
              <el-option
                v-for="item in options"
                :key="item.value"
@@ -260,40 +263,51 @@
            <el-checkbox v-model="all" @change="selectAll()">全选</el-checkbox>
          </div>
          <div class="funsItem">
            <el-checkbox v-model="unsame" @change="disSame(tableData)">反选</el-checkbox>
            <el-checkbox v-model="unsame" @change="disSame(tableData)"
              >反选</el-checkbox
            >
          </div>
          <div class="funsItem">
            <el-select v-model="myIdx" placeholder="批量操作" @change="selectChange">
              <el-option v-for="item in options" :key="item.value" :label="item.label"
                         :value="item.value" :disabled="item.disabled">
            <el-select
              v-model="myIdx"
              placeholder="批量操作"
              @change="selectChange"
            >
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
                :disabled="item.disabled"
              >
              </el-option>
            </el-select>
          </div>
        </div>
        <div class="pagination">
          <el-pagination
              background
              :current-page="currentPage"
              layout="prev, pager, next"
              :total="totalNum"
              :page-size="pageSize"
              @current-change="changeCurrentPage"
            background
            :current-page="currentPage"
            layout="prev, pager, next"
            :total="totalNum"
            :page-size="pageSize"
            @current-change="changeCurrentPage"
          >
          </el-pagination>
        </div>
      </div>
      <!-- 分页 -->
<!--      <div class="pagination">-->
<!--        <el-pagination-->
<!--          background-->
<!--          :current-page="currentPage"-->
<!--          layout="prev, pager, next"-->
<!--          :total="totalNum"-->
<!--          :page-size="pageSize"-->
<!--          @current-change="changeCurrentPage"-->
<!--        >-->
<!--        </el-pagination>-->
<!--      </div>-->
      <!--      <div class="pagination">-->
      <!--        <el-pagination-->
      <!--          background-->
      <!--          :current-page="currentPage"-->
      <!--          layout="prev, pager, next"-->
      <!--          :total="totalNum"-->
      <!--          :page-size="pageSize"-->
      <!--          @current-change="changeCurrentPage"-->
      <!--        >-->
      <!--        </el-pagination>-->
      <!--      </div>-->
    </main>
  </div>
</template>
@@ -343,6 +357,9 @@
      dialogType: "",
      isShowDialog: false,
      storeInfo: null,
      all: false,
      unsame: false,
      myIdx: null,
      storeInfoScoreView: {},
      role: {
        messageType: "",
@@ -495,7 +512,6 @@
      getStoreInfoList({ keyword: this.storeCode, status })
        .then(({ list, pageSize, totalPage }) => {
          this.tableData = list;
          console.log(list);
          this.pageSize = pageSize;
          this.totalNum = totalPage;
        })
src/views/operate/fivepack/threepack/components/updateUser/index.vue
@@ -206,15 +206,22 @@
    const result = await getVideoPoint({ current: 1, size: 1000 });
    this.relationVideoList = result.records;
    if (this.storeInfo) {
      this.$set(this, "store", this.storeInfo);
      if (this.storeInfo && this.isStorePage) {
        this.store.relationVideo = this.store.videoPoint.name;
      }
    }
    if (!this.isView()) {
      await this.getShopTypeList();
    }
    if (this.storeInfo) {
      this.$set(this, "store", this.storeInfo);
      if (this.storeInfo && this.isStorePage && this.store.videoPoint) {
        this.store.relationVideo = this.store.videoPoint.name;
      }
      const selectedStoreType = this.getSelectedStoreType(this.shopTypeList);
      this.$set(this.store, "type", [
        selectedStoreType.parentId,
        selectedStoreType.id,
      ]);
    }
  },
@@ -243,20 +250,6 @@
        }
      });
    },
    async created() {
      if (this.storeInfo) {
        this.$set(this, 'store', this.storeInfo);
        const result = await getVideoPoint({ current: 1, size: 100 });
        this.relationVideoList = result.records;
        if (this.storeInfo && this.isStorePage) {
          this.store.relationVideo = this.store.videoPoint.name;
        }
        if (!this.isView()) {
          await this.getShopTypeList();
        }
      }
    },
    isView() {
      return this.dialogType === "view";
@@ -270,16 +263,6 @@
    async getShopTypeList() {
      let arr = await getCodeList("16");
      this.shopTypeList = this.createShopTypeTree(arr);
      if (this.dialogType === "update") {
        const selectedStoreType = arr.find(
          (item) => item.name === this.store.typeName
        );
        this.$set(this.store, "type", [
          selectedStoreType.parentId,
          selectedStoreType.id,
        ]);
      }
    },
    // 创建商铺类型树
@@ -303,6 +286,21 @@
        return treeRoot;
      }
    },
    getSelectedStoreType(shopTypeList) {
      let selectedItem = null;
      shopTypeList.forEach((item) => {
        if (item.name === this.store.typeName) {
          selectedItem = item;
        } else if (item.children) {
          let selected = this.getSelectedStoreType(item.children);
          if (selected) {
            selectedItem = selected;
          }
        }
      });
      return selectedItem;
    },
  },
  beforeDestroy() {
src/views/operate/viewEvent/index.vue
@@ -1,7 +1,7 @@
<template>
  <div class="userList">
    <header>
<!--      <div class="headerTitle">运营管理 >> 案卷查询</div>-->
      <!--      <div class="headerTitle">运营管理 >> 案卷查询</div>-->
      <div class="headerContent">
        <div class="contentItem">
          <div style="width: 80px">按编号:</div>
@@ -15,15 +15,30 @@
        <div class="contentItem">
          <div style="width: 80px">按类型:</div>
          <div class="search">
            <el-select clearable v-model="searchData.categories" placeholder=" 请选择类型">
              <el-option v-for="option in categoryOptions" :key="option.id" :label="option.label" :value="option.value"></el-option>
            <el-select
              clearable
              v-model="searchData.categories"
              placeholder=" 请选择类型"
            >
              <el-option
                v-for="option in categoryOptions"
                :key="option.id"
                :label="option.label"
                :value="option.value"
              ></el-option>
            </el-select>
          </div>
        </div>
        <div class="contentItem">
          <div style="width: 80px">按社区:</div>
          <div class="search">
            <el-cascader clearable v-model="searchData.community" :props="communityProps" :options="communityOptions" placeholder="请选择社区">
            <el-cascader
              clearable
              v-model="searchData.community"
              :props="communityProps"
              :options="communityOptions"
              placeholder="请选择社区"
            >
            </el-cascader>
          </div>
        </div>
@@ -63,11 +78,11 @@
      <div class="mainContent">
        <!-- 数据展示 -->
        <el-table
            border
            stripe
          border
          stripe
          ref="multipleTable"
          :header-cell-style="{
          'background':'#F5F5F5',
            background: '#F5F5F5',
            background: '#fff',
            'font-weight': '650',
            'line-height': '45px',
@@ -75,12 +90,14 @@
          :data="tableData"
          style="width: 100%"
          :row-class-name="tableRowClassName"
            @selection-change="tableChange"
          @selection-change="tableChange"
        >
          <el-table-column type="selection" min-width="5"> </el-table-column>
          <el-table-column prop="code" label="事件编号" min-width="18">
            <template slot-scope="scope">
              <el-link @click="handleView(scope.row)">{{ scope.row.code }}</el-link>
              <el-link @click="handleView(scope.row)">{{
                scope.row.code
              }}</el-link>
            </template>
          </el-table-column>
          <el-table-column prop="category" label="问题类别" min-width="8">
@@ -163,26 +180,26 @@
          <div class="funs">
            <div class="funsItem">
              <el-checkbox v-model="all" @change="selectAll()"
              >全选</el-checkbox
                >全选</el-checkbox
              >
            </div>
            <div class="funsItem">
              <el-checkbox v-model="unsame" @change="disSame(tableData)"
              >反选</el-checkbox
                >反选</el-checkbox
              >
            </div>
            <div class="funsItem">
              <el-select
                  v-model="myIdx"
                  placeholder="批量操作"
                  @change="selectChange"
                v-model="myIdx"
                placeholder="批量操作"
                @change="selectChange"
              >
                <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                    :disabled="item.disabled"
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                  :disabled="item.disabled"
                >
                </el-option>
              </el-select>
@@ -261,8 +278,8 @@
      categoryOptions: CATEGOTY,
      communityOptions: [],
      communityProps: {
        label: 'regionName',
        value: 'id'
        label: "regionName",
        value: "id",
      },
      myproblem: 1,
      number: "",
@@ -339,11 +356,12 @@
    // 获取社区和街道
    getCommunityOptions() {
      department.getDepartmentList()
          .then(res => {
            this.communityOptions = res;
          })
          .catch(err => this.$message.error(err))
      department
        .getDepartmentList()
        .then((res) => {
          this.communityOptions = res;
        })
        .catch((err) => this.$message.error(err));
    },
    // 设置表格斑马纹
@@ -361,11 +379,16 @@
    },
    datepickChange() {
      this.searchData.startTime = this.datepick[0];
      this.searchData.endTime = this.datepick[1].replace(
        "00:00:00",
        "23:59:59"
      );
      if (this.datepick) {
        this.searchData.startTime = this.datepick[0];
        this.searchData.endTime = this.datepick[1].replace(
          "00:00:00",
          "23:59:59"
        );
      } else {
        this.searchData.startTime = null;
        this.searchData.endTime = null;
      }
    },
    handleClose(done) {