Просмотр исходного кода

岗位角色人员设置增加表单变量

cfort 3 лет назад
Родитель
Сommit
35069aca30

+ 175 - 175
src/business/platform/bpmn/setting/bpmn-setting/components/user-setting/constants/index.js

@@ -1,198 +1,198 @@
 export const expressionOptioins1 = [
-  { value: 'equals', label: '相等' },
-  { value: 'notEquals', label: '不相等' },
-  { value: 'contains', label: '包含于' },
-  { value: 'notContains', label: '不包含于' }
+    { value: 'equals', label: '相等' },
+    { value: 'notEquals', label: '不相等' },
+    { value: 'contains', label: '包含于' },
+    { value: 'notContains', label: '不包含于' }
 ]
 
 export const expressionOptioins2 = [
-  { value: '>', label: '大于' },
-  { value: '<', label: '小于' },
-  { value: '>=', label: '大于等于' },
-  { value: '<=', label: '小于等于' }
+    { value: '>', label: '大于' },
+    { value: '<', label: '小于' },
+    { value: '>=', label: '大于等于' },
+    { value: '<=', label: '小于等于' }
 ]
 
 export const valueTypeOptions = [
-  { value: 'user', label: '用户', children: [{ value: 'userId', label: 'userId' }, { value: 'account', label: 'account' }] },
-  { value: 'org', label: '组织', children: [{ value: 'orgId', label: 'orgId' }, { value: 'orgKey', label: 'orgKey' }] },
-  { value: 'fixed', label: '固定值' }
+    { value: 'user', label: '用户', children: [{ value: 'userId', label: 'userId' }, { value: 'account', label: 'account' }] },
+    { value: 'org', label: '组织', children: [{ value: 'orgId', label: 'orgId' }, { value: 'orgKey', label: 'orgKey' }] },
+    { value: 'fixed', label: '固定值' }
 ]
 
 export const pluginTypes = {
-  'cusers': {
-    label: '用户',
-    userTypeOptions: [// 用户类型
-      { value: 'start', label: '发起人' },
-      { value: 'prev', label: '上一步执行人' },
-      { value: 'spec', label: '指定人', colspan: 1 },
-      { value: 'var', label: '人员变量', colspan: 1 },
-      { value: 'node', label: '相同节点执行人', colspan: 1 }],
-    defaultData: { // 默认值
-      source: 'start',
-      account: '',
-      fullName: '',
-      executorVar: '',
-      nodeId: '',
-      nodeName: ''
+    'cusers': {
+        label: '用户',
+        userTypeOptions: [// 用户类型
+            { value: 'start', label: '发起人' },
+            { value: 'prev', label: '上一步执行人' },
+            { value: 'spec', label: '指定人', colspan: 1 },
+            { value: 'var', label: '人员变量', colspan: 1 },
+            { value: 'node', label: '相同节点执行人', colspan: 1 }],
+        defaultData: { // 默认值
+            source: 'start',
+            account: '',
+            fullName: '',
+            executorVar: '',
+            nodeId: '',
+            nodeName: ''
+        }
+    },
+    'group': {
+        label: '用户组',
+        userTypeOptions: [// 用户类型
+            { value: 'start', label: '发起人所在组' },
+            { value: 'prev', label: '上一步执行人所在组' },
+            { value: 'spec', label: '指定组', colspan: 1 },
+            // { value: 'var', label: '人员变量', colspan: 1 },
+            { value: 'node', label: '相同节点执行人所在组', colspan: 1 }
+        ],
+        defaultData: {
+            source: 'start',
+            groupKey: '',
+            groupName: '',
+            nodeId: '',
+            nodeName: ''
+        }
+    },
+    'org': {
+        label: '组织',
+        userTypeOptions: [
+            { value: 'start', label: '发起人所在组织' },
+            { value: 'prev', label: '上一步执行人所在组织' },
+            { value: 'spec', label: '指定组织', colspan: 1 },
+            { value: 'var', label: '组织变量', colspan: 1 },
+            { value: 'node', label: '相同节点执行人所在组织', colspan: 1 }],
+        defaultData: {
+            source: 'start',
+            orgKey: '',
+            orgName: '',
+            executorVar: '',
+            nodeId: '',
+            nodeName: '',
+            containsSub: false
+        }
+    },
+    'role': {
+        label: '角色',
+        userTypeOptions: [
+            { value: 'start', label: '发起人角色' },
+            { value: 'prev', label: '上一步执行人角色' },
+            { value: 'spec', label: '指定角色', colspan: 1 },
+            { value: 'var', label: '角色变量', colspan: 1 },
+            { value: 'node', label: '相同节点执行人角色', colspan: 1 }],
+        defaultData: {
+            source: 'start',
+            roleKey: '',
+            roleName: '',
+            executorVar: '',
+            nodeId: '',
+            nodeName: ''
+        }
+    },
+    'pos': {
+        label: '岗位',
+        userTypeOptions: [
+            { value: 'start', label: '发起人岗位' },
+            { value: 'prev', label: '上一步执行人岗位' },
+            { value: 'spec', label: '指定岗位', colspan: 1 },
+            { value: 'var', label: '岗位变量', colspan: 1 },
+            { value: 'node', label: '相同节点执行人岗位', colspan: 1 }],
+        defaultData: {
+            source: 'start',
+            posKey: '',
+            posName: '',
+            executorVar: '',
+            nodeId: '',
+            nodeName: ''
+        }
+    },
+    'orgManager': {
+        label: '组织负责人',
+        userTypeOptions: [
+            { value: 'start', label: '发起人所在组织' },
+            { value: 'prev', label: '上一步执行人所在组织' },
+            { value: 'spec', label: '指定组织', colspan: 1 },
+            { value: 'var', label: '组织变量', colspan: 1 },
+            { value: 'node', label: '相同节点执行人所在组织', colspan: 1 }],
+        defaultData: {
+            source: 'start',
+            orgKey: '',
+            orgName: '',
+            executorVar: '',
+            nodeId: '',
+            nodeName: ''
+        }
+    },
+    // 'level': {
+    //     label: '参与者等级',
+    //     userTypeOptions: [
+    //         { value: 'start', label: '发起人所在{levelType}等级' },
+    //         { value: 'prev', label: '上一步执行人所在{levelType}等级' },
+    //         { value: 'spec', label: '指定等级', colspan: 1 },
+    //         // { value: 'var', label: '人员变量', colspan: 1 },
+    //         { value: 'node', label: '相同节点执行人所在{levelType}等级', colspan: 1 }],
+    //     defaultData: {
+    //         source: 'start',
+    //         levelType: 'position',
+    //         mainPost: 'Y',
+    //         levelValue: '',
+    //         levelName: '',
+    //         executorVar: '',
+    //         nodeId: '',
+    //         nodeName: ''
+    //     }
+    // },
+    'userGrade': {
+        label: '组织上下级[人员类型]',
+        userTypeOptions: [
+            { value: 'start', label: '发起人' },
+            { value: 'prev', label: '上一步执行人' },
+            { value: 'node', label: '相同节点执行人' }
+        ],
+        defaultData: {
+            source: 'start',
+            nodeId: '',
+            nodeName: '',
+            settings: []
+        }
+    },
+    'approver': {
+        label: '流程实例审批人',
+        noSelect: true,
+        descText: '当前流程实例所有的审批人'
+    },
+    'hrScript': {
+        label: '人员脚本',
+        defaultData: {
+            script: '',
+            description: '脚本'
+        }
     }
-  },
-  'group': {
-    label: '用户组',
-    userTypeOptions: [// 用户类型
-      { value: 'start', label: '发起人所在组' },
-      { value: 'prev', label: '上一步执行人所在组' },
-      { value: 'spec', label: '指定组', colspan: 1 },
-      // { value: 'var', label: '人员变量', colspan: 1 },
-      { value: 'node', label: '相同节点执行人所在组', colspan: 1 }
-    ],
-    defaultData: {
-      source: 'start',
-      groupKey: '',
-      groupName: '',
-      nodeId: '',
-      nodeName: ''
-    }
-  },
-  'org': {
-    label: '组织',
-    userTypeOptions: [
-      { value: 'start', label: '发起人所在组织' },
-      { value: 'prev', label: '上一步执行人所在组织' },
-      { value: 'spec', label: '指定组织', colspan: 1 },
-      { value: 'var', label: '组织变量', colspan: 1 },
-      { value: 'node', label: '相同节点执行人所在组织', colspan: 1 }],
-    defaultData: {
-      source: 'start',
-      orgKey: '',
-      orgName: '',
-      executorVar: '',
-      nodeId: '',
-      nodeName: '',
-      containsSub: false
-    }
-  },
-  'role': {
-    label: '角色',
-    userTypeOptions: [
-      { value: 'start', label: '发起人角色' },
-      { value: 'prev', label: '上一步执行人角色' },
-      { value: 'spec', label: '指定角色', colspan: 1 },
-      // { value: 'var', label: '角色变量', colspan: 1 },
-      { value: 'node', label: '相同节点执行人角色', colspan: 1 }],
-    defaultData: {
-      source: 'start',
-      roleKey: '',
-      roleName: '',
-      executorVar: '',
-      nodeId: '',
-      nodeName: ''
-    }
-  },
-  'pos': {
-    label: '岗位',
-    userTypeOptions: [
-      { value: 'start', label: '发起人岗位' },
-      { value: 'prev', label: '上一步执行人岗位' },
-      { value: 'spec', label: '指定岗位', colspan: 1 },
-      // { value: 'var', label: '岗位变量', colspan: 1 },
-      { value: 'node', label: '相同节点执行人岗位', colspan: 1 }],
-    defaultData: {
-      source: 'start',
-      posKey: '',
-      posName: '',
-      executorVar: '',
-      nodeId: '',
-      nodeName: ''
-    }
-  },
-  'orgManager': {
-    label: '组织负责人',
-    userTypeOptions: [
-      { value: 'start', label: '发起人所在组织' },
-      { value: 'prev', label: '上一步执行人所在组织' },
-      { value: 'spec', label: '指定组织', colspan: 1 },
-      { value: 'var', label: '组织变量', colspan: 1 },
-      { value: 'node', label: '相同节点执行人所在组织', colspan: 1 }],
-    defaultData: {
-      source: 'start',
-      orgKey: '',
-      orgName: '',
-      executorVar: '',
-      nodeId: '',
-      nodeName: ''
-    }
-  },
-  // 'level': {
-  //   label: '参与者等级',
-  //   userTypeOptions: [
-  //     { value: 'start', label: '发起人所在{levelType}等级' },
-  //     { value: 'prev', label: '上一步执行人所在{levelType}等级' },
-  //     { value: 'spec', label: '指定等级', colspan: 1 },
-  //     // { value: 'var', label: '人员变量', colspan: 1 },
-  //     { value: 'node', label: '相同节点执行人所在{levelType}等级', colspan: 1 }],
-  //   defaultData: {
-  //     source: 'start',
-  //     levelType: 'position',
-  //     mainPost: 'Y',
-  //     levelValue: '',
-  //     levelName: '',
-  //     executorVar: '',
-  //     nodeId: '',
-  //     nodeName: ''
-  //   }
-  // },
-  'userGrade': {
-    label: '组织上下级[人员类型]',
-    userTypeOptions: [
-      { value: 'start', label: '发起人' },
-      { value: 'prev', label: '上一步执行人' },
-      { value: 'node', label: '相同节点执行人' }
-    ],
-    defaultData: {
-      source: 'start',
-      nodeId: '',
-      nodeName: '',
-      settings: []
-    }
-  },
-  'approver': {
-    label: '流程实例审批人',
-    noSelect: true,
-    descText: '当前流程实例所有的审批人'
-  },
-  'hrScript': {
-    label: '人员脚本',
-    defaultData: {
-      script: '',
-      description: '脚本'
-    }
-  }
 }
 
-const getPluginTypeOptions = function() {
-  const pluginTypeOptions = []
-  for (const key in pluginTypes) {
-    const pluginType = pluginTypes[key]
-    const data = {
-      value: key,
-      label: pluginType.label,
-      noSelect: pluginType['noSelect'] || false,
-      descText: pluginType['descText'] || ''
+const getPluginTypeOptions = function () {
+    const pluginTypeOptions = []
+    for (const key in pluginTypes) {
+        const pluginType = pluginTypes[key]
+        const data = {
+            value: key,
+            label: pluginType.label,
+            noSelect: pluginType['noSelect'] || false,
+            descText: pluginType['descText'] || ''
+        }
+        pluginTypeOptions.push(data)
     }
-    pluginTypeOptions.push(data)
-  }
-  return pluginTypeOptions
+    return pluginTypeOptions
 }
 
 export const pluginTypeOptions = getPluginTypeOptions()
 
 export const logicCalOptions = [
-  { value: 'or', label: '或' },
-  { value: 'and', label: '与' },
-  { value: 'exclude', label: '排除' }
+    { value: 'or', label: '或' },
+    { value: 'and', label: '与' },
+    { value: 'exclude', label: '排除' }
 ]
 
 export const extractOptins = [
-  { value: 'extract', label: '抽取' },
-  { value: 'no', label: '不抽取' }
+    { value: 'extract', label: '抽取' },
+    { value: 'no', label: '不抽取' }
 ]

+ 176 - 148
src/business/platform/bpmn/setting/bpmn-setting/settings/other-attribute.vue

@@ -1,96 +1,123 @@
 <template>
-  <div class="bpmn-other-attribute panel-body">
-    <el-form :model="attribute" label-width="120px" label-position="left" @submit.native.prevent>
-      <el-form-item :style="{'marginBottom':'10px'}">
-        <span slot="label">
-          <label style="font-size:14px;">标题规则:</label>
-          <el-tooltip
-            class="item"
-            effect="light"
-            content="此处表单变量为文本替换,不能用于脚本计算!"
-            placement="bottom"
-          >
-            <ibps-icon name="help" style="color:#dd5b44;" />
-          </el-tooltip>
-        </span>
-        <bpmn-form-var :data="formVars" :props="{label: 'name'}" @callback="handleFormVar" />
-      </el-form-item>
-      <div class="ibps-pb-5">
-        <codemirror ref="subjectRule" v-model="attribute.subjectRule" :options="cmOption" />
-      </div>
-      <!-- <el-form-item label="流程描述:">
-        <el-input v-model="attribute.description" type="textarea" />
-      </el-form-item> -->
+    <div class="bpmn-other-attribute panel-body">
+        <el-form
+            :model="attribute"
+            label-width="120px"
+            label-position="left"
+            @submit.native.prevent
+        >
+            <el-form-item :style="{ marginBottom: '10px' }">
+                <span slot="label">
+                    <label style="font-size: 14px">标题规则:</label>
+                    <el-tooltip
+                        class="item"
+                        effect="light"
+                        content="此处表单变量为文本替换,不能用于脚本计算!"
+                        placement="bottom"
+                    >
+                        <ibps-icon name="help" style="color: #dd5b44" />
+                    </el-tooltip>
+                </span>
+                <bpmn-form-var
+                    :data="formVars"
+                    :props="{ label: 'name' }"
+                    @callback="handleFormVar"
+                />
+            </el-form-item>
+            <div class="ibps-pb-5">
+                <codemirror
+                    ref="subjectRule"
+                    v-model="attribute.subjectRule"
+                    :options="cmOption"
+                />
+            </div>
+            <!-- <el-form-item label="流程描述:">
+                <el-input v-model="attribute.description" type="textarea" />
+            </el-form-item> -->
 
-      <el-form-item v-if="!attribute.hideSkipFirstNode" label="跳过第一个节点:">
-        <el-radio-group v-model="attribute.skipFirstNode">
-          <el-radio :label="true">是</el-radio>
-          <el-radio :label="false">否</el-radio>
-        </el-radio-group>
-      </el-form-item>
-      <el-form-item label="第一个节点可以选择执行人:">
-        <el-radio-group v-model="attribute.firstNodeUserAssign" class="ibps-mt-20">
-          <el-radio :label="true">是</el-radio>
-          <el-radio :label="false">否</el-radio>
-        </el-radio-group>
-      </el-form-item>
-      <el-form-item>
-        <template slot="label">相邻节点相同<br>执行人直接跳过:</template>
-        <el-radio-group v-model="attribute.skipSameUser" class="ibps-mt-20">
-          <el-radio :label="true">是</el-radio>
-          <el-radio :label="false">否</el-radio>
-        </el-radio-group>
-      </el-form-item>
-      <el-form-item label="任务允许转办:">
-        <el-radio-group v-model="attribute.allowTransTo">
-          <el-radio :label="true">是</el-radio>
-          <el-radio :label="false">否</el-radio>
-        </el-radio-group>
-      </el-form-item>
-      <el-form-item label="允许执行人为空:">
-        <el-radio-group v-model="attribute.allowExecutorEmpty">
-          <el-radio :label="true">是</el-radio>
-          <el-radio :label="false">否</el-radio>
-        </el-radio-group>
-      </el-form-item>
-      <el-form-item>
-        <template slot="label">执行人为空时<br>跳过任务:</template>
-        <el-radio-group v-model="attribute.skipExecutorEmpty" class="ibps-mt-20">
-          <el-radio :label="true">是</el-radio>
-          <el-radio :label="false">否</el-radio>
-        </el-radio-group>
-      </el-form-item>
-      <el-form-item label="通知类型:">
-        <ibps-checkbox
-          v-model="attribute.notifyType"
-          :options="messageTypes"
-          value-key="type"
-          label-key="title"
-        />
-      </el-form-item>
-      <!-- <el-form-item label="测试通知类型:">
-        <ibps-checkbox
-          v-model="attribute.testNotifyType"
-          :options="messageTypes"
-          value-key="type"
-          label-key="title"
-        />
-      </el-form-item> -->
-      <el-form-item label="是否正式:">
-        <el-radio-group v-model="attribute.testStatus">
-          <el-radio label="run">正式</el-radio>
-          <el-radio label="test">测试</el-radio>
-        </el-radio-group>
-      </el-form-item>
-      <el-form-item label="状态:">
-        <el-radio-group v-model="attribute.status">
-          <el-radio label="deploy">已发布</el-radio>
-          <!-- <el-radio label="forbidden">禁止</el-radio>
-          <el-radio label="forbidden_instance">禁止实例</el-radio> -->
-        </el-radio-group>
-      </el-form-item>
-    </el-form>
-  </div>
+            <el-form-item
+                v-if="!attribute.hideSkipFirstNode"
+                label="跳过第一个节点:"
+            >
+                <el-radio-group v-model="attribute.skipFirstNode">
+                    <el-radio :label="true">是</el-radio>
+                    <el-radio :label="false">否</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item label="第一个节点可以选择执行人:">
+                <el-radio-group
+                    v-model="attribute.firstNodeUserAssign"
+                    class="ibps-mt-20"
+                >
+                    <el-radio :label="true">是</el-radio>
+                    <el-radio :label="false">否</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item>
+                <template
+                    slot="label"
+                >相邻节点相同<br>执行人直接跳过:</template>
+                <el-radio-group
+                    v-model="attribute.skipSameUser"
+                    class="ibps-mt-20"
+                >
+                    <el-radio :label="true">是</el-radio>
+                    <el-radio :label="false">否</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item label="任务允许转办:">
+                <el-radio-group v-model="attribute.allowTransTo">
+                    <el-radio :label="true">是</el-radio>
+                    <el-radio :label="false">否</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item label="允许执行人为空:">
+                <el-radio-group v-model="attribute.allowExecutorEmpty">
+                    <el-radio :label="true">是</el-radio>
+                    <el-radio :label="false">否</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item>
+                <template slot="label">执行人为空时<br>跳过任务:</template>
+                <el-radio-group
+                    v-model="attribute.skipExecutorEmpty"
+                    class="ibps-mt-20"
+                >
+                    <el-radio :label="true">是</el-radio>
+                    <el-radio :label="false">否</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item label="通知类型:">
+                <ibps-checkbox
+                    v-model="attribute.notifyType"
+                    :options="messageTypes"
+                    value-key="type"
+                    label-key="title"
+                />
+            </el-form-item>
+            <!-- <el-form-item label="测试通知类型:">
+                <ibps-checkbox
+                    v-model="attribute.testNotifyType"
+                    :options="messageTypes"
+                    value-key="type"
+                    label-key="title"
+                />
+            </el-form-item> -->
+            <el-form-item label="是否正式:">
+                <el-radio-group v-model="attribute.testStatus">
+                    <el-radio label="run">正式</el-radio>
+                    <el-radio label="test">测试</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item label="状态:">
+                <el-radio-group v-model="attribute.status">
+                    <el-radio label="deploy">已发布</el-radio>
+                    <!-- <el-radio label="forbidden">禁止</el-radio>
+                    <el-radio label="forbidden_instance">禁止实例</el-radio> -->
+                </el-radio-group>
+            </el-form-item>
+        </el-form>
+    </div>
 </template>
 <script>
 import { mapState } from 'vuex'
@@ -103,70 +130,71 @@ import 'codemirror/mode/xml/xml.js'
 import 'codemirror/addon/selection/active-line.js'
 
 export default {
-  components: {
-    BpmnFormVar,
-    codemirror
-  },
-  props: {
-    data: Object,
-    hideSkipFirstNode: Boolean // 是否隐藏跳过第一节点
-  },
-  data() {
-    return {
-      cmOption: {
-        lineWrapping: true,
-        lineNumbers: false,
-        line: true,
-        autoCloseTags: true,
-        mode: 'text/html',
-        theme: 'eclipse'
-      }
-    }
-  },
-  computed: {
-    ...mapState({
-      messageTypes: state => state.ibps.bpmn.messageTypes,
-      boDefData: state => state.ibps.bpmn.boDefData,
-      variables: state => state.ibps.bpmn.variables
-    }),
-    attribute() {
-      return this.data
+    components: {
+        BpmnFormVar,
+        codemirror
     },
-    formVars() {
-      return getSubjectRuleVars(this.boDefData, this.variables)
-    }
-  },
-
-  methods: {
-    getEditor() {
-      return this.$refs.subjectRule.cminstance
+    props: {
+        data: Object,
+        hideSkipFirstNode: Boolean // 是否隐藏跳过第一节点
     },
-    handleFormVar(node) {
-      let data = ''
-      if (node.attrType === 'field') {
-        data = '{' + node.tableName + '.' + node.key + '}'
-      } else if (node.attrType === 'bpmConstants') {
-        data = '{' + node.name + ':' + node.key + '}'
-      } else if (node.attrType === 'var') {
-        data = '{' + node.key + '}'
-      } else {
-        return
-      }
+    data () {
+        return {
+            cmOption: {
+                lineWrapping: true,
+                lineNumbers: false,
+                line: true,
+                autoCloseTags: true,
+                mode: 'text/html',
+                theme: 'eclipse'
+            }
+        }
+    },
+    computed: {
+        ...mapState({
+            messageTypes: (state) => state.ibps.bpmn.messageTypes,
+            boDefData: (state) => state.ibps.bpmn.boDefData,
+            variables: (state) => state.ibps.bpmn.variables
+        }),
+        attribute () {
+            return this.data
+        },
+        formVars () {
+            console.log(getSubjectRuleVars(this.boDefData, this.variables))
+            return getSubjectRuleVars(this.boDefData, this.variables)
+        }
+    },
+
+    methods: {
+        getEditor () {
+            return this.$refs.subjectRule.cminstance
+        },
+        handleFormVar (node) {
+            let data = ''
+            if (node.attrType === 'field') {
+                data = '{' + node.tableName + '.' + node.key + '}'
+            } else if (node.attrType === 'bpmConstants') {
+                data = '{' + node.name + ':' + node.key + '}'
+            } else if (node.attrType === 'var') {
+                data = '{' + node.key + '}'
+            } else {
+                return
+            }
 
-      this.getEditor().replaceSelection(data)
-      this.getEditor().focus()
+            this.getEditor().replaceSelection(data)
+            this.getEditor().focus()
+        }
     }
-  }
 }
 </script>
 <style lang="scss">
-.bpmn-other-attribute{
- .CodeMirror {
-    height: 80px !important;
-    border: 1px solid #eee;
-    .CodeMirror-scroll {
-      height: 80px !important;
+.bpmn-other-attribute {
+    .CodeMirror {
+        height: 80px !important;
+        border: 1px solid #eee;
+        .CodeMirror-scroll {
+            height: 80px !important;
+        }
     }
-  }
 }
 </style>

+ 1 - 2
src/business/platform/bpmn/setting/bpmn-setting/types/global.vue

@@ -143,8 +143,7 @@ export default {
         // 其它属性
         attributes () {
             if (!this.data.attributes) return
-            this.data.attributes.subjectRule = this.data.attributes.subjectRule == '{发起人:startorName}在{发起时间:startTime}发起{流程标题:title}'
-                ? '{发起人:startorName} |启动:{流程标题:title}' : this.data.attributes.subjectRule
+            // this.data.attributes.subjectRule = this.data.attributes.subjectRule == '{发起人:startorName}在{发起时间:startTime}发起{流程标题:title}' ? '{发起人:startorName} |启动:{流程标题:title}' : this.data.attributes.subjectRule
             return this.data ? this.data.attributes || {} : {}
         }
     },