This commit is contained in:
Jam committed 2023-03-09 22:24:02 +08:00
1 parent ecc057d869
commit 1232d10528
8 files changed
+706 -59

No files matched your search

-18
View File
@@ -1,22 +1,4 @@
<template id="edit-line">
<!-- <el-form :model="line" ref="dataForm" label-width="100px" class="flowEditForm margin13" size="mini">
<el-form-item label="GUID">
<el-input disabled v-model="line.id"></el-input>
</el-form-item>
<el-form-item label="源活动">
<el-input disabled v-model="line.from"></el-input>
</el-form-item>
<el-form-item label="目标活动">
<el-input disabled v-model="line.to"></el-input>
</el-form-item>
<el-form-item label="名称">
<el-input v-model="line.label"></el-input>
</el-form-item>
<el-form-item label="备注说明">
<el-input v-model="line.Remark" type="textarea" :autosize="{ minRows: 2, maxRows: 4}"></el-input>
</el-form-item>
</el-form> -->
<v-form v-model="isFormValid" ref="dataForm" lazy-validation>
<v-row class="px-2" :class="{'pb-7': isMobile}">
<v-col cols="12" class=" pb-3">
+15 -37
View File
@@ -1,23 +1,4 @@
<template id="edit-node">
<!-- <el-form :model="node" ref="dataForm" label-width="100px" class="flowEditForm margin13" size="mini">
<el-form-item label="GUID">
<el-input disabled v-model="node.id"></el-input>
</el-form-item>
<el-form-item label="名称">
<el-input v-model="node.label"></el-input>
</el-form-item>
<el-form-item label="活动类型">
<el-select v-model="node.Type" placeholder="请选择">
<el-option v-for="item in TypeList" :key="item.Value" :label="item.Text" :value="item.Value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="备注">
<el-input v-model="node.Remark" type="textarea" :autosize="{ minRows: 2, maxRows: 4}"></el-input>
</el-form-item>
</el-form> -->
<v-form v-model="isFormValid" ref="dataForm" lazy-validation>
<v-row class="px-2" :class="{'pb-7': isMobile}">
<v-col cols="12" class=" pb-3">
@@ -34,7 +15,7 @@
</v-col>
<template v-if="!node.id.includes('start-') && !node.id.includes('end-')">
<!-- <v-col cols="12" class=" pb-3">
<v-col cols="12" class=" pb-3">
<span class="inputLabel">指派类型</span>
<v-select
@@ -49,7 +30,6 @@
v-model="node.assignType"
></v-select>
</v-col>
-->
<v-col cols="12" class=" pb-3">
<span class="inputLabel">指派</span>
<v-autocomplete
@@ -66,17 +46,9 @@
</v-col>
<v-col cols="12" class=" pb-3" v-if="mode == 'serial'">
<span class="inputLabel">允许的操作(英文逗号分隔)</span>
<!-- <v-textarea
filled single-line
name="input-7-4"
label="允许的操作"
value=""
rows="3"
hide-details
></v-textarea> -->
<v-text-field class="jh-v-input" dense filled single-line label="允许的操作(英文逗号分隔)" v-model="node.lineTypeList"></v-text-field>
</v-col>
<!-- <v-col cols="12" class=" pb-3" >
<v-col cols="12" class=" pb-3" >
<span class="inputLabel">可写模板</span>
<v-select
:items="tpl"
@@ -105,7 +77,7 @@
multiple
v-model="node.formIdHidden"
></v-select>
</v-col> -->
</v-col>
</template>
<template v-if="node.id.includes('end-')">
<v-col cols="12" class=" pb-3">
@@ -143,12 +115,12 @@
return []
}
},
// tpl: {
// type: Array,
// default: () => {
// return []
// }
// },
tpl: {
type: Array,
default: () => {
return []
}
},
mode: {
type: String,
default: 'serial'
@@ -176,6 +148,12 @@
this.lf.setProperties(node.id, node);
},
deep: true
},
tpl: {
handler: function (tpl) {
console.log('tpl change', tpl)
},
deep: true
}
},
computed: {
+7 -1
View File
@@ -16,7 +16,7 @@
<span style="transform: translateY(2px); display: inline-block; ">{{editType == 'node' ? '节点' : '连线'}}属性</span>
</div>
<div class="flow-edit-content">
<edit-node ref="nodeForm" v-if="editType == 'node'" :lf="logicFlow" :user="user" :group="group" :mode="mode"></edit-node>
<edit-node ref="nodeForm" v-if="editType == 'node'" :lf="logicFlow" :user="user" :group="group" :mode="mode" :tpl="tpl"></edit-node>
<edit-line ref="lineForm" v-if="editType == 'line'" :lf="logicFlow" :mode="mode"></edit-line>
</div>
</template>
@@ -72,6 +72,12 @@ Vue.component("process-flow", {
return []
}
},
tpl: {
type: Array,
default: () => {
return []
}
},
currentNodeId: {
type: String,
default: ''