eoss-ui 0.8.40 → 0.8.42

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 (85) hide show
  1. package/lib/eoss-ui.common.js +247 -191
  2. package/lib/flow-list.js +8 -7
  3. package/lib/flow.js +169 -146
  4. package/lib/index.js +1 -1
  5. package/lib/main.js +5 -5
  6. package/lib/selector.js +52 -20
  7. package/package.json +1 -1
  8. package/packages/.DS_Store +0 -0
  9. package/packages/button-group/src/main.vue +346 -346
  10. package/packages/calogin/.DS_Store +0 -0
  11. package/packages/calogin/src/main.vue +412 -412
  12. package/packages/clients/src/main.vue +151 -151
  13. package/packages/date-picker/.DS_Store +0 -0
  14. package/packages/date-picker/src/.DS_Store +0 -0
  15. package/packages/dialog/.DS_Store +0 -0
  16. package/packages/flow/.DS_Store +0 -0
  17. package/packages/flow/src/.DS_Store +0 -0
  18. package/packages/flow/src/component/CustomPreset.vue +326 -326
  19. package/packages/flow/src/component/FileList.vue +97 -97
  20. package/packages/flow/src/component/SendMsg.vue +242 -242
  21. package/packages/flow/src/component/SortFlow.vue +110 -110
  22. package/packages/flow/src/flow.vue +14 -2
  23. package/packages/flow/src/form.vue +123 -123
  24. package/packages/flow/src/freeStartFlow.vue +2902 -2902
  25. package/packages/flow/src/main.vue +3 -0
  26. package/packages/flow/src/processForm.vue +2032 -2032
  27. package/packages/flow/src/processReject.vue +323 -323
  28. package/packages/flow/src/startTaskRead.vue +3 -0
  29. package/packages/flow/src/table.vue +58 -58
  30. package/packages/flow-list/.DS_Store +0 -0
  31. package/packages/flow-list/src/main.vue +3 -2
  32. package/packages/form/.DS_Store +0 -0
  33. package/packages/form/src/table.vue +1512 -1512
  34. package/packages/icon/.DS_Store +0 -0
  35. package/packages/icon/src/main.vue +104 -104
  36. package/packages/login/.DS_Store +0 -0
  37. package/packages/login/src/resetPassword.vue +557 -557
  38. package/packages/main/.DS_Store +0 -0
  39. package/packages/main/src/.DS_Store +0 -0
  40. package/packages/main/src/public/online.vue +89 -89
  41. package/packages/main/src/public/search.vue +464 -464
  42. package/packages/main/src/public/settings.vue +273 -273
  43. package/packages/main/src/simplicity/apps.vue +388 -388
  44. package/packages/main/src/simplicity/avatar.vue +82 -82
  45. package/packages/main/src/simplicity/handler.vue +158 -158
  46. package/packages/main/src/simplicity/menu-list.vue +135 -135
  47. package/packages/main/src/simplicity/message.vue +293 -293
  48. package/packages/main/src/simplicity/notice.vue +222 -222
  49. package/packages/main/src/simplicity/sub-menu.vue +276 -276
  50. package/packages/main/src/simplicity/user.vue +259 -259
  51. package/packages/main/src/simplicityTop/apps.vue +388 -388
  52. package/packages/main/src/simplicityTop/avatar.vue +82 -82
  53. package/packages/main/src/simplicityTop/handler.vue +215 -215
  54. package/packages/main/src/simplicityTop/lists.vue +84 -84
  55. package/packages/main/src/simplicityTop/menu-list.vue +135 -135
  56. package/packages/main/src/simplicityTop/message.vue +293 -293
  57. package/packages/main/src/simplicityTop/notice.vue +222 -222
  58. package/packages/main/src/simplicityTop/router-page.vue +45 -45
  59. package/packages/main/src/simplicityTop/sub-menu.vue +274 -274
  60. package/packages/main/src/simplicityTop/user.vue +259 -259
  61. package/packages/menu/.DS_Store +0 -0
  62. package/packages/nav/src/main.vue +351 -351
  63. package/packages/select/.DS_Store +0 -0
  64. package/packages/selector/.DS_Store +0 -0
  65. package/packages/selector/src/main.vue +36 -17
  66. package/packages/selector-panel/.DS_Store +0 -0
  67. package/packages/selector-panel/src/selection.vue +174 -174
  68. package/packages/switch/src/main.vue +170 -170
  69. package/packages/theme-chalk/src/.DS_Store +0 -0
  70. package/packages/theme-chalk/src/data-table.scss +297 -297
  71. package/packages/theme-chalk/src/handler.scss +148 -148
  72. package/packages/theme-chalk/src/icon.scss +3452 -3452
  73. package/packages/theme-chalk/src/login.scss +1006 -1006
  74. package/packages/theme-chalk/src/main.scss +664 -664
  75. package/packages/theme-chalk/src/menu.scss +224 -224
  76. package/packages/theme-chalk/src/simplicity-top.scss +1845 -1845
  77. package/packages/theme-chalk/src/simplicity.scss +1403 -1403
  78. package/packages/theme-chalk/src/upload.scss +172 -172
  79. package/packages/tips/src/main.vue +141 -141
  80. package/packages/upload/.DS_Store +0 -0
  81. package/packages/wujie/src/main.vue +146 -146
  82. package/src/.DS_Store +0 -0
  83. package/src/index.js +166 -166
  84. package/src/utils/.DS_Store +0 -0
  85. package/src/utils/rules.js +18 -18
@@ -1,110 +1,110 @@
1
- <template>
2
- <div
3
- class="flow-sort-box"
4
- style="height: 100%;overflow-y: auto;"
5
- v-loading="loading"
6
- element-loading-text="加载中..."
7
- element-loading-spinner="el-icon-loading"
8
- element-loading-background="rgba(255, 255,255, 0.8)">
9
- <Draggable
10
- class="flow-sort-draggable"
11
- :list="sortList"
12
- >
13
- <es-button style="margin-top: 10px;" v-for="item in sortList" :key="item.id" plain>{{
14
- item.name
15
- }}</es-button></Draggable
16
- >
17
- <div class="flow-sort-btn">
18
- <es-button type="primary" @click="saveSort(true)">保存</es-button>
19
- <es-button @click="saveSort(false)">取消</es-button>
20
- </div>
21
- </div>
22
- </template>
23
-
24
- <script>
25
- import util from 'eoss-ui/src/utils/util';
26
- import Draggable from 'vuedraggable';
27
- import { toDefinitionChangeSort,setSort } from 'eoss-ui/src/config/api';
28
- export default {
29
- name: 'SortFlow',
30
- components: {
31
- Draggable
32
- },
33
- props: {
34
- flowTypeCode: {
35
- type: String,
36
- default: ''
37
- },
38
- defaultProcessKey: {
39
- type: String,
40
- default: ''
41
- }
42
- },
43
- data() {
44
- return {
45
- sortList: [],
46
- loading:false
47
- };
48
- },
49
- mounted() {
50
- this.getSortInfo();
51
- },
52
- methods: {
53
- saveSort(type){
54
- if(type){
55
- let arr = [];
56
- this.sortList.map((item,index)=>{
57
- arr.push({
58
- id:item.id,
59
- processDefId:item.processDefId,
60
- sort:this.sortList.length - index
61
- })
62
- });
63
- const params = {
64
- url: setSort,
65
- method: 'post',
66
- format: false,
67
- headers: {
68
- Accept: 'application/json,text/plain',
69
- 'Content-Type': 'application/json;charset=UTF-8'
70
- },
71
- data: arr
72
- };
73
- this.loading=true;
74
- util.ajax(params).then((res) => {
75
- this.loading=false;
76
- if (res.rCode === 0 || res.status=== 'success') {
77
- this.$message.success('保存成功');
78
- this.$emit('success',this.sortList)
79
- }
80
- }).catch(() => {
81
- this.loading=false;
82
- });
83
- }else{
84
- this.$emit('close')
85
- }
86
- },
87
- getSortInfo() {
88
- const params = {
89
- url: toDefinitionChangeSort,
90
- method: 'get',
91
- params: {
92
- flowTypeCode: this.flowTypeCode,
93
- defaultProcessKey: this.defaultProcessKey
94
- }
95
- };
96
- this.loading=true;
97
- util.ajax(params).then((res) => {
98
- this.loading=false;
99
- if (res.rCode === 0) {
100
- this.sortList = res.results.definitionList || [];
101
- }
102
- }).catch(() => {
103
- this.loading=false;
104
- });
105
- }
106
- }
107
- };
108
- </script>
109
-
110
- <style></style>
1
+ <template>
2
+ <div
3
+ class="flow-sort-box"
4
+ style="height: 100%;overflow-y: auto;"
5
+ v-loading="loading"
6
+ element-loading-text="加载中..."
7
+ element-loading-spinner="el-icon-loading"
8
+ element-loading-background="rgba(255, 255,255, 0.8)">
9
+ <Draggable
10
+ class="flow-sort-draggable"
11
+ :list="sortList"
12
+ >
13
+ <es-button style="margin-top: 10px;" v-for="item in sortList" :key="item.id" plain>{{
14
+ item.name
15
+ }}</es-button></Draggable
16
+ >
17
+ <div class="flow-sort-btn">
18
+ <es-button type="primary" @click="saveSort(true)">保存</es-button>
19
+ <es-button @click="saveSort(false)">取消</es-button>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script>
25
+ import util from 'eoss-ui/src/utils/util';
26
+ import Draggable from 'vuedraggable';
27
+ import { toDefinitionChangeSort,setSort } from 'eoss-ui/src/config/api';
28
+ export default {
29
+ name: 'SortFlow',
30
+ components: {
31
+ Draggable
32
+ },
33
+ props: {
34
+ flowTypeCode: {
35
+ type: String,
36
+ default: ''
37
+ },
38
+ defaultProcessKey: {
39
+ type: String,
40
+ default: ''
41
+ }
42
+ },
43
+ data() {
44
+ return {
45
+ sortList: [],
46
+ loading:false
47
+ };
48
+ },
49
+ mounted() {
50
+ this.getSortInfo();
51
+ },
52
+ methods: {
53
+ saveSort(type){
54
+ if(type){
55
+ let arr = [];
56
+ this.sortList.map((item,index)=>{
57
+ arr.push({
58
+ id:item.id,
59
+ processDefId:item.processDefId,
60
+ sort:this.sortList.length - index
61
+ })
62
+ });
63
+ const params = {
64
+ url: setSort,
65
+ method: 'post',
66
+ format: false,
67
+ headers: {
68
+ Accept: 'application/json,text/plain',
69
+ 'Content-Type': 'application/json;charset=UTF-8'
70
+ },
71
+ data: arr
72
+ };
73
+ this.loading=true;
74
+ util.ajax(params).then((res) => {
75
+ this.loading=false;
76
+ if (res.rCode === 0 || res.status=== 'success') {
77
+ this.$message.success('保存成功');
78
+ this.$emit('success',this.sortList)
79
+ }
80
+ }).catch(() => {
81
+ this.loading=false;
82
+ });
83
+ }else{
84
+ this.$emit('close')
85
+ }
86
+ },
87
+ getSortInfo() {
88
+ const params = {
89
+ url: toDefinitionChangeSort,
90
+ method: 'get',
91
+ params: {
92
+ flowTypeCode: this.flowTypeCode,
93
+ defaultProcessKey: this.defaultProcessKey
94
+ }
95
+ };
96
+ this.loading=true;
97
+ util.ajax(params).then((res) => {
98
+ this.loading=false;
99
+ if (res.rCode === 0) {
100
+ this.sortList = res.results.definitionList || [];
101
+ }
102
+ }).catch(() => {
103
+ this.loading=false;
104
+ });
105
+ }
106
+ }
107
+ };
108
+ </script>
109
+
110
+ <style></style>
@@ -128,6 +128,7 @@
128
128
  :key="StartTaskReadKey"
129
129
  typeCode="read"
130
130
  :param="param"
131
+ :businessName="businessName"
131
132
  :selectorConfig="selectorConfig"
132
133
  :resetAppId="resetAppId"
133
134
  :taskExamine="taskExamineInfo"
@@ -943,6 +944,7 @@
943
944
  :opinion="value"
944
945
  :type="taskReadType"
945
946
  :resetAppId="resetAppId"
947
+ :businessName="businessName"
946
948
  :showTooltip="showTooltip"
947
949
  :flowLabelConfig="flowLabelConfig"
948
950
  :hideMessage="hideMessage"
@@ -1238,6 +1240,7 @@
1238
1240
  :opinion="value"
1239
1241
  :type="taskReadType"
1240
1242
  :showTooltip="showTooltip"
1243
+ :businessName="businessName"
1241
1244
  :flowLabelConfig="flowLabelConfig"
1242
1245
  :hideMessage="hideMessage"
1243
1246
  :selectorConfig="selectorConfig"
@@ -1424,6 +1427,7 @@ export default {
1424
1427
  nodeName: { type: String, default: '' },
1425
1428
  typeCode: { type: String, default: '' },
1426
1429
  selectorConfig: { type: [Object, undefined], default: undefined },
1430
+ businessName: { type: String, default: '' },
1427
1431
  flowTypeCode: { type: String, default: '' },
1428
1432
  defaultProcessKey: { type: String, default: '' },
1429
1433
  hideBtn: { type: Boolean, default: false },
@@ -2514,14 +2518,22 @@ export default {
2514
2518
  if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
2515
2519
  this.taskReadType = 'create';
2516
2520
  // this.showTaskRead = true;
2517
- this.btnType = this.btnFunValue(res.fun);
2521
+ if(this.typeCode == 'fenyue'){
2522
+ this.showTaskRead = true;
2523
+ }else{
2524
+ this.btnType = this.btnFunValue(res.fun);
2525
+ }
2518
2526
  })
2519
2527
  .catch((e) => {});
2520
2528
  } else {
2521
2529
  if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
2522
2530
  this.taskReadType = 'create';
2523
2531
  // this.showTaskRead = true;
2524
- this.btnType = this.btnFunValue(res.fun);
2532
+ if(this.typeCode == 'fenyue'){
2533
+ this.showTaskRead = true;
2534
+ }else{
2535
+ this.btnType = this.btnFunValue(res.fun);
2536
+ }
2525
2537
  }
2526
2538
  }, 0);
2527
2539
  },
@@ -1,123 +1,123 @@
1
- <template>
2
- <div class="es-from" v-loading="loading">
3
- <el-form
4
- ref="dynamicValidateForm"
5
- :label-position="labelPosition"
6
- :model="newData"
7
- :label-width="labelWidth"
8
- class="demo-dynamic"
9
- >
10
- <el-form-item
11
- prop="sort"
12
- label="排序号"
13
- :rules="[{ required: true, message: `请输入排序号`, trigger: 'blur' }]"
14
- >
15
- <el-input
16
- v-model="newData.sort"
17
- :placeholder="`请输入入排序号`"
18
- ></el-input>
19
- </el-form-item>
20
- <el-form-item
21
- prop="content"
22
- label="内容"
23
- :rules="[{ required: true, message: `请输入内容`, trigger: 'blur' }]"
24
- >
25
- <el-input
26
- v-model="newData.content"
27
- type="textarea"
28
- :rows="3"
29
- :placeholder="`请输入内容`"
30
- ></el-input>
31
- </el-form-item>
32
- <!-- <el-form-item> -->
33
- <!-- </el-form-item> -->
34
- </el-form>
35
- <div style="text-align: right">
36
- <el-button
37
- v-show="showSubBtn"
38
- type="primary"
39
- size="small"
40
- @click="submitForm('dynamicValidateForm')"
41
- >
42
- 保存
43
- </el-button>
44
- </div>
45
- </div>
46
- </template>
47
-
48
- <script>
49
- import { addCommonOpion, editCommonOpion } from 'eoss-ui/src/config/api';
50
- import util from 'eoss-ui/src/utils/util';
51
- export default {
52
- name: 'ideas',
53
- componentName: 'ideas',
54
- props: {
55
- data: {
56
- type: Object,
57
- default: () => {}
58
- },
59
- formItemList: {
60
- type: Array,
61
- default: () => []
62
- },
63
- labelWidth: {
64
- type: String,
65
- default: '100px'
66
- },
67
- showSubBtn: {
68
- type: Boolean,
69
- default: true
70
- },
71
- labelPosition: {
72
- type: String,
73
- default: 'left'
74
- }
75
- },
76
- data() {
77
- return {
78
- formList: [],
79
- loading: false,
80
- newData: {},
81
- index: 0
82
- };
83
- },
84
- mounted() {
85
- this.data.id ? this.add(this.data.id) : this.add();
86
- },
87
- methods: {
88
- add(id) {
89
- this.loading = true;
90
- util
91
- .ajax({
92
- url: id ? editCommonOpion : addCommonOpion,
93
- params: { id }
94
- })
95
- .then((res) => {
96
- const { status, message, data } = res;
97
- if (status == 'success') {
98
- this.newData = data.bean;
99
- } else {
100
- this.$message.error(message || '系统错误,请联系管理员!');
101
- }
102
- this.loading = false;
103
- })
104
- .catch((err) => {
105
- this.loading = false;
106
- if (err.message && err.message !== 'canceled') {
107
- this.$message.error(err.message);
108
- }
109
- });
110
- },
111
- submitForm(formName) {
112
- this.$refs[formName].validate((valid) => {
113
- if (valid) {
114
- this.$emit('subMit', { addVisible: false, data: this.newData });
115
- this.$emit('sub-mit', { addVisible: false, data: this.newData });
116
- } else {
117
- return false;
118
- }
119
- });
120
- }
121
- }
122
- };
123
- </script>
1
+ <template>
2
+ <div class="es-from" v-loading="loading">
3
+ <el-form
4
+ ref="dynamicValidateForm"
5
+ :label-position="labelPosition"
6
+ :model="newData"
7
+ :label-width="labelWidth"
8
+ class="demo-dynamic"
9
+ >
10
+ <el-form-item
11
+ prop="sort"
12
+ label="排序号"
13
+ :rules="[{ required: true, message: `请输入排序号`, trigger: 'blur' }]"
14
+ >
15
+ <el-input
16
+ v-model="newData.sort"
17
+ :placeholder="`请输入入排序号`"
18
+ ></el-input>
19
+ </el-form-item>
20
+ <el-form-item
21
+ prop="content"
22
+ label="内容"
23
+ :rules="[{ required: true, message: `请输入内容`, trigger: 'blur' }]"
24
+ >
25
+ <el-input
26
+ v-model="newData.content"
27
+ type="textarea"
28
+ :rows="3"
29
+ :placeholder="`请输入内容`"
30
+ ></el-input>
31
+ </el-form-item>
32
+ <!-- <el-form-item> -->
33
+ <!-- </el-form-item> -->
34
+ </el-form>
35
+ <div style="text-align: right">
36
+ <el-button
37
+ v-show="showSubBtn"
38
+ type="primary"
39
+ size="small"
40
+ @click="submitForm('dynamicValidateForm')"
41
+ >
42
+ 保存
43
+ </el-button>
44
+ </div>
45
+ </div>
46
+ </template>
47
+
48
+ <script>
49
+ import { addCommonOpion, editCommonOpion } from 'eoss-ui/src/config/api';
50
+ import util from 'eoss-ui/src/utils/util';
51
+ export default {
52
+ name: 'ideas',
53
+ componentName: 'ideas',
54
+ props: {
55
+ data: {
56
+ type: Object,
57
+ default: () => {}
58
+ },
59
+ formItemList: {
60
+ type: Array,
61
+ default: () => []
62
+ },
63
+ labelWidth: {
64
+ type: String,
65
+ default: '100px'
66
+ },
67
+ showSubBtn: {
68
+ type: Boolean,
69
+ default: true
70
+ },
71
+ labelPosition: {
72
+ type: String,
73
+ default: 'left'
74
+ }
75
+ },
76
+ data() {
77
+ return {
78
+ formList: [],
79
+ loading: false,
80
+ newData: {},
81
+ index: 0
82
+ };
83
+ },
84
+ mounted() {
85
+ this.data.id ? this.add(this.data.id) : this.add();
86
+ },
87
+ methods: {
88
+ add(id) {
89
+ this.loading = true;
90
+ util
91
+ .ajax({
92
+ url: id ? editCommonOpion : addCommonOpion,
93
+ params: { id }
94
+ })
95
+ .then((res) => {
96
+ const { status, message, data } = res;
97
+ if (status == 'success') {
98
+ this.newData = data.bean;
99
+ } else {
100
+ this.$message.error(message || '系统错误,请联系管理员!');
101
+ }
102
+ this.loading = false;
103
+ })
104
+ .catch((err) => {
105
+ this.loading = false;
106
+ if (err.message && err.message !== 'canceled') {
107
+ this.$message.error(err.message);
108
+ }
109
+ });
110
+ },
111
+ submitForm(formName) {
112
+ this.$refs[formName].validate((valid) => {
113
+ if (valid) {
114
+ this.$emit('subMit', { addVisible: false, data: this.newData });
115
+ this.$emit('sub-mit', { addVisible: false, data: this.newData });
116
+ } else {
117
+ return false;
118
+ }
119
+ });
120
+ }
121
+ }
122
+ };
123
+ </script>