workflow-editor 0.0.85-up → 0.0.86-up

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/lib/{401-6d8d823d.js → 401-407e546c.js} +1 -1
  2. package/lib/{404-71e6f04b.js → 404-b12fe353.js} +1 -1
  3. package/lib/{iframe-page-f6d03745.js → iframe-page-ec0cb4b8.js} +1 -1
  4. package/lib/{index-acd72790.js → index-b621a74d.js} +3945 -4204
  5. package/lib/{tab-content-iframe-index-a109cac2.js → tab-content-iframe-index-a5e89336.js} +1 -1
  6. package/lib/{tab-content-index-f39a83c1.js → tab-content-index-19178806.js} +1 -1
  7. package/lib/{tache-subprocess-history-8ec86536.js → tache-subprocess-history-2c11f85e.js} +1 -1
  8. package/lib/workflow-editor.css +1 -1
  9. package/lib/workflow-editor.js +1 -1
  10. package/lib/workflow-editor.umd.cjs +28 -28
  11. package/package.json +1 -1
  12. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +2 -2
  13. package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +20 -23
  14. package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +6 -9
  15. package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +37 -42
  16. package/packages/workflow-editor/src/properties-editors/common/reminder.vue +76 -41
  17. package/packages/workflow-editor/src/properties-editors/common/task-title.vue +40 -33
  18. package/packages/workflow-editor/src/properties-editors/copy-task.vue +7 -7
  19. package/packages/workflow-editor/src/properties-editors/decision.vue +18 -25
  20. package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +1 -1
  21. package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +1 -1
  22. package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +78 -71
  23. package/packages/workflow-editor/src/properties-editors/human-task.vue +2 -2
  24. package/packages/workflow-editor/src/properties-editors/process.vue +6 -3
  25. package/src/i18n/langs/cn.js +8 -3
  26. package/src/i18n/langs/en.js +7 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "workflow-editor",
3
3
  "private": false,
4
- "version": "0.0.85-up",
4
+ "version": "0.0.86-up",
5
5
  "type": "module",
6
6
  "main": "./lib/workflow-editor.js",
7
7
  "scripts": {
@@ -70,8 +70,8 @@
70
70
  </el-table>
71
71
  </el-card>
72
72
  <el-card class="box-card" style="margin-top: 10px">
73
- <template #header> 办理意见 </template>
74
- <el-form-item :label="'意见来源字段'" label-width="100">
73
+ <template #header> {{ $t('workflowEditorMessage.handlingOpinion') }} </template>
74
+ <el-form-item :label="$t('workflowEditorMessage.opinionSourceField')" label-width="100">
75
75
  <el-input
76
76
  :value="getFieldLabel(opinionAutoSetting.opinionSourceField)"
77
77
  :placeholder="$t('workflowEditorMessage.pleaseSelect')"
@@ -9,12 +9,12 @@
9
9
  class="properties-editor-noTab"
10
10
  @close="$emit('close')"
11
11
  >
12
- <div style="padding-bottom:10px">
13
- <span style="float:left;width:70%">
12
+ <div style="padding-bottom: 10px">
13
+ <span style="float: left; width: 70%">
14
14
  <el-input v-model="searchFormCode" :placeholder="$t('workflowEditorMessage.pleaseEnterTheNameOrCode')" />
15
15
  </span>
16
16
  <span>
17
- <el-button style="margin-left:10px" type="primary" @click="searchForm">
17
+ <el-button style="margin-left: 10px" type="primary" @click="searchForm">
18
18
  {{ $t('workflowEditorPublicModel.search') }}
19
19
  </el-button>
20
20
  </span>
@@ -62,9 +62,7 @@ export default {
62
62
  }
63
63
  },
64
64
  computed: {
65
- ...mapGetters('wfEditor', [
66
- 'formFields'
67
- ]),
65
+ ...mapGetters('wfEditor', ['formFields']),
68
66
  allFields() {
69
67
  // 显示传递进来的字段或者取vuex中缓存的表单字段
70
68
  if (this.fields) {
@@ -84,7 +82,7 @@ export default {
84
82
  },
85
83
  searchForm() {
86
84
  if (this.searchFormCode && this.searchFormCode !== '') {
87
- this.showFields = this.copyAllFields.filter(item => {
85
+ this.showFields = this.copyAllFields.filter((item) => {
88
86
  return item.name.indexOf(this.searchFormCode) > -1 || item.label.indexOf(this.searchFormCode) > -1
89
87
  })
90
88
  } else {
@@ -96,22 +94,21 @@ export default {
96
94
  </script>
97
95
 
98
96
  <style lang="scss" scoped>
99
- .group {
100
- font-size: 14px;
101
- width:100%;
102
- }
103
-
104
- .item {
105
- float: left;
106
- list-style-type:none;
107
- width: 33.33%;
108
- margin-bottom: 18px
109
- }
97
+ .group {
98
+ font-size: 14px;
99
+ width: 100%;
100
+ }
110
101
 
111
- .item-content {
112
- height: calc(100vh - 300px);;
113
- padding-left: 20px;
114
- overflow: auto
115
- }
102
+ .item {
103
+ float: left;
104
+ list-style-type: none;
105
+ width: 33.33%;
106
+ margin-bottom: 18px;
107
+ }
116
108
 
109
+ .item-content {
110
+ height: calc(100vh - 300px);
111
+ padding-left: 20px;
112
+ overflow: auto;
113
+ }
117
114
  </style>
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <span>
3
- <div style="float: left;padding-right: 5px;">
3
+ <div style="float: left; padding-right: 5px">
4
4
  <el-input v-model="zh">
5
5
  <template #append>
6
6
  <i class="fa fa-cog" @click="i18nSet"></i>
7
7
  </template>
8
8
  </el-input>
9
9
  </div>
10
- <i18n-set v-if="isShowI18n" :value="{values:{zh_CN: zh}, key: myI18nKey}" @close="closeI18nSet" />
10
+ <i18n-set v-if="isShowI18n" :value="{ values: { zh_CN: zh }, key: myI18nKey }" @close="closeI18nSet" />
11
11
  </span>
12
12
  </template>
13
13
  <script>
@@ -44,24 +44,21 @@ export default {
44
44
  }
45
45
  },
46
46
  computed: {
47
- ...mapGetters('wfEditor', [
48
- 'processCode',
49
- 'isHandleCreate'
50
- ])
47
+ ...mapGetters('wfEditor', ['processCode', 'isHandleCreate'])
51
48
  },
52
49
  mounted() {
53
- this.$watch('zh', function(newVal) {
50
+ this.$watch('zh', function (newVal) {
54
51
  // this.$emit('input', newVal)
55
52
  this.$emit('update:modelValue', newVal)
56
53
  })
57
54
  },
58
55
  created() {
59
- if(this.isHandleCreate && this.isHandleCreate==='true') {
56
+ if (this.isHandleCreate && this.isHandleCreate === 'true') {
60
57
  this.isNewI18n = false
61
58
  } else {
62
59
  this.isNewI18n = true
63
60
  }
64
- if(this.isNewI18n){
61
+ if (this.isNewI18n) {
65
62
  this.myI18nKey = this.modelValue
66
63
  }
67
64
  },
@@ -4,17 +4,17 @@
4
4
  <template #header>
5
5
  <div class="clearfix">
6
6
  <span>{{ $t('workflowEditor.common.taskNotice') }}</span>
7
-
8
- <el-tooltip>
9
- <template #content>
10
- <ul>
11
- <li>{{$t('workflowEditor.task.reminderTipTemplateMsg')}}</li>
12
- <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateNotice')}}</li>
13
- <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateEmail')}}</li>
14
- </ul>
15
- </template>
16
- <el-icon><Warning /></el-icon>
17
- </el-tooltip>
7
+
8
+ <el-tooltip>
9
+ <template #content>
10
+ <ul>
11
+ <li>{{ $t('workflowEditor.task.reminderTipTemplateMsg') }}</li>
12
+ <li class="sub-li">{{ $t('workflowEditor.task.reminderTipTemplateNotice') }}</li>
13
+ <li class="sub-li">{{ $t('workflowEditor.task.reminderTipTemplateEmail') }}</li>
14
+ </ul>
15
+ </template>
16
+ <el-icon><Warning /></el-icon>
17
+ </el-tooltip>
18
18
  </div>
19
19
  </template>
20
20
  <el-form :model="noticeObj" label-width="80px">
@@ -24,17 +24,19 @@
24
24
  :custom-msg="noticeObj.customMsg"
25
25
  @input-msg="setCustomMsg"
26
26
  />
27
- <el-form-item v-if="noticeObj.informType && noticeObj.informType.length > 0" label-width="100" :label="$t('workflowEditor.task.selectNoticeTemplate')">
28
- <select-mail-templates
29
- v-model="noticeObj.mailTemplateCode"
30
- @set-value="setNoticeCommonTemplateCode"
31
- />
27
+ <el-form-item
28
+ v-if="noticeObj.informType && noticeObj.informType.length > 0"
29
+ label-width="100"
30
+ :label="$t('workflowEditor.task.selectNoticeTemplate')"
31
+ >
32
+ <select-mail-templates v-model="noticeObj.mailTemplateCode" @set-value="setNoticeCommonTemplateCode" />
32
33
  </el-form-item>
33
- <el-form-item v-if="noticeObj.informType && noticeObj.informType.length > 0 && noticeObj.informType.indexOf('mail')>=0" label-width="100" :label="$t('workflowEditor.task.selectMailTemplate')">
34
- <select-mail-templates
35
- v-model="noticeObj.mailPointTemplateCode"
36
- @set-value="setMailTemplateCode"
37
- />
34
+ <el-form-item
35
+ v-if="noticeObj.informType && noticeObj.informType.length > 0 && noticeObj.informType.indexOf('mail') >= 0"
36
+ label-width="100"
37
+ :label="$t('workflowEditor.task.selectMailTemplate')"
38
+ >
39
+ <select-mail-templates v-model="noticeObj.mailPointTemplateCode" @set-value="setMailTemplateCode" />
38
40
  </el-form-item>
39
41
  </el-form>
40
42
  </el-card>
@@ -43,21 +45,21 @@
43
45
  <div class="clearfix">
44
46
  <span>{{ $t('workflowEditor.common.reminderNotice') }}</span>
45
47
  <el-tooltip>
46
- <template #content>
48
+ <template #content>
47
49
  <ul>
48
- <li>{{$t('workflowEditor.task.reminderTipTemplateMsg')}}</li>
49
- <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateNotice')}}</li>
50
- <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateEmail')}}</li>
51
- <li>{{$t('workflowEditor.task.reminderTipRemindMsg')}}</li>
52
- <li class="sub-li">{{$t('workflowEditor.task.reminderTipRemindImmediately')}}</li>
53
- <li class="sub-li">{{$t('workflowEditor.task.reminderTipRemindHistory')}}</li>
50
+ <li>{{ $t('workflowEditor.task.reminderTipTemplateMsg') }}</li>
51
+ <li class="sub-li">{{ $t('workflowEditor.task.reminderTipTemplateNotice') }}</li>
52
+ <li class="sub-li">{{ $t('workflowEditor.task.reminderTipTemplateEmail') }}</li>
53
+ <li>{{ $t('workflowEditor.task.reminderTipRemindMsg') }}</li>
54
+ <li class="sub-li">{{ $t('workflowEditor.task.reminderTipRemindImmediately') }}</li>
55
+ <li class="sub-li">{{ $t('workflowEditor.task.reminderTipRemindHistory') }}</li>
54
56
  </ul>
55
57
  </template>
56
58
  <el-icon><Warning /></el-icon>
57
59
  </el-tooltip>
58
60
  </div>
59
61
  </template>
60
- <reminder v-model:modelValue="reminderObj" :isProcess="isProcess"/>
62
+ <reminder v-model:modelValue="reminderObj" :isProcess="isProcess" />
61
63
  </el-card>
62
64
  </div>
63
65
  </template>
@@ -83,26 +85,18 @@ export default {
83
85
  default: null
84
86
  },
85
87
  // 是否是流程的催办设置。流程催办不需要转办配置。
86
- isProcess:{
88
+ isProcess: {
87
89
  type: Boolean,
88
90
  default: false
89
91
  }
90
92
  },
91
93
  data() {
92
94
  let reminderObj = null
93
- if (
94
- this.reminderValue !== null &&
95
- this.reminderValue !== undefined &&
96
- this.reminderValue !== ''
97
- ) {
95
+ if (this.reminderValue !== null && this.reminderValue !== undefined && this.reminderValue !== '') {
98
96
  reminderObj = this.reminderValue
99
97
  }
100
98
  let noticeObj = {}
101
- if (
102
- this.taskNoticeValue !== null &&
103
- this.taskNoticeValue !== undefined &&
104
- this.taskNoticeValue !== ''
105
- ) {
99
+ if (this.taskNoticeValue !== null && this.taskNoticeValue !== undefined && this.taskNoticeValue !== '') {
106
100
  noticeObj = this.taskNoticeValue
107
101
  }
108
102
  return {
@@ -144,6 +138,7 @@ ul {
144
138
  ul li {
145
139
  list-style: none;
146
140
  }
147
- .sub-li{
141
+ .sub-li {
148
142
  padding-left: 10px;
149
- }</style>
143
+ }
144
+ </style>
@@ -13,49 +13,71 @@
13
13
  />
14
14
  <el-form-item
15
15
  label-width="100"
16
- v-if="
17
- model.remindType && model.remindType.length > 0
18
- "
16
+ v-if="model.remindType && model.remindType.length > 0"
19
17
  :label="$t('workflowEditor.task.selectNoticeTemplate')"
20
18
  >
21
- <select-mail-templates
22
- v-model="model.mailTemplateCode"
23
- @set-value="setMailTemplateCode"
24
- />
19
+ <select-mail-templates v-model="model.mailTemplateCode" @set-value="setMailTemplateCode" />
25
20
  </el-form-item>
26
21
  <el-form-item
27
22
  label-width="100"
28
- v-if="
29
- model.remindType && model.remindType.length > 0 && model.remindType.indexOf('mail') !== -1
30
- "
23
+ v-if="model.remindType && model.remindType.length > 0 && model.remindType.indexOf('mail') !== -1"
31
24
  :label="$t('workflowEditor.task.selectMailTemplate')"
32
25
  >
33
- <select-mail-templates
34
- v-model="model.mailPointTemplateCode"
35
- @set-value="setMailPointTemplateCode"
36
- />
26
+ <select-mail-templates v-model="model.mailPointTemplateCode" @set-value="setMailPointTemplateCode" />
27
+ </el-form-item>
28
+ <el-form-item :label="$t('workflowEditor.task.timeLimitForHandling')">
29
+ <el-radio-group
30
+ v-model="model.timeLimitType"
31
+ aria-label="size control"
32
+ size="small"
33
+ @click="clearDueDateSourceField"
34
+ >
35
+ <el-radio-button value="DEFAULT">{{ $t('workflowEditor.task.timeLimitTypeDefault') }}</el-radio-button>
36
+ <el-radio-button value="FORM_FIELD">{{ $t('workflowEditor.task.timeLimitTypeFormField') }}</el-radio-button>
37
+ <el-radio-button value="CUSTOM">{{ $t('workflowEditor.task.timeLimitTypeCustom') }}</el-radio-button>
38
+ </el-radio-group>
37
39
  </el-form-item>
38
- <el-form-item :label="$t('workflowEditor.task.timeLimitForHandling')" size="small">
40
+ <el-form-item>
41
+ <template v-if="!model.timeLimitType || model.timeLimitType === 'DEFAULT'">
42
+ <el-input-number
43
+ v-model="model.dueDate"
44
+ controls-position="right"
45
+ :min="1"
46
+ :max="30"
47
+ style="width: 90px"
48
+ size="small"
49
+ />
50
+ <el-select v-model="model.dueTimeUnit" style="width: 70px" size="small">
51
+ <el-option :label="$t('workflowEditor.task.day')" value="day" />
52
+ <el-option :label="$t('workflowEditor.task.hour')" value="hour" />
53
+ </el-select>
54
+ </template>
55
+ <template v-else-if="model.timeLimitType === 'FORM_FIELD'">
56
+ <el-input
57
+ :value="getFieldLabel(model.dueDateSourceField)"
58
+ :placeholder="$t('workflowEditorMessage.pleaseSelect')"
59
+ readonly
60
+ style="width: 200px"
61
+ :clearable="true"
62
+ size="small"
63
+ @click="selectDueDateSourceField"
64
+ >
65
+ <template #append>
66
+ <el-button icon="Delete" @click="clearDueDateSourceField" />
67
+ </template>
68
+ </el-input>
69
+ <form-fields v-if="showFormFields" @close="setField" />
70
+ </template>
71
+ <span>{{ $t('workflowEditor.task.urgingInterval') }}</span>
39
72
  <el-input-number
40
- v-model="model.dueDate"
41
- controls-position="right"
42
- :min="1"
43
- :max="30"
44
- style="width: 90px"
45
- />
46
- <el-select v-model="model.dueTimeUnit" style="width: 70px">
47
- <el-option :label="$t('workflowEditor.task.day')" value="day" />
48
- <el-option :label="$t('workflowEditor.task.hour')" value="hour" />
49
- </el-select>
50
- <span>{{ $t('workflowEditor.task.urgingInterval') }}</span
51
- ><el-input-number
52
73
  v-model="model.repeat"
53
74
  controls-position="right"
54
75
  :min="1"
55
76
  :max="30"
56
77
  style="width: 90px"
78
+ size="small"
57
79
  />
58
- <el-select v-model="model.timeUnit" style="width: 70px">
80
+ <el-select v-model="model.timeUnit" style="width: 70px" size="small">
59
81
  <el-option :label="$t('workflowEditor.task.day')" value="day" />
60
82
  <el-option :label="$t('workflowEditor.task.hour')" value="hour" />
61
83
  </el-select>
@@ -84,11 +106,7 @@
84
106
  :custom-msg="model.noticeCustomMsg"
85
107
  @input-msg="setNoticeCustomMsg"
86
108
  />
87
- <el-form-item
88
- v-if="!isProcess"
89
- :label="$t('workflowEditor.common.notifyPersonnel')"
90
- style="margin-bottom: 5px"
91
- >
109
+ <el-form-item v-if="!isProcess" :label="$t('workflowEditor.common.notifyPersonnel')" style="margin-bottom: 5px">
92
110
  <el-checkbox v-model="model.containTransferUser">
93
111
  {{ $t('workflowEditor.task.includingHandoverPersonnel') }}
94
112
  </el-checkbox>
@@ -96,11 +114,7 @@
96
114
  <el-form-item label-width="0">
97
115
  <common-user-condition v-model="model.noticeUserCondition" />
98
116
  </el-form-item>
99
- <el-form-item
100
- v-if="!isProcess"
101
- :label="$t('workflowEditor.task.handoverPersonnel')"
102
- style="margin-bottom: 5px"
103
- >
117
+ <el-form-item v-if="!isProcess" :label="$t('workflowEditor.task.handoverPersonnel')" style="margin-bottom: 5px">
104
118
  <el-checkbox v-model="model.containNoticeUser">
105
119
  {{ $t('workflowEditor.task.includeNotifyPeople') }}
106
120
  </el-checkbox>
@@ -116,13 +130,16 @@
116
130
  import CommonNoticeTool from './common-notice-tool'
117
131
  import CommonUserCondition from './common-user-condition'
118
132
  import SelectMailTemplates from '../common/select-mail-template.vue'
133
+ import FormFields from '../common/form-fields.vue'
134
+ import { getFormFieldLabel } from '../common/form-fields-utils'
119
135
  import * as Vue from 'vue'
120
136
  export default {
121
137
  name: 'Reminder',
122
138
  components: {
123
139
  CommonNoticeTool,
124
140
  CommonUserCondition,
125
- SelectMailTemplates
141
+ SelectMailTemplates,
142
+ FormFields
126
143
  },
127
144
  props: {
128
145
  modelValue: {
@@ -130,7 +147,7 @@ export default {
130
147
  default: null
131
148
  },
132
149
  // 是否是流程的催办设置。流程催办不需要转办配置。
133
- isProcess:{
150
+ isProcess: {
134
151
  type: Boolean,
135
152
  default: false
136
153
  }
@@ -171,7 +188,8 @@ export default {
171
188
  multiSelectData: [],
172
189
  options: {
173
190
  showColumns: 'code,name'
174
- }
191
+ },
192
+ showFormFields: false
175
193
  }
176
194
  },
177
195
  watch: {
@@ -184,6 +202,10 @@ export default {
184
202
  this.$emit('update:modelValue', null)
185
203
  }
186
204
  },
205
+ setField(name) {
206
+ this.model.dueDateSourceField = name
207
+ this.isSelectOpinionField = false
208
+ },
187
209
  showNotice(val) {
188
210
  if (val) {
189
211
  // this.$emit('input', this.model)
@@ -261,6 +283,19 @@ export default {
261
283
  },
262
284
  setNoticeCustomMsg(msg) {
263
285
  this.model.noticeCustomMsg = msg
286
+ },
287
+ selectDueDateSourceField() {
288
+ this.showFormFields = true
289
+ },
290
+ getFieldLabel(name) {
291
+ return getFormFieldLabel(name)
292
+ },
293
+ clearDueDateSourceField() {
294
+ delete this.model.dueDateSourceField
295
+ },
296
+ setField(name) {
297
+ this.model.dueDateSourceField = name
298
+ this.showFormFields = false
264
299
  }
265
300
  }
266
301
  }
@@ -1,17 +1,19 @@
1
1
  <template>
2
2
  <div>
3
3
  <el-tag
4
- v-for="(tag,index) in dynamicTags"
5
- :key="index+tag"
4
+ v-for="(tag, index) in dynamicTags"
5
+ :key="index + tag"
6
6
  :type="getType(tag)"
7
7
  closable
8
8
  :disable-transitions="false"
9
9
  @close="handleClose(tag)"
10
10
  >
11
- {{ showText(tag) }}
11
+ <el-tooltip :content="showText(tag)" placement="top">
12
+ <span class="tag-text">{{ showText(tag) }}</span>
13
+ </el-tooltip>
12
14
  </el-tag>
13
15
  <el-input
14
- v-if="inputVisible||isShowAdditionalParam"
16
+ v-if="inputVisible || isShowAdditionalParam"
15
17
  ref="saveTagInput"
16
18
  v-model="inputValue"
17
19
  class="input-new-tag"
@@ -23,7 +25,7 @@
23
25
  <el-button class="button-new-tag" size="small" icon="EditPen" @click="showInput">
24
26
  {{ $t('workflowEditorMessage.enterText') }}
25
27
  </el-button>
26
- <el-button class="button-new-tag" size="small" icon="Search" @click="showFormFields=true">
28
+ <el-button class="button-new-tag" size="small" icon="Search" @click="showFormFields = true">
27
29
  {{ $t('workflowEditorMessage.selectField') }}
28
30
  </el-button>
29
31
  <el-button class="button-new-tag" size="small" icon="EditPen" @click="showAdditionalParam">
@@ -71,11 +73,8 @@ export default {
71
73
  // this.$emit('update:modelValue', this.dynamicTags.join(''))
72
74
  // }
73
75
  // },
74
- mounted() {
75
-
76
- },
76
+ mounted() {},
77
77
  methods: {
78
-
79
78
  showText(value) {
80
79
  let result = value
81
80
  if (value.indexOf('${field[') >= 0) {
@@ -96,13 +95,13 @@ export default {
96
95
 
97
96
  showInput() {
98
97
  this.inputVisible = true
99
- this.$nextTick(_ => {
98
+ this.$nextTick((_) => {
100
99
  this.$refs.saveTagInput.focus()
101
100
  })
102
101
  },
103
102
  showAdditionalParam() {
104
103
  this.isShowAdditionalParam = true
105
- this.$nextTick(_ => {
104
+ this.$nextTick((_) => {
106
105
  this.$refs.saveTagInput.focus()
107
106
  })
108
107
  },
@@ -112,7 +111,7 @@ export default {
112
111
  if (inputValue) {
113
112
  if (this.inputVisible) {
114
113
  inputValue = '${writeTitle[' + inputValue + ']}'
115
- } else if(this.isShowAdditionalParam) {
114
+ } else if (this.isShowAdditionalParam) {
116
115
  inputValue = '${request[' + inputValue + ']}'
117
116
  }
118
117
  this.dynamicTags.push(inputValue)
@@ -141,25 +140,33 @@ export default {
141
140
  }
142
141
  </script>
143
142
  <style scoped>
144
- .el-tag + .el-tag {
145
- margin-left: 10px;
146
- }
147
- .button-new-tag {
148
- margin-left: 10px;
149
- height: 32px;
150
- line-height: 30px;
151
- padding-top: 0;
152
- padding-bottom: 0;
153
- }
154
- .input-new-tag {
155
- width: 150px;
156
- margin-left: 10px;
157
- vertical-align: bottom;
158
- }
159
- select{
160
- width: 150px;
161
- margin-left: 10px;
162
- height: 32px;
163
- line-height: 32px;
164
- }
143
+ .el-tag + .el-tag {
144
+ margin-left: 10px;
145
+ }
146
+ .tag-text {
147
+ display: inline-block;
148
+ max-width: 160px;
149
+ white-space: nowrap;
150
+ overflow: hidden;
151
+ text-overflow: ellipsis;
152
+ vertical-align: middle;
153
+ }
154
+ .button-new-tag {
155
+ margin-left: 10px;
156
+ height: 32px;
157
+ line-height: 30px;
158
+ padding-top: 0;
159
+ padding-bottom: 0;
160
+ }
161
+ .input-new-tag {
162
+ width: 150px;
163
+ margin-left: 10px;
164
+ vertical-align: bottom;
165
+ }
166
+ select {
167
+ width: 150px;
168
+ margin-left: 10px;
169
+ height: 32px;
170
+ line-height: 32px;
171
+ }
165
172
  </style>
@@ -29,9 +29,10 @@
29
29
  <el-tab-pane :label="$t('workflowEditor.task.eventProcessing')" name="events">
30
30
  <events v-model="model.ref.events" />
31
31
  </el-tab-pane>
32
- <el-tab-pane :label="$t('workflowEditor.task.permissionSettings')" name="permissions">
32
+ <!-- 暂时不支持权限设置 -->
33
+ <!--<el-tab-pane :label="$t('workflowEditor.task.permissionSettings')" name="permissions">
33
34
  <permission-settings v-model="model.ref.permissionSettings" />
34
- </el-tab-pane>
35
+ </el-tab-pane> -->
35
36
  </el-tabs>
36
37
  </el-dialog>
37
38
  </template>
@@ -72,10 +73,10 @@ export default {
72
73
  }
73
74
  },
74
75
  mounted() {
75
- this.$watch('model.ref.attr.id', function(newVal, oldVal) {
76
+ this.$watch('model.ref.attr.id', function (newVal, oldVal) {
76
77
  this.model.id = newVal
77
78
  })
78
- this.$watch('model.ref.attr.name', function(newVal, oldVal) {
79
+ this.$watch('model.ref.attr.name', function (newVal, oldVal) {
79
80
  this.model.name = newVal
80
81
  })
81
82
  },
@@ -88,8 +89,7 @@ export default {
88
89
  </script>
89
90
  <style scoped>
90
91
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
91
- .properties-editor :deep(.el-dialog__body){
92
- padding-top: 0
92
+ .properties-editor :deep(.el-dialog__body) {
93
+ padding-top: 0;
93
94
  }
94
95
  </style>
95
-