zhanghua
2022-11-28 09b64d357fbf98222b6144eed75402b524c03aa1
bug修改
3个文件已修改
57 ■■■■ 已修改文件
src/views/operate/fivepack/threepack/components/content.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/fivepack/threepack/components/score/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/fivepack/threepack/components/updateUser/index.vue 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/fivepack/threepack/components/content.vue
@@ -143,12 +143,12 @@
      <!-- 查看修改页面 -->
      <el-dialog
        :visible.sync="dialogScore"
        width="45%"
        width="60%"
        :destroy-on-close="true"
        title="查看积分"
        :before-close="handleClose"
        :before-close="handleCloseScoreView"
      >
        <scoreView :storeInfo="storeInfo" @closeDialog="closeDialog" />
        <scoreView v-if="dialogScore" :storeInfo="storeInfoScoreView" />
      </el-dialog>
      <!-- 分页 -->
      <div class="pagination">
@@ -200,6 +200,7 @@
      userInfo: null,
      dialogType: "",
      storeInfo: null,
      storeInfoScoreView: {},
    };
  },
@@ -227,8 +228,8 @@
      this.dialogType = type;
    },
    handleScoreView(row) {
      this.storeInfoScoreView = row;
      this.dialogScore = true;
      this.storeInfo = row;
    },
    handleDelete(id) {
@@ -239,15 +240,15 @@
        })
        .catch((err) => this.$message({ type: "error", message: err }));
    },
    handleCloseScoreView() {
      this.dialogScore = false;
    },
    handleClose() {
      this.dialogUpdate = false;
      this.dialogScore = false;
    },
    closeDialog() {
      this.dialogUpdate = false;
      this.dialogScore = false;
      this.search();
    },
src/views/operate/fivepack/threepack/components/score/index.vue
@@ -44,11 +44,10 @@
export default {
  created() {
    this.search();
    this.loadData();
  },
  props: ["storeInfo"],
  data() {
    return {
      tableData: [],
@@ -59,7 +58,7 @@
  },
  methods: {
    search() {
    loadData() {
      getStoreScore(this.storeInfo.id)
        .then((res) => {
          this.tableData = res.records;
@@ -71,7 +70,7 @@
    changeCurrentPage(currentPage) {
      this.currentPage = currentPage;
      this.search();
      this.loadData();
    },
    tableRowClassName({ row, rowIndex }) {
src/views/operate/fivepack/threepack/components/updateUser/index.vue
@@ -82,6 +82,27 @@
              ></el-option>
            </el-select>
          </el-form-item>
          <!-- 店铺状态 -->
          <el-form-item
            v-if="isStorePage"
            class="optionItem"
            label="店铺状态:"
            prop="status"
          >
            <el-select
              v-model="store.status"
              placeholder="请选择店铺状态"
              :disabled="isView()"
            >
              <el-option
                v-for="item in statusList"
                :key="item.id"
                :value="item.id"
                :label="item.name"
              ></el-option>
            </el-select>
          </el-form-item>
          <el-form-item
            v-if="!isStorePage"
            class="optionItem"
@@ -147,6 +168,7 @@
        relationVideo: "",
        type: null,
        storeScore: null,
        status: null,
      },
      rules: {
        type: [{ required: true, validator: validateStoreType }],
@@ -168,9 +190,16 @@
        relationVideo: [
          { required: true, trigger: "blur", message: "请输入关联摄像机" },
        ],
        status: [
          { required: true, trigger: "blur", message: "请选择店铺状态" },
        ],
      },
      shopTypeList: [],
      relationVideoList: [],
      statusList: [
        { id: 1, name: "经营" },
        { id: 2, name: "倒闭" },
      ],
    };
  },
  async created() {
@@ -183,7 +212,7 @@
        this.store.relationVideo = this.store.videoPoint.name;
      }
    }
    if (!this.isView()) {
      await this.getShopTypeList();
    }
@@ -193,7 +222,7 @@
    onSubmit() {
      this.$refs.store.validate((valid) => {
        if (valid) {
          debugger
          debugger;
          this.store.type = this.store.type[1];
          if (this.isCreated()) {
            addStoreInfo(this.store)
@@ -228,7 +257,7 @@
    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