From b4d6e0923d825f3a6cbb12c29b5a522d56362ff8 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期六, 18 三月 2023 13:04:17 +0800 Subject: [PATCH] 用户管理导入导出 --- src/views/operate/disposal/casepool/escalation/index.vue | 114 ++++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 72 insertions(+), 42 deletions(-) diff --git a/src/views/operate/disposal/casepool/escalation/index.vue b/src/views/operate/disposal/casepool/escalation/index.vue index 5747bc6..1b0ad26 100644 --- a/src/views/operate/disposal/casepool/escalation/index.vue +++ b/src/views/operate/disposal/casepool/escalation/index.vue @@ -1,36 +1,40 @@ <template> <div class="userList"> <header> - <div class="headerContent"> - <div class="search"> - <span>鏉ユ簮鏌ヨ:</span> - <div class="option"> - <el-select - v-model="mystatus" - placeholder="杩濊" - > - <el-option - v-for="item in resourceOptions" - :key="item.label" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </div> - <div class="findBtn"> - <el-button type="primary" @click="getUserList">鏌ヨ</el-button> - </div> - </div> + <MyHeader @getUserList ="getUserList"></MyHeader> +<!-- <div class="headerContent">--> +<!-- <div class="search">--> +<!-- <span>鏉ユ簮鏌ヨ:</span>--> +<!-- <div class="option">--> +<!-- <el-select--> +<!-- v-model="mystatus"--> +<!-- placeholder="杩濊"--> +<!-- >--> +<!-- <el-option--> +<!-- v-for="item in resourceOptions"--> +<!-- :key="item.label"--> +<!-- :label="item.label"--> +<!-- :value="item.value"--> +<!-- >--> +<!-- </el-option>--> +<!-- </el-select>--> +<!-- </div>--> +<!-- <div class="findBtn">--> +<!-- <el-button type="primary" @click="getUserList">鏌ヨ</el-button>--> +<!-- </div>--> +<!-- </div>--> - </div> +<!-- </div>--> </header> <main> <div class="mainContent"> <!-- 鏁版嵁灞曠ず --> <el-table + border + stripe ref="multipleTable" :header-cell-style="{ + 'background':'#F5F5F5', 'font-weight': '650', 'line-height': '45px', }" @@ -80,7 +84,7 @@ <!-- tools --> <div class="tools"> <div class="funs"> - <div class="funsItem funs-sp"> + <div class="funsItem funs-sp funs-first"> <el-checkbox v-model="all" @change="selectAll()" >鍏ㄩ��</el-checkbox > @@ -129,10 +133,12 @@ import { RESOURCE_OPTIONS, EVENT_SOURCE } from "@/utils/helper"; import MyDetail from "@/components/detail"; import basecase from "@/api/operate/basecase"; +import MyHeader from "@/components/seachHeader/index" export default { components: { MyDetail, + MyHeader }, data() { return { @@ -298,20 +304,41 @@ }); }, // 鑾峰彇鐢ㄦ埛鍒楄〃 - getUserList() { - const params = { - current: this.currentPage, - state: this.statusArr[0] ?? null, - size: this.pageSize, - resource: this.resource, - type: this.statusArr[1] ?? null + getUserList(seachData) { + // console.log(seachData.seachData.resource) + let params + if (seachData){ + params = { + current: this.currentPage, + state: this.statusArr[0] ?? null, + size: this.pageSize, + resource: seachData.seachData.resource ==undefined ?null:seachData.seachData.resource, + region:seachData.seachData.region ==undefined?null:seachData.seachData.region, + type: this.statusArr[1] ?? null, + code:seachData.seachData.code ==undefined?null:seachData.seachData.code, + categoryBig:seachData.seachData.categoryBig ==undefined?null:seachData.seachData.categoryBig, + categorySmall:seachData.seachData.categorySmall ==undefined?null:seachData.seachData.categorySmall, + site:seachData.seachData.site ==undefined?null:seachData.seachData.site, + street:seachData.seachData.street ==undefined?null:seachData.seachData.street, + alarmTime:seachData.seachData.alarmTime ==undefined?null:seachData.seachData.alarmTime, + }; + }else { + + params = { + current: this.currentPage, + state: this.statusArr[0] ?? null, + size: this.pageSize, + type: this.statusArr[1] ?? null, + }; } - basecase.baseCasePoolList(params) + + basecase + .baseCasePoolList(params) .then(({ records, total }) => { this.tableData = records; this.totalNum = total; }) - .catch(err => this.$message.error(err)) + .catch((err) => this.$message.error(err)); }, // 璁剧疆琛ㄦ牸鏂戦┈绾� tableRowClassName({ row, rowIndex }) { @@ -399,14 +426,14 @@ <style lang="scss" scoped> .userList { text-align: left; - margin: 10px 20px; - color: #4b9bb7; - + padding: 10px 20px; + // color: #4b9bb7; + border: 1px solid #ccc; header { background-color: white; .headerContent { - padding: 0 40px; + padding: 0; display: flex; line-height: 100px; justify-content: space-between; @@ -450,7 +477,7 @@ .el-button { padding: 12px 25px; - border-radius: 20px; + //border-radius: 20px; } } @@ -465,7 +492,7 @@ &::v-deep .el-input__inner { // background-color: #09152f; - border: 1px solid #17324c; + //border: 1px solid #17324c; } main { @@ -526,12 +553,15 @@ display: flex; justify-content: space-between; align-items: center; - padding: 0 20px; + //padding: 0 20px; .funs { display: flex; + .funs-first{ + margin-left: 0!important; + } .funs-sp { - border: 1px solid #17324c; + border: 1px solid #DCDFE6; } .funsItem { line-height: 28px; @@ -608,7 +638,7 @@ .operation { display: flex; - + color: var(--operation-color); .line { padding: 0 5px; } @@ -655,4 +685,4 @@ padding: 0; } } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0