| | |
| | | <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> |
| | | </div> |
| | | <div class="btn"> |
| | | <el-button type="primary" @click="getList">搜索</el-button> |
| | | <el-button type="primary" @click="getList">查询</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="headerContent"> |
| | |
| | | <div class="mainContent"> |
| | | <!-- 数据展示 --> |
| | | <el-table |
| | | border |
| | | stripe |
| | | ref="multipleTable" |
| | | :header-cell-style="{ |
| | | background: '#F5F5F5', |
| | | background: '#fff', |
| | | 'font-size': '12px', |
| | | color: '#4b9bb7', |
| | | 'font-weight': '650', |
| | | 'line-height': '45px', |
| | | }" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | :row-class-name="tableRowClassName" |
| | | @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"> |
| | |
| | | <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> |
| | |
| | | </el-dialog> |
| | | <!-- tools --> |
| | | <div class="tools"> |
| | | <div class="funs"> |
| | | <div class="funsItem"> |
| | | <el-checkbox v-model="all" @change="selectAll()" |
| | | >全选</el-checkbox |
| | | > |
| | | </div> |
| | | <div class="funsItem"> |
| | | <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-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="pagination"> |
| | | <el-pagination |
| | | background |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | all: false, |
| | | unsame: false, |
| | | myIdx: 0, |
| | | options: [ |
| | | { |
| | | value: 0, |
| | | label: "批量操作", |
| | | disabled: true, |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "批量启用", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "批量禁用", |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "批量删除", |
| | | }, |
| | | ], |
| | | datepick: null, |
| | | tableData: [], |
| | | dialogExamine: false, |
| | |
| | | categoryOptions: CATEGOTY, |
| | | communityOptions: [], |
| | | communityProps: { |
| | | label: 'regionName', |
| | | value: 'id' |
| | | label: "regionName", |
| | | value: "id", |
| | | }, |
| | | myproblem: 1, |
| | | number: "", |
| | |
| | | this.getCommunityOptions(); |
| | | }, |
| | | methods: { |
| | | // 批量删除 |
| | | mulDelete(idArr) {}, |
| | | // 执行下拉框操作 |
| | | selectChange(val) { |
| | | let ids = []; |
| | | this.tempList.forEach((item) => { |
| | | ids.push(item.number); |
| | | }); |
| | | if (ids.length !== 0) { |
| | | if (val === 3) { |
| | | this.mulDelete(ids); |
| | | } |
| | | } else { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "您还没选中任何数据", |
| | | }); |
| | | } |
| | | }, |
| | | // 监听表格选中状态 |
| | | tableChange(list) { |
| | | this.tempList = list; |
| | | this.all = list.length === this.tableData.length; |
| | | }, |
| | | // 全选 |
| | | selectAll() { |
| | | this.$refs.multipleTable.toggleAllSelection(); |
| | | }, |
| | | // 反选 |
| | | disSame(list) { |
| | | list.forEach((row) => { |
| | | this.$refs.multipleTable.toggleRowSelection(row); |
| | | }); |
| | | }, |
| | | // 获取列表 |
| | | getList() { |
| | | const searchData = Object.assign({}, this.searchData); |
| | |
| | | |
| | | // 获取社区和街道 |
| | | 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) { |
| | |
| | | <style lang="scss" scoped> |
| | | .userList { |
| | | text-align: left; |
| | | margin: 10px 20px; |
| | | color: #4b9bb7; |
| | | |
| | | padding: 10px 20px; |
| | | // color: #4b9bb7; |
| | | border: 1px solid #ccc; |
| | | header { |
| | | display: flex; |
| | | line-height: 60px; |
| | | flex-direction: column; |
| | | padding: 0 20px; |
| | | padding: 0; |
| | | color: #4b9bb7; |
| | | |
| | | .headerContent { |
| | |
| | | } |
| | | |
| | | main { |
| | | background-color: #fff; |
| | | //background-color: #fff; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | |
| | |
| | | line-height: 28px; |
| | | display: flex; |
| | | align-items: center; |
| | | border: 1px solid #ccc; |
| | | border-radius: 4px; |
| | | font-size: 12px; |
| | | margin-left: 10px; |
| | |
| | | } |
| | | |
| | | .el-table { |
| | | color: #4b9bb7; |
| | | font-size: 10px; |
| | | // color: #4b9bb7; |
| | | // font-size: 10px; |
| | | |
| | | &::v-deep .cell { |
| | | text-overflow: ellipsis; |
| | |
| | | .line { |
| | | padding: 0 5px; |
| | | } |
| | | |
| | | color: var(--operation-color); |
| | | span:hover { |
| | | cursor: pointer; |
| | | } |
| | |
| | | // background-color: #06122c; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |