zhanghua
2022-11-25 cccf898581b27258a9110930cd52f40cac36cf25
src/views/operate/fivepack/threepack/components/content.vue
@@ -18,7 +18,7 @@
              <el-button icon="el-icon-delete-solid" @click="handleReset">重置</el-button>
            </div>
          </div>
          <el-button v-if="isStorePage()" type="primary" icon="el-icon-plus" @click="handleView(null, 'add')">添加</el-button>
          <el-button v-if="isStorePage()" type="primary" icon="el-icon-plus" @click="handleView(null, 'create')">添加</el-button>
        </div>
      </header>
      <main>
@@ -38,7 +38,10 @@
          </el-table-column>
          <el-table-column prop="storeAddress" label="店铺详细地址" min-width="10">
          </el-table-column>
          <el-table-column prop="relationVideo" label="关联摄像机" min-width="10">
          <el-table-column prop="videoPoint" label="关联摄像机" min-width="10">
            <template v-if="scope.row.videoId" slot-scope="scope">
              <span>{{ scope.row.videoPoint.name }}</span>
            </template>
          </el-table-column>
          <el-table-column prop="operation" label="操作" min-width="20">
            <template slot-scope="scope">
@@ -58,8 +61,9 @@
        </el-table>
        <!-- 查看修改页面 -->
        <el-dialog :visible.sync="dialogUpdate" width="45%"
                   :title="dialogType ? '修改店铺信息' : '查看店铺信息'" :before-close="handleClose">
          <updateUser :dialogType="dialogType" :storeInfo="storeInfo" :isStorePage="isStorePage()" @closeDialog="closeDialog" />
                   :destroy-on-close="true"
                   :title="dialogType === 'view' ? '查看店铺信息' : '修改店铺信息'" :before-close="handleClose">
          <updateUser v-if="dialogUpdate" :dialogType="dialogType" :storeInfo="storeInfo" :isStorePage="isStorePage()" @closeDialog="closeDialog" />
        </el-dialog>
        <!-- 分页 -->
        <div class="pagination">
@@ -87,7 +91,7 @@
    return {
      storeCode: null,
      storeStatus: null,
      options: [{ label: '经营', value: 1 }, { label: '倒闭', value: 2 }],
      options: [{ label: '全部', value: 0 }, { label: '经营', value: 1 }, { label: '倒闭', value: 2 }],
      tableData: [],
      dialogUpdate: false,
      currentPage: 1,
@@ -125,7 +129,7 @@
    handleDelete(id) {
      deleteStoreInfo(id)
          .then(() => {
            this.$message({ type: 'success', message });
            this.$message({ type: 'success', message: '操作成功' });
            this.search();
          })
          .catch(err => this.$message({ type: 'error', message: err }));