From d87eaec0b07649dc356db0619ee7b87dd8cf558a Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期二, 14 二月 2023 16:16:50 +0800
Subject: [PATCH] 2023/2/14 肖辉 修改部门管理
---
src/views/operate/car/myIndex/index.vue | 1320 +++++++++++++++++++++++++++++++----------------------------
1 files changed, 697 insertions(+), 623 deletions(-)
diff --git a/src/views/operate/car/myIndex/index.vue b/src/views/operate/car/myIndex/index.vue
index a16b704..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="btn">
- <!-- <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;
-
- .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>
--
Gitblit v1.8.0