diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue
index b7c33f90..4542b5fc 100644
--- a/src/components/DialogForm/index.vue
+++ b/src/components/DialogForm/index.vue
@@ -109,7 +109,7 @@
@@ -212,3 +472,9 @@ export default {
height: 300px;
}
+
+
diff --git a/src/views/extend/processFlowView/components/ProcessNode.js b/src/views/extend/processFlowView/components/ProcessNode.js
index 1546efc4..3f1aabad 100644
--- a/src/views/extend/processFlowView/components/ProcessNode.js
+++ b/src/views/extend/processFlowView/components/ProcessNode.js
@@ -11,13 +11,14 @@ ProcessNode.config({
markup: [
{
tagName: 'rect',
+ selector: 'container',
attrs: {
x: 0,
y: 0,
width: 200,
height: 100,
fill: 'transparent',
- stroke: '#0b58ff'
+ stroke: '#ccc'
},
},
{
@@ -42,7 +43,7 @@ ProcessNode.config({
},
{
tagName: 'text',
- selector: 'processName',
+ selector: 'detName',
attrs: {
x: 20,
y: 30,
@@ -52,7 +53,7 @@ ProcessNode.config({
},
{
tagName: 'text',
- selector: 'workshopName',
+ selector: 'sectionName',
attrs: {
x: 115,
y: 30,
@@ -62,74 +63,27 @@ ProcessNode.config({
},
{
tagName: 'text',
- selector: 'processDesc',
+ selector: 'detDesc',
// textContent: '工序00A',
attrs: {
x: 26,
y: 80,
fill: '#777',
- fontSize: 14
+ fontSize: 14,
+ fill: '#1a90fc',
+ // lengthAdjust: 'spacingAndGlyphs',
+ // textLength: 180
},
},
- // {
- // tagName: 'text',
- // textContent: '工序名称',
- // attrs: {
- // x: 20,
- // y: 30,
- // },
- // },
- // {
- // tagName: 'text',
- // textContent: '工段名称',
- // attrs: {
- // x: 115,
- // y: 30,
- // },
- // },
- // {
- // tagName: 'text',
- // selector: 'processName',
- // // textContent: '工序00A',
- // attrs: {
- // x: 26,
- // y: 80,
- // fill: '#777',
- // fontSize: 14
- // },
- // },
- // {
- // tagName: 'text',
- // selector: 'workshopName',
- // // textContent: '工段1',
- // attrs: {
- // x: 128,
- // y: 80,
- // fill: '#777',
- // fontSize: 14
- // },
- // },
],
- //
propHooks(metadata) {
- const { processName, workshopName, processDesc, processId, ...others } = metadata;
+ const { detId, detName, detDesc, sectionName, processId, ...others } = metadata;
// debugger;
- if (processName) {
- console.log("processName", processName)
- ObjectExt.setByPath(others, 'attrs/processName/text', processName);
- }
- if (workshopName) {
- console.log("workshopName", workshopName)
- ObjectExt.setByPath(others, 'attrs/workshopName/text', workshopName);
- }
- if (processDesc) {
- console.log("processDesc", processDesc)
- ObjectExt.setByPath(others, 'attrs/processDesc/text', processDesc);
- }
- if (processId) {
- console.log("processId", processId)
- ObjectExt.setByPath(others, 'processId', processId);
- }
+ if (detName) ObjectExt.setByPath(others, 'attrs/detName/text', detName);
+ if (detDesc) ObjectExt.setByPath(others, 'attrs/detDesc/text', detDesc);
+ if (sectionName) ObjectExt.setByPath(others, 'attrs/sectionName/text', sectionName);
+ if (detId) ObjectExt.setByPath(others, 'attrs/detId', detId);
+ if (processId) ObjectExt.setByPath(others, 'attrs/processId', processId);
return others;
}
})
\ No newline at end of file
diff --git a/src/views/extend/processFlowView/index.vue b/src/views/extend/processFlowView/index.vue
index c249e733..6145b89a 100644
--- a/src/views/extend/processFlowView/index.vue
+++ b/src/views/extend/processFlowView/index.vue
@@ -23,10 +23,21 @@ export default {
components: { ProcessInfo, ProcessDetail, ProcessBomList },
props: {},
data() {
- return {};
+ return {
+ flowId: null,
+ };
+ },
+ provide() {
+ const that = this;
+ return {
+ getFlowId() {
+ return that.flowId;
+ },
+ };
},
activated() {
console.log('activated...', this.$route.params);
+ this.flowId = this.$route.params.id;
},
computed: {},
methods: {},