@@ -400,6 +400,10 @@ export default {
type: Array,
default: () => [],
},
+ origin: {
+ type: Array,
+ default: () => [0, 0],
+ },
},
watch: {
node_list: {
@@ -412,7 +416,6 @@ export default {
data() {
return {
scale_num: 100,
- origin: [0, 0],
nodeList: [],
linkList: [],
drawerType,
@@ -619,7 +622,6 @@ export default {
};
},
mounted() {
- this.setOrigin();
this.setVal();
this.getProcessServiceList();
document.addEventListener("mousemove", this.docMousemove);
@@ -630,10 +632,6 @@ export default {
});
},
methods: {
- setOrigin() {
- let width = this.$refs.flowContainer.clientWidth;
- this.origin = [width / 2, 0];
- },
linkStyle(link) {
return {};
},
@@ -680,6 +678,7 @@ export default {
clientX - conf.offsetLeft,
clientY - conf.offsetTop
);
+ console.log(clientX, conf.offsetLeft, coordinate);
// 添加节点
let query = { width: 120, height: 48, meta: {} };
query.meta.type = conf.info.meta.type;
@@ -807,9 +806,14 @@ export default {
return item.id == self.nodeItem.id;
});
if (meta) {
- let index = meta.plugins.findIndex((item) => {
- return item.plugin_type === 1;
- });
+ let index = -1;
+ if (meta.plugins && meta.plugins.length != 0) {
+ index = meta.plugins.findIndex((item) => {
+ return item.plugin_type === 1;
+ });
+ } else {
+ meta.plugins = [];
+ }
if (index !== -1) {
let data = meta.plugins[index];
let arr0 = JSON.parse(data.body_fields);
@@ -991,6 +995,14 @@ export default {
this.response_fields = [];
this.select = 1;
},
+ refleshTimeout() {
+ this.max_time_0 = undefined;
+ this.max_time_1 = undefined;
+ this.max_time_type_0 = 1;
+ this.max_time_type_1 = 1;
+ this.max_time_check_0 = false;
+ this.max_time_check_1 = false;
+ },
interfaceCancel() {
this.refleshItem();
this.dialog_interface = false;
@@ -1080,8 +1092,30 @@ export default {
}
},
showProcessService() {
- if (this.checkNodeCouldEdit()) {
- this.dialog_process = true;
+ let self = this;
+ if (self.checkNodeCouldEdit()) {
+ let meta = self.nodeParamsList.find((item) => {
+ return item.id == self.nodeItem.id;
+ });
+ if (meta) {
+ let index = -1;
+ if (meta.plugins && meta.plugins.length != 0) {
+ index = meta.plugins.findIndex((item) => {
+ return item.plugin_type === 2;
+ });
+ } else {
+ meta.plugins = [];
+ }
+ if (index !== -1) {
+ let data = meta.plugins[index];
+ self.service = data.ref_workflows_id;
+ } else {
+ self.refleshTimeout();
+ }
+ } else {
+ self.refleshTimeout();
+ }
+ self.dialog_process = true;
}
},
processCancel() {
@@ -1104,8 +1138,35 @@ export default {
}
},
showTimeoutManagement() {
- if (this.checkNodeCouldEdit()) {
- this.dialog_timeout = true;
+ let self = this;
+ if (self.checkNodeCouldEdit()) {
+ let meta = self.nodeParamsList.find((item) => {
+ return item.id == self.nodeItem.id;
+ });
+ if (meta) {
+ let index = -1;
+ if (meta.plugins && meta.plugins.length != 0) {
+ index = meta.plugins.findIndex((item) => {
+ return item.plugin_type === 3;
+ });
+ } else {
+ meta.plugins = [];
+ }
+ if (index !== -1) {
+ let data = meta.plugins[index];
+ self.max_time_check_0 = data.timeout_notify;
+ self.max_time_check_1 = data.timeout_stop;
+ self.max_time_0 = data.notice_max_time;
+ self.max_time_type_0 = data.notice_time_unit;
+ self.max_time_1 = data.stop_max_time;
+ self.max_time_type_1 = data.stop_time_unit;
+ } else {
+ self.refleshTimeout();
+ }
+ } else {
+ self.refleshTimeout();
+ }
+ self.dialog_timeout = true;
}
},
timeoutCancel() {
@@ -1187,6 +1248,9 @@ export default {
};
console.log(this.nodeList, this.linkList, this.nodeParamsList);
},
+ changeScale(type) {
+
+ }
},
};
@@ -1729,6 +1793,18 @@ export default {
margin-left: 20px;
line-height: 40px;
font-size: 16px;
+ color: #242c43;
+ .el-checkbox__input.is-checked + .el-checkbox__label {
+ color: #242c43;
+ }
+ .el-checkbox__input.is-checked .el-checkbox__inner,
+ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
+ background-color: #626de9;
+ border-color: #515fe7;
+ }
+ .el-checkbox__input.is-focus .el-checkbox__inner {
+ border-color: #515fe7;
+ }
}
}
}
diff --git a/src/pages/user/order/order_detail.vue b/src/pages/user/order/order_detail.vue
index d46bc32e8b0940d890d631a642926e4b93ba6aba..bf37f099e89ed4c3d1149b303630939622382db9 100644
--- a/src/pages/user/order/order_detail.vue
+++ b/src/pages/user/order/order_detail.vue
@@ -479,19 +479,28 @@ export default {
duration: this.orderDetail.duration,
duration_unit: this.orderDetail.duration_unit,
};
+ window.sessionStorage.setItem("shoppingCart", JSON.stringify(query));
+ this.$router.push({
+ path: "/shop/shop_car_apply",
+ query: query,
+ });
} else if (this.orderDetail.order_type == 2) {
query = {
app_id: parseFloat(this.orderDetail.app_id),
- spec_id: this.orderDetail.spec_app,
+ spec_id: this.orderDetail.spec_app++,
duration: this.orderDetail.duration,
duration_unit: this.orderDetail.duration_unit,
};
+ window.sessionStorage.setItem("shoppingCart", JSON.stringify(query));
+ this.$router.push({
+ path: "/shop/shop_car_apply",
+ query: query,
+ });
+ } else if (this.orderDetail.order_type == 3) {
+ this.$router.push({
+ path: "/shop/cloud",
+ });
}
- window.sessionStorage.setItem("shoppingCart", JSON.stringify(query));
- this.$router.push({
- path: "/shop/shop_car_apply",
- query: query,
- });
},
cancelDetail() {
this.$api.user
diff --git a/src/pages/workbench/component-center/process-management/process-design/edit.vue b/src/pages/workbench/component-center/process-management/process-design/edit.vue
index 4d953adc1d8e89f7b1c0caf5a6d4872f8d10c160..2f1bceabff06427b908fe89ac32bfd60ea0911dd 100644
--- a/src/pages/workbench/component-center/process-management/process-design/edit.vue
+++ b/src/pages/workbench/component-center/process-management/process-design/edit.vue
@@ -14,7 +14,7 @@
:active-icon="require('@/assets/imgs/progress_ic_xinxitx.png')"
class="apaas_step"
>
-
+
流程名称:
@@ -57,12 +57,13 @@
:active-icon="require('@/assets/imgs/progress_ic_liucheng.png')"
class="apaas_step"
>
-