From 5cd763edc85f3b14bc98af906828521d65276f48 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期四, 13 十月 2022 17:57:11 +0800
Subject: [PATCH] 修改系统框架、消息管理新增

---
 src/views/systemSetting/baseSetting/department/index.vue |   56 ++------------------------------------------------------
 1 files changed, 2 insertions(+), 54 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/department/index.vue b/src/views/systemSetting/baseSetting/department/index.vue
index f716b60..0379968 100644
--- a/src/views/systemSetting/baseSetting/department/index.vue
+++ b/src/views/systemSetting/baseSetting/department/index.vue
@@ -94,7 +94,6 @@
 <script>
 import createUser from "./createUser"
 import updateUser from "./updateUser"
-import helper from "@/utils/mydate.js"
 export default {
     components: {
         createUser, updateUser
@@ -191,9 +190,6 @@
                 this.all = false
             }
         },
-        changeTime({ createTime }) {
-            return helper(createTime);
-        },
         selectAll() {
 
             this.$refs.multipleTable.toggleAllSelection();
@@ -228,11 +224,10 @@
                 })
                 .catch(_ => { });
         },
-        // 淇敼鐢ㄦ埛鐘舵��
+        // 淇敼鐘舵��
         handleChangeStatus(obj) {
             let { id, status } = obj;
             status == true ? status = 1 : status = 0;
-            console.log(id, status);
             this.$axios.post(`sccg/depart/status`, { id: id, status: status }).then(res => {
                 if (res.code == 200) {
                     this.getUserList();
@@ -247,8 +242,7 @@
             this.$axios.get('sccg/depart/page').then(res => {
                 if (res.code === 200) {
                     res.data.records.forEach(item => {
-                        item.createTime = helper(item.createTime);
-                        item.status == 1 ? item.status = true : item.status = false;
+                        item.status == 0 ? item.status = false : item.status = true;
                     })
                     that.totalNum = res.data.records.length;
                     that.tableData = res.data.records.slice((that.currentPage - 1) * that.pageSize, that.currentPage * that.pageSize)
@@ -262,7 +256,6 @@
             this.$axios.get('sccg/depart/page', { params: { currentPage: this.currentPage, pageSize: this.pageSize, departName: this.context } }).then(res => {
                 if (res.code === 200) {
                     res.data.records.forEach(item => {
-                        item.createTime = helper(item.createTime);
                         item.status == 1 ? item.status = true : item.status = false;
                     })
                     that.totalNum = res.data.records.length;
@@ -472,15 +465,6 @@
         .el-table {
             color: #4b9bb7;
             font-size: 10px;
-
-            &::v-deep .el-table__empty-block {
-                background-color: #09152f;
-            }
-
-            &::v-deep .el-table__empty-block {
-                color: #4b9bb7;
-            }
-
             .operation {
                 display: flex;
 
@@ -493,15 +477,6 @@
                 }
             }
         }
-
-        .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;
@@ -530,33 +505,6 @@
         &::v-deep .el-switch .el-switch__label {
             width: 50px !important;
         }
-    }
-
-    &::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>
\ No newline at end of file

--
Gitblit v1.8.0