|
@@ -141,18 +141,14 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <!-- <el-col :span="12">
|
|
|
|
- <el-form-item label="任务">
|
|
|
|
- <el-select v-model="ruleForm.task" multiple filterable clearable placeholder="请选择流程任务" style="width: 100%">
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in taskListData"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="item.full_name"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="模板类型" prop="sub">
|
|
|
|
+ <el-select v-model="ruleForm.sub" filterable placeholder="请选择模板类型" style="width: 100%">
|
|
|
|
+ <el-option label="父流程" :value="0" />
|
|
|
|
+ <el-option label="子流程" :value="1" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col> -->
|
|
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-form-item label="描述" prop="remarks">
|
|
<el-form-item label="描述" prop="remarks">
|
|
<el-input
|
|
<el-input
|
|
@@ -267,6 +263,9 @@ export default {
|
|
tpls: [
|
|
tpls: [
|
|
{ required: true, message: '请选择模版', trigger: 'blur, change' }
|
|
{ required: true, message: '请选择模版', trigger: 'blur, change' }
|
|
],
|
|
],
|
|
|
|
+ sub: [
|
|
|
|
+ { required: true, message: '请选择模版类型', trigger: 'blur, change' }
|
|
|
|
+ ],
|
|
structure: [
|
|
structure: [
|
|
{ required: true, message: '请设计流程', trigger: 'blur' }
|
|
{ required: true, message: '请设计流程', trigger: 'blur' }
|
|
],
|
|
],
|
|
@@ -294,7 +293,15 @@ export default {
|
|
page: 1,
|
|
page: 1,
|
|
per_page: 99999
|
|
per_page: 99999
|
|
}).then(response => {
|
|
}).then(response => {
|
|
- this.processData = response.data.data
|
|
|
|
|
|
+ const tempList = response.data.data || []
|
|
|
|
+ const subList = []
|
|
|
|
+ tempList.forEach(item => {
|
|
|
|
+ if (item.sub == 1) {
|
|
|
|
+ subList.push(item)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ console.log(response.data.data)
|
|
|
|
+ this.processData = subList
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 获取流程分类列表
|
|
// 获取流程分类列表
|
|
@@ -381,6 +388,7 @@ export default {
|
|
classify: '',
|
|
classify: '',
|
|
task: [],
|
|
task: [],
|
|
notice: [1],
|
|
notice: [1],
|
|
|
|
+ sub: 0,
|
|
icon: '',
|
|
icon: '',
|
|
remarks: ''
|
|
remarks: ''
|
|
}
|
|
}
|
|
@@ -407,6 +415,7 @@ export default {
|
|
classify: response.data.classify,
|
|
classify: response.data.classify,
|
|
task: response.data.task,
|
|
task: response.data.task,
|
|
notice: response.data.notice,
|
|
notice: response.data.notice,
|
|
|
|
+ sub: response.data.sub,
|
|
icon: response.data.icon,
|
|
icon: response.data.icon,
|
|
remarks: response.data.remarks
|
|
remarks: response.data.remarks
|
|
}
|
|
}
|
|
@@ -481,6 +490,7 @@ export default {
|
|
classify: this.ruleForm.classify,
|
|
classify: this.ruleForm.classify,
|
|
task: this.ruleForm.task,
|
|
task: this.ruleForm.task,
|
|
notice: this.ruleForm.notice,
|
|
notice: this.ruleForm.notice,
|
|
|
|
+ sub: this.ruleForm.sub,
|
|
icon: this.ruleForm.icon,
|
|
icon: this.ruleForm.icon,
|
|
remarks: this.ruleForm.remarks
|
|
remarks: this.ruleForm.remarks
|
|
}).then(response => {
|
|
}).then(response => {
|