luobisheng
2022-12-08 600725fd9c21f36c2de2b0483fea49343f0686ea
src/views/operate/viewEvent/index.vue
@@ -23,9 +23,8 @@
        <div class="contentItem">
          <div style="width: 80px">按社区:</div>
          <div class="search">
            <el-select clearable v-model="searchData.communityId" placeholder="请选择社区">
              <el-option v-for="option in communityOptions" :key="option.id" :value="option.id" :label="option.regionName"></el-option>
            </el-select>
            <el-cascader clearable v-model="searchData.community" :props="communityProps" :options="communityOptions" placeholder="请选择社区">
            </el-cascader>
          </div>
        </div>
        <div class="contentItem">
@@ -208,12 +207,16 @@
      currentPage: 1,
      categoryOptions: CATEGOTY,
      communityOptions: [],
      communityProps: {
        label: 'regionName',
        value: 'id'
      },
      myproblem: 1,
      number: "",
      searchData: {
        categories: null,
        number: null,
        communityId: null,
        community: null,
        endTime: null,
        site: null,
        startTime: null,
@@ -227,11 +230,16 @@
  methods: {
    // 获取列表
    getList() {
      const searchData = Object.assign({}, this.searchData);
      if (this.searchData.community) {
        searchData.communityId = searchData.community[1];
      }
      delete searchData.community;
      casequery
        .baseCaseQuery({
          current: this.currentPage,
          pageSize: this.pageSize,
          ...this.searchData,
          ...searchData,
        })
        .then((res) => {
          this.tableData = res.records;