Skip to content

Commit 5442b82

Browse files
author
piexlmax
committed
超级管理员 setup 改造完成
1 parent 26066ce commit 5442b82

File tree

5 files changed

+527
-341
lines changed

5 files changed

+527
-341
lines changed

web/src/utils/format.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { formatTimeToStr } from '@/utils/date'
2+
3+
export const formatBoolean = (bool) => {
4+
if (bool !== null) {
5+
return bool ? '是' : '否'
6+
} else {
7+
return ''
8+
}
9+
}
10+
export const formatDate = (time) => {
11+
if (time !== null && time !== '') {
12+
var date = new Date(time)
13+
return formatTimeToStr(date, 'yyyy-MM-dd hh:mm:ss')
14+
} else {
15+
return ''
16+
}
17+
}

web/src/view/superAdmin/api/api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const getTableData = async() => {
239239
}
240240
}
241241
242-
getTableData(getApiList)
242+
getTableData()
243243
244244
// 批量操作
245245
const handleSelectionChange = (val) => {

0 commit comments

Comments
 (0)