From 387e8b0743240de72425e5b5c5709d629ace9aa4 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期二, 11 十月 2022 20:17:43 +0800
Subject: [PATCH] 新增消息界面、处理遗留问题
---
src/views/systemSetting/baseSetting/department/index.vue | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/views/systemSetting/baseSetting/department/index.vue b/src/views/systemSetting/baseSetting/department/index.vue
index f716b60..7029b46 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;
--
Gitblit v1.8.0