cellsysMember.js 新增创建时间和修改时间格式化属性
This commit is contained in:
parent
6ed69a4e8e
commit
8159f97701
@ -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;
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user