|
@@ -262,7 +262,8 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { sysGraphController } from "@/controller/sysGraphController";
|
|
|
|
|
|
+import { graphStateEnum } from "@/controller/systemGraph/graphStateEnum";
|
|
|
|
+import { sysGraphController } from "@/controller/systemGraph/sysGraphController";
|
|
import addGraph from "./addGraph.vue";
|
|
import addGraph from "./addGraph.vue";
|
|
import graph from "./graph.vue";
|
|
import graph from "./graph.vue";
|
|
import { logicConfig } from "@/logicConfig";
|
|
import { logicConfig } from "@/logicConfig";
|
|
@@ -456,7 +457,7 @@ export default {
|
|
this.fullscreenLoading = false;
|
|
this.fullscreenLoading = false;
|
|
switch (resultObj.result) {
|
|
switch (resultObj.result) {
|
|
case logicConfig.resultObj.success:
|
|
case logicConfig.resultObj.success:
|
|
- // this.graphInfo.
|
|
|
|
|
|
+ this.graphInfo.extraProps.state = graphStateEnum.Publish;
|
|
return Message.success("上架成功");
|
|
return Message.success("上架成功");
|
|
case logicConfig.resultObj.failure:
|
|
case logicConfig.resultObj.failure:
|
|
return Message.success("上架失败,原因:" + (resultObj.reason || ""));
|
|
return Message.success("上架失败,原因:" + (resultObj.reason || ""));
|
|
@@ -469,6 +470,7 @@ export default {
|
|
this.fullscreenLoading = false;
|
|
this.fullscreenLoading = false;
|
|
switch (resultObj.result) {
|
|
switch (resultObj.result) {
|
|
case logicConfig.resultObj.success:
|
|
case logicConfig.resultObj.success:
|
|
|
|
+ this.graphInfo.extraProps.state = graphStateEnum.Draft;
|
|
return Message.success("下架成功");
|
|
return Message.success("下架成功");
|
|
case logicConfig.resultObj.failure:
|
|
case logicConfig.resultObj.failure:
|
|
return Message.success("下架失败,原因:" + (resultObj.reason || ""));
|
|
return Message.success("下架失败,原因:" + (resultObj.reason || ""));
|
|
@@ -483,7 +485,9 @@ export default {
|
|
case logicConfig.resultObj.success:
|
|
case logicConfig.resultObj.success:
|
|
return Message.success("删除图纸成功");
|
|
return Message.success("删除图纸成功");
|
|
case logicConfig.resultObj.failure:
|
|
case logicConfig.resultObj.failure:
|
|
- return Message.success("删除图纸失败,原因:" + (resultObj.reason || ""));
|
|
|
|
|
|
+ return Message.success(
|
|
|
|
+ "删除图纸失败,原因:" + (resultObj.reason || "")
|
|
|
|
+ );
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|