cellsysMember.js 新增创建时间和修改时间格式化属性

This commit is contained in:
ag 2025-02-14 11:15:37 +08:00
parent 6ed69a4e8e
commit 8159f97701
2 changed files with 7 additions and 2 deletions

View File

@ -51,7 +51,12 @@ class CellsysMember {
return formatterDate(this.dateTime, 'YYYY-MM-DD HH:mm'); return formatterDate(this.dateTime, 'YYYY-MM-DD HH:mm');
} }
} }
get createTimeFormat() {
return formatterDate(this.createTime);
}
get updateTimeFormat() {
return formatterDate(this.updateTime);
}
setLeader(value) { setLeader(value) {
if (value && value === 1) { if (value && value === 1) {
this.isLeader = 1; this.isLeader = 1;

View File

@ -31,9 +31,9 @@ service.interceptors.request.use(
}, },
); );
//这里需要注意的是由于历史原因axios的response的成功回调格式是在本文件中封装而失败回调的格式是在引用CellsysBase的项目中按需进行封装。
service.interceptors.response.use( service.interceptors.response.use(
(response) => { (response) => {
debugger;
let data; let data;
if (response.data === undefined || response.data == null) { if (response.data === undefined || response.data == null) {
switch (response.status) { switch (response.status) {