eoss-ui 0.5.81-beta16 → 0.5.81-beta18

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.
@@ -1 +1 @@
1
- @charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-button-content .el-button{padding:4px 8px}.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-button,.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-upload,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-button,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.es-upload,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.el-button,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.es-upload,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.el-button,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.es-upload{margin-left:6px}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:6px;height:32px}.es-toolbar .es-toolbar-content .es-advanced-btn .es-advanced-icon{margin-right:-8px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-form-search-small .el-form-item__content{line-height:32px!important}.es-toolbar .es-form-search-small .el-form-item__label{line-height:32px!important;height:32px}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .es-toolbar-button-group .el-button--medium{border-radius:3px!important}.es-toolbar .es-toolbar-button-group .el-dropdown{margin-left:6px}
1
+ @charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-button-content .el-button{padding:4px 8px}.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-button,.es-toolbar .es-toolbar-content .es-button-content .el-button+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .el-button+.es-upload,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-button,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .es-button-badge+.es-upload,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.el-button,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .es-selector+.es-upload,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.el-button,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.el-dropdown,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.es-button-badge,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.es-selector,.es-toolbar .es-toolbar-content .es-button-content .es-upload+.es-upload{margin-left:6px}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:6px;height:32px}.es-toolbar .es-toolbar-content .es-advanced-btn .es-advanced-icon{margin-right:-8px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-form-search-small .el-form-item__content,.es-toolbar .es-form-search-small .el-input-number{line-height:32px!important}.es-toolbar .es-form-search-small .el-form-item__label{line-height:32px!important;height:32px}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .es-toolbar-button-group .el-button--medium{border-radius:3px!important}.es-toolbar .es-toolbar-button-group .el-dropdown{margin-left:6px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.81-beta16",
3
+ "version": "0.5.81-beta18",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -10,10 +10,49 @@
10
10
  :rules="isNotRule(scope) ? [] : rules"
11
11
  :index="scope.$index"
12
12
  >
13
+ <component
14
+ v-if="getType(scope.row.formConfigs, 'component')"
15
+ :is="tag"
16
+ v-bind="formOption"
17
+ v-model="scope.row[field || prop]"
18
+ :data="getData(scope.row.formOptions)"
19
+ @blur="
20
+ (event) => {
21
+ handleBlur({
22
+ item: config,
23
+ event: event,
24
+ data: scope.row,
25
+ scope: scope
26
+ });
27
+ }
28
+ "
29
+ @focus="
30
+ (event) => {
31
+ handleFocus({
32
+ item: config,
33
+ event: event,
34
+ data: scope.row,
35
+ scope: scope
36
+ });
37
+ }
38
+ "
39
+ @change="
40
+ (value) => {
41
+ handleChange({
42
+ item: config,
43
+ name: field || prop,
44
+ value: value,
45
+ data: scope.row,
46
+ scope: scope
47
+ });
48
+ }
49
+ "
50
+ ></component>
13
51
  <es-select
14
- v-if="type === 'select'"
52
+ v-else-if="getType(scope.row.formConfigs, 'select')"
15
53
  v-bind="formOption"
16
54
  v-model="scope.row[field || prop]"
55
+ :data="getData(scope.row.formOptions)"
17
56
  @blur="
18
57
  (event) => {
19
58
  handleBlur({
@@ -45,11 +84,13 @@
45
84
  });
46
85
  }
47
86
  "
48
- ></es-select>
87
+ >
88
+ </es-select>
49
89
  <es-cascader
50
- v-else-if="type == 'cascader'"
90
+ v-else-if="getType(scope.row.formConfigs, 'cascader')"
51
91
  v-bind="formOption"
52
92
  v-model="scope.row[field || prop]"
93
+ :data="getData(scope.row.formOptions)"
53
94
  @blur="
54
95
  (event) => {
55
96
  handleBlur({
@@ -84,10 +125,10 @@
84
125
  >
85
126
  </es-cascader>
86
127
  <es-select-ganged
87
- v-else-if="type === 'ganged'"
128
+ v-else-if="getType(scope.row.formConfigs, 'ganged')"
88
129
  v-bind="formOption"
89
130
  v-model="scope.row[field || prop]"
90
- :data="init(option, config)"
131
+ :data="init(getData(scope.row.formOptions), config)"
91
132
  @change="
92
133
  (value) => {
93
134
  handleChange({
@@ -98,11 +139,13 @@
98
139
  });
99
140
  }
100
141
  "
101
- ></es-select-ganged>
142
+ >
143
+ </es-select-ganged>
102
144
  <es-radio-group
103
- v-else-if="type === 'radio'"
145
+ v-else-if="getType(scope.row.formConfigs, 'radio')"
104
146
  v-bind="formOption"
105
147
  v-model="scope.row[field || prop]"
148
+ :data="getData(scope.row.formOptions)"
106
149
  @change="
107
150
  (value) => {
108
151
  handleChange({
@@ -113,11 +156,13 @@
113
156
  });
114
157
  }
115
158
  "
116
- ></es-radio-group>
159
+ >
160
+ </es-radio-group>
117
161
  <es-checkbox-group
118
- v-else-if="type === 'checkbox'"
162
+ v-else-if="getType(scope.row.formConfigs, 'checkbox')"
119
163
  v-bind="formOption"
120
164
  v-model="scope.row[field || prop]"
165
+ :data="getData(scope.row.formOptions)"
121
166
  @change="
122
167
  (value) => {
123
168
  handleChange({
@@ -128,11 +173,13 @@
128
173
  });
129
174
  }
130
175
  "
131
- ></es-checkbox-group>
176
+ >
177
+ </es-checkbox-group>
132
178
  <es-switch
133
- v-else-if="type === 'switch'"
179
+ v-else-if="getType(scope.row.formConfigs, 'switch')"
134
180
  v-bind="formOption"
135
181
  v-model="scope.row[field || prop]"
182
+ :data="getData(scope.row.formOptions)"
136
183
  @change="
137
184
  (value) => {
138
185
  handleChange({
@@ -143,22 +190,25 @@
143
190
  });
144
191
  }
145
192
  "
146
- ></es-switch>
193
+ >
194
+ </es-switch>
147
195
  <es-date-picker
148
196
  v-else-if="
149
197
  config.date ||
150
- type == 'date' ||
151
- type == 'year' ||
152
- type == 'month' ||
153
- type == 'date' ||
154
- type == 'dates' ||
155
- type == 'week' ||
156
- type == 'datetime' ||
157
- type == 'datetimerange' ||
158
- type == 'daterange' ||
159
- type == 'monthrange' ||
160
- type == 'quarter' ||
161
- type == 'halfyear'
198
+ getType(scope.row.formConfigs, [
199
+ 'date',
200
+ 'year',
201
+ 'month',
202
+ 'date',
203
+ 'dates',
204
+ 'week',
205
+ 'datetime',
206
+ 'datetimerange',
207
+ 'daterange',
208
+ 'monthrange',
209
+ 'quarter',
210
+ 'halfyear'
211
+ ])
162
212
  "
163
213
  v-bind="formOption"
164
214
  v-model="scope.row[field || prop]"
@@ -194,9 +244,10 @@
194
244
  });
195
245
  }
196
246
  "
197
- ></es-date-picker>
247
+ >
248
+ </es-date-picker>
198
249
  <es-input-number
199
- v-else-if="type == 'number'"
250
+ v-else-if="getType(scope.row.formConfigs, 'number')"
200
251
  v-bind="formOption"
201
252
  v-model="scope.row[field || prop]"
202
253
  @blur="
@@ -230,9 +281,10 @@
230
281
  });
231
282
  }
232
283
  "
233
- ></es-input-number>
284
+ >
285
+ </es-input-number>
234
286
  <es-selector
235
- v-else-if="type == 'selector'"
287
+ v-else-if="getType(scope.row.formConfigs, 'selector')"
236
288
  v-bind="formOption"
237
289
  v-model="scope.row[field || prop]"
238
290
  v-on="
@@ -251,15 +303,16 @@
251
303
  });
252
304
  }
253
305
  "
254
- ></es-selector>
306
+ >
307
+ </es-selector>
255
308
  <template
256
309
  v-else-if="
257
- type === 'text' || type === 'input' || type === 'textarea'
310
+ getType(scope.row.formConfigs, ['text', 'input', 'textarea'])
258
311
  "
259
312
  >
260
313
  <template v-if="config.lazy">
261
314
  <input
262
- v-if="type === 'text' || type === 'input'"
315
+ v-if="getType(scope.row.formConfigs, ['text', 'input'])"
263
316
  class="el-input__inner"
264
317
  v-bind="formOption"
265
318
  v-model.lazy="scope.row[field]"
@@ -370,7 +423,8 @@
370
423
  });
371
424
  }
372
425
  "
373
- ></es-input>
426
+ >
427
+ </es-input>
374
428
  </template>
375
429
  </el-form-item>
376
430
  </template>
@@ -460,6 +514,7 @@ export default {
460
514
  }
461
515
  },
462
516
  props: {
517
+ tag: String,
463
518
  mode: String,
464
519
  service: String,
465
520
  form: Boolean,
@@ -584,8 +639,7 @@ export default {
584
639
  : this.valueKey,
585
640
  rules: this.rules,
586
641
  events: this.events,
587
- ...this.$attrs,
588
- data: this.option
642
+ ...this.$attrs
589
643
  };
590
644
  return config;
591
645
  },
@@ -727,6 +781,18 @@ export default {
727
781
  }
728
782
  return data;
729
783
  },
784
+ getType(config, types) {
785
+ let type =
786
+ config && config[this.field || this.prop]
787
+ ? config[this.field || this.prop]
788
+ : this.type;
789
+ return Array.isArray(types) ? types.includes(type) : type == types;
790
+ },
791
+ getData(res) {
792
+ return res && res[this.field || this.prop]
793
+ ? res[this.field || this.prop]
794
+ : this.option;
795
+ },
730
796
  exclAttribute({ data, attrs }) {
731
797
  return util.exclAttribute({ data, attrs });
732
798
  },
@@ -826,10 +892,14 @@ export default {
826
892
  this.$emit('formFocus', data);
827
893
  this.$emit('form-focus', data);
828
894
  },
829
- handleChange(data) {
830
- let { item } = data;
831
- if (item && this.type == 'ganged') {
832
- let { index, value } = data.value;
895
+ handleChange(datas) {
896
+ let { item, name, data } = datas;
897
+ if (
898
+ item &&
899
+ ((data.formConfigs && data.formConfigs[name] == 'ganged') ||
900
+ this.type == 'ganged')
901
+ ) {
902
+ let { index, value } = datas.value;
833
903
  if (
834
904
  (item.url || this.sysCode) &&
835
905
  ((item.ganged && index > item.ganged - 1) || value.hasSub)
@@ -890,9 +960,9 @@ export default {
890
960
  }
891
961
  }
892
962
  }
893
- this.events && this.events.change && this.events.change(data);
894
- this.$emit('formChange', data);
895
- this.$emit('form-change', data);
963
+ this.events && this.events.change && this.events.change(datas);
964
+ this.$emit('formChange', datas);
965
+ this.$emit('form-change', datas);
896
966
  },
897
967
  handleClick(data) {
898
968
  this.$emit('handleClick', data);
@@ -1,16 +1,15 @@
1
1
  <template>
2
2
  <el-form-item
3
- v-if="!(type === 'handle' && !scope.row.hideHandle)"
4
3
  :name="name"
5
4
  :prop="field || prop"
6
- :rules="isNotRule(scope) ? [] : rules"
7
- :index="scope.$index"
5
+ :rules="rules"
6
+ :index="index"
8
7
  >
9
8
  <es-select
10
9
  v-if="type == 'select'"
11
10
  v-bind="formOption"
12
11
  :data="option"
13
- v-model="scope.row[field || prop]"
12
+ v-model="model"
14
13
  @blur="
15
14
  (event) => {
16
15
  handleBlur({
@@ -380,16 +379,33 @@
380
379
 
381
380
  <script>
382
381
  export default {
383
- name: '',
382
+ name: 'FormItem',
384
383
  components: {},
385
384
  props: {
385
+ scope: {},
386
386
  type: String,
387
- scope: {}
387
+ name: String,
388
+ value: {},
389
+ index: [String, Number],
390
+ labelKey: String,
391
+ valueKey: String,
392
+ field: String,
393
+ prop: String,
394
+ rules: [Array, Object]
388
395
  },
389
396
  data() {
390
397
  return {};
391
398
  },
392
- computed: {},
399
+ computed: {
400
+ model: {
401
+ get() {
402
+ return this.value;
403
+ },
404
+ set(val) {
405
+ this.$emit('input', val);
406
+ }
407
+ }
408
+ },
393
409
  watch: {},
394
410
  created() {},
395
411
  mounted() {},
@@ -100,6 +100,7 @@
100
100
  <children
101
101
  v-else
102
102
  :key="item.label || item.title"
103
+ :tag="item.tag"
103
104
  v-bind="{
104
105
  mode: mode,
105
106
  name: name,
@@ -117,6 +117,17 @@
117
117
  @change="changeSelectUser($event, 'addSignUserId', true)"
118
118
  />
119
119
  </el-form-item>
120
+ <el-form-item
121
+ prop="addSignMode"
122
+ v-if="isCanPreAddSign"
123
+ label="加签模式"
124
+ :rules="[{ required: true, trigger: 'blur' }]"
125
+ >
126
+ <el-radio-group v-model="nextNode.addSignMode">
127
+ <el-radio label="preAddSign">前置加签</el-radio>
128
+ <el-radio label="postAddSign">后置加签</el-radio>
129
+ </el-radio-group>
130
+ </el-form-item>
120
131
  </div>
121
132
  <!-- 加签结束 -->
122
133
  <!-- 减签开始 -->
@@ -400,12 +411,10 @@
400
411
  <div
401
412
  v-show="showNews"
402
413
  style="
403
- {
404
- border: 1px solid #ccc;
405
- padding: 5px;
406
- border-radius: 5px;
407
- font-size: 13px;
408
- }
414
+ border: 1px solid #ccc;
415
+ padding: 5px;
416
+ border-radius: 5px;
417
+ font-size: 13px;
409
418
  "
410
419
  >
411
420
  {{ nextNode.notificationMsg }}
@@ -740,6 +749,7 @@ export default {
740
749
  return {
741
750
  styles: {},
742
751
  userModel: {},
752
+ isCanPreAddSign: false,
743
753
  nextOtherOrgObjSelect: [],
744
754
  subProcessColumns: [],
745
755
  nextCurrentOrgObjSelect: [],
@@ -860,6 +870,7 @@ export default {
860
870
  presetReadUserId: [],
861
871
  nextNode: {
862
872
  nextNodeId: '', // 下步节点
873
+ addSignMode: 'postAddSign',
863
874
  isAddSign: '', // 是否加签
864
875
  isRemoveSign: '', // 是否减签
865
876
  nextOperate: '', // 下步操作
@@ -1332,8 +1343,8 @@ export default {
1332
1343
  rejectBtn() {
1333
1344
  if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
1334
1345
  if (!this.value) {
1335
- if(!this.$refs.commonOpinions.validate()) return
1336
- }
1346
+ if (!this.$refs.commonOpinions.validate()) return;
1347
+ }
1337
1348
  if (this.beforeSubmit != undefined) {
1338
1349
  this.beforeSubmit(0)
1339
1350
  .then((next) => {
@@ -1341,7 +1352,6 @@ export default {
1341
1352
  })
1342
1353
  .catch((e) => {});
1343
1354
  } else {
1344
-
1345
1355
  this.showReject = true;
1346
1356
  }
1347
1357
  },
@@ -1643,11 +1653,10 @@ export default {
1643
1653
  * @date 2022年9月29日
1644
1654
  **/
1645
1655
  rejectAndEnd(res) {
1646
- if (this.isOpinionRequired == 1 && (this.value == '' || !this.value)){
1647
- if(!this.$refs.commonOpinions.validate()) return
1648
- }
1656
+ if (this.isOpinionRequired == 1 && (this.value == '' || !this.value)) {
1657
+ if (!this.$refs.commonOpinions.validate()) return;
1658
+ }
1649
1659
  if (this.beforeSubmit != undefined) {
1650
-
1651
1660
  this.beforeSubmit()
1652
1661
  .then((next) => {
1653
1662
  this.saveRejectAndEnd(res);
@@ -1660,7 +1669,6 @@ export default {
1660
1669
  saveRejectAndEnd(res) {
1661
1670
  this.$confirm('确认' + res.value + '?')
1662
1671
  .then(() => {
1663
-
1664
1672
  // return this.$message.warning('请填写意见');
1665
1673
  let params = {
1666
1674
  url: rejectAndEnd,
@@ -1783,7 +1791,7 @@ export default {
1783
1791
  this.isHideOtherOrg = false;
1784
1792
  this.isNodeShowProcess = false;
1785
1793
  this.isMainSubProcess = false;
1786
- this.isNextUser =this.nextNode.nextOperate != 9 ;
1794
+ this.isNextUser = this.nextNode.nextOperate != 9;
1787
1795
  // this.isMainSubProcess === true
1788
1796
  // ? (this.isMainSubProcess = true)
1789
1797
  // : (this.isMainSubProcess = false);
@@ -1960,7 +1968,7 @@ export default {
1960
1968
  return;
1961
1969
  } else {
1962
1970
  }
1963
-
1971
+
1964
1972
  if (isDef !== true) this.getNodeInfo();
1965
1973
  },
1966
1974
  /**
@@ -2041,13 +2049,15 @@ export default {
2041
2049
  isSpecial,
2042
2050
  canPresetRead,
2043
2051
  isCdjxjTaskHandle,
2044
- taskButtonList
2052
+ taskButtonList,
2053
+ isCanPreAddSign
2045
2054
  }
2046
2055
  } = res;
2047
2056
  this.$emit('startTaskRead', res);
2048
2057
  this.$emit('start-task-read', res);
2049
2058
  this.currentOrgName = currentOrgName;
2050
2059
  this.otherOrgName = otherOrgName;
2060
+ this.isCanPreAddSign = isCanPreAddSign;
2051
2061
  this.endFlowInfo.choiceOrgId = choiceOrgId;
2052
2062
  this.endFlowInfo.choiceDeptId = choiceDeptId;
2053
2063
  this.endFlowInfo.pendingId = this.pendingId;
@@ -2514,6 +2524,9 @@ export default {
2514
2524
  notificationType = this.nextNode.notificationType.join(',');
2515
2525
  addSignUserId = addSignUserId.join(',');
2516
2526
  removeSignUserId = removeSignUserId.join(',');
2527
+ if (!this.isCanPreAddSign) {
2528
+ delete this.nextNode.addSignMode;
2529
+ }
2517
2530
  let params = {
2518
2531
  ...this.nextNode,
2519
2532
  pendingId: this.pendingId,
@@ -307,7 +307,6 @@
307
307
  </template>
308
308
 
309
309
  <script>
310
- const dataTableMode = util.win.dataTableMode || 'default';
311
310
  import avatar from './avatar.vue';
312
311
  import handler from './handler.vue';
313
312
  import subMenu from './sub-menu.vue';
@@ -330,6 +329,7 @@ import {
330
329
  import store from 'eoss-ui/src/utils/store';
331
330
  import util from 'eoss-ui/src/utils/util';
332
331
  const isIE = navigator.userAgent.indexOf('MSIE') != -1;
332
+ const dataTableMode = util.win.dataTableMode || 'default';
333
333
  let events = [
334
334
  (tabs, index, that) => {
335
335
  let tab = tabs[index];
@@ -1257,7 +1257,7 @@ export default {
1257
1257
  util.win.open(res.url);
1258
1258
  } else if (res.urlopenmode == 2 || res.openModel == 2) {
1259
1259
  set = false;
1260
- util.win.location.href = res.url;
1260
+ util.win.open(res.url, '_self');
1261
1261
  } else {
1262
1262
  let i = util.indexOfObj(this.tabs, res, 'id');
1263
1263
  this.activeName = res.id;
@@ -1359,6 +1359,16 @@ export default {
1359
1359
  } else {
1360
1360
  if (res.method == 'iframe') {
1361
1361
  res.url = util.handlerUrl(res.url);
1362
+ } else {
1363
+ let tab = this.tabs[i];
1364
+ if (tab.method === 'iframe') {
1365
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1366
+ } else {
1367
+ this.$set(this.tabs[i], 'refresh', false);
1368
+ this.$nextTick(() => {
1369
+ this.$set(this.tabs[i], 'refresh', true);
1370
+ });
1371
+ }
1362
1372
  }
1363
1373
  }
1364
1374
  },
@@ -1415,11 +1425,17 @@ export default {
1415
1425
  let tab = this.tabs[i];
1416
1426
  if (tab.method === 'iframe') {
1417
1427
  tab.url = util.handlerUrl(tab.url);
1428
+ } else {
1429
+ let tab = this.tabs[i];
1430
+ if (tab.method === 'iframe') {
1431
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1432
+ } else {
1433
+ this.$set(this.tabs[i], 'refresh', false);
1434
+ this.$nextTick(() => {
1435
+ this.$set(this.tabs[i], 'refresh', true);
1436
+ });
1437
+ }
1418
1438
  }
1419
- tab.refresh = false;
1420
- this.$nextTick(() => {
1421
- tab.refresh = true;
1422
- });
1423
1439
  },
1424
1440
  /**
1425
1441
  * @desc:删除iframe
@@ -1501,7 +1517,7 @@ export default {
1501
1517
  } else if (open) {
1502
1518
  util.win.open(open);
1503
1519
  } else if (link) {
1504
- util.win.location.href = link;
1520
+ util.win.open(link, '_self');
1505
1521
  } else {
1506
1522
  switch (type) {
1507
1523
  case 'quit':
@@ -1525,15 +1541,23 @@ export default {
1525
1541
  this.showMsg = false;
1526
1542
  break;
1527
1543
  case 'home':
1528
- if (this.homePage.id !== this.activeName) {
1529
- let i = util.indexOfObj(this.tabs, this.homePage.id, 'id');
1530
- if (i == -1) {
1531
- this.tabs.unshift(this.homePage);
1544
+ let i = util.indexOfObj(this.tabs, this.homePage.id, 'id');
1545
+ if (i == -1) {
1546
+ this.tabs.unshift(this.homePage);
1547
+ } else {
1548
+ let tab = this.tabs[i];
1549
+ if (tab.method === 'iframe') {
1550
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1551
+ } else {
1552
+ this.$set(this.tabs[i], 'refresh', false);
1553
+ this.$nextTick(() => {
1554
+ this.$set(this.tabs[i], 'refresh', true);
1555
+ });
1532
1556
  }
1533
- this.activeName = this.homePage.id;
1534
- this.showMsg = false;
1535
- this.showSet = false;
1536
1557
  }
1558
+ this.activeName = this.homePage.id;
1559
+ this.showMsg = false;
1560
+ this.showSet = false;
1537
1561
  break;
1538
1562
  case 'search':
1539
1563
  this.handlerSetDrawer(res);
@@ -1684,6 +1708,16 @@ export default {
1684
1708
  if (i == -1) {
1685
1709
  let tab = this.setIframeType(obj);
1686
1710
  this.tabs.splice(n + 1, 0, tab);
1711
+ } else {
1712
+ let tab = this.tabs[i];
1713
+ if (tab.method === 'iframe') {
1714
+ this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
1715
+ } else {
1716
+ this.$set(this.tabs[i], 'refresh', false);
1717
+ this.$nextTick(() => {
1718
+ this.$set(this.tabs[i], 'refresh', true);
1719
+ });
1720
+ }
1687
1721
  }
1688
1722
  } else {
1689
1723
  this.$message.error('没有此菜单!');
@@ -44,6 +44,7 @@
44
44
  </template>
45
45
 
46
46
  <script>
47
+ import util from 'eoss-ui/src/utils/util';
47
48
  export default {
48
49
  name: 'MenuList',
49
50
  components: {},
@@ -105,7 +106,7 @@ export default {
105
106
  util.win.open(res.url);
106
107
  return;
107
108
  } else if (res.urlopenmode == 2) {
108
- util.win.location.href = res.url;
109
+ util.win.open(res.url, '_self');
109
110
  return;
110
111
  }
111
112
  this.$emit('command', res);