From 58aebf343084d71f0db27287c645c14400f8cb6d Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期二, 20 十二月 2022 17:44:04 +0800 Subject: [PATCH] fix:密码校验 --- src/views/operate/viewEvent/index.vue | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue index 628f749..26b6e09 100644 --- a/src/views/operate/viewEvent/index.vue +++ b/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"> @@ -89,7 +88,7 @@ <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8"> <template v-if="scope.row.eventSource" slot-scope="scope"> <span>{{ - scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛涓婁紶" + scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛宸℃煡" }}</span> </template> </el-table-column> @@ -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; -- Gitblit v1.8.0