eoss-ui 0.5.41 → 0.5.43

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 (79) hide show
  1. package/lib/data-table.js +6 -7
  2. package/lib/date-picker.js +39 -4
  3. package/lib/eoss-ui.common.js +109 -69
  4. package/lib/flow-list.js +7 -7
  5. package/lib/flow.js +47 -41
  6. package/lib/index.js +1 -1
  7. package/lib/theme-chalk/flow.css +1 -1
  8. package/lib/theme-chalk/index.css +1 -1
  9. package/package.json +1 -1
  10. package/packages/data-table/src/main.vue +1 -2
  11. package/packages/date-picker/src/main.vue +48 -5
  12. package/packages/flow/src/component/SendMsg.vue +2 -2
  13. package/packages/flow/src/component/taskUnionExamine.vue +2 -2
  14. package/packages/flow/src/main.vue +11 -7
  15. package/packages/flow/src/processReject.vue +2 -2
  16. package/packages/flow/src/startTaskRead.vue +2 -2
  17. package/packages/flow-list/src/main.vue +2 -2
  18. package/packages/theme-chalk/gulpfile.js +25 -0
  19. package/packages/theme-chalk/src/flow.scss +5 -0
  20. package/src/index.js +1 -1
  21. package/CHANGELOG.md +0 -929
  22. package/packages/theme-chalk/lib/base.css +0 -1
  23. package/packages/theme-chalk/lib/button-group.css +0 -1
  24. package/packages/theme-chalk/lib/button.css +0 -1
  25. package/packages/theme-chalk/lib/card.css +0 -1
  26. package/packages/theme-chalk/lib/cascader.css +0 -0
  27. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  28. package/packages/theme-chalk/lib/clients.css +0 -1
  29. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  30. package/packages/theme-chalk/lib/data-table.css +0 -1
  31. package/packages/theme-chalk/lib/date-picker.css +0 -1
  32. package/packages/theme-chalk/lib/dialog.css +0 -1
  33. package/packages/theme-chalk/lib/enterprise.css +0 -1
  34. package/packages/theme-chalk/lib/error-page.css +0 -1
  35. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  36. package/packages/theme-chalk/lib/flow-group.css +0 -1
  37. package/packages/theme-chalk/lib/flow-list.css +0 -1
  38. package/packages/theme-chalk/lib/flow.css +0 -1
  39. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  40. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  41. package/packages/theme-chalk/lib/form.css +0 -1
  42. package/packages/theme-chalk/lib/handle-user.css +0 -1
  43. package/packages/theme-chalk/lib/handler.css +0 -1
  44. package/packages/theme-chalk/lib/icon.css +0 -1
  45. package/packages/theme-chalk/lib/icons.css +0 -1
  46. package/packages/theme-chalk/lib/index.css +0 -1
  47. package/packages/theme-chalk/lib/input-number.css +0 -0
  48. package/packages/theme-chalk/lib/input.css +0 -1
  49. package/packages/theme-chalk/lib/label.css +0 -1
  50. package/packages/theme-chalk/lib/layout.css +0 -1
  51. package/packages/theme-chalk/lib/login.css +0 -1
  52. package/packages/theme-chalk/lib/main.css +0 -1
  53. package/packages/theme-chalk/lib/mainComp.css +0 -0
  54. package/packages/theme-chalk/lib/menu.css +0 -1
  55. package/packages/theme-chalk/lib/nav.css +0 -1
  56. package/packages/theme-chalk/lib/notify.css +0 -0
  57. package/packages/theme-chalk/lib/page.css +0 -1
  58. package/packages/theme-chalk/lib/pagination.css +0 -1
  59. package/packages/theme-chalk/lib/player.css +0 -1
  60. package/packages/theme-chalk/lib/qr-code.css +0 -1
  61. package/packages/theme-chalk/lib/radio-group.css +0 -1
  62. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  63. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  64. package/packages/theme-chalk/lib/select.css +0 -1
  65. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  66. package/packages/theme-chalk/lib/selector.css +0 -1
  67. package/packages/theme-chalk/lib/sizer.css +0 -1
  68. package/packages/theme-chalk/lib/steps.css +0 -1
  69. package/packages/theme-chalk/lib/switch.css +0 -1
  70. package/packages/theme-chalk/lib/table-form.css +0 -0
  71. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  72. package/packages/theme-chalk/lib/tabs.css +0 -1
  73. package/packages/theme-chalk/lib/tips.css +0 -1
  74. package/packages/theme-chalk/lib/toolbar.css +0 -1
  75. package/packages/theme-chalk/lib/tree-group.css +0 -1
  76. package/packages/theme-chalk/lib/tree.css +0 -1
  77. package/packages/theme-chalk/lib/upload.css +0 -1
  78. package/packages/theme-chalk/lib/wujie.css +0 -0
  79. package/packages/theme-chalk/lib/wxlogin.css +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.41",
3
+ "version": "0.5.43",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -390,7 +390,6 @@ export default {
390
390
  pageSize: 20,
391
391
  totalCount: 0
392
392
  },
393
- where: {},
394
393
  wheres: {},
395
394
  tableHeight: 'auto',
396
395
  styles: {},
@@ -869,7 +868,7 @@ export default {
869
868
  reqData = util.extend({}, reqData, where);
870
869
  }
871
870
  if (this.retainSearh) {
872
- reqData = util.extend({}, reqData, this.where);
871
+ reqData = util.extend({}, reqData, this.wheres);
873
872
  }
874
873
  this.tableLoading = true;
875
874
  util
@@ -17,6 +17,11 @@ const formats = {
17
17
  export default {
18
18
  name: 'EsDatePicker',
19
19
  inheritAttrs: false,
20
+ inject: {
21
+ esForm: {
22
+ default: ''
23
+ }
24
+ },
20
25
  props: {
21
26
  value: [String, Array, Number, Date],
22
27
  display: {
@@ -51,15 +56,18 @@ export default {
51
56
  format: String,
52
57
  readonly: Boolean,
53
58
  plain: Boolean,
54
- default: Boolean
59
+ default: Boolean,
60
+ setFormKeys: Array
55
61
  },
56
62
  data() {
57
- return {};
63
+ return {
64
+ date: ''
65
+ };
58
66
  },
59
67
  computed: {
60
68
  models: {
61
69
  get() {
62
- return this.value ? this.value : '';
70
+ return this.value ? this.value : this.dae;
63
71
  },
64
72
  set(val) {
65
73
  return val;
@@ -97,7 +105,42 @@ export default {
97
105
  : '';
98
106
  }
99
107
  },
100
- watch: {},
108
+ watch: {
109
+ models: {
110
+ deep: true,
111
+ handler(val) {
112
+ if (
113
+ this.setFormKeys &&
114
+ this.esForm &&
115
+ this.dateType.indexOf('range') > -1
116
+ ) {
117
+ let obj = this.esForm.models;
118
+ this.setFormKeys.forEach((item, index) => {
119
+ if (val && val.length) {
120
+ obj[item] = val[index];
121
+ } else {
122
+ delete obj[item];
123
+ }
124
+ });
125
+ this.esForm.models = obj;
126
+ }
127
+ }
128
+ },
129
+ 'esForm.models': {
130
+ deep: true,
131
+ handler(val) {
132
+ if (
133
+ this.setFormKeys &&
134
+ this.dateType.indexOf('range') > -1 &&
135
+ !util.isExist(this.value)
136
+ ) {
137
+ this.date = this.setFormKeys.map((item) => {
138
+ return val[item] || '';
139
+ });
140
+ }
141
+ }
142
+ }
143
+ },
101
144
  mounted() {},
102
145
  methods: {
103
146
  getData(val) {
@@ -106,7 +149,7 @@ export default {
106
149
  }
107
150
  if (Array.isArray(val)) {
108
151
  val
109
- .map(item => {
152
+ .map((item) => {
110
153
  if (typeof item === 'string') {
111
154
  return item;
112
155
  } else if (typeof item === 'number') {
@@ -13,10 +13,10 @@
13
13
  prop="notificationType"
14
14
  label="通知方式"
15
15
  :rules="[
16
- { required: true, message: `请选择通知方式`, trigger: 'blur' }
16
+ { required: false, message: `请选择通知方式`, trigger: 'blur' }
17
17
  ]"
18
18
  >
19
- <el-checkbox-group v-model="sendInfo.notificationType">
19
+ <el-checkbox-group v-model="sendInfo.notificationType" style="display:contents">
20
20
  <el-checkbox
21
21
  v-for="item of notificationList"
22
22
  :key="item.cciValue"
@@ -72,10 +72,10 @@
72
72
  prop="noticeType"
73
73
  label="通知方式"
74
74
  :rules="[
75
- { required: true, message: `请选择通知方式`, trigger: 'blur' }
75
+ { required: false, message: `请选择通知方式`, trigger: 'blur' }
76
76
  ]"
77
77
  >
78
- <el-checkbox-group v-model="infoList.noticeType">
78
+ <el-checkbox-group v-model="infoList.noticeType" style="display:contents">
79
79
  <el-checkbox
80
80
  v-for="item of infoList.noticeList"
81
81
  :key="item.cciValue"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="es-flow-index"
4
- :class="{ 'es-flow-narrow': shrink }"
4
+ :class="{ 'es-flow-narrow': shrink ,required:this.requiredValue}"
5
5
  :style="styles"
6
6
  v-if="!shrinkAbled"
7
7
  >
@@ -732,8 +732,7 @@ export default {
732
732
  title: { type: String, default: '事务表单办理' },
733
733
  closeParent: Boolean,
734
734
  width: {
735
- type: String,
736
- default: '48px'
735
+ type: String
737
736
  }
738
737
  },
739
738
  data() {
@@ -745,6 +744,7 @@ export default {
745
744
  nextCurrentOrgObjSelect: [],
746
745
  loading: null, // 加载中
747
746
  newTypeCode: '',
747
+ requiredValue:false,
748
748
  NodeName: '', // 当前节点值
749
749
  radioList: [],
750
750
  value: '',
@@ -1090,7 +1090,7 @@ export default {
1090
1090
  this.shrink = !this.shrink;
1091
1091
  this.styles = this.shrink
1092
1092
  ? { width: 0 }
1093
- : { width: parseInt(this.width, 10) + 'px' };
1093
+ : { width: this.width ? parseInt(this.width, 10) + 'px' : '' };
1094
1094
  this.$emit('shrink', this.shrink);
1095
1095
  },
1096
1096
  customLoading(type) {
@@ -1332,14 +1332,17 @@ export default {
1332
1332
  this.beforeSubmit()
1333
1333
  .then((next) => {
1334
1334
  if (!this.value) {
1335
- return this.$message.warning('请填写意见');
1335
+ // return this.$message.warning('请填写意见');
1336
+ return this.requiredValue = true
1337
+
1336
1338
  }
1337
1339
  this.showReject = true;
1338
1340
  })
1339
1341
  .catch((e) => {});
1340
1342
  } else {
1341
1343
  if (!this.value) {
1342
- return this.$message.warning('请填写意见');
1344
+ // return this.$message.warning('请填写意见');
1345
+ return this.requiredValue = true
1343
1346
  }
1344
1347
  this.showReject = true;
1345
1348
  }
@@ -1656,7 +1659,8 @@ export default {
1656
1659
  this.$confirm('确认' + res.value + '?')
1657
1660
  .then(() => {
1658
1661
  if (this.isOpinionRequired == 1 && (this.value == '' || !this.value))
1659
- return this.$message.warning('请填写意见');
1662
+ return this.requiredValue = true
1663
+ // return this.$message.warning('请填写意见');
1660
1664
  let params = {
1661
1665
  url: rejectAndEnd,
1662
1666
  headers: { Accept: 'application/json,text/plain' },
@@ -32,10 +32,10 @@
32
32
  prop="noticeType"
33
33
  label="通知方式"
34
34
  :rules="[
35
- { required: true, message: `请选择通知方式`, trigger: 'blur' }
35
+ { required: false, message: `请选择通知方式`, trigger: 'blur' }
36
36
  ]"
37
37
  >
38
- <el-checkbox-group v-model="nextNode.noticeType">
38
+ <el-checkbox-group v-model="nextNode.noticeType" >
39
39
  <el-checkbox
40
40
  v-for="item of nextNode.noticeList"
41
41
  :key="item.cciValue"
@@ -106,10 +106,10 @@
106
106
  prop="noticeType"
107
107
  label="通知方式"
108
108
  :rules="[
109
- { required: true, message: `请选择通知方式`, trigger: 'blur' }
109
+ { required: false, message: `请选择通知方式`, trigger: 'blur' }
110
110
  ]"
111
111
  >
112
- <el-checkbox-group v-model="nextNode.noticeType">
112
+ <el-checkbox-group v-model="nextNode.noticeType" style="display:contents">
113
113
  <el-checkbox
114
114
  v-for="item of noticeList"
115
115
  :key="item.cciValue"
@@ -430,7 +430,7 @@ export default {
430
430
  return h(
431
431
  'span',
432
432
  {},
433
- util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
433
+ params.row.doetime ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm') : ''
434
434
  );
435
435
  }
436
436
  },
@@ -586,7 +586,7 @@ export default {
586
586
  return h(
587
587
  'span',
588
588
  {},
589
- util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
589
+ params.row.doetime ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm') : ''
590
590
  );
591
591
  }
592
592
  },
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ const { series, src, dest } = require('gulp');
4
+ const sass = require('gulp-sass');
5
+ const autoprefixer = require('gulp-autoprefixer');
6
+ const cssmin = require('gulp-cssmin');
7
+
8
+ function compile() {
9
+ return src('./src/*.scss')
10
+ .pipe(sass.sync())
11
+ .pipe(autoprefixer({
12
+ overrideBrowserslist: ['ie > 9', 'last 2 versions'],
13
+ cascade: false
14
+ }))
15
+ .pipe(cssmin())
16
+ .pipe(dest('./lib'));
17
+ }
18
+
19
+ function copyfont() {
20
+ return src('./src/fonts/**')
21
+ .pipe(cssmin())
22
+ .pipe(dest('./lib/fonts'));
23
+ }
24
+
25
+ exports.build = series(compile, copyfont);
@@ -14,6 +14,11 @@
14
14
  flex: 1;
15
15
  }
16
16
  }
17
+ .required{
18
+ .el-textarea__inner::placeholder {
19
+ color: red;
20
+ }
21
+ }
17
22
  .no-checked .el-checkbox__input {
18
23
  display: none !important;
19
24
  }
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.5.41',
120
+ version: '0.5.43',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,