From a4904c4b4f2f47c3187ebf709b0eccabb49017cb Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期五, 10 二月 2023 14:58:21 +0800
Subject: [PATCH] 样式调整
---
src/views/operate/baseSetting/illegalBuild/index.vue | 771 ++--
src/views/operate/viewEvent/index.vue | 2
src/views/operate/fivepack/shop/index.vue | 2
src/views/operate/baseSetting/violation/index.vue | 805 ++--
src/views/systemSetting/device/loudspeaker/index.vue | 72
src/components/Table/index.vue | 24
src/views/operate/log/index.vue | 2
src/views/systemSetting/platform/cockpitManage/index.vue | 1223 ++++---
src/views/systemSetting/device/handheldTerminal/index.vue | 76
src/views/operate/myWait/index.vue | 2
src/views/operate/disposal/casepool/pool/index.vue | 1372 ++++----
src/views/systemSetting/baseSetting/user/components/header/index.vue | 2
src/views/operate/disposal/casepool/learn/index.vue | 1124 +++---
src/views/systemSetting/device/bayonet/index.vue | 39
src/views/operate/images/index.vue | 2
src/views/operate/disposal/casepool/notDeal/index.vue | 1092 +++---
src/views/systemSetting/baseSetting/user/components/main/index.vue | 4
src/views/operate/disposal/casepool/escalation/index.vue | 2
src/views/systemSetting/device/grid/index.vue | 66
src/views/operate/disposal/casepool/dispatch/index.vue | 1125 +++---
src/views/operate/car/myIndex/index.vue | 1320 ++++----
src/views/operate/management/myIndex/index.vue | 2
src/views/systemSetting/baseSetting/user/index.vue | 2
src/views/systemSetting/device/grid/components/main/index.vue | 2
src/views/systemSetting/platform/mySetting/index.vue | 2
25 files changed, 4,815 insertions(+), 4,320 deletions(-)
diff --git a/src/components/Table/index.vue b/src/components/Table/index.vue
index 72cfb60..173148a 100644
--- a/src/components/Table/index.vue
+++ b/src/components/Table/index.vue
@@ -7,6 +7,8 @@
ref="multipleTable" :data="tableData" style="width: 100%"
:header-cell-style="{'background':'#F5F5F5','font-size':'14px','font-weight':'650','line-height':'45px'}"
:row-class-name="tableRowClassName">
+
+ <el-table-column type="selection" min-width="5"> </el-table-column>
<el-table-column v-for="item in option.group" :key="item.prop" :label="item.label"
:prop="item.prop" :min-width="item['min-width'] ? item['item.min-width']:'10'">
<template slot-scope="scope">
@@ -224,31 +226,9 @@
display: flex;
line-height: 50px;
justify-content: center;
-
- .el-pagination {
-
- &::v-deep li,
- &::v-deep .btn-prev,
- &::v-deep .btn-next {
- background-color: #071f39;
- color: #4b9bb7;
- }
-
- &::v-deep .active {
- background-color: #409eff;
- color: #fff;
- }
- }
}
}
- &::v-deep .warning-row {
- // background-color: #06122c;
- }
-
- &::v-deep .success-row {
- // background-color: #071f39;
- }
.operationBox {
display: flex;
diff --git a/src/views/operate/baseSetting/illegalBuild/index.vue b/src/views/operate/baseSetting/illegalBuild/index.vue
index d954fb9..fa2d916 100644
--- a/src/views/operate/baseSetting/illegalBuild/index.vue
+++ b/src/views/operate/baseSetting/illegalBuild/index.vue
@@ -1,63 +1,83 @@
<template>
- <div class="userList">
- <div class="headerTitle">
- 杩愯惀绠$悊銆嬪熀纭�璁剧疆銆嬭繚寤轰簨椤硅缃�
+ <div class="userList">
+ <div class="headerTitle">杩愯惀绠$悊銆嬪熀纭�璁剧疆銆嬭繚寤轰簨椤硅缃�</div>
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <span>绛涢�夋潯浠�:</span>
+ <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="context"></el-input>
+ <div class="findBtn">
+ <el-button type="primary" @click="getUserList">鏌ヨ</el-button>
+ </div>
</div>
- <header>
- <div class="headerContent">
- <div class="search">
- <span>绛涢�夋潯浠�:</span>
- <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="context"></el-input>
- <div class="findBtn">
- <el-button type="primary" @click="getUserList">鏌ヨ</el-button>
- </div>
- </div>
- <div class="addUser">
- <el-button class="addBtn" type="primary" @click="dialogCreate = true">鏂板杩濆缓</el-button>
- <el-dialog :visible.sync="dialogCreate" title="鏂板杩濆缓" width="45%" v-if="dialogCreate"
- :before-close="handleClose">
- <createUser @changeDialog="changeDialog" />
- </el-dialog>
- </div>
- </div>
- </header>
- <main>
- <div class="mainContent">
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable"
- :header-cell-style="{'background':'#F5F5F5','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="number" label="缂栧彿" min-width="5">
- </el-table-column>
- <el-table-column prop="typeFirst" label="鎵�灞炵被鍨�" min-width="10">
- </el-table-column>
- <el-table-column prop="type" label="鎵�灞炵被鍒�" min-width="20">
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="10">
- <template slot-scope="scope">
- <div class="operation">
- <span @click="handleFind(scope.row)">鏌ョ湅</span>
- <span class="line">|</span>
- <span @click="handleDelete(scope.row)">鍒犻櫎</span>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 鏌ョ湅淇敼椤甸潰 -->
- <el-dialog :visible.sync="dialogUpdate" width="45%" :title="updateFlag ? '淇敼杩濆缓淇℃伅' :'鏌ョ湅杩濆缓淇℃伅'"
- v-if="dialogUpdate" :before-close="handleClose2">
- <updateUser :updateFlag="updateFlag" :userInfo=userInfo @changeDialog="changeDialog" />
- </el-dialog>
- <!-- tools -->
- <div class="tools">
- <div class="funs">
- <!-- <div class="funsItem">
+ <div class="addUser">
+ <el-button class="addBtn" type="primary" @click="dialogCreate = true"
+ >鏂板杩濆缓</el-button
+ >
+ <el-dialog
+ :visible.sync="dialogCreate"
+ title="鏂板杩濆缓"
+ width="45%"
+ v-if="dialogCreate"
+ :before-close="handleClose"
+ >
+ <createUser @changeDialog="changeDialog" />
+ </el-dialog>
+ </div>
+ </div>
+ </header>
+ <main>
+ <div class="mainContent">
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ background: '#F5F5F5',
+ '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="number" label="缂栧彿" min-width="5">
+ </el-table-column>
+ <el-table-column prop="typeFirst" label="鎵�灞炵被鍨�" min-width="10">
+ </el-table-column>
+ <el-table-column prop="type" label="鎵�灞炵被鍒�" min-width="20">
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="10">
+ <template slot-scope="scope">
+ <div class="operation">
+ <span @click="handleFind(scope.row)">鏌ョ湅</span>
+ <span class="line">|</span>
+ <span @click="handleDelete(scope.row)">鍒犻櫎</span>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 鏌ョ湅淇敼椤甸潰 -->
+ <el-dialog
+ :visible.sync="dialogUpdate"
+ width="45%"
+ :title="updateFlag ? '淇敼杩濆缓淇℃伅' : '鏌ョ湅杩濆缓淇℃伅'"
+ v-if="dialogUpdate"
+ :before-close="handleClose2"
+ >
+ <updateUser
+ :updateFlag="updateFlag"
+ :userInfo="userInfo"
+ @changeDialog="changeDialog"
+ />
+ </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">
@@ -70,347 +90,350 @@
</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"
- @prev-click="handlePrev" @next-click="handleNext">
- </el-pagination>
- </div>
- </div>
- </div>
- </main>
- </div>
+ </div>
+ <div class="pagination">
+ <el-pagination
+ background
+ :current-page="currentPage"
+ layout="prev, pager, next"
+ :total="totalNum"
+ :page-size="pageSize"
+ @current-change="changeCurrentPage"
+ @prev-click="handlePrev"
+ @next-click="handleNext"
+ >
+ </el-pagination>
+ </div>
+ </div>
+ </div>
+ </main>
+ </div>
</template>
<script>
-import updateUser from "./updateUser"
-import createUser from "./createUser"
+import updateUser from "./updateUser";
+import createUser from "./createUser";
export default {
- components: {
- updateUser,createUser
- },
- data() {
- return {
- tableData: [],
- context: "",
- dialogCreate: false,
- dialogUpdate: false,
- updateFlag: false,
- userInfo: '',
- totalNum: null,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- {
- value: 1,
- label: '鎵归噺鍚敤',
- },
- {
- value: 2,
- label: '鎵归噺绂佺敤',
- },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: []
- }
- },
- created() {
+ components: {
+ updateUser,
+ createUser,
+ },
+ data() {
+ return {
+ tableData: [],
+ context: "",
+ dialogCreate: false,
+ dialogUpdate: false,
+ updateFlag: false,
+ userInfo: "",
+ totalNum: null,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ {
+ value: 1,
+ label: "鎵归噺鍚敤",
+ },
+ {
+ value: 2,
+ label: "鎵归噺绂佺敤",
+ },
+ {
+ value: 3,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ };
+ },
+ created() {
+ this.getUserList();
+ },
+ methods: {
+ // 鎵归噺鍒犻櫎
+ mulDelete(idArr) {
+ this.$axios({
+ method: "delete",
+ url: "sccg/illegal_building/batch_delete?ids=" + idArr,
+ }).then((res) => {
this.getUserList();
+ this.$message({
+ message: res.message,
+ type: res.code === 200 ? "success" : "warning",
+ });
+ });
},
- methods: {
- // 鎵归噺鍒犻櫎
- mulDelete(idArr){
- this.$axios({
- method:'delete',
- url:'sccg/illegal_building/batch_delete?ids='+idArr,
- }).then(res=>{
- this.getUserList();
- this.$message({
- message:res.message,
- type:res.code === 200 ? 'success' : 'warning'
- })
- })
- },
- // 鎵ц涓嬫媺妗嗘搷浣�
- 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)
- })
- },
- // 鍒犻櫎鍗曟潯鏁版嵁
- handleDelete({ number }) {
- this.$confirm('纭鍒犻櫎锛�')
- .then(_ => {
- this.$axios({
- method: 'delete',
- url: `sccg/illegal_building/delete?id=${number}`,
- })
- .then(res => {
- this.$message({
- type: res.code === 200 ? 'success' : 'warning',
- message: res.message
- })
-
- this.getUserList();
- })
- })
- .catch(_ => { });
- },
- // 鑾峰彇鐢ㄦ埛鍒楄〃
- getUserList() {
- const { currentPage, pageSize, context } = this;
- // 鑾峰彇鎵�鏈夌敤鎴蜂俊鎭�
- this.$axios({
- method: 'get',
- url: `sccg/illegal_building/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`,
- })
- .then(res => {
- this.tableData = res.data.records;
- this.totalNum = res.data.total;
- })
- },
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- },
- // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
- handleFind(rowData) {
- this.dialogUpdate = true;
- this.updateFlag = false;
- this.userInfo = rowData;
- },
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getUserList();
- },
- // 涓婁竴椤电偣鍑讳簨浠�
- handlePrev(page) {
- this.currentPage = page;
- this.getUserList();
- },
- // 涓嬩竴椤电偣鍑讳簨浠�
- handleNext(page) {
- this.currentPage = page;
- this.getUserList();
- },
- changeDialog({flag}) {
- this.dialogCreate = flag;
- this.dialogUpdate = flag;
- this.getUserList();
- },
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogCreate = false;
- this.dialogUpdate = false;
- done();
- })
- .catch(_ => { });
- },
- handleClose2(done){
- if(this.updateFlag){
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- done();
- })
- .catch(_ => { });
- }else{
- done();
- }
+ // 鎵ц涓嬫媺妗嗘搷浣�
+ 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);
+ });
+ },
+ // 鍒犻櫎鍗曟潯鏁版嵁
+ handleDelete({ number }) {
+ this.$confirm("纭鍒犻櫎锛�")
+ .then((_) => {
+ this.$axios({
+ method: "delete",
+ url: `sccg/illegal_building/delete?id=${number}`,
+ }).then((res) => {
+ this.$message({
+ type: res.code === 200 ? "success" : "warning",
+ message: res.message,
+ });
+
+ this.getUserList();
+ });
+ })
+ .catch((_) => {});
+ },
+ // 鑾峰彇鐢ㄦ埛鍒楄〃
+ getUserList() {
+ const { currentPage, pageSize, context } = this;
+ // 鑾峰彇鎵�鏈夌敤鎴蜂俊鎭�
+ this.$axios({
+ method: "get",
+ url: `sccg/illegal_building/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`,
+ }).then((res) => {
+ this.tableData = res.data.records;
+ this.totalNum = res.data.total;
+ });
+ },
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 === 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ },
+ // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
+ handleFind(rowData) {
+ this.dialogUpdate = true;
+ this.updateFlag = false;
+ this.userInfo = rowData;
+ },
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ // 涓婁竴椤电偣鍑讳簨浠�
+ handlePrev(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ // 涓嬩竴椤电偣鍑讳簨浠�
+ handleNext(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ changeDialog({ flag }) {
+ this.dialogCreate = flag;
+ this.dialogUpdate = flag;
+ this.getUserList();
+ },
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogCreate = false;
+ this.dialogUpdate = false;
+ done();
+ })
+ .catch((_) => {});
+ },
+ handleClose2(done) {
+ if (this.updateFlag) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ done();
+ })
+ .catch((_) => {});
+ } else {
+ done();
+ }
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- .headerTitle {
- line-height: 40px;
+ .headerTitle {
+ line-height: 40px;
+ }
+
+ header {
+ background-color: #fff;
+
+ .headerContent {
+ padding: 0;
+ display: flex;
+ line-height: 100px;
+ justify-content: space-between;
+ align-items: center;
+
+ .search {
+ display: flex;
+ justify-content: flex-start;
+
+ span {
+ flex: 1;
+ }
+
+ .el-input {
+ flex: 2;
+ color: #1d3f57;
+ }
+ }
+
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
+ display: flex;
+ align-items: center;
+ margin-top: -2px;
+
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
+ }
+ }
+
+ .addBtn {
+ //background-color: #eb5d01;
+ border: none;
+ //border-radius: 20px;
+ padding: 12px 30px;
+ }
+ }
+ }
+
+ main {
+ background-color: #fff;
+ margin-top: 20px;
+ padding-bottom: 50px;
+
+ .mainTitle {
+ line-height: 60px;
}
- header {
- background-color: #fff;
+ .tools {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 20px;
- .headerContent {
- padding: 0;
- display: flex;
- line-height: 100px;
- justify-content: space-between;
- align-items: center;
+ .funs {
+ display: flex;
- .search {
- display: flex;
- justify-content: flex-start;
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border: 1px solid #17324c;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
- span {
- flex: 1;
- }
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
- .el-input {
- flex: 2;
- color: #1d3f57;
- }
+ .el-select {
+ width: 120px;
+ }
- }
+ &:hover {
+ border: 1px solid #4b9bb7;
+ }
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
-
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
-
- .addBtn {
- //background-color: #eb5d01;
- border: none;
- //border-radius: 20px;
- padding: 12px 30px;
- }
+ &:hover .el-checkbox {
+ color: #4b9bb7;
+ }
}
+ }
+
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
+
+ .el-pagination {
+ &::v-deep li,
+ &::v-deep .btn-prev,
+ &::v-deep .btn-next {
+ // background-color: #071f39;
+ color: #4b9bb7;
+ }
+
+ &::v-deep .active {
+ background-color: #409eff;
+ color: #fff;
+ }
+ }
+ }
}
- main {
- background-color: #fff;
- margin-top: 20px;
- padding-bottom: 50px;
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
- .mainTitle {
- line-height: 60px;
+ &::v-deep .cell {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ }
+ .operation {
+ display: flex;
+ color: var(--operation-color);
+ .line {
+ padding: 0 5px;
}
- .tools {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20px;
-
- .funs {
- display: flex;
-
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border: 1px solid #17324c;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
-
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- &:hover {
- border: 1px solid #4b9bb7;
- }
-
- &:hover .el-checkbox {
- color: #4b9bb7;
- }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- &::v-deep li,
- &::v-deep .btn-prev,
- &::v-deep .btn-next {
- // background-color: #071f39;
- color: #4b9bb7;
- }
-
- &::v-deep .active {
- background-color: #409eff;
- color: #fff;
- }
- }
- }
+ span:hover {
+ cursor: pointer;
}
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
- &::v-deep .cell {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .operation {
- display: flex;
- color: var(--operation-color);
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
+ }
}
+ }
}
</style>
diff --git a/src/views/operate/baseSetting/violation/index.vue b/src/views/operate/baseSetting/violation/index.vue
index 980c406..c4456e7 100644
--- a/src/views/operate/baseSetting/violation/index.vue
+++ b/src/views/operate/baseSetting/violation/index.vue
@@ -1,68 +1,88 @@
<template>
- <div class="userList">
- <div class="headerTitle">
- 杩愯惀绠$悊銆嬪熀纭�璁剧疆銆嬭繚瑙勪簨椤硅缃�
+ <div class="userList">
+ <div class="headerTitle">杩愯惀绠$悊銆嬪熀纭�璁剧疆銆嬭繚瑙勪簨椤硅缃�</div>
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <span>绛涢�夋潯浠�:</span>
+ <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="context"></el-input>
+ <div class="findBtn">
+ <el-button type="primary" @click="getUserList">鏌ヨ</el-button>
+ </div>
</div>
- <header>
- <div class="headerContent">
- <div class="search">
- <span>绛涢�夋潯浠�:</span>
- <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="context"></el-input>
- <div class="findBtn">
- <el-button type="primary" @click="getUserList">鏌ヨ</el-button>
- </div>
- </div>
- <div class="addUser">
- <el-button class="addBtn" type="primary" @click="dialogCreate = true">鏂板杩濊绫诲瀷</el-button>
- <el-dialog :visible.sync="dialogCreate" title="鏂板杩濊绫诲瀷" width="45%" v-if="dialogCreate"
- :before-close="handleClose">
- <createUser @changeDialog=changeDialog />
- </el-dialog>
- </div>
- </div>
- </header>
- <main>
- <div class="mainContent">
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable"
- :header-cell-style="{'background':'#F5F5F5','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="number" label="杩濊浜嬮」缂栧彿" min-width="10">
- </el-table-column>
- <el-table-column prop="typeThird" label="鎵�灞炵被鍨�" min-width="10">
- </el-table-column>
- <el-table-column prop="typeSecond" label="鎵�灞炲ぇ绫�" min-width="10">
- </el-table-column>
- <el-table-column prop="typeFirst" label="鎵�灞炲皬绫�" min-width="10">
- </el-table-column>
- <el-table-column prop="type" label="妗堢敱" min-width="45">
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="10">
- <template slot-scope="scope">
- <div class="operation">
- <span @click="handleFind(scope.row)">鏌ョ湅</span>
- <span class="line">|</span>
- <span @click="handleDelete(scope.row)">鍒犻櫎</span>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 鏌ョ湅淇敼椤甸潰 -->
- <el-dialog :visible.sync="dialogUpdate" width="45%" :title="updateFlag ? '鏉冮檺璁剧疆' :'鏌ョ湅瑙掕壊淇℃伅'"
- v-if="dialogUpdate" :before-close="handleClose2">
- <updateUser :updateFlag="updateFlag" :userInfo=userInfo
- :getUserList=" context ? getUserList : getUserList" @changeDialog="changeDialog" />
- </el-dialog>
- <!-- tools -->
- <div class="tools">
- <div class="funs">
- <!-- <div class="funsItem">
+ <div class="addUser">
+ <el-button class="addBtn" type="primary" @click="dialogCreate = true"
+ >鏂板杩濊绫诲瀷</el-button
+ >
+ <el-dialog
+ :visible.sync="dialogCreate"
+ title="鏂板杩濊绫诲瀷"
+ width="45%"
+ v-if="dialogCreate"
+ :before-close="handleClose"
+ >
+ <createUser @changeDialog="changeDialog" />
+ </el-dialog>
+ </div>
+ </div>
+ </header>
+ <main>
+ <div class="mainContent">
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ background: '#F5F5F5',
+ '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="number" label="杩濊浜嬮」缂栧彿" min-width="10">
+ </el-table-column>
+ <el-table-column prop="typeThird" label="鎵�灞炵被鍨�" min-width="10">
+ </el-table-column>
+ <el-table-column prop="typeSecond" label="鎵�灞炲ぇ绫�" min-width="10">
+ </el-table-column>
+ <el-table-column prop="typeFirst" label="鎵�灞炲皬绫�" min-width="10">
+ </el-table-column>
+ <el-table-column prop="type" label="妗堢敱" min-width="45">
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="10">
+ <template slot-scope="scope">
+ <div class="operation">
+ <span @click="handleFind(scope.row)">鏌ョ湅</span>
+ <span class="line">|</span>
+ <span @click="handleDelete(scope.row)">鍒犻櫎</span>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 鏌ョ湅淇敼椤甸潰 -->
+ <el-dialog
+ :visible.sync="dialogUpdate"
+ width="45%"
+ :title="updateFlag ? '鏉冮檺璁剧疆' : '鏌ョ湅瑙掕壊淇℃伅'"
+ v-if="dialogUpdate"
+ :before-close="handleClose2"
+ >
+ <updateUser
+ :updateFlag="updateFlag"
+ :userInfo="userInfo"
+ :getUserList="context ? getUserList : getUserList"
+ @changeDialog="changeDialog"
+ />
+ </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">
@@ -75,360 +95,363 @@
</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"
- @prev-click="handlePrev" @next-click="handleNext">
- </el-pagination>
- </div>
- </div>
- </div>
- </main>
- </div>
+ </div>
+ <div class="pagination">
+ <el-pagination
+ background
+ :current-page="currentPage"
+ layout="prev, pager, next"
+ :total="totalNum"
+ :page-size="pageSize"
+ @current-change="changeCurrentPage"
+ @prev-click="handlePrev"
+ @next-click="handleNext"
+ >
+ </el-pagination>
+ </div>
+ </div>
+ </div>
+ </main>
+ </div>
</template>
<script>
-import updateUser from "./updateUser"
-import createUser from "./createUser"
+import updateUser from "./updateUser";
+import createUser from "./createUser";
export default {
- components: {
- updateUser, createUser
- },
- data() {
- return {
- tableData: [],
- context: "",
- dialogCreate: false,
- dialogUpdate: false,
- updateFlag: false,
- userInfo: '',
- totalNum: null,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- {
- value: 1,
- label: '鎵归噺鍚敤',
- },
- {
- value: 2,
- label: '鎵归噺绂佺敤',
- },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: []
- }
- },
- created() {
+ components: {
+ updateUser,
+ createUser,
+ },
+ data() {
+ return {
+ tableData: [],
+ context: "",
+ dialogCreate: false,
+ dialogUpdate: false,
+ updateFlag: false,
+ userInfo: "",
+ totalNum: null,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ {
+ value: 1,
+ label: "鎵归噺鍚敤",
+ },
+ {
+ value: 2,
+ label: "鎵归噺绂佺敤",
+ },
+ {
+ value: 3,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ };
+ },
+ created() {
+ this.getUserList();
+ },
+ methods: {
+ // 鎵归噺鍒犻櫎
+ mulDelete(idArr) {
+ this.$axios({
+ method: "delete",
+ url: "sccg/violations/batch_delete?ids=" + idArr,
+ }).then((res) => {
this.getUserList();
+ this.$message({
+ message: res.message,
+ type: res.code === 200 ? "success" : "warning",
+ });
+ });
},
- methods: {
- // 鎵归噺鍒犻櫎
- mulDelete(idArr) {
- this.$axios({
- method: 'delete',
- url: 'sccg/violations/batch_delete?ids=' + idArr,
- }).then(res => {
- this.getUserList();
- this.$message({
- message: res.message,
- type: res.code === 200 ? 'success' : 'warning'
- })
- })
- },
- // 鎵ц涓嬫媺妗嗘搷浣�
- 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;
- if (list.length === this.tableData.length) {
- this.all = true;
- } else {
- this.all = false
- }
- },
- // 鍏ㄩ��
- selectAll() {
- this.$refs.multipleTable.toggleAllSelection();
- },
- // 鍙嶉��
- disSame(list) {
- list.forEach(row => {
- this.$refs.multipleTable.toggleRowSelection(row)
- })
- },
- // 鍒犻櫎鍗曟潯鏁版嵁
- handleDelete({ number }) {
- this.$confirm('纭鍒犻櫎锛�')
- .then(_ => {
- this.$axios({
- method: 'delete',
- url: `sccg/violations/delete?id=${number}`,
- })
- .then(res => {
- this.$message({
- type: res.code === 200 ? 'success' : 'warning',
- message: res.message
- })
-
- this.getUserList();
- })
- })
- .catch(_ => { });
- },
- // 鑾峰彇鐢ㄦ埛鍒楄〃
- getUserList() {
- const { currentPage, pageSize, context } = this;
- // 鑾峰彇鎵�鏈夌敤鎴蜂俊鎭�
- this.$axios({
- method: 'get',
- url: `sccg/violations/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`,
- })
- .then(res => {
- this.tableData = res.data.records;
- this.totalNum = res.data.total;
- })
- },
-
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 == 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- return '';
- },
- // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
- handleFind(rowData) {
- this.dialogUpdate = true;
- this.updateFlag = false;
- this.userInfo = rowData;
- },
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getUserList();
- },
- // 涓婁竴椤电偣鍑讳簨浠�
- handlePrev(page) {
- this.currentPage = page;
- this.getUserList();
- },
- // 涓嬩竴椤电偣鍑讳簨浠�
- handleNext(page) {
- this.currentPage = page;
- this.getUserList();
- },
- changeDialog({ flag }) {
- this.dialogCreate = flag;
- this.dialogUpdate = flag;
- this.getUserList();
- },
- handleClose2(done) {
- if (this.updateFlag) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogCreate = false;
- this.dialogUpdate = false;
- done();
- })
- .catch(_ => { });
- } else {
- done();
- }
- },
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogCreate = false;
- this.dialogUpdate = false;
- done();
- })
- .catch(_ => { });
+ // 鎵ц涓嬫媺妗嗘搷浣�
+ 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;
+ if (list.length === this.tableData.length) {
+ this.all = true;
+ } else {
+ this.all = false;
+ }
+ },
+ // 鍏ㄩ��
+ selectAll() {
+ this.$refs.multipleTable.toggleAllSelection();
+ },
+ // 鍙嶉��
+ disSame(list) {
+ list.forEach((row) => {
+ this.$refs.multipleTable.toggleRowSelection(row);
+ });
+ },
+ // 鍒犻櫎鍗曟潯鏁版嵁
+ handleDelete({ number }) {
+ this.$confirm("纭鍒犻櫎锛�")
+ .then((_) => {
+ this.$axios({
+ method: "delete",
+ url: `sccg/violations/delete?id=${number}`,
+ }).then((res) => {
+ this.$message({
+ type: res.code === 200 ? "success" : "warning",
+ message: res.message,
+ });
+
+ this.getUserList();
+ });
+ })
+ .catch((_) => {});
+ },
+ // 鑾峰彇鐢ㄦ埛鍒楄〃
+ getUserList() {
+ const { currentPage, pageSize, context } = this;
+ // 鑾峰彇鎵�鏈夌敤鎴蜂俊鎭�
+ this.$axios({
+ method: "get",
+ url: `sccg/violations/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`,
+ }).then((res) => {
+ this.tableData = res.data.records;
+ this.totalNum = res.data.total;
+ });
+ },
+
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 == 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ return "";
+ },
+ // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
+ handleFind(rowData) {
+ this.dialogUpdate = true;
+ this.updateFlag = false;
+ this.userInfo = rowData;
+ },
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ // 涓婁竴椤电偣鍑讳簨浠�
+ handlePrev(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ // 涓嬩竴椤电偣鍑讳簨浠�
+ handleNext(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ changeDialog({ flag }) {
+ this.dialogCreate = flag;
+ this.dialogUpdate = flag;
+ this.getUserList();
+ },
+ handleClose2(done) {
+ if (this.updateFlag) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogCreate = false;
+ this.dialogUpdate = false;
+ done();
+ })
+ .catch((_) => {});
+ } else {
+ done();
+ }
+ },
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogCreate = false;
+ this.dialogUpdate = false;
+ done();
+ })
+ .catch((_) => {});
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- .headerTitle {
- line-height: 40px;
+ .headerTitle {
+ line-height: 40px;
+ }
+
+ header {
+ // background-color: #09152f;
+
+ .headerContent {
+ padding: 0;
+ display: flex;
+ line-height: 100px;
+ justify-content: space-between;
+ align-items: center;
+
+ .search {
+ display: flex;
+ justify-content: flex-start;
+
+ span {
+ flex: 1;
+ }
+
+ .el-input {
+ flex: 2;
+ color: #1d3f57;
+ }
+ }
+
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
+ display: flex;
+ align-items: center;
+ margin-top: -2px;
+
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
+ }
+ }
+
+ .addBtn {
+ //background-color: #eb5d01;
+ border: none;
+ //border-radius: 20px;
+ padding: 12px 30px;
+ }
+ }
+ }
+
+ main {
+ // background-color: #09152f;
+ margin-top: 20px;
+ padding-bottom: 50px;
+
+ .mainTitle {
+ line-height: 60px;
}
- header {
- // background-color: #09152f;
+ .tools {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 20px;
- .headerContent {
- padding: 0;
- display: flex;
- line-height: 100px;
- justify-content: space-between;
- align-items: center;
+ .funs {
+ display: flex;
- .search {
- display: flex;
- justify-content: flex-start;
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border: 1px solid #17324c;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
- span {
- flex: 1;
- }
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
- .el-input {
- flex: 2;
- color: #1d3f57;
- }
+ .el-select {
+ width: 120px;
+ }
- }
+ &::v-deep .el-input__inner {
+ border: none;
+ // background-color: #09152f;
+ }
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
+ &:hover {
+ border: 1px solid #4b9bb7;
+ }
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
-
- .addBtn {
- //background-color: #eb5d01;
- border: none;
- //border-radius: 20px;
- padding: 12px 30px;
- }
+ &:hover .el-checkbox {
+ color: #4b9bb7;
+ }
}
+ }
+
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
+
+ .el-pagination {
+ // &::v-deep li,
+ // &::v-deep .btn-prev,
+ // &::v-deep .btn-next {
+ // // background-color: #071f39;
+ // color: #4b9bb7;
+ // }
+
+ // &::v-deep .active {
+ // background-color: #409eff;
+ // color: #fff;
+ // }
+ }
+ }
}
- main {
- // background-color: #09152f;
- margin-top: 20px;
- padding-bottom: 50px;
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
- .mainTitle {
- line-height: 60px;
+ &::v-deep .cell {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ }
+ .operation {
+ display: flex;
+ color: var(--operation-color);
+ .line {
+ padding: 0 5px;
}
- .tools {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20px;
-
- .funs {
- display: flex;
-
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border: 1px solid #17324c;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
-
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- &::v-deep .el-input__inner {
- border: none;
- // background-color: #09152f;
- }
-
- &:hover {
- border: 1px solid #4b9bb7;
- }
-
- &:hover .el-checkbox {
- color: #4b9bb7;
- }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- // &::v-deep li,
- // &::v-deep .btn-prev,
- // &::v-deep .btn-next {
- // // background-color: #071f39;
- // color: #4b9bb7;
- // }
-
- // &::v-deep .active {
- // background-color: #409eff;
- // color: #fff;
- // }
- }
- }
+ span:hover {
+ cursor: pointer;
}
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
- &::v-deep .cell {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .operation {
- display: flex;
- color: var(--operation-color);
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
+ }
}
+ }
}
</style>
diff --git a/src/views/operate/car/myIndex/index.vue b/src/views/operate/car/myIndex/index.vue
index fa2663e..8c34b2e 100644
--- a/src/views/operate/car/myIndex/index.vue
+++ b/src/views/operate/car/myIndex/index.vue
@@ -1,660 +1,734 @@
<template>
- <div class="userList">
- <header>
- <div class="headerContent">
- <div class="search">
- <span>杞﹁締鎼滅储:</span>
- <div class="option">
- <el-input v-model="context" placeholder="璇疯緭鍏ヨ溅鐗屽彿"></el-input>
- </div>
+ <div class="userList">
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <span>杞﹁締鎼滅储:</span>
+ <div class="option">
+ <el-input v-model="context" placeholder="璇疯緭鍏ヨ溅鐗屽彿"></el-input>
+ </div>
- <div class="findBtn">
- <el-button type="primary" @click="handleSearch">鏌ヨ</el-button>
- </div>
- </div>
- <div class="addCar">
- <el-button type="primary" class="addBtn button-addition" @click="handleAddCar">娣诲姞杞﹁締</el-button>
- </div>
- </div>
- </header>
- <main>
- <div class="mainContent">
- <div class="type-nav">
- <div @click="changeTypeChecked(index)" v-for="(item, index) in typeList" :key="item.name"
- :class="[item.checked ? 'is-active' : '', 'type-item']">{{ item.name }}</div>
- </div>
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable"
- :header-cell-style="{'background':'#F5F5F5','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="carNumber" label="杞︾墝鍙�" min-width="10">
- </el-table-column>
- <el-table-column prop="carModel" label="杞﹀瀷" min-width="10" v-if="mystatus === 2">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'ownerName' : 'carOwner'" label="杞︿富濮撳悕" min-width="10">
- </el-table-column>
- <el-table-column v-if="mystatus === 2" :prop="mystatus === 1 ? 'vehicleUser' : 'carUser'"
- label="杞﹁締浣跨敤浜哄憳" min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'contact' : 'phone'" label="鑱旂郴鏂瑰紡" min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'pdepartName' : 'geographicPosition'"
- :label="mystatus === 1 ? '鎵�灞為儴闂�' : '鏂藉伐鍦板潃'" min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'departName' : 'constructionOrg'"
- :label="mystatus === 1 ? '鎵�灞炲ぇ闃�' : '鏂藉伐鍗曚綅'" min-width="10">
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
- <template slot-scope="scope">
- <div class="operation">
- <!-- <span @click="handleView(scope.row)">鏌ョ湅</span>
+ <div class="findBtn">
+ <el-button type="primary" @click="handleSearch">鏌ヨ</el-button>
+ </div>
+ </div>
+ <div class="addCar">
+ <el-button
+ type="primary"
+ class="addBtn button-addition"
+ @click="handleAddCar"
+ >娣诲姞杞﹁締</el-button
+ >
+ </div>
+ </div>
+ </header>
+ <main>
+ <div class="mainContent">
+ <div class="type-nav">
+ <div
+ @click="changeTypeChecked(index)"
+ v-for="(item, index) in typeList"
+ :key="item.name"
+ :class="[item.checked ? 'is-active' : '', 'type-item']"
+ >
+ {{ item.name }}
+ </div>
+ </div>
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ background: '#F5F5F5',
+ '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="carNumber" label="杞︾墝鍙�" min-width="10">
+ </el-table-column>
+ <el-table-column
+ prop="carModel"
+ label="杞﹀瀷"
+ min-width="10"
+ v-if="mystatus === 2"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'ownerName' : 'carOwner'"
+ label="杞︿富濮撳悕"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ v-if="mystatus === 2"
+ :prop="mystatus === 1 ? 'vehicleUser' : 'carUser'"
+ label="杞﹁締浣跨敤浜哄憳"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'contact' : 'phone'"
+ label="鑱旂郴鏂瑰紡"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'pdepartName' : 'geographicPosition'"
+ :label="mystatus === 1 ? '鎵�灞為儴闂�' : '鏂藉伐鍦板潃'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'departName' : 'constructionOrg'"
+ :label="mystatus === 1 ? '鎵�灞炲ぇ闃�' : '鏂藉伐鍗曚綅'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
+ <template slot-scope="scope">
+ <div class="operation">
+ <!-- <span @click="handleView(scope.row)">鏌ョ湅</span>
<span class="line">|</span> -->
- <span @click="handleEdit(scope.row)">缂栬緫</span>
- <span class="line">|</span>
- <span @click="handleDelete(scope.row)">鍒犻櫎</span>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 鏂板 -->
- <el-dialog :visible.sync="dialogAdd" width="60%" title="鏂板杞﹁締" v-if="dialogAdd"
- :before-close="handleClose">
- <Mycreate v-if="mystatus === 1" @closeDialog="closeDialog"></Mycreate>
- <MySoil v-else @closeDialog="closeDialog"></MySoil>
- </el-dialog>
- <!-- 鏌ョ湅 -->
- <el-dialog :visible.sync="dialogView" width="60%" title="鏌ョ湅杞﹁締淇℃伅" v-if="dialogView"
- :before-close="handleNoClose">
- <MyViewLaw v-if="mystatus === 1" :info="info"></MyViewLaw>
- <MyViewSoil v-else :info="info"></MyViewSoil>
- </el-dialog>
- <!-- 缂栬緫 -->
- <el-dialog :visible.sync="dialogEdit" width="60%" title="缂栬緫杞﹁締淇℃伅" v-if="dialogEdit"
- >
- <MyEditLaw v-if="mystatus === 1" @closeDialog="closeDialog" :info="info"></MyEditLaw>
- <MyEditSoil v-else @closeDialog="closeDialog" :info="info"></MyEditSoil>
- </el-dialog>
- <!-- tools -->
- <div class="tools">
- <div class="funs">
- <div class="funsItem funs-sp funs-first">
- <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
- </div>
- <div class="funsItem funs-sp">
- <el-checkbox v-model="unsame" @change="disSame(tableData)">鍙嶉��</el-checkbox>
- </div>
- <div class="funsItem">
- <el-select v-model="myIdx" placeholder="鎵归噺鎿嶄綔" >
- <el-option v-for="item in options" :key="item.value" :label="item.label"
- :value="item.value" :disabled="item.disabled" @click.native="selectChange">
- </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"
- @prev-click="handlePrev" @next-click="handleNext">
- </el-pagination>
- </div>
- </div>
+ <span @click="handleEdit(scope.row)">缂栬緫</span>
+ <span class="line">|</span>
+ <span @click="handleDelete(scope.row)">鍒犻櫎</span>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 鏂板 -->
+ <el-dialog
+ :visible.sync="dialogAdd"
+ width="60%"
+ title="鏂板杞﹁締"
+ v-if="dialogAdd"
+ :before-close="handleClose"
+ >
+ <Mycreate v-if="mystatus === 1" @closeDialog="closeDialog"></Mycreate>
+ <MySoil v-else @closeDialog="closeDialog"></MySoil>
+ </el-dialog>
+ <!-- 鏌ョ湅 -->
+ <el-dialog
+ :visible.sync="dialogView"
+ width="60%"
+ title="鏌ョ湅杞﹁締淇℃伅"
+ v-if="dialogView"
+ :before-close="handleNoClose"
+ >
+ <MyViewLaw v-if="mystatus === 1" :info="info"></MyViewLaw>
+ <MyViewSoil v-else :info="info"></MyViewSoil>
+ </el-dialog>
+ <!-- 缂栬緫 -->
+ <el-dialog
+ :visible.sync="dialogEdit"
+ width="60%"
+ title="缂栬緫杞﹁締淇℃伅"
+ v-if="dialogEdit"
+ >
+ <MyEditLaw
+ v-if="mystatus === 1"
+ @closeDialog="closeDialog"
+ :info="info"
+ ></MyEditLaw>
+ <MyEditSoil
+ v-else
+ @closeDialog="closeDialog"
+ :info="info"
+ ></MyEditSoil>
+ </el-dialog>
+ <!-- tools -->
+ <div class="tools">
+ <div class="funs">
+ <div class="funsItem funs-sp funs-first">
+ <el-checkbox v-model="all" @change="selectAll()"
+ >鍏ㄩ��</el-checkbox
+ >
</div>
- </main>
- </div>
+ <div class="funsItem funs-sp">
+ <el-checkbox v-model="unsame" @change="disSame(tableData)"
+ >鍙嶉��</el-checkbox
+ >
+ </div>
+ <div class="funsItem">
+ <el-select v-model="myIdx" placeholder="鎵归噺鎿嶄綔">
+ <el-option
+ v-for="item in options"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ :disabled="item.disabled"
+ @click.native="selectChange"
+ >
+ </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"
+ @prev-click="handlePrev"
+ @next-click="handleNext"
+ >
+ </el-pagination>
+ </div>
+ </div>
+ </div>
+ </main>
+ </div>
</template>
<script>
-import Mycreate from './create/law'
-import MySoil from './create/soil'
-import MyViewLaw from './update/law'
-import MyViewSoil from './update/soil'
-import MyEditLaw from './edit/law'
-import MyEditSoil from './edit/soil'
+import Mycreate from "./create/law";
+import MySoil from "./create/soil";
+import MyViewLaw from "./update/law";
+import MyViewSoil from "./update/soil";
+import MyEditLaw from "./edit/law";
+import MyEditSoil from "./edit/soil";
export default {
- components: {
- Mycreate, MySoil, MyViewLaw,
- MyViewSoil, MyEditLaw, MyEditSoil
+ components: {
+ Mycreate,
+ MySoil,
+ MyViewLaw,
+ MyViewSoil,
+ MyEditLaw,
+ MyEditSoil,
+ },
+ data() {
+ return {
+ tableData: [],
+ context: "",
+ dialogAdd: false,
+ dialogView: false,
+ dialogEdit: false,
+ info: "",
+ totalNum: null,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ // {
+ // value: 1,
+ // label: '鎵归噺鍚敤',
+ // },
+ // {
+ // value: 2,
+ // label: '鎵归噺绂佺敤',
+ // },
+ {
+ value: 3,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ typeList: [
+ {
+ name: "鎵ф硶杞�",
+ value: 1,
+ checked: true,
+ },
+ {
+ name: "娓e湡杞�",
+ value: 2,
+ checked: false,
+ },
+ ],
+ mystatus: 1,
+ caseId: "",
+ timer: null,
+ currentState: 1,
+ };
+ },
+ created() {
+ this.getCarList();
+ },
+ methods: {
+ // 缂栬緫杞﹁締
+ handleEdit(data) {
+ this.dialogEdit = true;
+ this.info = data;
},
- data() {
- return {
- tableData: [],
- context: "",
- dialogAdd: false,
- dialogView: false,
- dialogEdit: false,
- info: '',
- totalNum: null,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- // {
- // value: 1,
- // label: '鎵归噺鍚敤',
- // },
- // {
- // value: 2,
- // label: '鎵归噺绂佺敤',
- // },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: [],
- typeList: [
- {
- name: '鎵ф硶杞�',
- value: 1,
- checked: true
- },
- {
- name: '娓e湡杞�',
- value: 2,
- checked: false,
- },
- ],
- mystatus: 1,
- caseId: '',
- timer: null,
- currentState: 1
- }
- },
- created() {
+ // 鎼滅储杞﹁締
+ handleSearch(val) {
+ if (this.timer) {
+ clearTimeout(this.timer);
+ }
+ this.timer = setTimeout(() => {
this.getCarList();
+ }, 1000);
},
- methods: {
- // 缂栬緫杞﹁締
- handleEdit(data) {
- this.dialogEdit = true
- this.info = data;
- },
- // 鎼滅储杞﹁締
- handleSearch(val) {
- if (this.timer) {
- clearTimeout(this.timer);
- }
- this.timer = setTimeout(() => {
- this.getCarList();
- }, 1000);
- },
- // 娣诲姞杞﹁締
- handleAddCar() {
- this.dialogAdd = true;
- },
- // 鐩戝惉琛ㄦ牸
- tableChange(list) {
- this.tempList = [];
- list.forEach(item => {
- this.tempList.push(item.id);
- })
- if (list.length === this.tableData.length) {
- this.all = true;
- } else {
- this.all = false
- }
- },
- // 鍏ㄩ��
- selectAll() {
- this.$refs.multipleTable.toggleAllSelection();
- },
- // 鍙嶉��
- disSame(list) {
- list.forEach(row => {
- this.$refs.multipleTable.toggleRowSelection(row)
- })
- },
- // 鍒犻櫎鍗曟潯鏁版嵁
- handleDelete({ id }) {
- this.$confirm('纭鍒犻櫎锛�')
- .then(_ => {
- const { mystatus } = this
- let myurl = mystatus === 1 ? 'deletion_enforce' : 'deletion_slag'
- this.$axios({
- method: 'delete',
- url: `/sccg/car_Manage/${myurl}?id=${id}`,
- })
- .then(res => {
- this.$message({
- type: res.code === 200 ? 'success' : 'warning',
- message: res.message
- })
+ // 娣诲姞杞﹁締
+ handleAddCar() {
+ this.dialogAdd = true;
+ },
+ // 鐩戝惉琛ㄦ牸
+ tableChange(list) {
+ this.tempList = [];
+ list.forEach((item) => {
+ this.tempList.push(item.id);
+ });
+ if (list.length === this.tableData.length) {
+ this.all = true;
+ } else {
+ this.all = false;
+ }
+ },
+ // 鍏ㄩ��
+ selectAll() {
+ this.$refs.multipleTable.toggleAllSelection();
+ },
+ // 鍙嶉��
+ disSame(list) {
+ list.forEach((row) => {
+ this.$refs.multipleTable.toggleRowSelection(row);
+ });
+ },
+ // 鍒犻櫎鍗曟潯鏁版嵁
+ handleDelete({ id }) {
+ this.$confirm("纭鍒犻櫎锛�")
+ .then((_) => {
+ const { mystatus } = this;
+ let myurl = mystatus === 1 ? "deletion_enforce" : "deletion_slag";
+ this.$axios({
+ method: "delete",
+ url: `/sccg/car_Manage/${myurl}?id=${id}`,
+ }).then((res) => {
+ this.$message({
+ type: res.code === 200 ? "success" : "warning",
+ message: res.message,
+ });
- this.getCarList();
- })
- })
- .catch(_ => { });
- },
- // 鑾峰彇杞﹁締鍒楄〃
- async getCarList() {
- const { currentPage, pageSize, context, mystatus } = this;
- let arr = [];
- if (mystatus === 1) {
- arr = await this.getLawCarList(currentPage, pageSize, context);
+ this.getCarList();
+ });
+ })
+ .catch((_) => {});
+ },
+ // 鑾峰彇杞﹁締鍒楄〃
+ async getCarList() {
+ const { currentPage, pageSize, context, mystatus } = this;
+ let arr = [];
+ if (mystatus === 1) {
+ arr = await this.getLawCarList(currentPage, pageSize, context);
+ } else {
+ arr = await this.getSoilCarList(currentPage, pageSize, context);
+ }
+ this.tableData = arr.records;
+ this.totalNum = arr.total;
+ },
+ // 鑾峰彇鎵ф硶杞�
+ async getLawCarList(currentPage, pageSize, carNum) {
+ let arr = [];
+ await this.$axios({
+ method: "get",
+ url: `sccg/car_Manage/query_enforce?current=${currentPage}&size=${pageSize}&carNum=${carNum}`,
+ }).then((res) => {
+ arr = res.data;
+ });
+ return arr;
+ },
+ // 鑾峰彇娓e湡杞�
+ async getSoilCarList(currentPage, pageSize, carNum) {
+ let arr = [];
+ await this.$axios({
+ method: "get",
+ url: `sccg/car_Manage/query_slag?current=${currentPage}&size=${pageSize}&carNum=${carNum}`,
+ }).then((res) => {
+ arr = res.data;
+ });
+ return arr;
+ },
+ // 鏇存敼鎵ф硶杞�/娓e湡杞�
+ changeTypeChecked(idx) {
+ this.typeList.forEach((item, index) => {
+ if (index === idx) {
+ item.checked = true;
+ this.currentState = item.value;
+ } else {
+ item.checked = false;
+ }
+ });
+ this.mystatus = idx + 1;
+ this.getCarList();
+ },
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 == 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ return "";
+ },
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getCarList();
+ },
+ // 涓婁竴椤电偣鍑讳簨浠�
+ handlePrev(page) {
+ this.currentPage = page;
+ this.getCarList();
+ },
+ // 涓嬩竴椤电偣鍑讳簨浠�
+ handleNext(page) {
+ this.currentPage = page;
+ this.getCarList();
+ },
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ done();
+ })
+ .catch((_) => {});
+ },
+ async JumpView(data) {
+ await this.getEventInfo(data.code);
+ },
+ handleNoClose(done) {
+ done();
+ },
+ opernDialog(data) {
+ this.dialogAdd = true;
+ this.caseId = data.id;
+ },
+ // 鍏抽棴鐣岄潰
+ closeDialog({ flag, index }) {
+ this.dialogAdd = flag;
+ this.dialogEdit = flag;
+ if (index === 1) {
+ this.getCarList();
+ }
+ },
+ handleView(data) {
+ this.info = data;
+ this.dialogView = true;
+ },
+ selectChange(list) {
+ if (this.tempList.length !== 0) {
+ this.preMyIdx = list;
+ this.mulDelete(this.tempList);
+ } else {
+ this.myIdx = this.preMyIdx;
+ this.$message({
+ type: "warning",
+ message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+ });
+ }
+ },
+ // 澶氭潯鏁版嵁鍒犻櫎
+ mulDelete(idArr) {
+ var path = "";
+ if (this.currentState == 1) {
+ path = "/sccg/car_Manage/batch_deletion_enforce?ids=";
+ } else {
+ path = "/sccg/car_Manage/batch_deletion_slag?ids=";
+ }
+ this.$confirm("鎮ㄧ‘瀹氳鎵归噺鍒犻櫎杞﹁締淇℃伅鍚�?")
+ .then((_) => {
+ this.$axios({
+ method: "delete",
+ url: path + idArr,
+ }).then((res) => {
+ if (res.code === 200) {
+ this.$message({
+ type: "success",
+ message: "鎵归噺鍒犻櫎杞﹁締淇℃伅鎴愬姛",
+ });
+ this.getCarList();
} else {
- arr = await this.getSoilCarList(currentPage, pageSize, context)
+ this.$message({
+ type: "error",
+ message: res.message,
+ });
}
- this.tableData = arr.records;
- this.totalNum = arr.total;
- },
- // 鑾峰彇鎵ф硶杞�
- async getLawCarList(currentPage, pageSize, carNum) {
- let arr = [];
- await this.$axios({
- method: 'get',
- url: `sccg/car_Manage/query_enforce?current=${currentPage}&size=${pageSize}&carNum=${carNum}`,
- })
- .then(res => {
- arr = res.data;
- })
- return arr;
- },
- // 鑾峰彇娓e湡杞�
- async getSoilCarList(currentPage, pageSize, carNum) {
- let arr = [];
- await this.$axios({
- method: 'get',
- url: `sccg/car_Manage/query_slag?current=${currentPage}&size=${pageSize}&carNum=${carNum}`,
- })
- .then(res => {
- arr = res.data;
- })
- return arr;
- },
- // 鏇存敼鎵ф硶杞�/娓e湡杞�
- changeTypeChecked(idx) {
- this.typeList.forEach((item, index) => {
- if (index === idx) {
- item.checked = true;
- this.currentState=item.value;
- } else {
- item.checked = false;
- }
- })
- this.mystatus = idx + 1;
- this.getCarList();
- },
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 == 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- return '';
- },
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getCarList();
- },
- // 涓婁竴椤电偣鍑讳簨浠�
- handlePrev(page) {
- this.currentPage = page;
- this.getCarList();
- },
- // 涓嬩竴椤电偣鍑讳簨浠�
- handleNext(page) {
- this.currentPage = page;
- this.getCarList();
- },
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- done();
- })
- .catch(_ => { });
- },
- async JumpView(data) {
- await this.getEventInfo(data.code);
- },
- handleNoClose(done) {
- done();
- },
- opernDialog(data) {
- this.dialogAdd = true;
- this.caseId = data.id;
- },
- // 鍏抽棴鐣岄潰
- closeDialog({ flag, index }) {
- this.dialogAdd = flag;
- this.dialogEdit = flag
- if (index === 1) {
- this.getCarList();
- }
- },
- handleView(data) {
- this.info = data;
- this.dialogView = true;
- },
- selectChange(list) {
- if (this.tempList.length !== 0) {
-
- this.preMyIdx = list;
- this.mulDelete(this.tempList);
-
- } else {
- this.myIdx = this.preMyIdx;
- this.$message({
- type: "warning",
- message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
- });
- }
- },
- // 澶氭潯鏁版嵁鍒犻櫎
- mulDelete(idArr) {
- var path=""
- if(this.currentState==1){
- path="/sccg/car_Manage/batch_deletion_enforce?ids="
- }
- else{
- path="/sccg/car_Manage/batch_deletion_slag?ids="
- }
- this.$confirm("鎮ㄧ‘瀹氳鎵归噺鍒犻櫎杞﹁締淇℃伅鍚�?")
- .then((_) => {
- this.$axios({
- method: "delete",
- url: path + idArr,
- }).then((res) => {
- if (res.code === 200) {
- this.$message({
- type: "success",
- message: "鎵归噺鍒犻櫎杞﹁締淇℃伅鎴愬姛",
- });
- this.getCarList();
- } else {
- this.$message({
- type: "error",
- message: res.message,
- });
- }
- });
- })
- .catch((err) => {
- console.log(err);
- });
- },
- }
-}
+ });
+ })
+ .catch((err) => {
+ console.log(err);
+ });
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- header {
- // background-color: #09152f;
- border: 1px solid #fff;
+ header {
+ // background-color: #09152f;
+ border: 1px solid #fff;
- .headerContent {
- padding: 0;
- display: flex;
- line-height: 100px;
- justify-content: space-between;
- align-items: center;
+ .headerContent {
+ padding: 0;
+ display: flex;
+ line-height: 100px;
+ justify-content: space-between;
+ align-items: center;
- .search {
- display: flex;
- justify-content: flex-start;
+ .search {
+ display: flex;
+ justify-content: flex-start;
- span {
- flex: 1;
- }
-
- .el-input {
- flex: 2;
- color: #1d3f57;
-
- &::v-deep .el-input__inner {
- // background-color: #09152f;
- //border: 1px solid #17324c;
- }
- }
-
- }
-
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
-
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
-
- .addBtn {
- //background-color: #eb5d01;
- border: none;
- //border-radius: 20px;
- padding: 12px 30px;
- }
- }
- }
-
- &::v-deep .el-input__inner {
- // background-color: #09152f;
- //border: 1px solid #17324c;
- }
-
- main {
- // background-color: #09152f;
- margin-top: 20px;
- padding-bottom: 50px;
- border: 1px solid #fff;
-
- .btn span:hover {
- cursor: pointer;
+ span {
+ flex: 1;
}
- .type-nav {
- display: flex;
- line-height: 40px;
- margin-left: 30px;
- padding-top: 10px;
- margin-bottom: 10px;
+ .el-input {
+ flex: 2;
+ color: #1d3f57;
- .type-item {
- width: 80px;
- text-align: center;
-
- &:hover {
- cursor: pointer;
- }
- }
-
- .is-active {
- // background-color: #070f22;
- border-radius: 4px;
- color: #2f54eb;
- }
+ &::v-deep .el-input__inner {
+ // background-color: #09152f;
+ //border: 1px solid #17324c;
+ }
}
+ }
- .tools {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0;
-
- .funs {
- display: flex;
-
- .funs-sp {
- border: 1px solid #DCDFE6;
- }
- .funs-first{
- margin-left: 0!important;
- }
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
- border: 1px solid #DCDFE6;
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- &::v-deep .el-input__inner {
- border: none;
- // background-color: #09152f;
- }
-
- &:hover {
- border: 1px solid #4b9bb7;
- }
-
- &:hover .el-checkbox {
- color: #4b9bb7;
- }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- &::v-deep li,
- &::v-deep .btn-prev,
- &::v-deep .btn-next {
- // background-color: #071f39;
- color: #4b9bb7;
- }
-
- &::v-deep .active {
- background-color: #409eff;
- color: #fff;
- }
- }
- }
- }
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
- &::v-deep .cell {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
-
- &::v-deep .el-table__empty-block {
- // background-color: #09152f;
- }
-
- &::v-deep .el-table__empty-block {
- color: #4b9bb7;
- }
-
- .operation {
- display: flex;
- color: var(--operation-color);
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
-
- .el-table::v-deep .warning-row {
- // background: #06122c;
- }
-
- .el-table::v-deep .success-row {
- // background: #071f39;
- }
-
- &::v-deep .switchStyle .el-switch__label {
- position: absolute;
- display: none;
- color: #fff;
- }
-
- &::v-deep .el-switch__core {
- background-color: rgba(166, 166, 166, 1);
- }
-
- &::v-deep .switchStyle .el-switch__label--left {
- z-index: 9;
- left: 20px;
- }
-
- &::v-deep .switchStyle .el-switch__label--right {
- z-index: 9;
- left: 4px;
- }
-
- &::v-deep .switchStyle .el-switch__label.is-active {
- display: block;
- }
-
- &::v-deep .switchStyle.el-switch .el-switch__core,
- &::v-deep .el-switch .el-switch__label {
- width: 50px !important;
- }
- }
-
- .line {
- padding: 0 5px;
- }
-
- &::v-deep .el-dialog__header,
- &::v-deep .el-dialog__body {
- // background-color: #06122c;
- }
-
- &::v-deep .el-dialog__header {
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
display: flex;
align-items: center;
- background-color: #fff;
- padding: 20px;
- line-height: 60px;
+ margin-top: -2px;
+
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
+ }
+ }
+
+ .addBtn {
+ //background-color: #eb5d01;
+ border: none;
+ //border-radius: 20px;
+ padding: 12px 30px;
+ }
+ }
+ }
+
+ &::v-deep .el-input__inner {
+ // background-color: #09152f;
+ //border: 1px solid #17324c;
+ }
+
+ main {
+ // background-color: #09152f;
+ margin-top: 20px;
+ padding-bottom: 50px;
+ border: 1px solid #fff;
+
+ .btn span:hover {
+ cursor: pointer;
}
- &::v-deep .el-dialog__title {
+ .type-nav {
+ display: flex;
+ line-height: 40px;
+ margin-left: 30px;
+ padding-top: 10px;
+ margin-bottom: 10px;
+
+ .type-item {
+ width: 80px;
+ text-align: center;
+
+ &:hover {
+ cursor: pointer;
+ }
+ }
+
+ .is-active {
+ // background-color: #070f22;
+ border-radius: 4px;
+ color: #2f54eb;
+ }
+ }
+
+ .tools {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0;
+
+ .funs {
+ display: flex;
+
+ .funs-sp {
+ border: 1px solid #dcdfe6;
+ }
+ .funs-first {
+ margin-left: 0 !important;
+ }
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
+ border: 1px solid #dcdfe6;
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
+
+ .el-select {
+ width: 120px;
+ }
+
+ &::v-deep .el-input__inner {
+ border: none;
+ // background-color: #09152f;
+ }
+
+ &:hover {
+ border: 1px solid #4b9bb7;
+ }
+
+ &:hover .el-checkbox {
+ color: #4b9bb7;
+ }
+ }
+ }
+
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
+
+ .el-pagination {
+ &::v-deep li,
+ &::v-deep .btn-prev,
+ &::v-deep .btn-next {
+ // background-color: #071f39;
+ color: #4b9bb7;
+ }
+
+ &::v-deep .active {
+ background-color: #409eff;
+ color: #fff;
+ }
+ }
+ }
+ }
+
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
+
+ &::v-deep .cell {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ }
+
+ &::v-deep .el-table__empty-block {
+ // background-color: #09152f;
+ }
+
+ &::v-deep .el-table__empty-block {
color: #4b9bb7;
+ }
+
+ .operation {
+ display: flex;
+ color: var(--operation-color);
+ .line {
+ padding: 0 5px;
+ }
+
+ span:hover {
+ cursor: pointer;
+ }
+ }
}
- &::v-deep .el-dialog__close {
- width: 20px;
- height: 20px;
- // color: #fff;
+ .el-table::v-deep .warning-row {
+ // background: #06122c;
}
- &::v-deep .el-dialog__body {
- padding: 0;
+ .el-table::v-deep .success-row {
+ // background: #071f39;
}
+
+ &::v-deep .switchStyle .el-switch__label {
+ position: absolute;
+ display: none;
+ color: #fff;
+ }
+
+ &::v-deep .el-switch__core {
+ background-color: rgba(166, 166, 166, 1);
+ }
+
+ &::v-deep .switchStyle .el-switch__label--left {
+ z-index: 9;
+ left: 20px;
+ }
+
+ &::v-deep .switchStyle .el-switch__label--right {
+ z-index: 9;
+ left: 4px;
+ }
+
+ &::v-deep .switchStyle .el-switch__label.is-active {
+ display: block;
+ }
+
+ &::v-deep .switchStyle.el-switch .el-switch__core,
+ &::v-deep .el-switch .el-switch__label {
+ width: 50px !important;
+ }
+ }
+
+ .line {
+ padding: 0 5px;
+ }
+
+ &::v-deep .el-dialog__header,
+ &::v-deep .el-dialog__body {
+ // background-color: #06122c;
+ }
+
+ &::v-deep .el-dialog__header {
+ display: flex;
+ align-items: center;
+ background-color: #fff;
+ padding: 20px;
+ line-height: 60px;
+ }
+
+ &::v-deep .el-dialog__title {
+ color: #4b9bb7;
+ }
+
+ &::v-deep .el-dialog__close {
+ width: 20px;
+ height: 20px;
+ // color: #fff;
+ }
+
+ &::v-deep .el-dialog__body {
+ padding: 0;
+ }
}
</style>
diff --git a/src/views/operate/disposal/casepool/dispatch/index.vue b/src/views/operate/disposal/casepool/dispatch/index.vue
index 3e9cc72..539b6f7 100644
--- a/src/views/operate/disposal/casepool/dispatch/index.vue
+++ b/src/views/operate/disposal/casepool/dispatch/index.vue
@@ -1,556 +1,645 @@
<template>
- <div class="userList">
- <header>
- <div class="headerContent">
- <div class="search">
- <span>绛涢�夋潯浠�:</span>
- <div class="option">
- <el-select v-model="resource" 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 class="userList">
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <span>绛涢�夋潯浠�:</span>
+ <div class="option">
+ <el-select v-model="resource" 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>
+ </header>
+ <main>
+ <div class="mainContent">
+ <div class="type-nav">
+ <div
+ @click="changeTypeChecked(index)"
+ v-for="(item, index) in typeList"
+ :key="item.name"
+ :class="[item.checked ? 'is-active' : '', 'type-item']"
+ >
+ {{ item.name }}
+ </div>
+ </div>
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ // background:'#06122c',
+ background: '#F5F5F5',
+ '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="JumpView(scope.row)">{{
+ scope.row.code
+ }}</el-link>
+ </template>
+ </el-table-column>
+ <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
+ <template slot-scope="scope">
+ <span>{{
+ scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛宸℃煡"
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'category' : 'category'"
+ :label="mystatus === 1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'"
+ :min-width="mystatus === 1 ? '10' : '20'"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'type' : 'site'"
+ :label="mystatus === 1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'actionCause' : 'communityId'"
+ :label="mystatus === 1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'site' : ''"
+ :label="mystatus === 1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
+ :min-width="mystatus === 1 ? '10' : '20'"
+ >
+ <template slot-scope="scope">
+ <div v-if="mystatus === 2">
+ <span>{{
+ scope.row.buildingLength +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingWidth +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingHigh +
+ "绫�"
+ }}</span>
+ </div>
+ <div v-else>{{ scope.row.site }}</div>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'street' : 'buildingArea'"
+ :label="mystatus === 1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'"
+ min-width="12"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="alarmTime"
+ label="鎶ヨ鏃堕棿"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ <template slot-scope="scope">
+ <span>{{ filterTime(scope.row.alarmTime) }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'continueTime' : 'materials'"
+ :label="mystatus === 1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'"
+ min-width="12"
+ >
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="15">
+ <template slot-scope="scope">
+ <div class="operation">
+ <div class="btn">
+ <span @click="openDialog(scope.row)">涓婁紶澶勭疆缁撴灉</span>
</div>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 璇︽儏椤靛睍绀� -->
+ <el-dialog
+ :visible.sync="dialogView"
+ title="鍩虹淇℃伅(浜哄伐)"
+ v-if="dialogView"
+ :before-close="handleClose"
+ >
+ <MyDetail :info="info" v-if="mystatus === 1"></MyDetail>
+ <MyIllDetail :info="info" v-else></MyIllDetail>
+ </el-dialog>
+ <!-- 涓婁紶椤甸潰 -->
+ <el-dialog
+ :visible.sync="dialogUpload"
+ title="涓婁紶澶勭疆缁撴灉"
+ v-if="dialogUpload"
+ :before-close="handleClose"
+ >
+ <uploadVio
+ v-if="mystatus === 1"
+ :imageResourceId="imageResourceId"
+ :caseId="caseId"
+ :mycode="caseCode"
+ :vioData="vioData"
+ @closeDialog="closeDialog"
+ ></uploadVio>
+ <uploadIll
+ v-else
+ :caseId="caseId"
+ :mycode="caseCode"
+ @closeDialog="closeDialog"
+ :illData="illData"
+ >
+ </uploadIll>
+ </el-dialog>
+ <!-- tools -->
+ <div class="tools">
+ <div class="funs">
+ <div class="funsItem funs-sp">
+ <el-checkbox v-model="all" @change="selectAll()"
+ >鍏ㄩ��</el-checkbox
+ >
</div>
- </header>
- <main>
- <div class="mainContent">
- <div class="type-nav">
- <div @click="changeTypeChecked(index)" v-for="(item, index) in typeList" :key="item.name"
- :class="[item.checked ? 'is-active' : '', 'type-item']">{{ item.name }}</div>
- </div>
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable" :header-cell-style="{
- // background:'#06122c',
- 'background':'#F5F5F5',
- '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="JumpView(scope.row)">{{ scope.row.code }}</el-link>
- </template>
- </el-table-column>
- <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
- <template slot-scope="scope">
- <span>{{ scope.row.eventSource === 2 ? '浜哄伐涓婃姤' : '瑙嗛宸℃煡' }}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'category' : 'category'"
- :label="mystatus === 1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'" :min-width="mystatus === 1 ? '10' : '20'">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'type' : 'site'" :label="mystatus === 1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
- min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'actionCause' : 'communityId'"
- :label="mystatus === 1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'" min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'site' : ''" :label="mystatus === 1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
- :min-width="mystatus === 1 ? '10' : '20'">
- <template slot-scope="scope">
- <div v-if="mystatus === 2"><span>{{
- scope.row.buildingLength + '绫�' + '銆�' +
- scope.row.buildingWidth + '绫�' + '銆�' + scope.row.buildingHigh + '绫�'
- }}</span></div>
- <div v-else>{{ scope.row.site }}</div>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'street' : 'buildingArea'"
- :label="mystatus === 1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'" min-width="12">
- </el-table-column>
- <el-table-column prop="alarmTime" label="鎶ヨ鏃堕棿" min-width="15" v-if="mystatus === 1">
- <template slot-scope="scope">
- <span>{{ filterTime(scope.row.alarmTime) }}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'continueTime' : 'materials'"
- :label="mystatus === 1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'" min-width="12">
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="15">
- <template slot-scope="scope">
- <div class="operation">
- <div class="btn">
- <span @click="openDialog(scope.row)">涓婁紶澶勭疆缁撴灉</span>
- </div>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 璇︽儏椤靛睍绀� -->
- <el-dialog :visible.sync="dialogView" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogView" :before-close="handleClose">
- <MyDetail :info=info v-if="mystatus === 1"></MyDetail>
- <MyIllDetail :info=info v-else></MyIllDetail>
- </el-dialog>
- <!-- 涓婁紶椤甸潰 -->
- <el-dialog :visible.sync="dialogUpload" title="涓婁紶澶勭疆缁撴灉" v-if="dialogUpload" :before-close="handleClose">
- <uploadVio v-if="mystatus === 1" :imageResourceId="imageResourceId" :caseId="caseId"
- :mycode="caseCode" :vioData="vioData" @closeDialog="closeDialog"></uploadVio>
- <uploadIll v-else :caseId="caseId" :mycode="caseCode" @closeDialog="closeDialog" :illData="illData">
- </uploadIll>
- </el-dialog>
- <!-- tools -->
- <div class="tools">
- <div class="funs">
- <div class="funsItem funs-sp">
- <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
- </div>
- <div class="funsItem funs-sp">
- <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 :current-page="currentPage" layout="prev, pager, next"
- :total="totalNum" :page-size="pageSize" @current-change="changeCurrentPage">
- </el-pagination>
- </div>
- </div>
+ <div class="funsItem funs-sp">
+ <el-checkbox v-model="unsame" @change="disSame(tableData)"
+ >鍙嶉��</el-checkbox
+ >
</div>
- </main>
- </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
+ :current-page="currentPage"
+ layout="prev, pager, next"
+ :total="totalNum"
+ :page-size="pageSize"
+ @current-change="changeCurrentPage"
+ >
+ </el-pagination>
+ </div>
+ </div>
+ </div>
+ </main>
+ </div>
</template>
<script>
-import uploadVio from './updateUser/uploadResult/vio'
-import uploadIll from "./updateUser/uploadResult/ill"
-import MyDetail from '@/components/detail'
-import MyIllDetail from '@/components/illdetail'
+import uploadVio from "./updateUser/uploadResult/vio";
+import uploadIll from "./updateUser/uploadResult/ill";
+import MyDetail from "@/components/detail";
+import MyIllDetail from "@/components/illdetail";
import casequery from "@/api/operate/basecase";
-import helper from '@/utils/mydate'
+import helper from "@/utils/mydate";
import basecase from "@/api/operate/basecase";
import { RESOURCE_OPTIONS } from "@/utils/helper";
export default {
- components: {
- uploadVio, uploadIll, MyDetail, MyIllDetail
+ components: {
+ uploadVio,
+ uploadIll,
+ MyDetail,
+ MyIllDetail,
+ },
+ data() {
+ return {
+ tableData: [],
+ imageResourceId: null,
+ context: "",
+ dialogUpload: false,
+ dialogView: false,
+ info: {},
+ totalNum: null,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ preMyIdx: 0,
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ // {
+ // value: 1,
+ // label: '鎵归噺鍚敤',
+ // },
+ // {
+ // value: 2,
+ // label: '鎵归噺绂佺敤',
+ // },
+ {
+ value: 3,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ typeList: [
+ {
+ name: "杩濊",
+ value: 1,
+ checked: true,
+ },
+ {
+ name: "杩濆缓",
+ value: 2,
+ checked: false,
+ },
+ ],
+ statusArr: [],
+ mystatus: 1,
+ caseId: "",
+ caseCode: null,
+ vioData: null,
+ illData: null,
+ resource: null,
+ resourceOptions: RESOURCE_OPTIONS,
+ };
+ },
+ created() {
+ this.statusArr[0] = 6;
+ this.typeList.forEach((item) => {
+ if (item.checked) {
+ this.statusArr[1] = item.value;
+ }
+ });
+ this.getUserList();
+ },
+ methods: {
+ // 椤堕儴涓嬫媺妗�
+ setMystatus(value) {
+ this.resource = value;
+ this.getUserList();
},
- data() {
- return {
- tableData: [],
- imageResourceId: null,
- context: "",
- dialogUpload: false,
- dialogView: false,
- info: {},
- totalNum: null,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- preMyIdx: 0,
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- // {
- // value: 1,
- // label: '鎵归噺鍚敤',
- // },
- // {
- // value: 2,
- // label: '鎵归噺绂佺敤',
- // },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: [],
- typeList: [
- {
- name: '杩濊',
- value: 1,
- checked: true
- },
- {
- name: '杩濆缓',
- value: 2,
- checked: false,
- },
- ],
- statusArr: [],
- mystatus: 1,
- caseId: '',
- caseCode: null,
- vioData: null,
- illData: null,
- resource: null,
- resourceOptions: RESOURCE_OPTIONS
- }
- },
- created() {
- this.statusArr[0] = 6;
- this.typeList.forEach(item => {
- if (item.checked) {
- this.statusArr[1] = item.value;
- }
- })
+ // 鎵归噺鍒犻櫎
+ mulDelete(idArr) {
+ this.$axios({
+ method: "delete",
+ url: "sccg/base_case/batch_case_delete?ids=" + idArr,
+ }).then((res) => {
this.getUserList();
+ this.$message({
+ message: res.message,
+ type: res.code === 200 ? "success" : "warning",
+ });
+ });
},
- methods: {
- // 椤堕儴涓嬫媺妗�
- setMystatus(value) {
- this.resource = value;
- this.getUserList();
- },
- // 鎵归噺鍒犻櫎
- mulDelete(idArr) {
- this.$axios({
- method: 'delete',
- url: 'sccg/base_case/batch_case_delete?ids=' + idArr,
- }).then(res => {
- this.getUserList();
- this.$message({
- message: res.message,
- type: res.code === 200 ? 'success' : 'warning'
- })
- })
- },
- // 鎵ц涓嬫媺妗嗘搷浣�
- selectChange(list) {
- if (this.tempList.length !== 0) {
- if (list === 3) {
- this.preMyIdx = list;
- this.mulDelete(this.tempList);
- }
- } else {
- this.myIdx = this.preMyIdx;
- this.$message({
- type: 'warning',
- message: '鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁',
- })
- }
- },
- // 鐩戝惉琛ㄦ牸
- tableChange(list) {
- this.tempList = [];
- list.forEach(item => {
- this.tempList.push(item.id);
- })
- this.all = list.length === this.tableData.length;
- },
- // 鍏ㄩ��
- selectAll() {
- this.$refs.multipleTable.toggleAllSelection();
- },
- // 鍙嶉��
- disSame(list) {
- list.forEach(row => {
- this.$refs.multipleTable.toggleRowSelection(row)
- })
- },
- // 鍒犻櫎鍗曟潯鏁版嵁
- handleDelete({ number }) {
- this.$confirm('纭鍒犻櫎锛�')
- .then(_ => {
- this.$axios({
- method: 'delete',
- url: `sccg/violations/delete?id=${number}`,
- })
- .then(res => {
- this.$message({
- type: res.code === 200 ? 'success' : 'warning',
- message: res.message
- })
-
- this.getUserList();
- })
- })
- .catch(_ => { });
- },
- // 鑾峰彇鐢ㄦ埛鍒楄〃
- getUserList() {
- const params = {
- current: this.currentPage,
- state: this.statusArr[0] ?? null,
- size: this.pageSize,
- resource: this.resource,
- type: this.statusArr[1] ?? null
- }
- basecase.baseCasePoolList(params)
- .then(({ records, total }) => {
- this.tableData = records;
- this.totalNum = total;
- })
- .catch(err => this.$message.error(err))
- },
- // 鏇存敼杩濊/杩濆缓
- changeTypeChecked(idx) {
- this.typeList.forEach((item, index) => {
- item.checked = index === idx;
- })
- this.mystatus = idx + 1;
- this.statusArr[1] = this.typeList[idx].value;
- this.getUserList();
- },
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- },
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getUserList();
- },
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogUpload = false;
- done();
- })
- .catch(_ => { });
- },
- async JumpView(data) {
- await this.getEventInfo(data.code);
- },
- // 鑾峰彇妗堜欢淇℃伅
- async getEventInfo(code) {
- await this.$axios({
- method: 'get',
- url: `sccg/base_case/baseCaseDetail/${code}`
- })
- .then(res => {
- this.info = res.data;
- this.dialogView = true;
- })
- },
- async openDialog(data) {
- await casequery.getBaseCaseDetail(data.code)
- .then(({ baseCase, currentSitVo, filesPictureVo, handlePassVo }) => {
- this.vioData = currentSitVo;
- this.illData = currentSitVo;
- this.imageResourceId = filesPictureVo.imageResources[0]?.id;
- })
- .catch(err => this.$message.error(err))
- this.dialogUpload = true;
- this.caseId = data.id;
- this.caseCode = data.code;
- },
- // 鍏抽棴涓婁紶鐣岄潰
- closeDialog() {
- this.dialogUpload = false;
- this.getUserList();
- },
- // 澶勭悊鏃堕棿
- filterTime(time) {
- return helper(time);
+ // 鎵ц涓嬫媺妗嗘搷浣�
+ selectChange(list) {
+ if (this.tempList.length !== 0) {
+ if (list === 3) {
+ this.preMyIdx = list;
+ this.mulDelete(this.tempList);
}
- }
-}
+ } else {
+ this.myIdx = this.preMyIdx;
+ this.$message({
+ type: "warning",
+ message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+ });
+ }
+ },
+ // 鐩戝惉琛ㄦ牸
+ tableChange(list) {
+ this.tempList = [];
+ list.forEach((item) => {
+ this.tempList.push(item.id);
+ });
+ this.all = list.length === this.tableData.length;
+ },
+ // 鍏ㄩ��
+ selectAll() {
+ this.$refs.multipleTable.toggleAllSelection();
+ },
+ // 鍙嶉��
+ disSame(list) {
+ list.forEach((row) => {
+ this.$refs.multipleTable.toggleRowSelection(row);
+ });
+ },
+ // 鍒犻櫎鍗曟潯鏁版嵁
+ handleDelete({ number }) {
+ this.$confirm("纭鍒犻櫎锛�")
+ .then((_) => {
+ this.$axios({
+ method: "delete",
+ url: `sccg/violations/delete?id=${number}`,
+ }).then((res) => {
+ this.$message({
+ type: res.code === 200 ? "success" : "warning",
+ message: res.message,
+ });
+
+ this.getUserList();
+ });
+ })
+ .catch((_) => {});
+ },
+ // 鑾峰彇鐢ㄦ埛鍒楄〃
+ getUserList() {
+ const params = {
+ current: this.currentPage,
+ state: this.statusArr[0] ?? null,
+ size: this.pageSize,
+ resource: this.resource,
+ type: this.statusArr[1] ?? null,
+ };
+ basecase
+ .baseCasePoolList(params)
+ .then(({ records, total }) => {
+ this.tableData = records;
+ this.totalNum = total;
+ })
+ .catch((err) => this.$message.error(err));
+ },
+ // 鏇存敼杩濊/杩濆缓
+ changeTypeChecked(idx) {
+ this.typeList.forEach((item, index) => {
+ item.checked = index === idx;
+ });
+ this.mystatus = idx + 1;
+ this.statusArr[1] = this.typeList[idx].value;
+ this.getUserList();
+ },
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 === 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ },
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogUpload = false;
+ done();
+ })
+ .catch((_) => {});
+ },
+ async JumpView(data) {
+ await this.getEventInfo(data.code);
+ },
+ // 鑾峰彇妗堜欢淇℃伅
+ async getEventInfo(code) {
+ await this.$axios({
+ method: "get",
+ url: `sccg/base_case/baseCaseDetail/${code}`,
+ }).then((res) => {
+ this.info = res.data;
+ this.dialogView = true;
+ });
+ },
+ async openDialog(data) {
+ await casequery
+ .getBaseCaseDetail(data.code)
+ .then(({ baseCase, currentSitVo, filesPictureVo, handlePassVo }) => {
+ this.vioData = currentSitVo;
+ this.illData = currentSitVo;
+ this.imageResourceId = filesPictureVo.imageResources[0]?.id;
+ })
+ .catch((err) => this.$message.error(err));
+ this.dialogUpload = true;
+ this.caseId = data.id;
+ this.caseCode = data.code;
+ },
+ // 鍏抽棴涓婁紶鐣岄潰
+ closeDialog() {
+ this.dialogUpload = false;
+ this.getUserList();
+ },
+ // 澶勭悊鏃堕棿
+ filterTime(time) {
+ return helper(time);
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- header {
- // background-color: #09152f;
+ header {
+ // background-color: #09152f;
- .headerContent {
- padding: 0;
- display: flex;
- line-height: 100px;
- justify-content: space-between;
- align-items: center;
+ .headerContent {
+ padding: 0;
+ display: flex;
+ line-height: 100px;
+ justify-content: space-between;
+ align-items: center;
- .search {
- display: flex;
- justify-content: flex-start;
+ .search {
+ display: flex;
+ justify-content: flex-start;
- span {
- flex: 1;
- }
-
- .el-input {
- flex: 2;
- color: #1d3f57;
-
- &::v-deep .el-input__inner {
- background-color: #fff;
- //border: 1px solid #17324c;
- }
- }
-
- }
-
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
-
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
-
- .addBtn {
- background-color: #eb5d01;
- border: none;
- border-radius: 20px;
- padding: 12px 30px;
- }
+ span {
+ flex: 1;
}
+
+ .el-input {
+ flex: 2;
+ color: #1d3f57;
+
+ &::v-deep .el-input__inner {
+ background-color: #fff;
+ //border: 1px solid #17324c;
+ }
+ }
+ }
+
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
+ display: flex;
+ align-items: center;
+ margin-top: -2px;
+
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
+ }
+ }
+
+ .addBtn {
+ background-color: #eb5d01;
+ border: none;
+ border-radius: 20px;
+ padding: 12px 30px;
+ }
+ }
+ }
+
+ &::v-deep .el-input__inner {
+ // background-color: #09152f;
+ // border: 1px solid #17324c;
+ }
+
+ main {
+ // background-color: #09152f;
+ margin-top: 20px;
+ padding-bottom: 50px;
+
+ .btn span:hover {
+ cursor: pointer;
}
- &::v-deep .el-input__inner {
- // background-color: #09152f;
- // border: 1px solid #17324c;
+ .type-nav {
+ display: flex;
+ line-height: 40px;
+ margin-left: 30px;
+ padding-top: 10px;
+ margin-bottom: 10px;
+
+ .type-item {
+ width: 80px;
+ text-align: center;
+
+ &:hover {
+ cursor: pointer;
+ }
+ }
+
+ .is-active {
+ // background-color: #070f22;
+ border-radius: 4px;
+ color: #333;
+ font-size: 500;
+ }
}
- main {
- // background-color: #09152f;
- margin-top: 20px;
- padding-bottom: 50px;
+ .tools {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ //padding: 0 20px;
- .btn span:hover {
- cursor: pointer;
+ .funs-sp {
+ border: 1px solid #dcdfe6;
+ }
+
+ .funs {
+ display: flex;
+
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
+
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
+
+ .el-select {
+ width: 120px;
+ }
+
+ &:hover {
+ border: 1px solid #4b9bb7;
+ }
+
+ &:hover .el-checkbox {
+ color: #4b9bb7;
+ }
}
+ }
- .type-nav {
- display: flex;
- line-height: 40px;
- margin-left: 30px;
- padding-top: 10px;
- margin-bottom: 10px;
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
- .type-item {
- width: 80px;
- text-align: center;
+ .el-pagination {
+ &::v-deep li,
+ &::v-deep .btn-prev,
+ &::v-deep .btn-next {
+ // background-color: #071f39;
+ color: #4b9bb7;
+ }
- &:hover {
- cursor: pointer;
- }
- }
-
- .is-active {
- // background-color: #070f22;
- border-radius: 4px;
- color: #333;
- font-size: 500;
- }
+ &::v-deep .active {
+ background-color: #409eff;
+ color: #fff;
+ }
}
-
- .tools {
- display: flex;
- justify-content: space-between;
- align-items: center;
- //padding: 0 20px;
-
- .funs-sp {
- border: 1px solid #DCDFE6;
- }
-
- .funs {
- display: flex;
-
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
-
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- &:hover {
- border: 1px solid #4b9bb7;
- }
-
- &:hover .el-checkbox {
- color: #4b9bb7;
- }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- &::v-deep li,
- &::v-deep .btn-prev,
- &::v-deep .btn-next {
- // background-color: #071f39;
- color: #4b9bb7;
- }
-
- &::v-deep .active {
- background-color: #409eff;
- color: #fff;
- }
- }
- }
- }
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
- &::v-deep .cell {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
-
- .el-checkbox {
- // display: none;
- }
-
- }
-
-
- .operation {
- display: flex;
- color: var(--operation-color);
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
+ }
}
- .line {
- padding: 0 5px;
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
+
+ &::v-deep .cell {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+
+ .el-checkbox {
+ // display: none;
+ }
+ }
+
+ .operation {
+ display: flex;
+ color: var(--operation-color);
+ .line {
+ padding: 0 5px;
+ }
+
+ span:hover {
+ cursor: pointer;
+ }
+ }
}
+ }
+
+ .line {
+ padding: 0 5px;
+ }
}
</style>
diff --git a/src/views/operate/disposal/casepool/escalation/index.vue b/src/views/operate/disposal/casepool/escalation/index.vue
index 455ff3c..33d9299 100644
--- a/src/views/operate/disposal/casepool/escalation/index.vue
+++ b/src/views/operate/disposal/casepool/escalation/index.vue
@@ -403,7 +403,7 @@
.userList {
text-align: left;
padding: 10px 20px;
- color: #4b9bb7;
+ // color: #4b9bb7;
border: 1px solid #ccc;
header {
background-color: white;
diff --git a/src/views/operate/disposal/casepool/learn/index.vue b/src/views/operate/disposal/casepool/learn/index.vue
index ea9733c..436fab7 100644
--- a/src/views/operate/disposal/casepool/learn/index.vue
+++ b/src/views/operate/disposal/casepool/learn/index.vue
@@ -1,558 +1,640 @@
<template>
- <div class="userList">
- <header>
- <div class="headerContent">
- <div class="search">
- <span>绛涢�夋潯浠�:</span>
- <div class="option">
- <el-select v-model="resource" placeholder="杩濊" @change="setMystatus">
- <el-option v-for="item in resourceList" :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 class="userList">
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <span>绛涢�夋潯浠�:</span>
+ <div class="option">
+ <el-select
+ v-model="resource"
+ placeholder="杩濊"
+ @change="setMystatus"
+ >
+ <el-option
+ v-for="item in resourceList"
+ :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>
+ </header>
+ <main>
+ <div class="mainContent">
+ <div class="type-nav">
+ <div
+ @click="changeTypeChecked(index)"
+ v-for="(item, index) in typeList"
+ :key="item.name"
+ :class="[item.checked ? 'is-active' : '', 'type-item']"
+ >
+ {{ item.name }}
+ </div>
+ </div>
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ background: '#F5F5F5',
+ // background:'#06122c',
+ '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="JumpView(scope.row)">{{
+ scope.row.code
+ }}</el-link>
+ </template>
+ </el-table-column>
+ <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="7">
+ <template slot-scope="scope">
+ <span>{{
+ scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛宸℃煡"
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'category' : 'category'"
+ :label="mystatus === 1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'"
+ :min-width="mystatus === 1 ? '10' : '20'"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'type' : 'site'"
+ :label="mystatus === 1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'actionCause' : 'communityId'"
+ :label="mystatus === 1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'site' : ''"
+ :label="mystatus === 1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
+ :min-width="mystatus === 1 ? '10' : '20'"
+ >
+ <template slot-scope="scope">
+ <div v-if="mystatus === 2">
+ <span>{{
+ scope.row.buildingLength +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingWidth +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingHigh +
+ "绫�"
+ }}</span>
+ </div>
+ <div v-else>{{ scope.row.site }}</div>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'street' : 'buildingArea'"
+ :label="mystatus === 1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="alarmTime"
+ label="鎶ヨ鏃堕棿"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ <template slot-scope="scope">
+ <span>{{ filterTime(scope.row.alarmTime) }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'continueTime' : 'materials'"
+ :label="mystatus === 1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
+ <template slot-scope="scope">
+ <div class="btn">
+ <span @click="handleReset(scope.row)">閲嶆柊澶勭疆</span>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 璇︽儏椤靛睍绀� -->
+ <el-dialog
+ :visible.sync="dialogView"
+ width="60%"
+ title="鍩虹淇℃伅(浜哄伐)"
+ v-if="dialogView"
+ :before-close="handleClose"
+ >
+ <MyDetail :info="info" v-if="mystatus === 1"></MyDetail>
+ <MyIllDetail :info="info" v-else></MyIllDetail>
+ </el-dialog>
+ <!-- 涓婁紶椤甸潰 -->
+ <el-dialog
+ :visible.sync="dialogUpload"
+ width="60%"
+ title="涓婁紶澶勭疆缁撴灉"
+ v-if="dialogUpload"
+ :before-close="handleClose"
+ >
+ <uploadVio
+ v-if="mystatus === 0"
+ :caseId="caseId"
+ @closeDialog="closeDialog"
+ ></uploadVio>
+ <uploadIll
+ v-else
+ :caseId="caseId"
+ @closeDialog="closeDialog"
+ ></uploadIll>
+ </el-dialog>
+ <!-- tools -->
+ <div class="tools">
+ <div class="funs">
+ <div class="funsItem funs-sp funs-first">
+ <el-checkbox v-model="all" @change="selectAll()"
+ >鍏ㄩ��</el-checkbox
+ >
</div>
- </header>
- <main>
- <div class="mainContent">
- <div class="type-nav">
- <div @click="changeTypeChecked(index)" v-for="(item,index) in typeList" :key="item.name"
- :class="[item.checked ? 'is-active':'','type-item']">{{item.name}}</div>
- </div>
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable"
- :header-cell-style="{
- 'background':'#F5F5F5',
- // background:'#06122c',
- '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="JumpView(scope.row)">{{scope.row.code}}</el-link>
- </template>
- </el-table-column>
- <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="7">
- <template slot-scope="scope">
- <span>{{ scope.row.eventSource === 2 ? '浜哄伐涓婃姤' : '瑙嗛宸℃煡' }}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'category' :'category'"
- :label="mystatus===1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'" :min-width="mystatus===1?'10':'20'">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'type' :'site'" :label="mystatus===1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
- min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'actionCause' :'communityId'"
- :label="mystatus===1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'" min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'site' :''" :label="mystatus===1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
- :min-width="mystatus===1?'10' :'20' ">
- <template slot-scope="scope">
- <div v-if="mystatus ===2"><span>{{scope.row.buildingLength+'绫�'+'銆�'+
- scope.row.buildingWidth+'绫�'+'銆�'+scope.row.buildingHigh+'绫�'}}</span></div>
- <div v-else>{{scope.row.site}}</div>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'street' :'buildingArea'"
- :label="mystatus===1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'" min-width="10">
- </el-table-column>
- <el-table-column prop="alarmTime" label="鎶ヨ鏃堕棿" min-width="15" v-if="mystatus===1">
- <template slot-scope="scope">
- <span>{{filterTime(scope.row.alarmTime)}}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'continueTime' :'materials'"
- :label="mystatus===1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'" min-width="10">
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
- <template slot-scope="scope">
- <div class="btn">
- <span @click="handleReset(scope.row)">閲嶆柊澶勭疆</span>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 璇︽儏椤靛睍绀� -->
- <el-dialog :visible.sync="dialogView" width="60%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogView"
- :before-close="handleClose">
- <MyDetail :info=info v-if="mystatus === 1"></MyDetail>
- <MyIllDetail :info=info v-else></MyIllDetail>
- </el-dialog>
- <!-- 涓婁紶椤甸潰 -->
- <el-dialog :visible.sync="dialogUpload" width="60%" title="涓婁紶澶勭疆缁撴灉" v-if="dialogUpload"
- :before-close="handleClose">
- <uploadVio v-if="mystatus === 0" :caseId="caseId" @closeDialog="closeDialog"></uploadVio>
- <uploadIll v-else :caseId="caseId" @closeDialog="closeDialog"></uploadIll>
- </el-dialog>
- <!-- tools -->
- <div class="tools">
- <div class="funs">
- <div class="funsItem funs-sp funs-first">
- <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
- </div>
- <div class="funsItem funs-sp">
- <el-checkbox v-model="unsame" @change="disSame(tableData)">鍙嶉��</el-checkbox>
- </div>
- <!-- <div class="funsItem">
+ <div class="funsItem funs-sp">
+ <el-checkbox v-model="unsame" @change="disSame(tableData)"
+ >鍙嶉��</el-checkbox
+ >
+ </div>
+ <!-- <div class="funsItem">
<el-select v-model="myIdx" placeholder="鎵归噺鎿嶄綔" @change="selectChange" disabled>
<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"
- @prev-click="handlePrev" @next-click="handleNext">
- </el-pagination>
- </div>
- </div>
- </div>
- </main>
- </div>
+ </div>
+ <div class="pagination">
+ <el-pagination
+ background
+ :current-page="currentPage"
+ layout="prev, pager, next"
+ :total="totalNum"
+ :page-size="pageSize"
+ @current-change="changeCurrentPage"
+ @prev-click="handlePrev"
+ @next-click="handleNext"
+ >
+ </el-pagination>
+ </div>
+ </div>
+ </div>
+ </main>
+ </div>
</template>
<script>
-import uploadVio from './updateUser/uploadResult/vio'
-import uploadIll from "./updateUser/uploadResult/ill"
-import MyDetail from '@/components/detail'
-import MyIllDetail from '@/components/illdetail'
-import helper from '@/utils/mydate'
+import uploadVio from "./updateUser/uploadResult/vio";
+import uploadIll from "./updateUser/uploadResult/ill";
+import MyDetail from "@/components/detail";
+import MyIllDetail from "@/components/illdetail";
+import helper from "@/utils/mydate";
import { RESOURCE_OPTIONS } from "@/utils/helper";
import basecase from "@/api/operate/basecase";
export default {
- components: {
- uploadVio, uploadIll, MyDetail, MyIllDetail
+ components: {
+ uploadVio,
+ uploadIll,
+ MyDetail,
+ MyIllDetail,
+ },
+ data() {
+ return {
+ tableData: [],
+ context: "",
+ dialogUpload: false,
+ dialogView: false,
+ info: {},
+ totalNum: null,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ preMyIdx: 0,
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ {
+ value: 1,
+ label: "鎵归噺鍚敤",
+ },
+ {
+ value: 2,
+ label: "鎵归噺绂佺敤",
+ },
+ {
+ value: 3,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ typeList: [
+ {
+ name: "杩濊",
+ value: 1,
+ checked: true,
+ },
+ {
+ name: "杩濆缓",
+ value: 2,
+ checked: false,
+ },
+ ],
+ statusArr: [],
+ mystatus: 1,
+ caseId: "",
+ resource: null,
+ resourceList: RESOURCE_OPTIONS,
+ };
+ },
+ created() {
+ this.statusArr[0] = 3;
+ this.typeList.forEach((item) => {
+ if (item.checked) {
+ this.statusArr[1] = item.value;
+ }
+ });
+ this.getUserList();
+ },
+ methods: {
+ // 椤堕儴涓嬫媺妗�
+ setMystatus(value) {
+ this.resource = value;
+ this.getUserList();
},
- data() {
- return {
- tableData: [],
- context: "",
- dialogUpload: false,
- dialogView: false,
- info: {},
- totalNum: null,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- preMyIdx: 0,
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- {
- value: 1,
- label: '鎵归噺鍚敤',
- },
- {
- value: 2,
- label: '鎵归噺绂佺敤',
- },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: [],
- typeList: [
- {
- name: '杩濊',
- value: 1,
- checked: true
- },
- {
- name: '杩濆缓',
- value: 2,
- checked: false,
- },
- ],
- statusArr: [],
- mystatus: 1,
- caseId: '',
- resource: null,
- resourceList: RESOURCE_OPTIONS
- }
- },
- created() {
- this.statusArr[0] = 3;
- this.typeList.forEach(item => {
- if (item.checked) {
- this.statusArr[1] = item.value;
- }
- })
+ // 鎵归噺鍒犻櫎
+ mulDelete(idArr) {
+ this.$axios({
+ method: "delete",
+ url: "sccg/violations/batch_delete?ids=" + idArr,
+ }).then((res) => {
this.getUserList();
+ this.$message({
+ message: res.message,
+ type: res.code === 200 ? "success" : "warning",
+ });
+ });
},
- methods: {
- // 椤堕儴涓嬫媺妗�
- setMystatus(value) {
- this.resource = value;
- this.getUserList();
- },
- // 鎵归噺鍒犻櫎
- mulDelete(idArr) {
- this.$axios({
- method: 'delete',
- url: 'sccg/violations/batch_delete?ids=' + idArr,
- }).then(res => {
- this.getUserList();
- this.$message({
- message: res.message,
- type: res.code === 200 ? 'success' : 'warning'
- })
- })
- },
- // 鎵ц涓嬫媺妗嗘搷浣�
- selectChange(list) {
- if (this.tempList.length !== 0) {
- if (list === 3) {
- this.preMyIdx = list;
- this.mulDelete(this.tempList);
- }
- } else {
- this.myIdx = this.preMyIdx;
- this.$message({
- type: 'warning',
- message: '鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁',
- })
- }
- },
- // 鐩戝惉琛ㄦ牸
- tableChange(list) {
- this.tempList = [];
- list.forEach(item => {
- this.tempList.push(item.code);
- })
- this.all = list.length === this.tableData.length;
- },
- // 鍏ㄩ��
- selectAll() {
- this.$refs.multipleTable.toggleAllSelection();
- },
- // 鍙嶉��
- disSame(list) {
- list.forEach(row => {
- this.$refs.multipleTable.toggleRowSelection(row)
- })
- },
- // 鍒犻櫎鍗曟潯鏁版嵁
- handleDelete({ number }) {
- this.$confirm('纭鍒犻櫎锛�')
- .then(_ => {
- this.$axios({
- method: 'delete',
- url: `sccg/violations/delete?id=${number}`,
- })
- .then(res => {
- this.$message({
- type: res.code === 200 ? 'success' : 'warning',
- message: res.message
- })
-
- this.getUserList();
- })
- })
- .catch(_ => { });
- },
- // 鑾峰彇鐢ㄦ埛鍒楄〃
- getUserList() {
- const params = {
- current: this.currentPage,
- state: this.statusArr[0] ?? null,
- size: this.pageSize,
- resource: this.resource,
- type: this.statusArr[1] ?? null
- }
- basecase.baseCasePoolList(params)
- .then(({ records, total }) => {
- this.tableData = records;
- this.totalNum = total;
- })
- .catch(err => this.$message.error(err))
- },
- // 鏇存敼杩濊/杩濆缓
- changeTypeChecked(idx) {
- this.typeList.forEach((item, index) => {
- item.checked = index === idx;
- })
- this.mystatus = idx + 1;
- this.statusArr[1] = this.typeList[idx].value;
- this.getUserList();
- },
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- },
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getUserList();
- },
- // 涓婁竴椤电偣鍑讳簨浠�
- handlePrev(page) {
- this.currentPage = page;
- this.getUserList();
- },
- // 涓嬩竴椤电偣鍑讳簨浠�
- handleNext(page) {
- this.currentPage = page;
- this.getUserList();
- },
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogUpload = false;
- // this.dialogUpdate = false;
- done();
- })
- .catch(_ => { });
- },
- async JumpView(data) {
- await this.getEventInfo(data.code);
- },
- // 鑾峰彇妗堜欢淇℃伅
- getEventInfo(code) {
- this.$axios({
- method: 'get',
- url: `sccg/base_case/baseCaseDetail/${code}`
- })
- .then(res => {
- this.info = res.data;
- this.dialogView = true;
- })
- },
-
- // 閲嶆柊澶勭疆
- handleReset({ id }) {
- this.$axios({
- method: 'put',
- url: 'sccg/base_case/case_status_update?caseId=' + id + '&state=0'
- })
- .then(res => {
- if (res.code === 200) {
- this.$message({
- type: 'success',
- message: '澶勭疆鎴愬姛',
- })
- this.getUserList();
- } else {
- this.$message({
- type: 'error',
- message: '鎿嶄綔澶辫触'
- })
- }
- })
- },
- // 鍏抽棴涓婁紶鐣岄潰
- closeDialog({ flag }) {
- this.dialogUpload = flag;
- },
- filterTime(time) {
- return helper(time);
+ // 鎵ц涓嬫媺妗嗘搷浣�
+ selectChange(list) {
+ if (this.tempList.length !== 0) {
+ if (list === 3) {
+ this.preMyIdx = list;
+ this.mulDelete(this.tempList);
}
- }
-}
+ } else {
+ this.myIdx = this.preMyIdx;
+ this.$message({
+ type: "warning",
+ message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+ });
+ }
+ },
+ // 鐩戝惉琛ㄦ牸
+ tableChange(list) {
+ this.tempList = [];
+ list.forEach((item) => {
+ this.tempList.push(item.code);
+ });
+ this.all = list.length === this.tableData.length;
+ },
+ // 鍏ㄩ��
+ selectAll() {
+ this.$refs.multipleTable.toggleAllSelection();
+ },
+ // 鍙嶉��
+ disSame(list) {
+ list.forEach((row) => {
+ this.$refs.multipleTable.toggleRowSelection(row);
+ });
+ },
+ // 鍒犻櫎鍗曟潯鏁版嵁
+ handleDelete({ number }) {
+ this.$confirm("纭鍒犻櫎锛�")
+ .then((_) => {
+ this.$axios({
+ method: "delete",
+ url: `sccg/violations/delete?id=${number}`,
+ }).then((res) => {
+ this.$message({
+ type: res.code === 200 ? "success" : "warning",
+ message: res.message,
+ });
+
+ this.getUserList();
+ });
+ })
+ .catch((_) => {});
+ },
+ // 鑾峰彇鐢ㄦ埛鍒楄〃
+ getUserList() {
+ const params = {
+ current: this.currentPage,
+ state: this.statusArr[0] ?? null,
+ size: this.pageSize,
+ resource: this.resource,
+ type: this.statusArr[1] ?? null,
+ };
+ basecase
+ .baseCasePoolList(params)
+ .then(({ records, total }) => {
+ this.tableData = records;
+ this.totalNum = total;
+ })
+ .catch((err) => this.$message.error(err));
+ },
+ // 鏇存敼杩濊/杩濆缓
+ changeTypeChecked(idx) {
+ this.typeList.forEach((item, index) => {
+ item.checked = index === idx;
+ });
+ this.mystatus = idx + 1;
+ this.statusArr[1] = this.typeList[idx].value;
+ this.getUserList();
+ },
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 === 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ },
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ // 涓婁竴椤电偣鍑讳簨浠�
+ handlePrev(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ // 涓嬩竴椤电偣鍑讳簨浠�
+ handleNext(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogUpload = false;
+ // this.dialogUpdate = false;
+ done();
+ })
+ .catch((_) => {});
+ },
+ async JumpView(data) {
+ await this.getEventInfo(data.code);
+ },
+ // 鑾峰彇妗堜欢淇℃伅
+ getEventInfo(code) {
+ this.$axios({
+ method: "get",
+ url: `sccg/base_case/baseCaseDetail/${code}`,
+ }).then((res) => {
+ this.info = res.data;
+ this.dialogView = true;
+ });
+ },
+
+ // 閲嶆柊澶勭疆
+ handleReset({ id }) {
+ this.$axios({
+ method: "put",
+ url: "sccg/base_case/case_status_update?caseId=" + id + "&state=0",
+ }).then((res) => {
+ if (res.code === 200) {
+ this.$message({
+ type: "success",
+ message: "澶勭疆鎴愬姛",
+ });
+ this.getUserList();
+ } else {
+ this.$message({
+ type: "error",
+ message: "鎿嶄綔澶辫触",
+ });
+ }
+ });
+ },
+ // 鍏抽棴涓婁紶鐣岄潰
+ closeDialog({ flag }) {
+ this.dialogUpload = flag;
+ },
+ filterTime(time) {
+ return helper(time);
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- header {
- // background-color: #09152f;
+ header {
+ // background-color: #09152f;
- .headerContent {
- //padding: 0 40px;
- display: flex;
- line-height: 100px;
- justify-content: space-between;
- align-items: center;
+ .headerContent {
+ //padding: 0 40px;
+ display: flex;
+ line-height: 100px;
+ justify-content: space-between;
+ align-items: center;
- .search {
- display: flex;
- justify-content: flex-start;
+ .search {
+ display: flex;
+ justify-content: flex-start;
- span {
- flex: 1;
- }
-
- .el-input {
- flex: 2;
- color: #1d3f57;
-
- &::v-deep .el-input__inner {
- // background-color: #09152f;
- //border: 1px solid #17324c;
- }
- }
-
- }
-
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
-
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
-
- .addBtn {
- //background-color: #eb5d01;
- border: none;
- //border-radius: 20px;
- padding: 12px 30px;
- }
+ span {
+ flex: 1;
}
+
+ .el-input {
+ flex: 2;
+ color: #1d3f57;
+
+ &::v-deep .el-input__inner {
+ // background-color: #09152f;
+ //border: 1px solid #17324c;
+ }
+ }
+ }
+
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
+ display: flex;
+ align-items: center;
+ margin-top: -2px;
+
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
+ }
+ }
+
+ .addBtn {
+ //background-color: #eb5d01;
+ border: none;
+ //border-radius: 20px;
+ padding: 12px 30px;
+ }
+ }
+ }
+
+ main {
+ // background-color: #09152f;
+ margin-top: 20px;
+ padding-bottom: 50px;
+
+ .btn span:hover {
+ cursor: pointer;
}
- main {
- // background-color: #09152f;
- margin-top: 20px;
- padding-bottom: 50px;
+ .type-nav {
+ display: flex;
+ line-height: 40px;
+ margin-left: 30px;
+ padding-top: 10px;
+ margin-bottom: 10px;
- .btn span:hover {
- cursor: pointer;
+ .type-item {
+ width: 80px;
+ text-align: center;
+
+ &:hover {
+ cursor: pointer;
}
+ }
- .type-nav {
- display: flex;
- line-height: 40px;
- margin-left: 30px;
- padding-top: 10px;
- margin-bottom: 10px;
-
- .type-item {
- width: 80px;
- text-align: center;
-
- &:hover {
- cursor: pointer;
- }
- }
-
- .is-active {
- // background-color: #070f22;
- border-radius: 4px;
- color: #333;
+ .is-active {
+ // background-color: #070f22;
+ border-radius: 4px;
+ color: #333;
font-size: 500;
- }
- }
-
- .tools {
- display: flex;
- justify-content: space-between;
- align-items: center;
- //padding: 0 20px;
-
- .funs {
- display: flex;
- .funs-first{
- margin-left: 0!important;
- }
- .funs-sp{
- border: 1px solid #DCDFE6;
- }
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
-
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- &:hover {
- border: 1px solid #4b9bb7;
- }
-
- &:hover .el-checkbox {
- color: #4b9bb7;
- }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- &::v-deep li,
- &::v-deep .btn-prev,
- &::v-deep .btn-next {
- // background-color: #071f39;
- color: #4b9bb7;
- }
-
- &::v-deep .active {
- background-color: #409eff;
- color: #fff;
- }
- }
- }
- }
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
- &::v-deep .cell {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
-
- .operation {
- display: flex;
-
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
+ }
}
- .line {
- padding: 0 5px;
+ .tools {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ //padding: 0 20px;
+
+ .funs {
+ display: flex;
+ .funs-first {
+ margin-left: 0 !important;
+ }
+ .funs-sp {
+ border: 1px solid #dcdfe6;
+ }
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
+
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
+
+ .el-select {
+ width: 120px;
+ }
+
+ &:hover {
+ border: 1px solid #4b9bb7;
+ }
+
+ &:hover .el-checkbox {
+ color: #4b9bb7;
+ }
+ }
+ }
+
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
+
+ .el-pagination {
+ &::v-deep li,
+ &::v-deep .btn-prev,
+ &::v-deep .btn-next {
+ // background-color: #071f39;
+ color: #4b9bb7;
+ }
+
+ &::v-deep .active {
+ background-color: #409eff;
+ color: #fff;
+ }
+ }
+ }
}
+
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
+
+ &::v-deep .cell {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ }
+
+ .operation {
+ display: flex;
+
+ .line {
+ padding: 0 5px;
+ }
+
+ span:hover {
+ cursor: pointer;
+ }
+ }
+ }
+ }
+
+ .line {
+ padding: 0 5px;
+ }
}
</style>
diff --git a/src/views/operate/disposal/casepool/notDeal/index.vue b/src/views/operate/disposal/casepool/notDeal/index.vue
index 4dbf662..6da9127 100644
--- a/src/views/operate/disposal/casepool/notDeal/index.vue
+++ b/src/views/operate/disposal/casepool/notDeal/index.vue
@@ -1,533 +1,621 @@
<template>
- <div class="userList">
- <header>
- <div class="headerContent">
- <div class="search">
- <span>绛涢�夋潯浠�:</span>
- <div class="option">
- <el-select v-model="mystatus" placeholder="杩濊" @change="setMystatus">
- <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 class="userList">
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <span>绛涢�夋潯浠�:</span>
+ <div class="option">
+ <el-select
+ v-model="mystatus"
+ placeholder="杩濊"
+ @change="setMystatus"
+ >
+ <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>
+ </header>
+ <main>
+ <div class="mainContent">
+ <div class="type-nav">
+ <div
+ @click="changeTypeChecked(index)"
+ v-for="(item, index) in typeList"
+ :key="item.name"
+ :class="[item.checked ? 'is-active' : '', 'type-item']"
+ >
+ {{ item.name }}
+ </div>
+ </div>
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ // background:'#06122c',
+ background: '#F5F5F5',
+ '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="JumpView(scope.row)">{{
+ scope.row.code
+ }}</el-link>
+ </template>
+ </el-table-column>
+ <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="7">
+ <template slot-scope="scope">
+ <span>{{
+ scope.row.eventSource === 2 ? "浜哄伐涓婃姤" : "瑙嗛宸℃煡"
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'category' : 'category'"
+ :label="mystatus === 1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'"
+ :min-width="mystatus === 1 ? '10' : '20'"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'type' : 'site'"
+ :label="mystatus === 1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'actionCause' : 'communityId'"
+ :label="mystatus === 1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'site' : ''"
+ :label="mystatus === 1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
+ :min-width="mystatus === 1 ? '10' : '20'"
+ >
+ <template slot-scope="scope">
+ <div v-if="mystatus === 2">
+ <span>{{
+ scope.row.buildingLength +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingWidth +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingHigh +
+ "绫�"
+ }}</span>
+ </div>
+ <div v-else>{{ scope.row.site }}</div>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'street' : 'buildingArea'"
+ :label="mystatus === 1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="alarmTime"
+ label="鎶ヨ鏃堕棿"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ <template slot-scope="scope">
+ <span>{{ filterTime(scope.row.alarmTime) }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'continueTime' : 'materials'"
+ :label="mystatus === 1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
+ <template slot-scope="scope">
+ <div class="btn">
+ <span @click="handleReset(scope.row)">閲嶆柊澶勭疆</span>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 璇︽儏椤靛睍绀� -->
+ <el-dialog
+ :visible.sync="dialogView"
+ width="60%"
+ title="鍩虹淇℃伅(浜哄伐)"
+ v-if="dialogView"
+ :before-close="handleClose"
+ >
+ <MyDetail :info="info" v-if="mystatus === 1"></MyDetail>
+ <MyIllDetail :info="info" v-else></MyIllDetail>
+ </el-dialog>
+ <!-- 涓婁紶椤甸潰 -->
+ <el-dialog
+ :visible.sync="dialogUpload"
+ width="60%"
+ title="涓婁紶澶勭疆缁撴灉"
+ v-if="dialogUpload"
+ :before-close="handleClose"
+ >
+ <uploadVio
+ v-if="mystatus === 0"
+ :caseId="caseId"
+ @closeDialog="closeDialog"
+ ></uploadVio>
+ <uploadIll
+ v-else
+ :caseId="caseId"
+ @closeDialog="closeDialog"
+ ></uploadIll>
+ </el-dialog>
+ <!-- tools -->
+ <div class="tools">
+ <div class="funs">
+ <div class="funsItem funs-sp funs-first">
+ <el-checkbox v-model="all" @change="selectAll()"
+ >鍏ㄩ��</el-checkbox
+ >
</div>
- </header>
- <main>
- <div class="mainContent">
- <div class="type-nav">
- <div @click="changeTypeChecked(index)" v-for="(item,index) in typeList" :key="item.name"
- :class="[item.checked ? 'is-active':'','type-item']">{{item.name}}</div>
- </div>
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable"
- :header-cell-style="{
- // background:'#06122c',
- 'background':'#F5F5F5',
- '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="JumpView(scope.row)">{{scope.row.code}}</el-link>
- </template>
- </el-table-column>
- <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="7">
- <template slot-scope="scope">
- <span>{{ scope.row.eventSource === 2 ? '浜哄伐涓婃姤' : '瑙嗛宸℃煡' }}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'category' :'category'" :label="mystatus===1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'" :min-width="mystatus===1?'10':'20'">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'type' :'site'" :label="mystatus===1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'" min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'actionCause' :'communityId'" :label="mystatus===1 ? '妗堢敱' : '鎵�灞炵ぞ鍖�'" min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'site' :''" :label="mystatus===1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'" :min-width="mystatus===1?'10' :'20' ">
- <template slot-scope="scope">
- <div v-if="mystatus ===2"><span>{{scope.row.buildingLength+'绫�'+'銆�'+ scope.row.buildingWidth+'绫�'+'銆�'+scope.row.buildingHigh+'绫�'}}</span></div>
- <div v-else>{{scope.row.site}}</div>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'street' :'buildingArea'" :label="mystatus===1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'" min-width="10">
- </el-table-column>
- <el-table-column prop="alarmTime" label="鎶ヨ鏃堕棿" min-width="15" v-if="mystatus===1">
- <template slot-scope="scope">
- <span>{{filterTime(scope.row.alarmTime)}}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'continueTime' :'materials'" :label="mystatus===1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'" min-width="10">
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
- <template slot-scope="scope">
- <div class="btn">
- <span @click="handleReset(scope.row)">閲嶆柊澶勭疆</span>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 璇︽儏椤靛睍绀� -->
- <el-dialog :visible.sync="dialogView" width="60%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogView"
- :before-close="handleClose">
- <MyDetail :info=info v-if="mystatus===1"></MyDetail>
- <MyIllDetail :info=info v-else></MyIllDetail>
- </el-dialog>
- <!-- 涓婁紶椤甸潰 -->
- <el-dialog :visible.sync="dialogUpload" width="60%" title="涓婁紶澶勭疆缁撴灉"
- v-if="dialogUpload" :before-close="handleClose">
- <uploadVio v-if="mystatus === 0" :caseId="caseId" @closeDialog="closeDialog"></uploadVio>
- <uploadIll v-else :caseId="caseId" @closeDialog="closeDialog"></uploadIll>
- </el-dialog>
- <!-- tools -->
- <div class="tools">
- <div class="funs">
- <div class="funsItem funs-sp funs-first">
- <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
- </div>
- <div class="funsItem funs-sp">
- <el-checkbox v-model="unsame" @change="disSame(tableData)">鍙嶉��</el-checkbox>
- </div>
- <!-- <div class="funsItem">
+ <div class="funsItem funs-sp">
+ <el-checkbox v-model="unsame" @change="disSame(tableData)"
+ >鍙嶉��</el-checkbox
+ >
+ </div>
+ <!-- <div class="funsItem">
<el-select v-model="myIdx" placeholder="鎵归噺鎿嶄綔" @change="selectChange" disabled>
<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">
- </el-pagination>
- </div>
- </div>
- </div>
- </main>
- </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>
+ </div>
+ </main>
+ </div>
</template>
<script>
-import uploadVio from './updateUser/uploadResult/vio'
-import uploadIll from "./updateUser/uploadResult/ill"
-import MyDetail from '@/components/detail'
-import helper from '@/utils/mydate'
-import MyIllDetail from '@/components/illdetail'
+import uploadVio from "./updateUser/uploadResult/vio";
+import uploadIll from "./updateUser/uploadResult/ill";
+import MyDetail from "@/components/detail";
+import helper from "@/utils/mydate";
+import MyIllDetail from "@/components/illdetail";
import basecase from "@/api/operate/basecase";
import { RESOURCE_OPTIONS } from "@/utils/helper";
export default {
- components: {
- uploadVio,uploadIll,MyDetail,MyIllDetail
+ components: {
+ uploadVio,
+ uploadIll,
+ MyDetail,
+ MyIllDetail,
+ },
+ data() {
+ return {
+ tableData: [],
+ context: "",
+ dialogUpload: false,
+ dialogView: false,
+ info: {},
+ totalNum: null,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ preMyIdx: 0,
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ {
+ value: 1,
+ label: "鎵归噺鍚敤",
+ },
+ {
+ value: 2,
+ label: "鎵归噺绂佺敤",
+ },
+ {
+ value: 3,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ typeList: [
+ {
+ name: "杩濊",
+ value: 1,
+ checked: true,
+ },
+ {
+ name: "杩濆缓",
+ value: 2,
+ checked: false,
+ },
+ ],
+ statusArr: [],
+ mystatus: 1,
+ caseId: "",
+ resource: null,
+ resourceOptions: RESOURCE_OPTIONS,
+ };
+ },
+ created() {
+ this.statusArr[0] = 4;
+ this.typeList.forEach((item) => {
+ if (item.checked) {
+ this.statusArr[1] = item.value;
+ }
+ });
+ this.getUserList();
+ },
+ methods: {
+ // 椤堕儴涓嬫媺妗�
+ setMystatus(value) {
+ this.statusArr[1] = value;
+ this.changeTypeChecked(value - 1);
+ this.getUserList();
},
- data() {
- return {
- tableData: [],
- context: "",
- dialogUpload:false,
- dialogView:false,
- info: {},
- totalNum: null,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- preMyIdx:0,
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- {
- value: 1,
- label: '鎵归噺鍚敤',
- },
- {
- value: 2,
- label: '鎵归噺绂佺敤',
- },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: [],
- typeList: [
- {
- name: '杩濊',
- value: 1,
- checked: true
- },
- {
- name: '杩濆缓',
- value: 2,
- checked: false,
- },
- ],
- statusArr:[],
- mystatus:1,
- caseId:'',
- resource: null,
- resourceOptions: RESOURCE_OPTIONS
- }
- },
- created() {
- this.statusArr[0] = 4;
- this.typeList.forEach(item => {
- if (item.checked) {
- this.statusArr[1] = item.value;
- }
- })
+ // 鎵归噺鍒犻櫎
+ mulDelete(idArr) {
+ this.$axios({
+ method: "delete",
+ url: "sccg/violations/batch_delete?ids=" + idArr,
+ }).then((res) => {
this.getUserList();
+ this.$message({
+ message: res.message,
+ type: res.code === 200 ? "success" : "warning",
+ });
+ });
},
- methods: {
- // 椤堕儴涓嬫媺妗�
- setMystatus(value) {
- this.statusArr[1] = value;
- this.changeTypeChecked(value - 1);
- this.getUserList();
- },
- // 鎵归噺鍒犻櫎
- mulDelete(idArr){
- this.$axios({
- method:'delete',
- url:'sccg/violations/batch_delete?ids='+idArr,
- }).then(res=>{
- this.getUserList();
- this.$message({
- message:res.message,
- type:res.code === 200 ? 'success' : 'warning'
- })
- })
- },
- // 鎵ц涓嬫媺妗嗘搷浣�
- selectChange(list) {
- if (this.tempList.length !== 0) {
- if (list === 3) {
- this.preMyIdx = list;
- this.mulDelete(this.tempList);
- }
- } else {
- this.myIdx = this.preMyIdx;
- this.$message({
- type: 'warning',
- message: '鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁',
- })
- }
- },
- // 鐩戝惉琛ㄦ牸
- tableChange(list) {
- this.tempList = [];
- list.forEach(item => {
- this.tempList.push(item.code);
- })
- this.all = list.length === this.tableData.length;
- },
- // 鍏ㄩ��
- selectAll() {
- this.$refs.multipleTable.toggleAllSelection();
- },
- // 鍙嶉��
- disSame(list) {
- list.forEach(row => {
- this.$refs.multipleTable.toggleRowSelection(row)
- })
- },
- // 鍒犻櫎鍗曟潯鏁版嵁
- handleDelete({ number }) {
- this.$confirm('纭鍒犻櫎锛�')
- .then(_ => {
- this.$axios({
- method: 'delete',
- url: `sccg/violations/delete?id=${number}`,
- })
- .then(res => {
- this.$message({
- type: res.code === 200 ? 'success' : 'warning',
- message: res.message
- })
-
- this.getUserList();
- })
- })
- .catch(_ => { });
- },
- // 鑾峰彇鐢ㄦ埛鍒楄〃
- getUserList() {
- const params = {
- current: this.currentPage,
- state: this.statusArr[0] ?? null,
- size: this.pageSize,
- resource: this.resource,
- type: this.statusArr[1] ?? null
- }
- basecase.baseCasePoolList(params)
- .then(({ records, total }) => {
- this.tableData = records;
- this.totalNum = total;
- })
- .catch(err => this.$message.error(err))
- },
- // 鏇存敼杩濊/杩濆缓
- changeTypeChecked(idx) {
- this.typeList.forEach((item, index) => {
- item.checked = index === idx;
- })
- this.mystatus = idx + 1;
- this.statusArr[1] = this.typeList[idx].value;
- this.getUserList();
- },
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- },
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getUserList();
- },
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogUpload = false;
- // this.dialogUpdate = false;
- done();
- })
- .catch(_ => { });
- },
- async JumpView(data){
- await this.getEventInfo(data.code);
- },
- // 鑾峰彇妗堜欢淇℃伅
- getEventInfo(code){
- this.$axios({
- method:'get',
- url:`sccg/base_case/baseCaseDetail/${code}`
- })
- .then(res=>{
- this.info = res.data;
- this.dialogView = true;
- })
- },
- opernDialog(data){
- this.dialogUpload = true;
- this.caseId = data.id;
- },
- // 閲嶆柊澶勭疆
- handleReset({id}){
- this.$axios({
- method:'put',
- url:'sccg/base_case/case_status_update?caseId='+id+'&state=0'
- })
- .then(res=>{
- if(res.code === 200){
- this.$message({
- type:'success',
- message:'澶勭疆鎴愬姛',
- })
- this.getUserList();
- }else{
- this.$message({
- type:'error',
- message:'鎿嶄綔澶辫触'
- })
- }
- })
- },
- // 鍏抽棴涓婁紶鐣岄潰
- closeDialog({flag}){
- this.dialogUpload = flag;
- },
- filterTime(time){
- return helper(time);
+ // 鎵ц涓嬫媺妗嗘搷浣�
+ selectChange(list) {
+ if (this.tempList.length !== 0) {
+ if (list === 3) {
+ this.preMyIdx = list;
+ this.mulDelete(this.tempList);
}
- }
-}
+ } else {
+ this.myIdx = this.preMyIdx;
+ this.$message({
+ type: "warning",
+ message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+ });
+ }
+ },
+ // 鐩戝惉琛ㄦ牸
+ tableChange(list) {
+ this.tempList = [];
+ list.forEach((item) => {
+ this.tempList.push(item.code);
+ });
+ this.all = list.length === this.tableData.length;
+ },
+ // 鍏ㄩ��
+ selectAll() {
+ this.$refs.multipleTable.toggleAllSelection();
+ },
+ // 鍙嶉��
+ disSame(list) {
+ list.forEach((row) => {
+ this.$refs.multipleTable.toggleRowSelection(row);
+ });
+ },
+ // 鍒犻櫎鍗曟潯鏁版嵁
+ handleDelete({ number }) {
+ this.$confirm("纭鍒犻櫎锛�")
+ .then((_) => {
+ this.$axios({
+ method: "delete",
+ url: `sccg/violations/delete?id=${number}`,
+ }).then((res) => {
+ this.$message({
+ type: res.code === 200 ? "success" : "warning",
+ message: res.message,
+ });
+
+ this.getUserList();
+ });
+ })
+ .catch((_) => {});
+ },
+ // 鑾峰彇鐢ㄦ埛鍒楄〃
+ getUserList() {
+ const params = {
+ current: this.currentPage,
+ state: this.statusArr[0] ?? null,
+ size: this.pageSize,
+ resource: this.resource,
+ type: this.statusArr[1] ?? null,
+ };
+ basecase
+ .baseCasePoolList(params)
+ .then(({ records, total }) => {
+ this.tableData = records;
+ this.totalNum = total;
+ })
+ .catch((err) => this.$message.error(err));
+ },
+ // 鏇存敼杩濊/杩濆缓
+ changeTypeChecked(idx) {
+ this.typeList.forEach((item, index) => {
+ item.checked = index === idx;
+ });
+ this.mystatus = idx + 1;
+ this.statusArr[1] = this.typeList[idx].value;
+ this.getUserList();
+ },
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 === 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ },
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogUpload = false;
+ // this.dialogUpdate = false;
+ done();
+ })
+ .catch((_) => {});
+ },
+ async JumpView(data) {
+ await this.getEventInfo(data.code);
+ },
+ // 鑾峰彇妗堜欢淇℃伅
+ getEventInfo(code) {
+ this.$axios({
+ method: "get",
+ url: `sccg/base_case/baseCaseDetail/${code}`,
+ }).then((res) => {
+ this.info = res.data;
+ this.dialogView = true;
+ });
+ },
+ opernDialog(data) {
+ this.dialogUpload = true;
+ this.caseId = data.id;
+ },
+ // 閲嶆柊澶勭疆
+ handleReset({ id }) {
+ this.$axios({
+ method: "put",
+ url: "sccg/base_case/case_status_update?caseId=" + id + "&state=0",
+ }).then((res) => {
+ if (res.code === 200) {
+ this.$message({
+ type: "success",
+ message: "澶勭疆鎴愬姛",
+ });
+ this.getUserList();
+ } else {
+ this.$message({
+ type: "error",
+ message: "鎿嶄綔澶辫触",
+ });
+ }
+ });
+ },
+ // 鍏抽棴涓婁紶鐣岄潰
+ closeDialog({ flag }) {
+ this.dialogUpload = flag;
+ },
+ filterTime(time) {
+ return helper(time);
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- header {
- // background-color: #09152f;
+ header {
+ // background-color: #09152f;
- .headerContent {
- //padding: 0 40px;
- display: flex;
- line-height: 100px;
- justify-content: space-between;
- align-items: center;
+ .headerContent {
+ //padding: 0 40px;
+ display: flex;
+ line-height: 100px;
+ justify-content: space-between;
+ align-items: center;
- .search {
- display: flex;
- justify-content: flex-start;
+ .search {
+ display: flex;
+ justify-content: flex-start;
- span {
- flex: 1;
- }
-
- .el-input {
- flex: 2;
- color: #1d3f57;
- }
-
- }
-
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
-
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
-
- .addBtn {
- //background-color: #eb5d01;
- border: none;
- //border-radius: 20px;
- padding: 12px 30px;
- }
+ span {
+ flex: 1;
}
+
+ .el-input {
+ flex: 2;
+ color: #1d3f57;
+ }
+ }
+
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
+ display: flex;
+ align-items: center;
+ margin-top: -2px;
+
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
+ }
+ }
+
+ .addBtn {
+ //background-color: #eb5d01;
+ border: none;
+ //border-radius: 20px;
+ padding: 12px 30px;
+ }
}
- main {
- // background-color: #09152f;
- margin-top: 20px;
- padding-bottom: 50px;
- .btn span:hover{
- cursor: pointer;
- }
- .type-nav {
- display: flex;
- line-height: 40px;
- margin-left: 30px;
- padding-top: 10px;
- margin-bottom: 10px;
-
- .type-item {
- width: 80px;
- text-align: center;
-
- &:hover {
- cursor: pointer;
- }
- }
-
- .is-active {
- // background-color: #070f22;
- border-radius: 4px;
- color: #2f54eb;
- }
- }
-
- .tools {
- display: flex;
- justify-content: space-between;
- align-items: center;
- //padding: 0 20px;
-
- .funs {
- display: flex;
- .funs-first{
- margin-left: 0!important;
- }
- .funs-sp{
- border: 1px solid #DCDFE6;
- }
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
-
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- &:hover {
- border: 1px solid #4b9bb7;
- }
-
- &:hover .el-checkbox {
- color: #4b9bb7;
- }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- &::v-deep li,
- &::v-deep .btn-prev,
- &::v-deep .btn-next {
- // background-color: #071f39;
- color: #4b9bb7;
- }
-
- &::v-deep .active {
- background-color: #409eff;
- color: #fff;
- }
- }
- }
- }
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
- &::v-deep .cell {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .operation {
- display: flex;
-
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
+ }
+ main {
+ // background-color: #09152f;
+ margin-top: 20px;
+ padding-bottom: 50px;
+ .btn span:hover {
+ cursor: pointer;
}
- .line{
- padding: 0 5px;
+ .type-nav {
+ display: flex;
+ line-height: 40px;
+ margin-left: 30px;
+ padding-top: 10px;
+ margin-bottom: 10px;
+
+ .type-item {
+ width: 80px;
+ text-align: center;
+
+ &:hover {
+ cursor: pointer;
+ }
+ }
+
+ .is-active {
+ // background-color: #070f22;
+ border-radius: 4px;
+ color: #2f54eb;
+ }
}
+
+ .tools {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ //padding: 0 20px;
+
+ .funs {
+ display: flex;
+ .funs-first {
+ margin-left: 0 !important;
+ }
+ .funs-sp {
+ border: 1px solid #dcdfe6;
+ }
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
+
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
+
+ .el-select {
+ width: 120px;
+ }
+
+ &:hover {
+ border: 1px solid #4b9bb7;
+ }
+
+ &:hover .el-checkbox {
+ color: #4b9bb7;
+ }
+ }
+ }
+
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
+
+ .el-pagination {
+ &::v-deep li,
+ &::v-deep .btn-prev,
+ &::v-deep .btn-next {
+ // background-color: #071f39;
+ color: #4b9bb7;
+ }
+
+ &::v-deep .active {
+ background-color: #409eff;
+ color: #fff;
+ }
+ }
+ }
+ }
+
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
+
+ &::v-deep .cell {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ }
+ .operation {
+ display: flex;
+
+ .line {
+ padding: 0 5px;
+ }
+
+ span:hover {
+ cursor: pointer;
+ }
+ }
+ }
+ }
+ .line {
+ padding: 0 5px;
+ }
}
</style>
diff --git a/src/views/operate/disposal/casepool/pool/index.vue b/src/views/operate/disposal/casepool/pool/index.vue
index 7e34227..a069592 100644
--- a/src/views/operate/disposal/casepool/pool/index.vue
+++ b/src/views/operate/disposal/casepool/pool/index.vue
@@ -1,127 +1,222 @@
<template>
- <div class="userList">
- <header>
- <div class="headerContent">
- <div class="search">
- <span>鏉ユ簮鏌ヨ:</span>
- <div class="option">
- <el-select clearable v-model="resource" placeholder="璇烽�夋嫨鏉ユ簮">
- <el-option v-for="item in eventSourceOptions" :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 class="addUser">
- <el-button class="addBtn button-addition" type="primary" @click="dialogCreate = true">娣诲姞</el-button>
- <!-- 閫夋嫨鐧昏绫诲瀷 -->
- <el-dialog :before-close="handleClose" :visible.sync="dialogCreate" title="璇烽�夋嫨涓婃姤浜嬩欢绫诲瀷" width="45%"
- v-if="dialogCreate">
- <createUser @getPageProp=setDialog />
- </el-dialog>
- <!-- 浜嬩欢鐧昏 -->
- <el-dialog :before-close="handleClose" :visible.sync="dialogNewAdd"
- :title="newAddType === 0 ? '杩濊浜嬩欢鐧昏' : '杩濆缓浜嬩欢鐧昏' " width="80%" v-if="dialogNewAdd">
- <!-- 杩濆缓鐧昏 -->
- <MyIll v-if="newAddType === 1" :refresh="getUserList" :mytype=newAddType
- @changeDialog=changeDialog />
- <!-- 杩濊鐧昏 -->
- <myVio v-else :refresh="getUserList" :mytype=newAddType @changeDialog=changeDialog />
- </el-dialog>
- </div>
- </div>
- </header>
- <main>
- <div class="mainContent">
- <!-- 瀵艰埅鐘舵�佹爣绛� -->
- <div class="nav">
- <div @click="changeNavChecked(index)" :class="[item.checked ? 'is-active':'','nav-item']"
- v-for="(item,index) in tagList" :key="item.name">{{item.name}}</div>
- </div>
- <div class="type-nav">
- <div @click="changeTypeChecked(index)" v-for="(item,index) in typeList" :key="item.name"
- :class="[item.checked ? 'is-active':'','type-item']">{{item.name}}</div>
- </div>
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable"
- :header-cell-style="{ 'background':'#F5F5F5','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="JumpView(scope.row)">{{scope.row.code}}</el-link>
- </template>
- </el-table-column>
- <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
- <template slot-scope="scope">
- <span>{{scope.row.eventSource === 2 ? '浜哄伐涓婁紶' : '瑙嗛宸℃煡'}}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'category' :'category'"
- :label="mystatus===1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'" :min-width="mystatus===1?'10':'15'">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'type' :'site'" :label="mystatus===1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
- min-width="10">
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'site' :''" :label="mystatus===1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
- :min-width="mystatus===1?'10' :'20' ">
- <template slot-scope="scope">
- <div v-if="mystatus ===2"><span>{{scope.row.buildingLength+'绫�'+'銆�'+
- scope.row.buildingWidth+'绫�'+'銆�'+scope.row.buildingHigh+'绫�'}}</span></div>
- <div v-else>{{scope.row.site}}</div>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'street' :'buildingArea'"
- :label="mystatus===1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'" min-width="12">
- </el-table-column>
- <el-table-column prop="alarmTime" label="鎶ヨ鏃堕棿" min-width="15" v-if="mystatus===1">
- <template slot-scope="scope">
- <span>{{filterTime(scope.row.alarmTime)}}</span>
- </template>
- </el-table-column>
- <el-table-column :prop="mystatus === 1 ? 'continueTime' :'materials'"
- :label="mystatus===1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'" min-width="12">
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
- <template slot-scope="scope">
- <div class="operation" v-if="statusArr[0]===0">
- <span @click="handleFind(scope.row)">涓婃姤</span>
- <span class="line">|</span>
- <span @click="handleDispatch(scope.row)">璋冨害</span>
- <span class="line">|</span>
- <span @click="handleLearn(scope.row)">鍦ㄥ涔�</span>
- <span class="line">|</span>
- <span @click="handleNotDeal(scope.row)">鏆備笉澶勭悊</span>
- </div>
- <div class="operation" v-else>
- <span @click="JumpView(scope.row)">鏌ョ湅</span>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 璇︽儏椤靛睍绀� -->
- <el-dialog :visible.sync="dialogView" width="60%" title="鍩虹淇℃伅(浜哄伐)" v-if="dialogView"
- :before-close="handleClose">
- <MyDetail :info=info v-if="mystatus === 1"></MyDetail>
- <MyIllDetail :info=info v-else></MyIllDetail>
- </el-dialog>
- <!-- 璋冨害 -->
- <el-dialog :visible.sync="dialogDispatch" width="60%" title="璋冨害淇℃伅" v-if="dialogDispatch"
- :before-close="handleClose">
- <MyDispatch :id="baseId" :mytype="mystatus" @changeDialog="changeDialog" :refresh="getUserList">
- </MyDispatch>
- </el-dialog>
- <!-- tools -->
- <div class="tools">
- <!-- <div class="funs">
+ <div class="userList">
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <span>鏉ユ簮鏌ヨ:</span>
+ <div class="option">
+ <el-select clearable v-model="resource" placeholder="璇烽�夋嫨鏉ユ簮">
+ <el-option
+ v-for="item in eventSourceOptions"
+ :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 class="addUser">
+ <el-button
+ class="addBtn button-addition"
+ type="primary"
+ @click="dialogCreate = true"
+ >娣诲姞</el-button
+ >
+ <!-- 閫夋嫨鐧昏绫诲瀷 -->
+ <el-dialog
+ :before-close="handleClose"
+ :visible.sync="dialogCreate"
+ title="璇烽�夋嫨涓婃姤浜嬩欢绫诲瀷"
+ width="45%"
+ v-if="dialogCreate"
+ >
+ <createUser @getPageProp="setDialog" />
+ </el-dialog>
+ <!-- 浜嬩欢鐧昏 -->
+ <el-dialog
+ :before-close="handleClose"
+ :visible.sync="dialogNewAdd"
+ :title="newAddType === 0 ? '杩濊浜嬩欢鐧昏' : '杩濆缓浜嬩欢鐧昏'"
+ width="80%"
+ v-if="dialogNewAdd"
+ >
+ <!-- 杩濆缓鐧昏 -->
+ <MyIll
+ v-if="newAddType === 1"
+ :refresh="getUserList"
+ :mytype="newAddType"
+ @changeDialog="changeDialog"
+ />
+ <!-- 杩濊鐧昏 -->
+ <myVio
+ v-else
+ :refresh="getUserList"
+ :mytype="newAddType"
+ @changeDialog="changeDialog"
+ />
+ </el-dialog>
+ </div>
+ </div>
+ </header>
+ <main>
+ <div class="mainContent">
+ <!-- 瀵艰埅鐘舵�佹爣绛� -->
+ <div class="nav">
+ <div
+ @click="changeNavChecked(index)"
+ :class="[item.checked ? 'is-active' : '', 'nav-item']"
+ v-for="(item, index) in tagList"
+ :key="item.name"
+ >
+ {{ item.name }}
+ </div>
+ </div>
+ <div class="type-nav">
+ <div
+ @click="changeTypeChecked(index)"
+ v-for="(item, index) in typeList"
+ :key="item.name"
+ :class="[item.checked ? 'is-active' : '', 'type-item']"
+ >
+ {{ item.name }}
+ </div>
+ </div>
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ background: '#F5F5F5',
+ '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="JumpView(scope.row)">{{
+ scope.row.code
+ }}</el-link>
+ </template>
+ </el-table-column>
+ <el-table-column prop="eventSource" label="闂鏉ユ簮" min-width="8">
+ <template slot-scope="scope">
+ <span>{{
+ scope.row.eventSource === 2 ? "浜哄伐涓婁紶" : "瑙嗛宸℃煡"
+ }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'category' : 'category'"
+ :label="mystatus === 1 ? '澶х被鍚嶇О' : '杩濆缓绫诲埆'"
+ :min-width="mystatus === 1 ? '10' : '15'"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'type' : 'site'"
+ :label="mystatus === 1 ? '灏忕被鍚嶇О' : '杩濆缓鍦扮偣'"
+ min-width="10"
+ >
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'site' : ''"
+ :label="mystatus === 1 ? '鎶ヨ鐐逛綅' : '杩濇硶寤虹瓚闀裤�佸銆侀珮'"
+ :min-width="mystatus === 1 ? '10' : '20'"
+ >
+ <template slot-scope="scope">
+ <div v-if="mystatus === 2">
+ <span>{{
+ scope.row.buildingLength +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingWidth +
+ "绫�" +
+ "銆�" +
+ scope.row.buildingHigh +
+ "绫�"
+ }}</span>
+ </div>
+ <div v-else>{{ scope.row.site }}</div>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'street' : 'buildingArea'"
+ :label="mystatus === 1 ? '鎵�灞炲尯鍩�' : '杩濇硶寤虹瓚闈㈢Н'"
+ min-width="12"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="alarmTime"
+ label="鎶ヨ鏃堕棿"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ <template slot-scope="scope">
+ <span>{{ filterTime(scope.row.alarmTime) }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ :prop="mystatus === 1 ? 'continueTime' : 'materials'"
+ :label="mystatus === 1 ? '鎸佺画鏃堕棿' : '杩濇硶寤虹瓚鏉愭枡'"
+ min-width="12"
+ >
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
+ <template slot-scope="scope">
+ <div class="operation" v-if="statusArr[0] === 0">
+ <span @click="handleFind(scope.row)">涓婃姤</span>
+ <span class="line">|</span>
+ <span @click="handleDispatch(scope.row)">璋冨害</span>
+ <span class="line">|</span>
+ <span @click="handleLearn(scope.row)">鍦ㄥ涔�</span>
+ <span class="line">|</span>
+ <span @click="handleNotDeal(scope.row)">鏆備笉澶勭悊</span>
+ </div>
+ <div class="operation" v-else>
+ <span @click="JumpView(scope.row)">鏌ョ湅</span>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 璇︽儏椤靛睍绀� -->
+ <el-dialog
+ :visible.sync="dialogView"
+ width="60%"
+ title="鍩虹淇℃伅(浜哄伐)"
+ v-if="dialogView"
+ :before-close="handleClose"
+ >
+ <MyDetail :info="info" v-if="mystatus === 1"></MyDetail>
+ <MyIllDetail :info="info" v-else></MyIllDetail>
+ </el-dialog>
+ <!-- 璋冨害 -->
+ <el-dialog
+ :visible.sync="dialogDispatch"
+ width="60%"
+ title="璋冨害淇℃伅"
+ v-if="dialogDispatch"
+ :before-close="handleClose"
+ >
+ <MyDispatch
+ :id="baseId"
+ :mytype="mystatus"
+ @changeDialog="changeDialog"
+ :refresh="getUserList"
+ >
+ </MyDispatch>
+ </el-dialog>
+ <!-- tools -->
+ <div class="tools">
+ <!-- <div class="funs">
<div class="funsItem funs-sp">
<el-checkbox v-model="all" @change="selectAll()"
:disabled="tableData.length === 0">鍏ㄩ��</el-checkbox>
@@ -137,548 +232,555 @@
</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">
- </el-pagination>
- </div>
- </div>
- </div>
- </main>
- </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>
+ </div>
+ </main>
+ </div>
</template>
<script>
-import MyDetail from '@/components/detail'
-import MyIllDetail from '@/components/illdetail'
-import createUser from "./createUser"
-import MyIll from './createUser/ill'
-import MyVio from './createUser/vio'
-import MyDispatch from '@/components/dispatch'
-import helper from '@/utils/mydate'
+import MyDetail from "@/components/detail";
+import MyIllDetail from "@/components/illdetail";
+import createUser from "./createUser";
+import MyIll from "./createUser/ill";
+import MyVio from "./createUser/vio";
+import MyDispatch from "@/components/dispatch";
+import helper from "@/utils/mydate";
import { RESOURCE_OPTIONS } from "@/utils/helper";
import basecase from "@/api/operate/basecase";
export default {
- components: {
- createUser, MyIll, MyVio, MyDetail, MyDispatch, MyIllDetail
+ components: {
+ createUser,
+ MyIll,
+ MyVio,
+ MyDetail,
+ MyDispatch,
+ MyIllDetail,
+ },
+ data() {
+ return {
+ tableData: [],
+ dialogCreate: false,
+ dialogView: false,
+ dialogNewAdd: false,
+ dialogDispatch: false,
+ newAddType: 0,
+ totalNum: null,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ preMyIdx: 0,
+ info: {},
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ {
+ value: 1,
+ label: "鎵归噺鍚敤",
+ },
+ {
+ value: 2,
+ label: "鎵归噺绂佺敤",
+ },
+ {
+ value: 3,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ tagList: [
+ {
+ name: "寰呭鐞�",
+ value: 0,
+ checked: true,
+ },
+ {
+ name: "宸蹭笂鎶�",
+ value: 3,
+ checked: false,
+ },
+ {
+ name: "宸茶皟搴�",
+ value: 6,
+ checked: false,
+ },
+ {
+ name: "鍦ㄥ涔�",
+ value: 3,
+ checked: false,
+ },
+ {
+ name: "鏆備笉澶勭悊",
+ value: 4,
+ checked: false,
+ },
+ ],
+ typeList: [
+ {
+ name: "杩濊",
+ value: 1,
+ checked: true,
+ },
+ {
+ name: "杩濆缓",
+ value: 2,
+ checked: false,
+ },
+ ],
+ eventSourceOptions: RESOURCE_OPTIONS,
+ mystatus: 1,
+ statusArr: [],
+ baseId: 0,
+ resource: null,
+ };
+ },
+ created() {
+ this.tagList.forEach((item) => {
+ if (item.checked) {
+ this.statusArr[0] = item.value;
+ }
+ });
+ this.typeList.forEach((item) => {
+ if (item.checked) {
+ this.statusArr[1] = item.value;
+ }
+ });
+ this.getUserList();
+ },
+ methods: {
+ // 璋冨害
+ handleDispatch(data) {
+ this.baseId = data.id;
+ this.dialogDispatch = true;
},
- data() {
- return {
- tableData: [],
- dialogCreate: false,
- dialogView: false,
- dialogNewAdd: false,
- dialogDispatch: false,
- newAddType: 0,
- totalNum: null,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- preMyIdx: 0,
- info: {},
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- {
- value: 1,
- label: '鎵归噺鍚敤',
- },
- {
- value: 2,
- label: '鎵归噺绂佺敤',
- },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: [],
- tagList: [
- {
- name: '寰呭鐞�',
- value: 0,
- checked: true
- },
- {
- name: '宸蹭笂鎶�',
- value: 3,
- checked: false
- },
- {
- name: '宸茶皟搴�',
- value: 6,
- checked: false
- },
- {
- name: '鍦ㄥ涔�',
- value: 3,
- checked: false
- },
- {
- name: '鏆備笉澶勭悊',
- value: 4,
- checked: false
- },
- ],
- typeList: [
- {
- name: '杩濊',
- value: 1,
- checked: true
- },
- {
- name: '杩濆缓',
- value: 2,
- checked: false,
- },
- ],
- eventSourceOptions: RESOURCE_OPTIONS,
- mystatus: 1,
- statusArr: [],
- baseId: 0,
- resource: null
+ // 閫夋嫨杩濊杩濆缓
+ setDialog({ flag, type }) {
+ this.dialogCreate = flag;
+ this.dialogNewAdd = true;
+ this.newAddType = type;
+ },
+ // 鎵归噺鍒犻櫎
+ mulDelete(idArr) {
+ const { statusArr } = this;
+ this.$confirm("鎮ㄧ‘瀹氳鎵归噺鍒犻櫎妗堜欢鍚�?")
+ .then((_) => {
+ this.$axios({
+ method: "delete",
+ url:
+ "sccg/base_case/batch_deletion?ids=" +
+ idArr +
+ "&type=" +
+ statusArr[1],
+ }).then((res) => {
+ if (res.code === 200) {
+ this.getUserList();
+ this.$message({
+ message: "鎵归噺鍒犻櫎妗堜欢鎴愬姛",
+ type: "success",
+ });
+ } else {
+ this.$message({
+ message: res.data,
+ type: "warning",
+ });
+ }
+ });
+ })
+ .catch((err) => {});
+ },
+ // 鎵ц涓嬫媺妗嗘搷浣�
+ selectChange(list) {
+ if (this.tempList.length !== 0) {
+ if (list === 3) {
+ this.preMyIdx = list;
+ this.mulDelete(this.tempList);
}
+ } else {
+ this.myIdx = this.preMyIdx;
+ this.$message({
+ type: "warning",
+ message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+ });
+ }
},
- created() {
- this.tagList.forEach(item => {
- if (item.checked) {
- this.statusArr[0] = item.value;
- }
- })
- this.typeList.forEach(item => {
- if (item.checked) {
- this.statusArr[1] = item.value;
- }
- })
- this.getUserList();
+ // 鐩戝惉琛ㄦ牸
+ tableChange(list) {
+ this.tempList = [];
+ list.forEach((item) => {
+ this.tempList.push(item.id);
+ });
+ this.all = list.length === this.tableData.length;
},
- methods: {
- // 璋冨害
- handleDispatch(data) {
- this.baseId = data.id;
- this.dialogDispatch = true;
- },
- // 閫夋嫨杩濊杩濆缓
- setDialog({ flag, type }) {
- this.dialogCreate = flag;
- this.dialogNewAdd = true;
- this.newAddType = type;
- },
- // 鎵归噺鍒犻櫎
- mulDelete(idArr) {
- const { statusArr } = this;
- this.$confirm('鎮ㄧ‘瀹氳鎵归噺鍒犻櫎妗堜欢鍚�?')
- .then(_ => {
- this.$axios({
- method: 'delete',
- url: 'sccg/base_case/batch_deletion?ids=' + idArr + '&type=' + statusArr[1],
- }).then(res => {
- if (res.code === 200) {
- this.getUserList();
- this.$message({
- message: '鎵归噺鍒犻櫎妗堜欢鎴愬姛',
- type: 'success'
- })
- } else {
- this.$message({
- message: res.data,
- type: 'warning'
- })
- }
- })
- })
- .catch(err => { })
- },
- // 鎵ц涓嬫媺妗嗘搷浣�
- selectChange(list) {
- if (this.tempList.length !== 0) {
- if (list === 3) {
- this.preMyIdx = list;
- this.mulDelete(this.tempList);
- }
- } else {
- this.myIdx = this.preMyIdx;
- this.$message({
- type: 'warning',
- message: '鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁',
- })
- }
- },
- // 鐩戝惉琛ㄦ牸
- tableChange(list) {
- this.tempList = [];
- list.forEach(item => {
- this.tempList.push(item.id);
- })
- this.all = list.length === this.tableData.length;
- },
- // 鍏ㄩ��
- selectAll() {
- this.$refs.multipleTable.toggleAllSelection();
- },
- // 鍙嶉��
- disSame(list) {
- list.forEach(row => {
- this.$refs.multipleTable.toggleRowSelection(row)
- })
- },
- // 鑾峰彇鐢ㄦ埛鍒楄〃
- getUserList() {
- const params = {
- current: this.currentPage,
- state: this.statusArr[0] ?? null,
- size: this.pageSize,
- resource: this.resource,
- type: this.statusArr[1] ?? null
- }
- basecase.baseCasePoolList(params)
- .then(({ records, total }) => {
- this.tableData = records;
- this.totalNum = total;
- })
- .catch(err => this.$message.error(err))
- },
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- },
- // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
- handleFind(rowData) {
- },
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getUserList();
- },
+ // 鍏ㄩ��
+ selectAll() {
+ this.$refs.multipleTable.toggleAllSelection();
+ },
+ // 鍙嶉��
+ disSame(list) {
+ list.forEach((row) => {
+ this.$refs.multipleTable.toggleRowSelection(row);
+ });
+ },
+ // 鑾峰彇鐢ㄦ埛鍒楄〃
+ getUserList() {
+ const params = {
+ current: this.currentPage,
+ state: this.statusArr[0] ?? null,
+ size: this.pageSize,
+ resource: this.resource,
+ type: this.statusArr[1] ?? null,
+ };
+ basecase
+ .baseCasePoolList(params)
+ .then(({ records, total }) => {
+ this.tableData = records;
+ this.totalNum = total;
+ })
+ .catch((err) => this.$message.error(err));
+ },
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 === 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ },
+ // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
+ handleFind(rowData) {},
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getUserList();
+ },
- changeDialog({ flag }) {
- this.dialogNewAdd = flag;
- this.dialogCreate = flag;
- this.dialogView = flag;
- this.dialogDispatch = flag;
- },
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogCreate = false;
- this.dialogNewAdd = false;
- this.dialogDispatch = false;
- this.dialogView = false;
- done();
- })
- .catch(_ => { });
- },
- // 鏇存敼涓�绾ф爣绛剧殑閫変腑
- changeNavChecked(idx) {
- this.tagList.forEach((item, index) => {
- item.checked = index === idx;
- })
- this.mystatus = 1
- this.typeList[0].checked = true;
- this.typeList[1].checked = false;
- this.statusArr[0] = this.tagList[idx].value;
- this.statusArr[1] = 1;
- this.getUserList();
- },
- // 鏇存敼杩濊/杩濆缓
- changeTypeChecked(idx) {
- this.typeList.forEach((item, index) => {
- item.checked = index === idx;
- })
- this.mystatus = idx + 1;
- this.statusArr[1] = this.typeList[idx].value;
- this.getUserList();
- },
- async JumpView(data) {
- await this.getEventInfo(data.code);
- },
- // 鑾峰彇妗堜欢淇℃伅
- getEventInfo(code) {
- this.$axios({
- method: 'get',
- url: `sccg/base_case/baseCaseDetail/${code}`
- })
- .then(res => {
- this.info = res.data;
- this.dialogView = true;
- })
- },
- // 鍦ㄥ涔�
- handleLearn({ id }) {
- this.$axios({
- method: 'put',
- url: 'sccg/base_case/case_status_update?caseId=' + id + '&state=' + 3
- })
- .then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '娓╅Θ鎻愮ず',
- message: '姝や簨浠跺凡蹇界暐,杩斿洖绯荤粺鍦ㄥ涔�',
- type: 'success',
- position: 'bottom-right'
- })
- this.getUserList();
- } else {
- this.$message({
- type: 'error',
- message: '鎿嶄綔澶辫触'
- })
- }
- })
- },
- // 鏆備笉澶勭悊
- handleNotDeal({ id }) {
- this.$axios({
- method: 'put',
- url: 'sccg/base_case/case_status_update?caseId=' + id + '&state=' + 4
- })
- .then(res => {
- if (res.code === 200) {
- this.$notify({
- title: '娓╅Θ鎻愮ず',
- message: '姝や簨浠舵殏涓嶅鐞�,璇峰墠寰�鏆備笉澶勭悊鐣岄潰鏌ョ湅璇︽儏',
- type: 'success',
- position: 'bottom-right'
- })
- this.getUserList();
- } else {
- this.$message({
- type: 'error',
- message: '鎿嶄綔澶辫触'
- })
- }
- })
- },
- // 澶勭悊鏃堕棿
- filterTime(time) {
- return helper(time);
+ changeDialog({ flag }) {
+ this.dialogNewAdd = flag;
+ this.dialogCreate = flag;
+ this.dialogView = flag;
+ this.dialogDispatch = flag;
+ },
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogCreate = false;
+ this.dialogNewAdd = false;
+ this.dialogDispatch = false;
+ this.dialogView = false;
+ done();
+ })
+ .catch((_) => {});
+ },
+ // 鏇存敼涓�绾ф爣绛剧殑閫変腑
+ changeNavChecked(idx) {
+ this.tagList.forEach((item, index) => {
+ item.checked = index === idx;
+ });
+ this.mystatus = 1;
+ this.typeList[0].checked = true;
+ this.typeList[1].checked = false;
+ this.statusArr[0] = this.tagList[idx].value;
+ this.statusArr[1] = 1;
+ this.getUserList();
+ },
+ // 鏇存敼杩濊/杩濆缓
+ changeTypeChecked(idx) {
+ this.typeList.forEach((item, index) => {
+ item.checked = index === idx;
+ });
+ this.mystatus = idx + 1;
+ this.statusArr[1] = this.typeList[idx].value;
+ this.getUserList();
+ },
+ async JumpView(data) {
+ await this.getEventInfo(data.code);
+ },
+ // 鑾峰彇妗堜欢淇℃伅
+ getEventInfo(code) {
+ this.$axios({
+ method: "get",
+ url: `sccg/base_case/baseCaseDetail/${code}`,
+ }).then((res) => {
+ this.info = res.data;
+ this.dialogView = true;
+ });
+ },
+ // 鍦ㄥ涔�
+ handleLearn({ id }) {
+ this.$axios({
+ method: "put",
+ url: "sccg/base_case/case_status_update?caseId=" + id + "&state=" + 3,
+ }).then((res) => {
+ if (res.code === 200) {
+ this.$notify({
+ title: "娓╅Θ鎻愮ず",
+ message: "姝や簨浠跺凡蹇界暐,杩斿洖绯荤粺鍦ㄥ涔�",
+ type: "success",
+ position: "bottom-right",
+ });
+ this.getUserList();
+ } else {
+ this.$message({
+ type: "error",
+ message: "鎿嶄綔澶辫触",
+ });
}
- }
-}
+ });
+ },
+ // 鏆備笉澶勭悊
+ handleNotDeal({ id }) {
+ this.$axios({
+ method: "put",
+ url: "sccg/base_case/case_status_update?caseId=" + id + "&state=" + 4,
+ }).then((res) => {
+ if (res.code === 200) {
+ this.$notify({
+ title: "娓╅Θ鎻愮ず",
+ message: "姝や簨浠舵殏涓嶅鐞�,璇峰墠寰�鏆備笉澶勭悊鐣岄潰鏌ョ湅璇︽儏",
+ type: "success",
+ position: "bottom-right",
+ });
+ this.getUserList();
+ } else {
+ this.$message({
+ type: "error",
+ message: "鎿嶄綔澶辫触",
+ });
+ }
+ });
+ },
+ // 澶勭悊鏃堕棿
+ filterTime(time) {
+ return helper(time);
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- header {
- // background-color: #09152f;
+ header {
+ // background-color: #09152f;
- .headerContent {
- padding: 0;
- display: flex;
- line-height: 100px;
- justify-content: space-between;
- align-items: center;
+ .headerContent {
+ padding: 0;
+ display: flex;
+ line-height: 100px;
+ justify-content: space-between;
+ align-items: center;
- .search {
- display: flex;
- justify-content: flex-start;
+ .search {
+ display: flex;
+ justify-content: flex-start;
- span {
- flex: 1;
- }
-
- .option {
- line-height: 100px;
- display: flex;
- align-items: center;
-
- // ::v-deep .el-select {
- // background-color: #09152f;
- // border: 1px solid #17324c;
- // }
-
- .el-select {
- line-height: 40px;
-
- .el-input {
- flex: 2;
- color: #1d3f57;
- }
- }
- }
-
- }
-
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
-
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
-
- .addBtn {
- //background-color: #eb5d01;
- border: none;
- //border-radius: 20px;
- padding: 12px 30px;
- }
- }
- }
-
- main {
- // background-color: #09152f;
- margin-top: 20px;
-
- .mainTitle {
- line-height: 60px;
+ span {
+ flex: 1;
}
- //padding: 10px;
+ .option {
+ line-height: 100px;
+ display: flex;
+ align-items: center;
- .nav {
- display: flex;
+ // ::v-deep .el-select {
+ // background-color: #09152f;
+ // border: 1px solid #17324c;
+ // }
+
+ .el-select {
line-height: 40px;
- .nav-item {
- width: 80px;
- text-align: center;
-
- &:hover {
- cursor: pointer;
- }
+ .el-input {
+ flex: 2;
+ color: #1d3f57;
}
-
- .is-active {
- // background-color: #070f22;
- color: #333;
- font-size: 500;
- }
+ }
}
+ }
- .type-nav {
- display: flex;
- line-height: 40px;
- // margin-left: 30px;
- // margin-top: 2px;
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
+ display: flex;
+ align-items: center;
+ margin-top: -2px;
- .type-item {
- width: 80px;
- text-align: center;
-
- &:hover {
- cursor: pointer;
- }
- }
-
- .is-active {
- // background-color: #070f22;
- border-radius: 4px;
- color: #333;
- font-size: 500;
- }
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
}
+ }
- .tools {
- display: flex;
- justify-content: right;
- //align-items: ri;
- //padding: 0 20px;
-
- .funs {
- display: flex;
-
- .funs-sp {
- border: 1px solid #17324c;
- }
-
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
-
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- // &:hover {
- // border: 1px solid #4b9bb7;
- // }
-
- // &:hover .el-checkbox {
- // color: #4b9bb7;
- // }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- // &::v-deep li,
- // &::v-deep .btn-prev,
- // &::v-deep .btn-next {
- // // background-color: #071f39;
- // color: #4b9bb7;
- // }
-
- // &::v-deep .active {
- // background-color: #409eff;
- // color: #fff;
- // }
- }
- }
- }
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
- // margin-top: 10px;
-
- &::v-deep .cell {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- // display: none;
- .el-checkbox{
- display:none
- }
- }
-
-
- .operation {
- display: flex;
-
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
-
+ .addBtn {
+ //background-color: #eb5d01;
+ border: none;
+ //border-radius: 20px;
+ padding: 12px 30px;
+ }
}
+ }
+
+ main {
+ // background-color: #09152f;
+ margin-top: 20px;
+
+ .mainTitle {
+ line-height: 60px;
+ }
+
+ //padding: 10px;
+
+ .nav {
+ display: flex;
+ line-height: 40px;
+
+ .nav-item {
+ width: 80px;
+ text-align: center;
+
+ &:hover {
+ cursor: pointer;
+ }
+ }
+
+ .is-active {
+ // background-color: #070f22;
+ color: #333;
+ font-size: 500;
+ }
+ }
+
+ .type-nav {
+ display: flex;
+ line-height: 40px;
+ // margin-left: 30px;
+ // margin-top: 2px;
+
+ .type-item {
+ width: 80px;
+ text-align: center;
+
+ &:hover {
+ cursor: pointer;
+ }
+ }
+
+ .is-active {
+ // background-color: #070f22;
+ border-radius: 4px;
+ color: #333;
+ font-size: 500;
+ }
+ }
+
+ .tools {
+ display: flex;
+ justify-content: right;
+ //align-items: ri;
+ //padding: 0 20px;
+
+ .funs {
+ display: flex;
+
+ .funs-sp {
+ border: 1px solid #17324c;
+ }
+
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
+
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
+
+ .el-select {
+ width: 120px;
+ }
+
+ // &:hover {
+ // border: 1px solid #4b9bb7;
+ // }
+
+ // &:hover .el-checkbox {
+ // color: #4b9bb7;
+ // }
+ }
+ }
+
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
+
+ .el-pagination {
+ // &::v-deep li,
+ // &::v-deep .btn-prev,
+ // &::v-deep .btn-next {
+ // // background-color: #071f39;
+ // color: #4b9bb7;
+ // }
+
+ // &::v-deep .active {
+ // background-color: #409eff;
+ // color: #fff;
+ // }
+ }
+ }
+ }
+
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
+ // margin-top: 10px;
+
+ &::v-deep .cell {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ // display: none;
+ .el-checkbox {
+ display: none;
+ }
+ }
+
+ .operation {
+ display: flex;
+
+ .line {
+ padding: 0 5px;
+ }
+
+ span:hover {
+ cursor: pointer;
+ }
+ }
+ }
+ }
}
</style>
diff --git a/src/views/operate/fivepack/shop/index.vue b/src/views/operate/fivepack/shop/index.vue
index 8cbb6a1..f216fb8 100644
--- a/src/views/operate/fivepack/shop/index.vue
+++ b/src/views/operate/fivepack/shop/index.vue
@@ -21,7 +21,7 @@
.userList {
text-align: left;
margin: 10px 20px;
- color: #4b9bb7;
+ // color: #4b9bb7;
&::v-deep .el-dialog__header,
&::v-deep .el-dialog__body {
diff --git a/src/views/operate/images/index.vue b/src/views/operate/images/index.vue
index 4f8ff53..2b8d350 100644
--- a/src/views/operate/images/index.vue
+++ b/src/views/operate/images/index.vue
@@ -400,7 +400,7 @@
.userList {
text-align: left;
padding: 10px 20px;
- color: #4b9bb7;
+ // color: #4b9bb7;
border: 1px solid #ccc;
header {
background-color: white;
diff --git a/src/views/operate/log/index.vue b/src/views/operate/log/index.vue
index 1d9109e..f10f778 100644
--- a/src/views/operate/log/index.vue
+++ b/src/views/operate/log/index.vue
@@ -431,7 +431,7 @@
.userList {
text-align: left;
padding: 10px 20px;
- color: #606266;
+ // color: #606266;
border: 1px solid #ccc;
header {
background-color: white;
diff --git a/src/views/operate/management/myIndex/index.vue b/src/views/operate/management/myIndex/index.vue
index 4141ff4..d71e2b4 100644
--- a/src/views/operate/management/myIndex/index.vue
+++ b/src/views/operate/management/myIndex/index.vue
@@ -455,7 +455,7 @@
.userList {
text-align: left;
padding: 10px 20px;
- color: #4b9bb7;
+ // color: #4b9bb7;
border: 1px solid #ccc;
header {
// background-color: #09152f;
diff --git a/src/views/operate/myWait/index.vue b/src/views/operate/myWait/index.vue
index b6bdec3..ecfdb5e 100644
--- a/src/views/operate/myWait/index.vue
+++ b/src/views/operate/myWait/index.vue
@@ -353,7 +353,7 @@
.userList {
text-align: left;
padding: 10px 20px;
- color: #4b9bb7;
+ // color: #4b9bb7;
border: 1px solid #ccc;
.headerTitle {
line-height: 40px;
diff --git a/src/views/operate/viewEvent/index.vue b/src/views/operate/viewEvent/index.vue
index 7f3cc76..6b5628d 100644
--- a/src/views/operate/viewEvent/index.vue
+++ b/src/views/operate/viewEvent/index.vue
@@ -321,7 +321,7 @@
.userList {
text-align: left;
padding: 10px 20px;
- color: #4b9bb7;
+ // color: #4b9bb7;
border: 1px solid #ccc;
header {
display: flex;
diff --git a/src/views/systemSetting/baseSetting/user/components/header/index.vue b/src/views/systemSetting/baseSetting/user/components/header/index.vue
index 74e0514..ccde5e8 100644
--- a/src/views/systemSetting/baseSetting/user/components/header/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/header/index.vue
@@ -11,7 +11,7 @@
<div class="addUser">
<!-- :before-close="handleClose" -->
<el-button class="addBtn button-addition" type="primary" @click="dialogCreate = true">娣诲姞鐢ㄦ埛</el-button>
- <el-dialog :visible.sync="dialogCreate" title="鏂板璐︽埛" width="60%" v-if="dialogCreate"
+ <el-dialog :visible.sync="dialogCreate" title="鏂板璐︽埛" width="800px" v-if="dialogCreate"
:before-close="handleClose">
<createUser @sendDialog="sendDialog" />
</el-dialog>
diff --git a/src/views/systemSetting/baseSetting/user/components/main/index.vue b/src/views/systemSetting/baseSetting/user/components/main/index.vue
index 3cb07b3..dc18c42 100644
--- a/src/views/systemSetting/baseSetting/user/components/main/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/main/index.vue
@@ -84,7 +84,7 @@
<!-- 鏌ョ湅椤甸潰 -->
<el-dialog
:visible.sync="dialogView"
- width="45%"
+ width="600px"
v-if="dialogView"
title="鏌ョ湅鐢ㄦ埛淇℃伅"
>
@@ -93,7 +93,7 @@
<!-- 淇敼椤甸潰 -->
<el-dialog
:visible.sync="dialogUpdate"
- width="45%"
+ width="600px"
v-if="dialogUpdate"
:title="
updateFlag
diff --git a/src/views/systemSetting/baseSetting/user/index.vue b/src/views/systemSetting/baseSetting/user/index.vue
index 30cc3df..e300db8 100644
--- a/src/views/systemSetting/baseSetting/user/index.vue
+++ b/src/views/systemSetting/baseSetting/user/index.vue
@@ -45,7 +45,7 @@
//height: 100%;
text-align: left;
padding: 10px 20px;
- color: #4b9bb7;
+ // color: #4b9bb7;
border: 1px solid #ccc;
}
</style>
diff --git a/src/views/systemSetting/device/bayonet/index.vue b/src/views/systemSetting/device/bayonet/index.vue
index 950f502..8705eca 100644
--- a/src/views/systemSetting/device/bayonet/index.vue
+++ b/src/views/systemSetting/device/bayonet/index.vue
@@ -4,12 +4,13 @@
<div class="header-content">
<div class="search">
<span style="padding-right: 20px">绛涢�夋潯浠�:</span>
- <el-input v-model="context" placeholder="璇疯緭鍏�" @change="getBayonetListData"></el-input>
+ <el-input
+ v-model="context"
+ placeholder="璇疯緭鍏�"
+ @change="getBayonetListData"
+ ></el-input>
</div>
- </div>
- </header>
- <main>
- <div class="main-content">
+
<div class="main-title">
<el-button
class="el-icon-plus button-addition"
@@ -17,10 +18,20 @@
@click="showDialog(false, null)"
>娣诲姞</el-button
>
- <el-button @click="handleExport">瀵煎嚭鍗″彛</el-button>
+ <el-button @click="handleExport"
+ type="primary">瀵煎嚭鍗″彛</el-button>
</div>
+ </div>
+ </header>
+ <main>
+ <div class="main-content">
<!-- 鏁版嵁灞曠ず -->
- <MyTable :tableOption="tableOption" :get-table-list="getBayonetListData" :tableData="list" :pageShow="false">
+ <MyTable
+ :tableOption="tableOption"
+ :get-table-list="getBayonetListData"
+ :tableData="list"
+ :pageShow="true"
+ >
<template #operation="info">
<el-link
:underline="false"
@@ -166,7 +177,7 @@
.exportBayonetList({
bayonetName: this.context,
current: this.current,
- size: this.size
+ size: this.size,
})
.then((res) => {
downloadFile(res);
@@ -202,7 +213,7 @@
// color: #4b9bb7;
border: 1px solid #ccc;
header {
- background-color: white;
+ // background-color: white;
.header-content {
padding: 0;
@@ -229,6 +240,11 @@
// }
}
}
+
+ .main-title {
+ line-height: 60px;
+ padding: 10px 0px;
+ }
}
}
@@ -236,11 +252,6 @@
// background-color: #09152f;
margin-top: 20px;
padding-bottom: 50px;
-
- .main-title {
- line-height: 60px;
- padding: 10px 0px;
- }
.tools {
display: flex;
diff --git a/src/views/systemSetting/device/grid/components/main/index.vue b/src/views/systemSetting/device/grid/components/main/index.vue
index 114999f..bcf583b 100644
--- a/src/views/systemSetting/device/grid/components/main/index.vue
+++ b/src/views/systemSetting/device/grid/components/main/index.vue
@@ -264,7 +264,7 @@
}
header {
- background-color: white;
+ // background-color: white;
display: flex;
.headerContent {
padding: 10px 0;
diff --git a/src/views/systemSetting/device/grid/index.vue b/src/views/systemSetting/device/grid/index.vue
index 8f2c153..a022f16 100644
--- a/src/views/systemSetting/device/grid/index.vue
+++ b/src/views/systemSetting/device/grid/index.vue
@@ -1,47 +1,45 @@
<template>
- <div class="userList">
- <myMain :refresh="isFresh" :keyword="keyword" @resetFresh="resetFresh" />
- </div>
+ <div class="userList">
+ <myMain :refresh="isFresh" :keyword="keyword" @resetFresh="resetFresh" />
+ </div>
</template>
<script>
-import myHeader from "./components/header"
-import myMain from "./components/main"
+import myHeader from "./components/header";
+import myMain from "./components/main";
export default {
- components: {
- myHeader,
- myMain
+ components: {
+ myHeader,
+ myMain,
+ },
+ data() {
+ return {
+ isFresh: false,
+ keyword: "",
+ };
+ },
+ created() {},
+ methods: {
+ // 鑾峰彇鎼滅储杩斿洖缁撴灉
+ getSearch({ text }) {
+ this.keyword = text;
+ this.isFresh = true;
},
- data() {
- return {
- isFresh: false,
- keyword: '',
- }
+ // 鑾峰彇鍒锋柊缁撴灉
+ changeDialog({ flag }) {
+ this.isFresh = flag;
},
- created(){
-
+ // 閲嶇疆isFresh
+ resetFresh({ flag }) {
+ this.isFresh = flag;
},
- methods: {
- // 鑾峰彇鎼滅储杩斿洖缁撴灉
- getSearch({ text }) {
- this.keyword = text;
- this.isFresh = true;
- },
- // 鑾峰彇鍒锋柊缁撴灉
- changeDialog({ flag }) {
- this.isFresh = flag;
- },
- // 閲嶇疆isFresh
- resetFresh({ flag }) {
- this.isFresh = flag;
- },
- }
-}
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
- padding: 10px 20px;
- color: #4b9bb7;
+ text-align: left;
+ padding: 10px 20px;
+ // color: #4b9bb7;
border: 1px solid #ccc;
}
</style>
diff --git a/src/views/systemSetting/device/handheldTerminal/index.vue b/src/views/systemSetting/device/handheldTerminal/index.vue
index d4eb0d2..5830ed6 100644
--- a/src/views/systemSetting/device/handheldTerminal/index.vue
+++ b/src/views/systemSetting/device/handheldTerminal/index.vue
@@ -18,22 +18,26 @@
</el-option>
</el-select>
</div>
+
+ <div class="main-title">
+ <el-button
+ class="el-icon-plus button-addition"
+ type="primary"
+ @click="handleAdd"
+ >娣诲姞</el-button
+ >
+ </div>
</div>
</header>
<main>
<div class="main-content">
- <div class="main-title">
- <el-button class="el-icon-plus button-addition" type="primary" @click="handleAdd"
- >娣诲姞</el-button
- >
- </div>
<!-- 鏁版嵁灞曠ず -->
<el-table
- border
- stripe
+ border
+ stripe
ref="multipleTable"
:header-cell-style="{
- 'background':'#F5F5F5',
+ background: '#F5F5F5',
'font-weight': '650',
'line-height': '45px',
}"
@@ -240,9 +244,6 @@
// color: #4b9bb7;
border: 1px solid #ccc;
header {
- background-color: white;
- // border: 1pox solid #fff;
-
.header-content {
padding: 0;
display: flex;
@@ -260,27 +261,18 @@
.el-input {
flex: 2;
- // color: #1d3f57;
-
- // &::v-deep .el-input__inner {
- // background-color: #09152f;
- // border: 1px solid #17324c;
- // }
}
+ }
+
+ .main-title {
+ line-height: 60px;
+ padding: 0px;
}
}
}
main {
- // background-color: #09152f;
- //margin-top: 20px;
padding-bottom: 50px;
- //border: 1pox solid #fff;
-
- .main-title {
- line-height: 60px;
- padding:0px;
- }
.tools {
display: flex;
@@ -308,19 +300,6 @@
.el-select {
width: 120px;
}
-
- // &::v-deep .el-input__inner {
- // border: none;
- // background-color: #09152f;
- // }
-
- // &:hover {
- // border: 1px solid #4b9bb7;
- // }
-
- // &:hover .el-checkbox {
- // color: #4b9bb7;
- // }
}
}
@@ -329,29 +308,8 @@
display: flex;
line-height: 50px;
justify-content: center;
-
- .el-pagination {
- // &::v-deep li,
- // &::v-deep .btn-prev,
- // &::v-deep .btn-next {
- // background-color: #071f39;
- // color: #4b9bb7;
- // }
-
- // &::v-deep .active {
- // background-color: #409eff;
- // color: #fff;
- // }
- }
}
}
- // &::v-deep .warning-row {
- // background-color: #06122c;
- // }
-
- // &::v-deep .success-row {
- // background-color: #071f39;
- // }
.operationBox {
display: flex;
diff --git a/src/views/systemSetting/device/loudspeaker/index.vue b/src/views/systemSetting/device/loudspeaker/index.vue
index 8f1d6f6..3f323ca 100644
--- a/src/views/systemSetting/device/loudspeaker/index.vue
+++ b/src/views/systemSetting/device/loudspeaker/index.vue
@@ -18,22 +18,25 @@
</el-option>
</el-select>
</div>
+ <div class="main-title">
+ <el-button
+ class="el-icon-plus button-addition"
+ type="primary"
+ @click="handleAdd"
+ >娣诲姞</el-button
+ >
+ </div>
</div>
</header>
<main>
<div class="main-content">
- <div class="main-title">
- <el-button class="el-icon-plus button-addition" type="primary" @click="handleAdd"
- >娣诲姞</el-button
- >
- </div>
<!-- 鏁版嵁灞曠ず -->
<el-table
- border
- stripe
+ border
+ stripe
ref="multipleTable"
:header-cell-style="{
- 'background':'#F5F5F5',
+ background: '#F5F5F5',
'font-weight': '650',
'line-height': '45px',
}"
@@ -242,12 +245,8 @@
.list {
text-align: left;
padding: 10px 20px;
- // color: #4b9bb7;
border: 1px solid #ccc;
header {
- background-color: white;
- // border: 1pox solid #fff;
-
.header-content {
padding: 0px;
display: flex;
@@ -265,27 +264,17 @@
.el-input {
flex: 2;
- // color: #1d3f57;
-
- // &::v-deep .el-input__inner {
- // background-color: #09152f;
- // border: 1px solid #17324c;
- // }
}
+ }
+ .main-title {
+ line-height: 60px;
+ padding: 0;
}
}
}
main {
- // background-color: #09152f;
- //margin-top: 20px;
padding-bottom: 50px;
- //border: 1px solid #fff;
-
- .main-title {
- line-height: 60px;
- padding: 0;
- }
.tools {
display: flex;
@@ -300,7 +289,6 @@
line-height: 28px;
display: flex;
align-items: center;
- // border: 1px solid #17324c;
border-radius: 4px;
font-size: 12px;
margin-left: 10px;
@@ -313,19 +301,6 @@
.el-select {
width: 120px;
}
-
- // &::v-deep .el-input__inner {
- // border: none;
- // background-color: #09152f;
- // }
-
- // &:hover {
- // border: 1px solid #4b9bb7;
- // }
-
- // &:hover .el-checkbox {
- // color: #4b9bb7;
- // }
}
}
@@ -334,27 +309,10 @@
display: flex;
line-height: 50px;
justify-content: center;
-
- .el-pagination {
- // &::v-deep li,
- // &::v-deep .btn-prev,
- // &::v-deep .btn-next {
- // background-color: #071f39;
- // color: #4b9bb7;
- // }
-
- // &::v-deep .active {
- // background-color: #409eff;
- // color: #fff;
- // }
- }
}
}
.el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
.operation {
display: flex;
color: var(--operation-color);
diff --git a/src/views/systemSetting/platform/cockpitManage/index.vue b/src/views/systemSetting/platform/cockpitManage/index.vue
index 5450eeb..d5965dc 100644
--- a/src/views/systemSetting/platform/cockpitManage/index.vue
+++ b/src/views/systemSetting/platform/cockpitManage/index.vue
@@ -1,600 +1,709 @@
<template>
- <div class="userList">
- <header>
- <div class="headerContent">
- <div class="search">
- <div class="search-item">
- <span>閮ㄩ棬鍚嶇О:</span>
- <div class="option">
- <el-input v-model="searchDepartment" placeholder="璇疯緭鍏ラ儴闂�"></el-input>
- </div>
- </div>
- <div class="search-item">
- <span>鐘舵��:</span>
- <div class="option">
- <el-select v-model="searchStatus" placeholder="閫夋嫨鐘舵��">
- <el-option v-for="{ label, value } in statusOptions" :key="value" :label="label" :value="value"></el-option>
- </el-select>
- </div>
- </div>
- <div class="findBtn">
- <el-button type="primary" @click="getDepartmentList">鏌ヨ</el-button>
- </div>
- </div>
+ <div class="userList">
+ <header>
+ <div class="headerContent">
+ <div class="search">
+ <div class="search-item">
+ <span>閮ㄩ棬鍚嶇О:</span>
+ <div class="option">
+ <el-input
+ v-model="searchDepartment"
+ placeholder="璇疯緭鍏ラ儴闂�"
+ ></el-input>
</div>
- </header>
- <main>
- <div class="mainContent">
- <div class="type-nav">
- <el-upload
- action=""
- ref="uploadFile"
- :http-request="importTable"
- :show-file-list="false"
- :auto-upload="true"
- :limit="1">
- <el-button type="primary">瀵煎叆</el-button>
- </el-upload>
- <el-button style="margin-left: 10px" type="primary" @click="exportTable">瀵煎嚭</el-button>
- <el-button class="button-addition" type="primary" @click="showAddDialog">娣诲姞</el-button>
- </div>
- <!-- 鏁版嵁灞曠ず -->
- <el-table
- border
- stripe
- ref="multipleTable"
- :header-cell-style="{ 'background':'#F5F5F5', 'font-size': '14px', 'font-weight': '650', 'line-height': '45px' }"
- :data="tableData" style="width: 100%" :row-class-name="tableRowClassName"
- @selection-change="tableChange">
- <el-table-column prop="name" label="閮ㄩ棬鍚嶇О" min-width="8">
- </el-table-column>
- <el-table-column prop="peopleNumber" label="閮ㄩ棬浜烘暟" min-width="10">
- </el-table-column>
- <el-table-column prop="upUndergraduatePeopleNumber" label="鏈瀛﹀巻鍙婁互涓婁汉鏁�" min-width="15">
- </el-table-column>
- <el-table-column prop="holderNumber" label="鎸佽瘉浜哄憳鏁�" min-width="8">
- </el-table-column>
- <el-table-column prop="underFortyFivePeopleNumber" label="45鏁颁互涓嬩汉鏁�" min-width="8">
- </el-table-column>
- <el-table-column prop="legalProfessionalQualificationCertificatePeopleNumber" label="鎸佹硶寰嬭亴涓氳祫鏍艰瘉浜烘暟" min-width="15" v-if="mystatus === 1">
- </el-table-column>
- <el-table-column prop="reportNumber" label="閫氭姤鏁伴噺" min-width="8">
- </el-table-column>
- <el-table-column prop="disciplinaryOffenceNumber" label="杩濈邯琛屼负鏁伴噺" min-width="15" v-if="mystatus === 1">
- </el-table-column>
- <el-table-column prop="criminalOffenseNumber" label="杩濇硶鐘姜琛屼负鏁伴噺" min-width="8">
- </el-table-column>
- <el-table-column prop="monthCaseNumber" label="姣忔湀妗堜欢妗�" min-width="15" v-if="mystatus === 1">
- </el-table-column>
- <el-table-column prop="noTimeoutCaseNumber" label="鏈秴鏃舵浠堕噺" min-width="8">
- </el-table-column>
- <el-table-column prop="reviewOrLawsuitNumber" label="澶嶈鎴栬瘔璁兼暟" min-width="15" v-if="mystatus === 1">
- </el-table-column>
- <el-table-column prop="status" label="鐘舵��" min-width="15" v-if="mystatus === 1">
- <template slot-scope="scope">
- <span>{{scope.row. status=== 1? '鍚姩' : '绂佺敤'}}</span>
- </template>
- </el-table-column>
- <el-table-column prop="operation" label="鎿嶄綔" min-width="15">
- <template slot-scope="scope">
- <div class="operation">
- <span @click="showUpdateDialog(scope.row)">淇敼</span>
- <span class="line">|</span>
- <span @click="handleDelete(scope.row)">鍒犻櫎</span>
- </div>
- </template>
- </el-table-column>
- </el-table>
- <!-- 璇︽儏椤靛睍绀� -->
- <el-dialog :visible.sync="dialogView" width="60%" title="鍩虹淇℃伅(浜哄伐)"
- :before-close="handleClose">
- <MyDetail :info=info v-if="mystatus === 1"></MyDetail>
- <MyIllDetail :info=info v-else></MyIllDetail>
- </el-dialog>
-
- <el-dialog :visible.sync="dialogUpdate" width="40%" title="淇敼閮ㄩ棬"
- :before-close="handleClose">
- <update-user @closeUpdateDialog="closeUpdateDialog()"
- :updateDepartmentData="updateDepartmentData"
- :isUpdate="dialogType === 'update'"
- />
- </el-dialog>
- <el-dialog :visible.sync="dialogcheck" width="40%" title="鏌ョ湅"
- :before-close="handleClose" >
- <detailUser />
- </el-dialog>
-
- <el-dialog :visible.sync="dialogAdd" width="40%" title="娣诲姞閮ㄩ棬"
- :before-close="handleClose">
- <update-user @closeUpdateDialog="closeUpdateDialog()"
- :updateDepartmentData="updateDepartmentData"
- :isUpdate="dialogType === 'add'"
- />
- </el-dialog>
-
- <div class="tools">
- <!-- <div class="funs">
- <div class="funsItem funs-sp">
- <el-checkbox v-model="all" @change="selectAll()">鍏ㄩ��</el-checkbox>
- </div>
- <div class="funsItem funs-sp">
- <el-checkbox v-model="unsame" @change="disSame(tableData)">鍙嶉��</el-checkbox>
- </div>
- <div class="funsItem">
- <el-select v-model="myIdx" placeholder="鎵归噺鎿嶄綔" @change="selectChange" disabled>
- <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">
- </el-pagination>
- </div>
- </div>
+ </div>
+ <div class="search-item">
+ <span>鐘舵��:</span>
+ <div class="option">
+ <el-select v-model="searchStatus" placeholder="閫夋嫨鐘舵��">
+ <el-option
+ v-for="{ label, value } in statusOptions"
+ :key="value"
+ :label="label"
+ :value="value"
+ ></el-option>
+ </el-select>
</div>
- </main>
- </div>
+ </div>
+ <div class="findBtn">
+ <el-button type="primary" @click="getDepartmentList"
+ >鏌ヨ</el-button
+ >
+ </div>
+ </div>
+ <div class="type-nav">
+ <el-upload
+ action=""
+ ref="uploadFile"
+ :http-request="importTable"
+ :show-file-list="false"
+ :auto-upload="true"
+ :limit="1"
+ >
+ <el-button type="primary">瀵煎叆</el-button>
+ </el-upload>
+ <el-button
+ style="margin-left: 10px"
+ type="primary"
+ @click="exportTable"
+ >瀵煎嚭</el-button
+ >
+ <el-button
+ class="button-addition"
+ type="primary"
+ @click="showAddDialog"
+ >娣诲姞</el-button
+ >
+ </div>
+ </div>
+ </header>
+ <main>
+ <div class="mainContent">
+ <!-- 鏁版嵁灞曠ず -->
+ <el-table
+ border
+ stripe
+ ref="multipleTable"
+ :header-cell-style="{
+ background: '#F5F5F5',
+ 'font-size': '14px',
+ '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="name" label="閮ㄩ棬鍚嶇О" min-width="8">
+ </el-table-column>
+ <el-table-column prop="peopleNumber" label="閮ㄩ棬浜烘暟" min-width="10">
+ </el-table-column>
+ <el-table-column
+ prop="upUndergraduatePeopleNumber"
+ label="鏈瀛﹀巻鍙婁互涓婁汉鏁�"
+ min-width="15"
+ >
+ </el-table-column>
+ <el-table-column prop="holderNumber" label="鎸佽瘉浜哄憳鏁�" min-width="8">
+ </el-table-column>
+ <el-table-column
+ prop="underFortyFivePeopleNumber"
+ label="45鏁颁互涓嬩汉鏁�"
+ min-width="8"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="legalProfessionalQualificationCertificatePeopleNumber"
+ label="鎸佹硶寰嬭亴涓氳祫鏍艰瘉浜烘暟"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ </el-table-column>
+ <el-table-column prop="reportNumber" label="閫氭姤鏁伴噺" min-width="8">
+ </el-table-column>
+ <el-table-column
+ prop="disciplinaryOffenceNumber"
+ label="杩濈邯琛屼负鏁伴噺"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="criminalOffenseNumber"
+ label="杩濇硶鐘姜琛屼负鏁伴噺"
+ min-width="8"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="monthCaseNumber"
+ label="姣忔湀妗堜欢妗�"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="noTimeoutCaseNumber"
+ label="鏈秴鏃舵浠堕噺"
+ min-width="8"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="reviewOrLawsuitNumber"
+ label="澶嶈鎴栬瘔璁兼暟"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="status"
+ label="鐘舵��"
+ min-width="15"
+ v-if="mystatus === 1"
+ >
+ <template slot-scope="scope">
+ <span>{{ scope.row.status === 1 ? "鍚姩" : "绂佺敤" }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column prop="operation" label="鎿嶄綔" min-width="15">
+ <template slot-scope="scope">
+ <div class="operation">
+ <span @click="showUpdateDialog(scope.row)">淇敼</span>
+ <span class="line">|</span>
+ <span @click="handleDelete(scope.row)">鍒犻櫎</span>
+ </div>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 璇︽儏椤靛睍绀� -->
+ <el-dialog
+ :visible.sync="dialogView"
+ width="60%"
+ title="鍩虹淇℃伅(浜哄伐)"
+ :before-close="handleClose"
+ >
+ <MyDetail :info="info" v-if="mystatus === 1"></MyDetail>
+ <MyIllDetail :info="info" v-else></MyIllDetail>
+ </el-dialog>
+
+ <el-dialog
+ :visible.sync="dialogUpdate"
+ width="40%"
+ title="淇敼閮ㄩ棬"
+ :before-close="handleClose"
+ >
+ <update-user
+ @closeUpdateDialog="closeUpdateDialog()"
+ :updateDepartmentData="updateDepartmentData"
+ :isUpdate="dialogType === 'update'"
+ />
+ </el-dialog>
+ <el-dialog
+ :visible.sync="dialogcheck"
+ width="40%"
+ title="鏌ョ湅"
+ :before-close="handleClose"
+ >
+ <detailUser />
+ </el-dialog>
+
+ <el-dialog
+ :visible.sync="dialogAdd"
+ width="40%"
+ title="娣诲姞閮ㄩ棬"
+ :before-close="handleClose"
+ >
+ <update-user
+ @closeUpdateDialog="closeUpdateDialog()"
+ :updateDepartmentData="updateDepartmentData"
+ :isUpdate="dialogType === 'add'"
+ />
+ </el-dialog>
+
+ <div class="tools">
+ <div class="funs">
+ <div class="funsItem funs-sp">
+ <el-checkbox v-model="all" @change="selectAll()"
+ >鍏ㄩ��</el-checkbox
+ >
+ </div>
+ <div class="funsItem funs-sp">
+ <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
+ :current-page="currentPage"
+ layout="prev, pager, next"
+ :total="totalNum"
+ :page-size="pageSize"
+ @current-change="changeCurrentPage"
+ >
+ </el-pagination>
+ </div>
+ </div>
+ </div>
+ </main>
+ </div>
</template>
<script>
import updateUser from "./updateUser";
import detailUser from "./detailUser";
-import { deleteTeam, exportTeamInfo, importTeamInfo, searchTeamInfo } from "@/api/system/portal/teamConstruction";
+import {
+ deleteTeam,
+ exportTeamInfo,
+ importTeamInfo,
+ searchTeamInfo,
+} from "@/api/system/portal/teamConstruction";
import { SUCCESS_CODE } from "@/utils";
-import {downloadFile} from "@/utils/helper";
+import { downloadFile } from "@/utils/helper";
export default {
- components: { updateUser, detailUser },
+ components: { updateUser, detailUser },
- data() {
- return {
- updateDepartmentData: null,
- searchDepartment: null,
- searchStatus: null,
- dialogUpdate: false,
- dialogcheck: false,
- tableData: [],
- context: "",
- dialogUpload: false,
- dialogView: false,
- updateFlag: false,
- userInfo: {},
- info: {},
- totalNum: 1,
- pageSize: 10,
- currentPage: 1,
- all: false,
- unsame: false,
- myIdx: 0,
- preMyIdx: 0,
- file: null,
- statusOptions: [
- {
- value: 2,
- label: '鍏ㄩ儴'
- },
- {
- value: 1,
- label: '鍚敤'
- },
- {
- value: 0,
- label: '绂佺敤'
- }
- ],
- options: [
- {
- value: 0,
- label: '鎵归噺鎿嶄綔',
- disabled: true,
- },
- {
- value: 1,
- label: '鎵归噺鍚敤',
- },
- {
- value: 2,
- label: '鎵归噺绂佺敤',
- },
- {
- value: 3,
- label: '鎵归噺鍒犻櫎',
- }
- ],
- tempList: [],
- typeList: [
- {
- name: '鎽勫儚澶存帹閫�',
- value: 1,
- checked: true
- },
- {
- name: '鍗曞叺鎺ㄩ��',
- value: 2,
- checked: false,
- },
- ],
- statusArr: [],
- mystatus: 1,
- caseId: '',
- caseCode: null,
- dialogAdd: false,
- dialogType: 'update'
- }
+ data() {
+ return {
+ updateDepartmentData: null,
+ searchDepartment: null,
+ searchStatus: null,
+ dialogUpdate: false,
+ dialogcheck: false,
+ tableData: [],
+ context: "",
+ dialogUpload: false,
+ dialogView: false,
+ updateFlag: false,
+ userInfo: {},
+ info: {},
+ totalNum: 1,
+ pageSize: 10,
+ currentPage: 1,
+ all: false,
+ unsame: false,
+ myIdx: 0,
+ preMyIdx: 0,
+ file: null,
+ statusOptions: [
+ {
+ value: 2,
+ label: "鍏ㄩ儴",
+ },
+ {
+ value: 1,
+ label: "鍚敤",
+ },
+ {
+ value: 0,
+ label: "绂佺敤",
+ },
+ ],
+ options: [
+ {
+ value: 0,
+ label: "鎵归噺鎿嶄綔",
+ disabled: true,
+ },
+ {
+ value: 1,
+ label: "鎵归噺鍒犻櫎",
+ },
+ ],
+ tempList: [],
+ typeList: [
+ {
+ name: "鎽勫儚澶存帹閫�",
+ value: 1,
+ checked: true,
+ },
+ {
+ name: "鍗曞叺鎺ㄩ��",
+ value: 2,
+ checked: false,
+ },
+ ],
+ statusArr: [],
+ mystatus: 1,
+ caseId: "",
+ caseCode: null,
+ dialogAdd: false,
+ dialogType: "update",
+ };
+ },
+
+ created() {
+ this.statusArr[0] = 6;
+ this.typeList.forEach((item) => {
+ if (item.checked) {
+ this.statusArr[1] = item.value;
+ }
+ });
+ this.getDepartmentList();
+ },
+
+ methods: {
+ //淇敼
+ showUpdateDialog(data) {
+ this.dialogUpdate = true;
+ this.updateDepartmentData = data;
},
- created() {
- this.statusArr[0] = 6;
- this.typeList.forEach(item => {
- if (item.checked) {
- this.statusArr[1] = item.value;
- }
+ // 娣诲姞鐣岄潰
+ showAddDialog() {
+ this.dialogAdd = true;
+ this.dialogType = "add";
+ },
+
+ // 瀵煎嚭
+ exportTable() {
+ const status = this.searchStatus === 2 ? null : this.searchStatus;
+ exportTeamInfo({
+ current: this.currentPage,
+ size: this.pageSize,
+ departName: this.searchDepartment,
+ status,
+ })
+ .then((res) => {
+ downloadFile(res);
+ this.$message({ type: "success", message: "鎿嶄綔鎴愬姛" });
+ })
+ .catch((err) => {
+ this.$message({ type: "error", message: err });
});
- this.getDepartmentList();
},
- methods: {
-
- //淇敼
- showUpdateDialog(data) {
- this.dialogUpdate = true;
- this.updateDepartmentData = data;
- },
-
- // 娣诲姞鐣岄潰
- showAddDialog() {
- this.dialogAdd = true;
- this.dialogType = 'add';
- },
-
- // 瀵煎嚭
- exportTable() {
- const status = this.searchStatus === 2 ? null : this.searchStatus;
- exportTeamInfo({ current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status })
- .then(res => {
- downloadFile(res);
- this.$message({ type: 'success', message: '鎿嶄綔鎴愬姛' });
- })
- .catch(err => {
- this.$message({ type: 'error', message: err });
- });
- },
-
- // 瀵煎叆
- importTable(file) {
- const formData = new FormData();
- formData.append('file', file.file);
- importTeamInfo(formData)
- .then(() => {
- this.$message({ type: 'success', message: '鎿嶄綔鎴愬姛' });
- this.getDepartmentList();
- this.$refs.uploadFile.clearFiles();
- })
- .catch(err => {
- this.$message({ type: 'error', message: err });
- this.$refs.uploadFile.clearFiles();
- });
- },
-
- closeUpdateDialog() {
- this.dialogAdd = false;
- this.dialogUpdate = false;
+ // 瀵煎叆
+ importTable(file) {
+ const formData = new FormData();
+ formData.append("file", file.file);
+ importTeamInfo(formData)
+ .then(() => {
+ this.$message({ type: "success", message: "鎿嶄綔鎴愬姛" });
this.getDepartmentList();
- },
+ this.$refs.uploadFile.clearFiles();
+ })
+ .catch((err) => {
+ this.$message({ type: "error", message: err });
+ this.$refs.uploadFile.clearFiles();
+ });
+ },
- // 椤堕儴涓嬫媺妗�
- setMyStatus(value) {
- this.statusArr[1] = value;
- this.changeTypeChecked(value - 1);
- this.getDepartmentList();
- },
+ closeUpdateDialog() {
+ this.dialogAdd = false;
+ this.dialogUpdate = false;
+ this.getDepartmentList();
+ },
- // 鎵归噺鍒犻櫎
- mulDelete(idArr) {
- this.$axios({
- method: 'delete',
- url: 'sccg/violations/batch_delete?ids=' + idArr,
- }).then(res => {
- this.getDepartmentList();
- this.$message({
- message: res.message,
- type: res.code === 200 ? 'success' : 'warning'
- })
- })
- },
+ // 椤堕儴涓嬫媺妗�
+ setMyStatus(value) {
+ this.statusArr[1] = value;
+ this.changeTypeChecked(value - 1);
+ this.getDepartmentList();
+ },
- // 鎵ц涓嬫媺妗嗘搷浣�
- selectChange(list) {
- if (this.tempList.length !== 0) {
- if (list === 3) {
- this.preMyIdx = list;
- this.mulDelete(this.tempList);
- }
- } else {
- this.myIdx = this.preMyIdx;
- this.$message({
- type: 'warning',
- message: '鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁',
- })
- }
- },
+ // 鎵归噺鍒犻櫎
+ mulDelete(idArr) {
+ this.$axios({
+ method: "delete",
+ url: "sccg/team_construction/batch_delete?ids=" + idArr,
+ }).then((res) => {
+ this.getDepartmentList();
+ this.$message({
+ message: res.message,
+ type: res.code === 200 ? "success" : "warning",
+ });
+ });
+ },
- // 鐩戝惉琛ㄦ牸
- tableChange(list) {
- this.tempList = [];
- list.forEach(item => {
- this.tempList.push(item.code);
- })
- this.all = list.length === this.tableData.length;
- },
-
- // 鍏ㄩ��
- selectAll() {
- this.$refs.multipleTable.toggleAllSelection();
- },
-
- // 鍙嶉��
- disSame(list) {
- list.forEach(row => {
- this.$refs.multipleTable.toggleRowSelection(row)
- })
- },
-
- // 鍒犻櫎鍗曟潯鏁版嵁
- handleDelete(row) {
- this.$confirm('纭鍒犻櫎锛�')
- .then(() => {
- deleteTeam({ id: row.id })
- .then(({ code, message }) => {
- if (code === SUCCESS_CODE) {
- this.$message({ type: 'success', message });
- this.getDepartmentList();
- } else {
- this.$message({ type: 'error', message });
- }
- })
- .catch(err => {
- this.$message({ type: 'error', message: err });
- })
- })
- },
-
- // 鑾峰彇鐢ㄦ埛鍒楄〃
- getDepartmentList() {
- const status = this.searchStatus === 2 ? null : this.searchStatus;
- const searchInfo = {
- current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status
- };
- searchTeamInfo(searchInfo)
- .then(({ records, total }) => {
- this.tableData = records;
- this.totalNum = total;
- })
- .catch(err => {
- this.$message({ type: 'error', message: err });
- });
- },
-
- // 鏇存敼杩濊/杩濆缓
- changeTypeChecked(idx) {
- this.typeList.forEach((item, index) => {
- item.checked = index === idx;
- })
- this.mystatus = idx + 1;
- this.statusArr[1] = this.typeList[idx].value;
- this.getDepartmentList();
- },
-
- // 璁剧疆琛ㄦ牸鏂戦┈绾�
- tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 === 0) {
- return 'warning-row';
- } else {
- return 'success-row';
- }
- },
-
- // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
- changeCurrentPage(page) {
- this.currentPage = page;
- this.getDepartmentList();
- },
-
- handleClose(done) {
- this.$confirm('纭鍏抽棴锛�')
- .then(_ => {
- this.dialogUpload = false;
- done();
- })
- .catch(_ => { });
- },
-
- async JumpView(data) {
- await this.getEventInfo(data.code);
- },
-
- // 鑾峰彇妗堜欢淇℃伅
- async getEventInfo(code) {
- await this.$axios({
- method: 'get',
- url: `sccg/base_case/baseCaseDetail/${code}`
- })
- .then(res => {
- this.info = res.data;
- this.dialogView = true;
- })
- },
-
- openDialog(data) {
- this.dialogUpload = true;
- this.caseId = data.id;
- this.caseCode = data.code
- },
-
- // 鍏抽棴涓婁紶鐣岄潰
- closeDialog({ flag }) {
- this.dialogUpload = flag;
- this.getDepartmentList();
+ // 鎵ц涓嬫媺妗嗘搷浣�
+ selectChange(list) {
+ if (this.tempList.length !== 0) {
+ if (list === 1) {
+ this.preMyIdx = list;
+ this.mulDelete(this.tempList);
}
- }
-}
+ } else {
+ this.myIdx = this.preMyIdx;
+ this.$message({
+ type: "warning",
+ message: "鎮ㄨ繕娌¢�変腑浠讳綍鏁版嵁",
+ });
+ }
+ },
+
+ // 鐩戝惉琛ㄦ牸
+ tableChange(list) {
+ this.tempList = [];
+ list.forEach((item) => {
+ this.tempList.push(item.id);
+ });
+ this.all = list.length === this.tableData.length;
+ },
+
+ // 鍏ㄩ��
+ selectAll() {
+ this.$refs.multipleTable.toggleAllSelection();
+ },
+
+ // 鍙嶉��
+ disSame(list) {
+ list.forEach((row) => {
+ this.$refs.multipleTable.toggleRowSelection(row);
+ });
+ },
+
+ // 鍒犻櫎鍗曟潯鏁版嵁
+ handleDelete(row) {
+ this.$confirm("纭鍒犻櫎锛�").then(() => {
+ deleteTeam({ id: row.id })
+ .then(({ code, message }) => {
+ if (code === SUCCESS_CODE) {
+ this.$message({ type: "success", message });
+ this.getDepartmentList();
+ } else {
+ this.$message({ type: "error", message });
+ }
+ })
+ .catch((err) => {
+ this.$message({ type: "error", message: err });
+ });
+ });
+ },
+
+ // 鑾峰彇鐢ㄦ埛鍒楄〃
+ getDepartmentList() {
+ const status = this.searchStatus === 2 ? null : this.searchStatus;
+ const searchInfo = {
+ current: this.currentPage,
+ size: this.pageSize,
+ departName: this.searchDepartment,
+ status,
+ };
+ searchTeamInfo(searchInfo)
+ .then(({ records, total }) => {
+ this.tableData = records;
+ this.totalNum = total;
+ })
+ .catch((err) => {
+ this.$message({ type: "error", message: err });
+ });
+ },
+
+ // 鏇存敼杩濊/杩濆缓
+ changeTypeChecked(idx) {
+ this.typeList.forEach((item, index) => {
+ item.checked = index === idx;
+ });
+ this.mystatus = idx + 1;
+ this.statusArr[1] = this.typeList[idx].value;
+ this.getDepartmentList();
+ },
+
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 === 0) {
+ return "warning-row";
+ } else {
+ return "success-row";
+ }
+ },
+
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.currentPage = page;
+ this.getDepartmentList();
+ },
+
+ handleClose(done) {
+ this.$confirm("纭鍏抽棴锛�")
+ .then((_) => {
+ this.dialogUpload = false;
+ done();
+ })
+ .catch((_) => {});
+ },
+
+ async JumpView(data) {
+ await this.getEventInfo(data.code);
+ },
+
+ // 鑾峰彇妗堜欢淇℃伅
+ async getEventInfo(code) {
+ await this.$axios({
+ method: "get",
+ url: `sccg/base_case/baseCaseDetail/${code}`,
+ }).then((res) => {
+ this.info = res.data;
+ this.dialogView = true;
+ });
+ },
+
+ openDialog(data) {
+ this.dialogUpload = true;
+ this.caseId = data.id;
+ this.caseCode = data.code;
+ },
+
+ // 鍏抽棴涓婁紶鐣岄潰
+ closeDialog({ flag }) {
+ this.dialogUpload = flag;
+ this.getDepartmentList();
+ },
+ },
+};
</script>
<style lang="scss" scoped>
.userList {
- text-align: left;
+ text-align: left;
padding: 10px 20px;
- // color: #4b9bb7;
+ // color: #4b9bb7;
border: 1px solid #ccc;
- header {
- // background-color: #09152f;
+ header {
+ // background-color: #09152f;
- .headerContent {
- width: 100%;
- line-height: 60px;
+ .headerContent {
+ width: 100%;
+ line-height: 60px;
- .search {
- display: flex;
- justify-content: flex-start;
+ display: flex;
+ .search {
+ display: flex;
+ justify-content: flex-start;
- .search-item {
- display: flex;
- margin-right: 1vw;
- }
-
- .el-input {
- flex: 2;
- // color: #1d3f57;
-
- // &::v-deep .el-input__inner {
- // background-color: #09152f;
- // border: 1px solid #17324c;
- // }
- }
-
- }
-
- .findBtn {
- line-height: 100px;
- margin-left: 15px;
- display: flex;
- align-items: center;
- margin-top: -2px;
-
- .el-button {
- padding: 12px 25px;
- //border-radius: 20px;
- }
- }
+ .search-item {
+ display: flex;
+ margin-right: 1vw;
}
+
+ .el-input {
+ flex: 2;
+ // color: #1d3f57;
+
+ // &::v-deep .el-input__inner {
+ // background-color: #09152f;
+ // border: 1px solid #17324c;
+ // }
+ }
+ }
+
+ .findBtn {
+ line-height: 100px;
+ margin-left: 15px;
+ display: flex;
+ align-items: center;
+ margin-top: -2px;
+
+ .el-button {
+ padding: 12px 25px;
+ //border-radius: 20px;
+ }
+ }
+ }
+ }
+
+ // &::v-deep .el-input__inner {
+ // background-color: #09152f;
+ // border: 1px solid #17324c;
+ // }
+
+ .type-nav {
+ display: flex;
+ line-height: 40px;
+ align-items: center;
+ // margin-bottom: 10px;
+ margin-left: auto;
+ }
+
+ main {
+ // background-color: #09152f;
+ margin-top: 20px;
+ padding-bottom: 50px;
+
+ .btn span:hover {
+ cursor: pointer;
}
- // &::v-deep .el-input__inner {
- // background-color: #09152f;
- // border: 1px solid #17324c;
- // }
+ .tools {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 20px;
- main {
- // background-color: #09152f;
- margin-top: 20px;
- padding-bottom: 50px;
+ .funs-sp {
+ // border: 1px solid #17324c;
+ }
- .btn span:hover {
- cursor: pointer;
+ .funs {
+ display: flex;
+
+ .funsItem {
+ line-height: 28px;
+ display: flex;
+ align-items: center;
+ border-radius: 4px;
+ font-size: 12px;
+ margin-left: 10px;
+
+ .el-checkbox {
+ width: 80px;
+ padding: 0 10px;
+ }
+
+ .el-select {
+ width: 120px;
+ }
+
+ // &:hover {
+ // border: 1px solid #4b9bb7;
+ // }
+
+ // &:hover .el-checkbox {
+ // color: #4b9bb7;
+ // }
}
+ }
- .type-nav {
- display: flex;
- line-height: 40px;
- align-items: center;
- margin-bottom: 10px;
+ .pagination {
+ margin-top: 50px;
+ display: flex;
+ line-height: 50px;
+ justify-content: center;
+
+ .el-pagination {
+ // &::v-deep li,
+ // &::v-deep .btn-prev,
+ // &::v-deep .btn-next {
+ // background-color: #071f39;
+ // color: #4b9bb7;
+ // }
+
+ // &::v-deep .active {
+ // background-color: #409eff;
+ // color: #fff;
+ // }
}
-
- .tools {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20px;
-
- .funs-sp {
- // border: 1px solid #17324c;
- }
-
- .funs {
- display: flex;
-
- .funsItem {
- line-height: 28px;
- display: flex;
- align-items: center;
- border-radius: 4px;
- font-size: 12px;
- margin-left: 10px;
-
- .el-checkbox {
- width: 80px;
- padding: 0 10px;
- }
-
- .el-select {
- width: 120px;
- }
-
- // &:hover {
- // border: 1px solid #4b9bb7;
- // }
-
- // &:hover .el-checkbox {
- // color: #4b9bb7;
- // }
- }
-
- }
-
- .pagination {
- margin-top: 50px;
- display: flex;
- line-height: 50px;
- justify-content: center;
-
- .el-pagination {
-
- // &::v-deep li,
- // &::v-deep .btn-prev,
- // &::v-deep .btn-next {
- // background-color: #071f39;
- // color: #4b9bb7;
- // }
-
- // &::v-deep .active {
- // background-color: #409eff;
- // color: #fff;
- // }
- }
- }
- }
-
- .el-table {
- // color: #4b9bb7;
- // font-size: 10px;
-
- .operation {
- display: flex;
- color: var(--operation-color);
- .line {
- padding: 0 5px;
- }
-
- span:hover {
- cursor: pointer;
- }
- }
- }
+ }
}
- .line {
- padding: 0 5px;
+ .el-table {
+ // color: #4b9bb7;
+ // font-size: 10px;
+
+ .operation {
+ display: flex;
+ color: var(--operation-color);
+ .line {
+ padding: 0 5px;
+ }
+
+ span:hover {
+ cursor: pointer;
+ }
+ }
}
+ }
+
+ .line {
+ padding: 0 5px;
+ }
}
</style>
diff --git a/src/views/systemSetting/platform/mySetting/index.vue b/src/views/systemSetting/platform/mySetting/index.vue
index 336551d..635a85c 100644
--- a/src/views/systemSetting/platform/mySetting/index.vue
+++ b/src/views/systemSetting/platform/mySetting/index.vue
@@ -143,7 +143,7 @@
.mySetting {
margin: 10px 20px;
text-align: left;
- color: #4b9bb7;
+ // color: #4b9bb7;
header {
line-height: 60px;
--
Gitblit v1.8.0