eoss-ui 0.8.42 → 0.8.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 (81) hide show
  1. package/lib/eoss-ui.common.js +163 -149
  2. package/lib/flow.js +132 -130
  3. package/lib/index.js +1 -1
  4. package/lib/main.js +5 -5
  5. package/lib/upload.js +18 -6
  6. package/package.json +2 -2
  7. package/packages/button-group/src/main.vue +346 -346
  8. package/packages/calogin/src/main.vue +412 -412
  9. package/packages/clients/src/main.vue +151 -151
  10. package/packages/flow/src/component/CustomPreset.vue +326 -326
  11. package/packages/flow/src/component/FileList.vue +97 -97
  12. package/packages/flow/src/component/SendMsg.vue +242 -242
  13. package/packages/flow/src/component/SortFlow.vue +110 -110
  14. package/packages/flow/src/form.vue +123 -123
  15. package/packages/flow/src/freeStartFlow.vue +2902 -2902
  16. package/packages/flow/src/main.vue +1 -0
  17. package/packages/flow/src/processForm.vue +2032 -2032
  18. package/packages/flow/src/processReject.vue +323 -323
  19. package/packages/flow/src/table.vue +58 -58
  20. package/packages/form/src/table.vue +1512 -1512
  21. package/packages/icon/src/main.vue +104 -104
  22. package/packages/login/src/resetPassword.vue +557 -557
  23. package/packages/main/src/public/online.vue +89 -89
  24. package/packages/main/src/public/search.vue +464 -464
  25. package/packages/main/src/public/settings.vue +273 -273
  26. package/packages/main/src/simplicity/apps.vue +388 -388
  27. package/packages/main/src/simplicity/avatar.vue +82 -82
  28. package/packages/main/src/simplicity/handler.vue +158 -158
  29. package/packages/main/src/simplicity/menu-list.vue +135 -135
  30. package/packages/main/src/simplicity/message.vue +293 -293
  31. package/packages/main/src/simplicity/notice.vue +222 -222
  32. package/packages/main/src/simplicity/sub-menu.vue +276 -276
  33. package/packages/main/src/simplicity/user.vue +259 -259
  34. package/packages/main/src/simplicityTop/apps.vue +388 -388
  35. package/packages/main/src/simplicityTop/avatar.vue +82 -82
  36. package/packages/main/src/simplicityTop/handler.vue +215 -215
  37. package/packages/main/src/simplicityTop/lists.vue +84 -84
  38. package/packages/main/src/simplicityTop/menu-list.vue +135 -135
  39. package/packages/main/src/simplicityTop/message.vue +293 -293
  40. package/packages/main/src/simplicityTop/notice.vue +222 -222
  41. package/packages/main/src/simplicityTop/router-page.vue +45 -45
  42. package/packages/main/src/simplicityTop/sub-menu.vue +274 -274
  43. package/packages/main/src/simplicityTop/user.vue +259 -259
  44. package/packages/nav/src/main.vue +351 -351
  45. package/packages/selector-panel/src/selection.vue +174 -174
  46. package/packages/switch/src/main.vue +170 -170
  47. package/packages/theme-chalk/src/data-table.scss +297 -297
  48. package/packages/theme-chalk/src/handler.scss +148 -148
  49. package/packages/theme-chalk/src/icon.scss +3452 -3452
  50. package/packages/theme-chalk/src/login.scss +1006 -1006
  51. package/packages/theme-chalk/src/main.scss +664 -664
  52. package/packages/theme-chalk/src/menu.scss +224 -224
  53. package/packages/theme-chalk/src/simplicity-top.scss +1845 -1845
  54. package/packages/theme-chalk/src/simplicity.scss +1403 -1403
  55. package/packages/theme-chalk/src/upload.scss +172 -172
  56. package/packages/tips/src/main.vue +141 -141
  57. package/packages/upload/src/main.vue +13 -1
  58. package/packages/wujie/src/main.vue +146 -146
  59. package/src/index.js +166 -166
  60. package/src/utils/rules.js +18 -18
  61. package/packages/.DS_Store +0 -0
  62. package/packages/calogin/.DS_Store +0 -0
  63. package/packages/date-picker/.DS_Store +0 -0
  64. package/packages/date-picker/src/.DS_Store +0 -0
  65. package/packages/dialog/.DS_Store +0 -0
  66. package/packages/flow/.DS_Store +0 -0
  67. package/packages/flow/src/.DS_Store +0 -0
  68. package/packages/flow-list/.DS_Store +0 -0
  69. package/packages/form/.DS_Store +0 -0
  70. package/packages/icon/.DS_Store +0 -0
  71. package/packages/login/.DS_Store +0 -0
  72. package/packages/main/.DS_Store +0 -0
  73. package/packages/main/src/.DS_Store +0 -0
  74. package/packages/menu/.DS_Store +0 -0
  75. package/packages/select/.DS_Store +0 -0
  76. package/packages/selector/.DS_Store +0 -0
  77. package/packages/selector-panel/.DS_Store +0 -0
  78. package/packages/theme-chalk/src/.DS_Store +0 -0
  79. package/packages/upload/.DS_Store +0 -0
  80. package/src/.DS_Store +0 -0
  81. package/src/utils/.DS_Store +0 -0
@@ -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>
@@ -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>