eoss-ui 0.6.86 → 0.6.88

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.
package/lib/main.js CHANGED
@@ -7248,8 +7248,8 @@ var apps_component = Object(componentNormalizer["a" /* default */])(
7248
7248
  )
7249
7249
 
7250
7250
  /* harmony default export */ var simplicity_apps = (apps_component.exports);
7251
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/user.vue?vue&type=template&id=d789fc64&scoped=true&
7252
- var uservue_type_template_id_d789fc64_scoped_true_render = function () {
7251
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/user.vue?vue&type=template&id=cf46141e&scoped=true&
7252
+ var uservue_type_template_id_cf46141e_scoped_true_render = function () {
7253
7253
  var _vm = this
7254
7254
  var _h = _vm.$createElement
7255
7255
  var _c = _vm._self._c || _h
@@ -7353,28 +7353,6 @@ var uservue_type_template_id_d789fc64_scoped_true_render = function () {
7353
7353
  1
7354
7354
  )
7355
7355
  : _vm._e(),
7356
- _c(
7357
- "div",
7358
- { staticClass: "es-simplicity-notice-type" },
7359
- [
7360
- _c("div", { staticClass: "es-simplicity-notice-title" }, [
7361
- _vm._v("接收消息类型:"),
7362
- ]),
7363
- _c("es-checkbox-group", {
7364
- staticClass: "es-simplicity-notice-list",
7365
- attrs: { min: 1, data: _vm.notifyList },
7366
- on: { change: _vm.handleCheckboxChange },
7367
- model: {
7368
- value: _vm.checked,
7369
- callback: function ($$v) {
7370
- _vm.checked = $$v
7371
- },
7372
- expression: "checked",
7373
- },
7374
- }),
7375
- ],
7376
- 1
7377
- ),
7378
7356
  _c(
7379
7357
  "div",
7380
7358
  {
@@ -7410,14 +7388,14 @@ var uservue_type_template_id_d789fc64_scoped_true_render = function () {
7410
7388
  1
7411
7389
  )
7412
7390
  }
7413
- var uservue_type_template_id_d789fc64_scoped_true_staticRenderFns = []
7414
- uservue_type_template_id_d789fc64_scoped_true_render._withStripped = true
7391
+ var uservue_type_template_id_cf46141e_scoped_true_staticRenderFns = []
7392
+ uservue_type_template_id_cf46141e_scoped_true_render._withStripped = true
7415
7393
 
7416
7394
 
7417
- // CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=d789fc64&scoped=true&
7395
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/user.vue?vue&type=template&id=cf46141e&scoped=true&
7418
7396
 
7419
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=1c52f6d2&
7420
- var userinfovue_type_template_id_1c52f6d2_render = function () {
7397
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=8643d5d2&
7398
+ var userinfovue_type_template_id_8643d5d2_render = function () {
7421
7399
  var _vm = this
7422
7400
  var _h = _vm.$createElement
7423
7401
  var _c = _vm._self._c || _h
@@ -7433,11 +7411,11 @@ var userinfovue_type_template_id_1c52f6d2_render = function () {
7433
7411
  2
7434
7412
  )
7435
7413
  }
7436
- var userinfovue_type_template_id_1c52f6d2_staticRenderFns = []
7437
- userinfovue_type_template_id_1c52f6d2_render._withStripped = true
7414
+ var userinfovue_type_template_id_8643d5d2_staticRenderFns = []
7415
+ userinfovue_type_template_id_8643d5d2_render._withStripped = true
7438
7416
 
7439
7417
 
7440
- // CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=1c52f6d2&
7418
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/userinfo.vue?vue&type=template&id=8643d5d2&
7441
7419
 
7442
7420
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/userinfo.vue?vue&type=script&lang=js&
7443
7421
  //
@@ -7461,10 +7439,6 @@ userinfovue_type_template_id_1c52f6d2_render._withStripped = true
7461
7439
  /* harmony default export */ var userinfovue_type_script_lang_js_ = ({
7462
7440
  name: 'UserInfo',
7463
7441
  props: {
7464
- showNotify: {
7465
- type: Boolean,
7466
- default: true
7467
- },
7468
7442
  secret: {
7469
7443
  type: Boolean,
7470
7444
  default: true
@@ -7704,8 +7678,8 @@ userinfovue_type_template_id_1c52f6d2_render._withStripped = true
7704
7678
 
7705
7679
  var userinfo_component = Object(componentNormalizer["a" /* default */])(
7706
7680
  simplicity_userinfovue_type_script_lang_js_,
7707
- userinfovue_type_template_id_1c52f6d2_render,
7708
- userinfovue_type_template_id_1c52f6d2_staticRenderFns,
7681
+ userinfovue_type_template_id_8643d5d2_render,
7682
+ userinfovue_type_template_id_8643d5d2_staticRenderFns,
7709
7683
  false,
7710
7684
  null,
7711
7685
  null,
@@ -7981,11 +7955,11 @@ var userinfo_component = Object(componentNormalizer["a" /* default */])(
7981
7955
 
7982
7956
  var user_component = Object(componentNormalizer["a" /* default */])(
7983
7957
  simplicity_uservue_type_script_lang_js_,
7984
- uservue_type_template_id_d789fc64_scoped_true_render,
7985
- uservue_type_template_id_d789fc64_scoped_true_staticRenderFns,
7958
+ uservue_type_template_id_cf46141e_scoped_true_render,
7959
+ uservue_type_template_id_cf46141e_scoped_true_staticRenderFns,
7986
7960
  false,
7987
7961
  null,
7988
- "d789fc64",
7962
+ "cf46141e",
7989
7963
  null
7990
7964
 
7991
7965
  )
@@ -13113,8 +13087,8 @@ defaultvue_type_template_id_377c361a_render._withStripped = true
13113
13087
 
13114
13088
  // CONCATENATED MODULE: ./packages/main/src/default/index.vue?vue&type=template&id=377c361a&
13115
13089
 
13116
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=516cb128&
13117
- var userinfovue_type_template_id_516cb128_render = function () {
13090
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=template&id=14b0e976&
13091
+ var userinfovue_type_template_id_14b0e976_render = function () {
13118
13092
  var _vm = this
13119
13093
  var _h = _vm.$createElement
13120
13094
  var _c = _vm._self._c || _h
@@ -13130,11 +13104,11 @@ var userinfovue_type_template_id_516cb128_render = function () {
13130
13104
  2
13131
13105
  )
13132
13106
  }
13133
- var userinfovue_type_template_id_516cb128_staticRenderFns = []
13134
- userinfovue_type_template_id_516cb128_render._withStripped = true
13107
+ var userinfovue_type_template_id_14b0e976_staticRenderFns = []
13108
+ userinfovue_type_template_id_14b0e976_render._withStripped = true
13135
13109
 
13136
13110
 
13137
- // CONCATENATED MODULE: ./packages/main/src/default/userinfo.vue?vue&type=template&id=516cb128&
13111
+ // CONCATENATED MODULE: ./packages/main/src/default/userinfo.vue?vue&type=template&id=14b0e976&
13138
13112
 
13139
13113
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/default/userinfo.vue?vue&type=script&lang=js&
13140
13114
  var userinfovue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -13161,10 +13135,10 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
13161
13135
 
13162
13136
  /* harmony default export */ var default_userinfovue_type_script_lang_js_ = ({
13163
13137
  props: {
13164
- showNotify: {
13165
- type: Boolean,
13166
- default: true
13167
- },
13138
+ // showNotify: {
13139
+ // type: Boolean,
13140
+ // default: true
13141
+ // },
13168
13142
  secret: {
13169
13143
  type: Boolean,
13170
13144
  default: true
@@ -13338,18 +13312,20 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
13338
13312
  }
13339
13313
  }
13340
13314
  }
13341
- if (this.showNotify) {
13342
- page.push({
13343
- title: '接收消息类型',
13344
- contents: [{
13345
- type: 'checkbox',
13346
- labelHide: true,
13347
- name: 'notify',
13348
- col: 12,
13349
- data: store["a" /* default */].get('notifyList')
13350
- }]
13351
- });
13352
- }
13315
+ // if (this.showNotify) {
13316
+ // page.push({
13317
+ // title: '接收消息类型',
13318
+ // contents: [
13319
+ // {
13320
+ // type: 'checkbox',
13321
+ // labelHide: true,
13322
+ // name: 'notify',
13323
+ // col: 12,
13324
+ // data: store.get('notifyList')
13325
+ // }
13326
+ // ]
13327
+ // });
13328
+ // }
13353
13329
  page.push({
13354
13330
  type: 'submit',
13355
13331
  contents: [{
@@ -13592,8 +13568,8 @@ var userinfovue_type_script_lang_js_extends = Object.assign || function (target)
13592
13568
 
13593
13569
  var default_userinfo_component = Object(componentNormalizer["a" /* default */])(
13594
13570
  src_default_userinfovue_type_script_lang_js_,
13595
- userinfovue_type_template_id_516cb128_render,
13596
- userinfovue_type_template_id_516cb128_staticRenderFns,
13571
+ userinfovue_type_template_id_14b0e976_render,
13572
+ userinfovue_type_template_id_14b0e976_staticRenderFns,
13597
13573
  false,
13598
13574
  null,
13599
13575
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.6.86",
3
+ "version": "0.6.88",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -445,9 +445,8 @@
445
445
  v-html="format(scope.row, true)"
446
446
  :style="styles ? styles[scope.row[prop]] : {}"
447
447
  ></span>
448
- <span v-else :style="styles ? styles[scope.row[prop]] : {}">{{
449
- format(scope.row)
450
- }}</span>
448
+ <span v-else :style="styles ? styles[scope.row[prop]] : {}" v-html="format(scope.row)"></span>
449
+ <!-- {{ format(scope.row) }} -->
451
450
  <es-button-group
452
451
  v-if="type === 'handle' && !scope.row.hideHandle"
453
452
  v-bind="
@@ -811,6 +810,8 @@ export default {
811
810
  },
812
811
  format(rows, flag) {
813
812
  const field = this.field || this.prop;
813
+ console.log('field', field);
814
+ console.log('rows', rows);
814
815
  let data = this.option;
815
816
  let str = '';
816
817
  if (util.isObject(rows[field])) {
@@ -70,6 +70,7 @@
70
70
  "
71
71
  type="textarea"
72
72
  v-model="infoList.noticeInfo"
73
+ @change="handleChange"
73
74
  :readonly="notificationMessageReadOnly"
74
75
  />
75
76
  <!-- <span>{{ infoList.noticeInfo }}</span> -->
@@ -115,7 +116,11 @@ export default {
115
116
  type: String,
116
117
  default: 'left'
117
118
  },
118
- startFlowPageEmbeddedIntoStartFlowIndex:{type:Boolean,default:false}
119
+ startFlowPageEmbeddedIntoStartFlowIndex:{type:Boolean,default:false},
120
+ formTitle: {
121
+ type: String,
122
+ default: ''
123
+ },
119
124
  },
120
125
  inheritAttrs: false,
121
126
  data() {
@@ -125,6 +130,7 @@ export default {
125
130
  notificationMessageReadOnly: false,
126
131
  otherMix: false,
127
132
  currentMix: false,
133
+ oldMessage:'',
128
134
  infoList: {
129
135
  nextOtherOrgObj: [],
130
136
  nextCurrentOrgObj: [],
@@ -136,6 +142,7 @@ export default {
136
142
  currentOrgTabs: [],
137
143
  foreignOrgTabs: [],
138
144
  currentOrgProcessKey: '',
145
+ isChangeMessage: false,
139
146
  isSubFlow: true,
140
147
  choiceDeptId: '',
141
148
  choiceOrgId: '',
@@ -168,6 +175,15 @@ export default {
168
175
  },
169
176
  deep: true,
170
177
  immediate: true
178
+ },
179
+ formTitle: {
180
+ handler(val) {
181
+ if (!this.showBtn && !this.isChangeMessage) {
182
+ this.infoList.noticeInfo = this.oldMessage.replace('{title}', val);
183
+ }
184
+ },
185
+ deep: true,
186
+ immediate: true
171
187
  }
172
188
  },
173
189
  mounted() {
@@ -184,6 +200,9 @@ export default {
184
200
  this.getMessage();
185
201
  },
186
202
  methods: {
203
+ handleChange() {
204
+ this.isChangeMessage = true
205
+ },
187
206
  isMultiple(val) {
188
207
  if (val == 7 || val == 9 || val == 11) {
189
208
  this.newMultiple = false;
@@ -296,7 +315,8 @@ export default {
296
315
  url: findCodeValues,
297
316
  params: {
298
317
  ccCode: 'notification_type',
299
- userId: util.getStorage('userId')
318
+ userId: util.getStorage('userId'),
319
+ pendingId:this.pendingId
300
320
  }
301
321
  })
302
322
  .then((res) => {
@@ -317,13 +337,23 @@ export default {
317
337
  //获取通知信息
318
338
  getMessage() {
319
339
  let params = {
320
- pendingId: this.pendingId
340
+ pendingId: this.pendingId,
341
+ processDefinitionId: this.processDefinitionId,
342
+ businessId: this.businessId
321
343
  };
344
+ if (!this.showBtn) {
345
+ params.openMode = 'samepage';
346
+ }
322
347
  util
323
348
  .ajax({ url: getNotificationMsg, params, methods: 'post' })
324
349
  .then((res) => {
325
350
  if (res.status === 'success') {
326
- this.infoList.noticeInfo = res.message;
351
+ if (!this.showBtn) {
352
+ this.oldMessage = res.message;
353
+ this.infoList.noticeInfo = res.message.replace('{title}', this.formTitle);
354
+ } else {
355
+ this.infoList.noticeInfo = res.message;
356
+ }
327
357
  }
328
358
  this.loading = false;
329
359
  })
@@ -566,7 +566,8 @@ export default {
566
566
  url: findCodeValues,
567
567
  params: {
568
568
  ccCode: 'notification_type',
569
- userId: util.getStorage('userId')
569
+ userId: util.getStorage('userId'),
570
+ pendingId:this.pendingId
570
571
  }
571
572
  })
572
573
  .then((res) => {
@@ -1347,7 +1347,8 @@ export default {
1347
1347
  url: findCodeValues,
1348
1348
  params: {
1349
1349
  ccCode: 'notification_type',
1350
- userId: util.getStorage('userId')
1350
+ userId: util.getStorage('userId'),
1351
+ pendingId:this.pendingId
1351
1352
  }
1352
1353
  })
1353
1354
  .then((res) => {
@@ -87,6 +87,7 @@
87
87
  :selectorParams="params"
88
88
  :pending-id="pendingId"
89
89
  :showBtn="false"
90
+ :formTitle="formTitle"
90
91
  :processDefinitionId="nodeInfo.nextNode"
91
92
  :simpleTips="simpleTips"
92
93
  :oldOption="value"
@@ -693,6 +694,7 @@
693
694
  :startFlowPageEmbeddedIntoStartFlowIndex="
694
695
  startFlowPageEmbeddedIntoStartFlowIndex
695
696
  "
697
+ :formTitle="formTitle"
696
698
  :processDefinitionId="nodeInfo.nextNode"
697
699
  :simpleTips="simpleTips"
698
700
  :showBtn="false"
@@ -1909,7 +1911,8 @@ export default {
1909
1911
  url: findCodeValues,
1910
1912
  params: {
1911
1913
  ccCode: 'notification_type',
1912
- userId: util.getStorage('userId')
1914
+ userId: util.getStorage('userId'),
1915
+ pendingId:this.pendingId
1913
1916
  }
1914
1917
  })
1915
1918
  .then((res) => {
@@ -3107,7 +3110,7 @@ export default {
3107
3110
  * @date 2022年5月25日
3108
3111
  **/
3109
3112
  closeProcess(val, type, closeParent) {
3110
- if (closeParent && !this.startFlowPageEmbeddedIntoStartFlowIndex) {
3113
+ if (this.closeParent && !this.startFlowPageEmbeddedIntoStartFlowIndex) {
3111
3114
  this.$refs[type].handleClosed();
3112
3115
  } else if (!this.startFlowPageEmbeddedIntoStartFlowIndex) {
3113
3116
  this[type] = false;
@@ -745,7 +745,7 @@ export default {
745
745
  if (res.status === 'success') {
746
746
  if (!this.showBtn) {
747
747
  this.oldMessage = res.message;
748
- this.nextNode.noticeInfo = res.message.replace('{title}', '');
748
+ this.nextNode.noticeInfo = res.message.replace('{title}', this.formTitle);
749
749
  } else {
750
750
  this.nextNode.noticeInfo = res.message;
751
751
  }
@@ -144,7 +144,8 @@ export default {
144
144
  url: findCodeValues,
145
145
  params: {
146
146
  ccCode: 'notification_type',
147
- userId: util.getStorage('userId')
147
+ userId: util.getStorage('userId'),
148
+ pendingId:this.pendingId
148
149
  }
149
150
  })
150
151
  .then((res) => {
@@ -478,7 +478,8 @@ export default {
478
478
  url: findCodeValues,
479
479
  params: {
480
480
  ccCode: 'notification_type',
481
- userId: util.getStorage('userId')
481
+ userId: util.getStorage('userId'),
482
+ pendingId:this.pendingId
482
483
  }
483
484
  })
484
485
  .then((res) => {
@@ -26,10 +26,10 @@ import util from 'eoss-ui/src/utils/util';
26
26
 
27
27
  export default {
28
28
  props: {
29
- showNotify: {
30
- type: Boolean,
31
- default: true
32
- },
29
+ // showNotify: {
30
+ // type: Boolean,
31
+ // default: true
32
+ // },
33
33
  secret: {
34
34
  type: Boolean,
35
35
  default: true
@@ -223,20 +223,20 @@ export default {
223
223
  }
224
224
  }
225
225
  }
226
- if (this.showNotify) {
227
- page.push({
228
- title: '接收消息类型',
229
- contents: [
230
- {
231
- type: 'checkbox',
232
- labelHide: true,
233
- name: 'notify',
234
- col: 12,
235
- data: store.get('notifyList')
236
- }
237
- ]
238
- });
239
- }
226
+ // if (this.showNotify) {
227
+ // page.push({
228
+ // title: '接收消息类型',
229
+ // contents: [
230
+ // {
231
+ // type: 'checkbox',
232
+ // labelHide: true,
233
+ // name: 'notify',
234
+ // col: 12,
235
+ // data: store.get('notifyList')
236
+ // }
237
+ // ]
238
+ // });
239
+ // }
240
240
  page.push({
241
241
  type: 'submit',
242
242
  contents: [
@@ -51,7 +51,7 @@
51
51
  :src="qrcode"
52
52
  ></el-image>
53
53
  </div>
54
- <div class="es-simplicity-notice-type">
54
+ <!-- <div class="es-simplicity-notice-type">
55
55
  <div class="es-simplicity-notice-title">接收消息类型:</div>
56
56
  <es-checkbox-group
57
57
  class="es-simplicity-notice-list"
@@ -60,7 +60,7 @@
60
60
  :data="notifyList"
61
61
  @change="handleCheckboxChange"
62
62
  ></es-checkbox-group>
63
- </div>
63
+ </div> -->
64
64
  <div class="es-simplicity-password" @click="handleOpen">
65
65
  修改密码 <i class="es-icon-arrow-right"></i>
66
66
  </div>
@@ -19,10 +19,6 @@ import util from 'eoss-ui/src/utils/util';
19
19
  export default {
20
20
  name: 'UserInfo',
21
21
  props: {
22
- showNotify: {
23
- type: Boolean,
24
- default: true
25
- },
26
22
  secret: {
27
23
  type: Boolean,
28
24
  default: true
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.6.86',
128
+ version: '0.6.88',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,