兰宝车间质量管理系统-前端
LiuHao
2024-03-18 0c39b593ce6c001500850cb9fd3ca8f1d32757d5
update 优化面板类型
已修改2个文件
25 ■■■■ 文件已修改
src/components/BpmnDesign/panel/ParticipantPanel.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/types/bpmn/panel.d.ts 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/BpmnDesign/panel/ParticipantPanel.vue
@@ -13,10 +13,10 @@
        <div>
          <el-form ref="formRef" :model="formData" :rules="formRules" label-width="90px">
            <el-form-item prop="id" label="节点 ID">
              <el-input v-model="formData.id" @change="idChange"> </el-input>
              <el-input v-model="formData.id" @change="idChange"></el-input>
            </el-form-item>
            <el-form-item prop="name" label="节点名称">
              <el-input v-model="formData.name" @change="nameChange"> </el-input>
              <el-input v-model="formData.name" @change="nameChange"></el-input>
            </el-form-item>
          </el-form>
        </div>
@@ -42,11 +42,12 @@
import useParseElement from '@/components/BpmnDesign/hooks/useParseElement';
import usePanel from '@/components/BpmnDesign/hooks/usePanel';
import { ModdleElement } from 'bpmn';
import { StartEndPanel } from 'bpmnDesign';
import { ParticipantPanel } from 'bpmnDesign';
interface PropType {
  element: ModdleElement;
}
const props = withDefaults(defineProps<PropType>(), {});
const { nameChange, idChange } = usePanel({
  element: toRaw(props.element)
@@ -55,7 +56,7 @@
  element: toRaw(props.element)
});
const formData = ref(parseData<StartEndPanel>());
const formData = ref(parseData<ParticipantPanel>());
const currentCollapseItem = ref(['1', '2']);
const formRules = ref<ElFormRules>({
  id: [{ required: true, message: '请输入', trigger: 'blur' }],
src/types/bpmn/panel.d.ts
@@ -72,4 +72,20 @@
    conditionExpressionValue: string;
    skipExpression: string;
  }
  export interface ParticipantPanel extends BasePanel {}
  export interface SubProcessPanel extends BasePanel {
    multiInstanceType: MultiInstanceTypeEnum;
    collection?: string;
    elementVariable?: string;
    completionCondition?: string;
    loopCharacteristics?: {
      collection: string;
      elementVariable: string;
      isSequential: boolean;
      completionCondition: {
        body: string;
      };
    };
  }
}