|
@@ -26,6 +26,7 @@ const processId = ref('') // 流程定义ID
|
|
|
const formRef = ref()
|
|
|
const options = ref([])
|
|
|
const flowInfo = ref({
|
|
|
+ processKey: '', // 流程唯一标识 key
|
|
|
processName: '', // 流程定义名称
|
|
|
displayName: '', // 流程显示名称
|
|
|
processIcon: 'https://lf3-ea.bytetos.com/obj/goofy/ee/approval/approval-admin/image/iconLib/v5/cart.svg', // 流程图标
|
|
@@ -55,6 +56,12 @@ const rules = {
|
|
|
message: '请选择图标'
|
|
|
}
|
|
|
],
|
|
|
+ processKey: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入唯一标识'
|
|
|
+ }
|
|
|
+ ],
|
|
|
processName: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -187,13 +194,14 @@ const bindCacheEvt = () => {
|
|
|
|
|
|
// ----- 缓存相关 start ------
|
|
|
const flowBaseInfoWatcher = computed(() => {
|
|
|
- const { processName, displayName, processIcon, categoryId, useScope, processActorList, processPermissionList } = flowInfo.value
|
|
|
+ const { processKey, processName, processIcon, categoryId, remark, useScope, processActorList, processPermissionList } = flowInfo.value
|
|
|
// 只关注参数相关的数据变更
|
|
|
const _s = {
|
|
|
+ processKey, // 流程显示名称
|
|
|
processName, // 流程定义名称
|
|
|
- displayName, // 流程显示名称
|
|
|
processIcon, // 流程图标
|
|
|
categoryId, // 流程组分类ID
|
|
|
+ remark, // 备注说明
|
|
|
useScope, // 使用范围 0,全员 1,指定人员(业务关联) 2,均不可提交
|
|
|
processActorList, // 流程参与者,当使用范围为指定人员时候设置
|
|
|
processPermissionList // 流程定义权限
|
|
@@ -263,11 +271,14 @@ defineExpose({
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="唯一标识 key" prop="processKey">
|
|
|
+ <el-input v-model="flowInfo.processKey" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="名称" prop="processName">
|
|
|
<el-input v-model="flowInfo.processName" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="说明" prop="displayName">
|
|
|
- <el-input v-model="flowInfo.displayName" clearable></el-input>
|
|
|
+ <el-form-item label="说明" prop="remark">
|
|
|
+ <el-input v-model="flowInfo.remark" type="textarea" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="分组" prop="categoryId">
|
|
|
<el-select v-model="flowInfo.categoryId">
|