|
@@ -1,3 +1,4 @@
|
|
|
+import { graphStateEnum } from "./graphStateEnum";
|
|
|
import { sysGraphHttpUtils } from "@/utils/http/sysGraphHttpUtils";
|
|
|
import { logicConfig } from "@/logicConfig";
|
|
|
import moment, { Moment } from 'moment';
|
|
@@ -36,9 +37,9 @@ export class sysGraphController {
|
|
|
let _c = dataArr[i];
|
|
|
let extraProps = _c.extraProps;
|
|
|
//图状态(Draft: 未发布, WaitCheck: 待审核, Checked: 审核完成, Recyle: 回收站, Publish: 发布)
|
|
|
- let stateName = extraProps.state == graphState.Draft ? '草稿' :
|
|
|
- extraProps.state == graphState.Publish ? '上架' :
|
|
|
- extraProps.state == graphState.Recyle ? '下架' : '';
|
|
|
+ let stateName = extraProps.state == graphStateEnum.Draft ? '草稿' :
|
|
|
+ extraProps.state == graphStateEnum.Publish ? '上架' :
|
|
|
+ extraProps.state == graphStateEnum.Recyle ? '下架' : '';
|
|
|
|
|
|
//获取系统类型名称
|
|
|
let systemTypeName = (_tempSystemTypeObj[_c.system] || {}).aliasName;
|
|
@@ -10357,7 +10358,7 @@ export class sysGraphController {
|
|
|
* @param id 系统图ID
|
|
|
*/
|
|
|
static async delSysGraph(id: string) {
|
|
|
- var resultObj = await this.updateSysGraphState({ id: id, state: graphState.Recyle });
|
|
|
+ var resultObj = await this.updateSysGraphState({ id: id, state: graphStateEnum.Recyle });
|
|
|
return resultObj;
|
|
|
}
|
|
|
|
|
@@ -10366,7 +10367,7 @@ export class sysGraphController {
|
|
|
* @param id 系统图ID
|
|
|
*/
|
|
|
static async publishSysGraph(id: string) {
|
|
|
- var resultObj = await this.updateSysGraphState({ id: id, state: graphState.Publish });
|
|
|
+ var resultObj = await this.updateSysGraphState({ id: id, state: graphStateEnum.Publish });
|
|
|
return resultObj;
|
|
|
}
|
|
|
|
|
@@ -10375,21 +10376,8 @@ export class sysGraphController {
|
|
|
* @param id 系统图ID
|
|
|
*/
|
|
|
static async draftGraph(id: string) {
|
|
|
- var resultObj = await this.updateSysGraphState({ id: id, state: graphState.Draft });
|
|
|
+ var resultObj = await this.updateSysGraphState({ id: id, state: graphStateEnum.Draft });
|
|
|
return resultObj;
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
-
|
|
|
-enum graphState {
|
|
|
- //未发布
|
|
|
- Draft = "Drafta",
|
|
|
- //待审核
|
|
|
- WaitCheck = "WaitCheck",
|
|
|
- //审核完成
|
|
|
- Checked = "Checked",
|
|
|
- //回收站
|
|
|
- Recyle = "Recyle",
|
|
|
- //发布
|
|
|
- Publish = "Publish",
|
|
|
}
|