| | |
| | | <div class="search-item"> |
| | | <span>输入查询:</span> |
| | | <el-input |
| | | |
| | | style="flex: 1;margin-left: 15px" |
| | | style="flex: 1; margin-left: 15px" |
| | | :placeholder=" |
| | | isStorePage() ? '店铺(门店)名称' : '请输入店铺编号' |
| | | " |
| | |
| | | </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" |
| | |
| | | <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> |
| | |
| | | dialogType: "", |
| | | isShowDialog: false, |
| | | storeInfo: null, |
| | | all: false, |
| | | unsame: false, |
| | | myIdx: null, |
| | | storeInfoScoreView: {}, |
| | | role: { |
| | | messageType: "", |
| | |
| | | getStoreInfoList({ keyword: this.storeCode, status }) |
| | | .then(({ list, pageSize, totalPage }) => { |
| | | this.tableData = list; |
| | | console.log(list); |
| | | this.pageSize = pageSize; |
| | | this.totalNum = totalPage; |
| | | }) |
| | |
| | | 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, |
| | | ]); |
| | | } |
| | | }, |
| | | |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | 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"; |
| | |
| | | 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, |
| | | ]); |
| | | } |
| | | }, |
| | | |
| | | // 创建商铺类型树 |
| | |
| | | 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() { |
| | |
| | | <template> |
| | | <div class="userList"> |
| | | <header> |
| | | <!-- <div class="headerTitle">运营管理 >> 案卷查询</div>--> |
| | | <!-- <div class="headerTitle">运营管理 >> 案卷查询</div>--> |
| | | <div class="headerContent"> |
| | | <div class="contentItem"> |
| | | <div style="width: 80px">按编号:</div> |
| | |
| | | <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> |
| | |
| | | <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', |
| | |
| | | :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"> |
| | |
| | | <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> |
| | |
| | | categoryOptions: CATEGOTY, |
| | | communityOptions: [], |
| | | communityProps: { |
| | | label: 'regionName', |
| | | value: 'id' |
| | | label: "regionName", |
| | | value: "id", |
| | | }, |
| | | myproblem: 1, |
| | | number: "", |
| | |
| | | |
| | | // 获取社区和街道 |
| | | 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)); |
| | | }, |
| | | |
| | | // 设置表格斑马纹 |
| | |
| | | }, |
| | | |
| | | 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) { |