eoss-ui 0.8.28 → 0.8.30

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 (184) hide show
  1. package/lib/archives.js +1128 -0
  2. package/lib/button-group.js +158 -129
  3. package/lib/button.js +158 -129
  4. package/lib/calendar.js +2 -2
  5. package/lib/calogin.js +227 -214
  6. package/lib/card.js +2 -2
  7. package/lib/cascader.js +2 -2
  8. package/lib/checkbox-group.js +162 -131
  9. package/lib/clients.js +2 -2
  10. package/lib/config/api.js +28 -1
  11. package/lib/data-table-form.js +161 -131
  12. package/lib/data-table.js +164 -134
  13. package/lib/date-picker.js +158 -129
  14. package/lib/dialog.js +158 -129
  15. package/lib/enable-drag.js +2 -2
  16. package/lib/enterprise.js +2 -2
  17. package/lib/eoss-ui.common.js +774 -326
  18. package/lib/error-page.js +2 -2
  19. package/lib/flow-group.js +158 -129
  20. package/lib/flow-list.js +264 -235
  21. package/lib/flow.js +301 -265
  22. package/lib/form.js +161 -131
  23. package/lib/handle-user.js +159 -130
  24. package/lib/handler.js +166 -137
  25. package/lib/icon.js +166 -137
  26. package/lib/icons.js +4 -4
  27. package/lib/index.js +1 -1
  28. package/lib/input-number.js +158 -129
  29. package/lib/input.js +158 -129
  30. package/lib/label.js +2 -2
  31. package/lib/layout.js +2 -2
  32. package/lib/login.js +165 -135
  33. package/lib/main.js +234 -204
  34. package/lib/menu.js +2 -2
  35. package/lib/nav.js +158 -129
  36. package/lib/notify.js +161 -132
  37. package/lib/page.js +158 -129
  38. package/lib/pagination.js +158 -129
  39. package/lib/player.js +162 -133
  40. package/lib/qr-code.js +160 -131
  41. package/lib/radio-group.js +160 -131
  42. package/lib/retrial-auth.js +168 -139
  43. package/lib/select-ganged.js +167 -138
  44. package/lib/select.js +160 -131
  45. package/lib/selector-panel.js +180 -150
  46. package/lib/selector.js +169 -140
  47. package/lib/sizer.js +160 -131
  48. package/lib/steps.js +158 -129
  49. package/lib/switch.js +165 -136
  50. package/lib/table-form.js +158 -129
  51. package/lib/tabs-panel.js +2 -2
  52. package/lib/tabs.js +158 -129
  53. package/lib/theme-chalk/archives.css +1 -0
  54. package/lib/theme-chalk/base.css +1 -1
  55. package/lib/theme-chalk/calendar.css +1 -1
  56. package/lib/theme-chalk/card.css +1 -1
  57. package/lib/theme-chalk/data-table-form.css +1 -1
  58. package/lib/theme-chalk/form.css +1 -1
  59. package/lib/theme-chalk/handler.css +1 -1
  60. package/lib/theme-chalk/icon.css +1 -1
  61. package/lib/theme-chalk/icons.css +1 -1
  62. package/lib/theme-chalk/index.css +1 -1
  63. package/lib/theme-chalk/label.css +1 -1
  64. package/lib/theme-chalk/login.css +1 -1
  65. package/lib/theme-chalk/main.css +1 -1
  66. package/lib/theme-chalk/menu.css +1 -1
  67. package/lib/theme-chalk/selector-panel.css +1 -1
  68. package/lib/theme-chalk/simplicity-top.css +1 -1
  69. package/lib/theme-chalk/simplicity.css +1 -1
  70. package/lib/theme-chalk/sizer.css +1 -1
  71. package/lib/theme-chalk/steps.css +1 -1
  72. package/lib/theme-chalk/tree.css +1 -1
  73. package/lib/theme-chalk/upload.css +1 -1
  74. package/lib/tips.js +159 -130
  75. package/lib/toolbar.js +2 -2
  76. package/lib/tree-group.js +158 -129
  77. package/lib/tree.js +159 -130
  78. package/lib/upload.js +188 -154
  79. package/lib/wujie.js +165 -136
  80. package/lib/wxlogin.js +165 -136
  81. package/package.json +3 -3
  82. package/packages/archives/index.js +5 -0
  83. package/packages/archives/src/main.vue +344 -0
  84. package/packages/button-group/src/main.vue +346 -346
  85. package/packages/calogin/src/main.vue +412 -412
  86. package/packages/clients/src/main.vue +151 -151
  87. package/packages/flow/src/component/CommonOpinions.vue +376 -376
  88. package/packages/flow/src/component/FileList.vue +97 -97
  89. package/packages/flow/src/component/SendMsg.vue +242 -242
  90. package/packages/flow/src/component/SortFlow.vue +110 -110
  91. package/packages/flow/src/form.vue +123 -123
  92. package/packages/flow/src/main.vue +10 -7
  93. package/packages/flow/src/table.vue +58 -58
  94. package/packages/flow-list/src/main.vue +2337 -2337
  95. package/packages/form/src/table.vue +1512 -1512
  96. package/packages/icon/src/main.vue +104 -104
  97. package/packages/login/src/resetPassword.vue +557 -557
  98. package/packages/main/src/public/online.vue +89 -89
  99. package/packages/main/src/public/search.vue +464 -464
  100. package/packages/main/src/public/settings.vue +273 -273
  101. package/packages/main/src/simplicity/apps.vue +388 -388
  102. package/packages/main/src/simplicity/avatar.vue +82 -82
  103. package/packages/main/src/simplicity/handler.vue +158 -158
  104. package/packages/main/src/simplicity/menu-list.vue +135 -135
  105. package/packages/main/src/simplicity/message.vue +293 -293
  106. package/packages/main/src/simplicity/notice.vue +222 -222
  107. package/packages/main/src/simplicity/sub-menu.vue +276 -276
  108. package/packages/main/src/simplicity/user.vue +259 -259
  109. package/packages/main/src/simplicityTop/apps.vue +388 -388
  110. package/packages/main/src/simplicityTop/avatar.vue +82 -82
  111. package/packages/main/src/simplicityTop/handler.vue +215 -215
  112. package/packages/main/src/simplicityTop/lists.vue +84 -84
  113. package/packages/main/src/simplicityTop/menu-list.vue +135 -135
  114. package/packages/main/src/simplicityTop/message.vue +293 -293
  115. package/packages/main/src/simplicityTop/notice.vue +222 -222
  116. package/packages/main/src/simplicityTop/router-page.vue +45 -45
  117. package/packages/main/src/simplicityTop/sub-menu.vue +274 -274
  118. package/packages/main/src/simplicityTop/user.vue +259 -259
  119. package/packages/nav/src/main.vue +351 -351
  120. package/packages/selector/src/main.vue +761 -761
  121. package/packages/selector-panel/src/main.vue +1036 -1036
  122. package/packages/selector-panel/src/selection.vue +174 -174
  123. package/packages/switch/src/main.vue +170 -170
  124. package/packages/theme-chalk/lib/archives.css +1 -0
  125. package/packages/theme-chalk/lib/base.css +1 -1
  126. package/packages/theme-chalk/lib/calendar.css +1 -1
  127. package/packages/theme-chalk/lib/card.css +1 -1
  128. package/packages/theme-chalk/lib/data-table-form.css +1 -1
  129. package/packages/theme-chalk/lib/form.css +1 -1
  130. package/packages/theme-chalk/lib/handler.css +1 -1
  131. package/packages/theme-chalk/lib/icon.css +1 -1
  132. package/packages/theme-chalk/lib/icons.css +1 -1
  133. package/packages/theme-chalk/lib/index.css +1 -1
  134. package/packages/theme-chalk/lib/label.css +1 -1
  135. package/packages/theme-chalk/lib/login.css +1 -1
  136. package/packages/theme-chalk/lib/main.css +1 -1
  137. package/packages/theme-chalk/lib/menu.css +1 -1
  138. package/packages/theme-chalk/lib/selector-panel.css +1 -1
  139. package/packages/theme-chalk/lib/simplicity-top.css +1 -1
  140. package/packages/theme-chalk/lib/simplicity.css +1 -1
  141. package/packages/theme-chalk/lib/sizer.css +1 -1
  142. package/packages/theme-chalk/lib/steps.css +1 -1
  143. package/packages/theme-chalk/lib/tree.css +1 -1
  144. package/packages/theme-chalk/lib/upload.css +1 -1
  145. package/packages/theme-chalk/src/archives.scss +33 -0
  146. package/packages/theme-chalk/src/data-table.scss +297 -297
  147. package/packages/theme-chalk/src/flow-list.scss +55 -55
  148. package/packages/theme-chalk/src/handler.scss +148 -148
  149. package/packages/theme-chalk/src/icon.scss +3452 -3452
  150. package/packages/theme-chalk/src/index.scss +1 -0
  151. package/packages/theme-chalk/src/login.scss +1006 -1006
  152. package/packages/theme-chalk/src/main.scss +664 -664
  153. package/packages/theme-chalk/src/menu.scss +224 -224
  154. package/packages/theme-chalk/src/selector.scss +114 -114
  155. package/packages/theme-chalk/src/simplicity-top.scss +1845 -1845
  156. package/packages/theme-chalk/src/simplicity.scss +1403 -1403
  157. package/packages/theme-chalk/src/upload.scss +172 -172
  158. package/packages/tips/src/main.vue +141 -141
  159. package/packages/upload/src/main.vue +14 -5
  160. package/packages/wujie/src/main.vue +146 -146
  161. package/src/config/api.js +27 -0
  162. package/src/index.js +166 -163
  163. package/src/utils/rules.js +18 -18
  164. package/packages/.DS_Store +0 -0
  165. package/packages/calogin/.DS_Store +0 -0
  166. package/packages/date-picker/.DS_Store +0 -0
  167. package/packages/date-picker/src/.DS_Store +0 -0
  168. package/packages/dialog/.DS_Store +0 -0
  169. package/packages/flow/.DS_Store +0 -0
  170. package/packages/flow/src/.DS_Store +0 -0
  171. package/packages/flow-list/.DS_Store +0 -0
  172. package/packages/form/.DS_Store +0 -0
  173. package/packages/icon/.DS_Store +0 -0
  174. package/packages/login/.DS_Store +0 -0
  175. package/packages/main/.DS_Store +0 -0
  176. package/packages/main/src/.DS_Store +0 -0
  177. package/packages/menu/.DS_Store +0 -0
  178. package/packages/select/.DS_Store +0 -0
  179. package/packages/selector/.DS_Store +0 -0
  180. package/packages/selector-panel/.DS_Store +0 -0
  181. package/packages/theme-chalk/src/.DS_Store +0 -0
  182. package/packages/upload/.DS_Store +0 -0
  183. package/src/.DS_Store +0 -0
  184. 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>
@@ -5,8 +5,9 @@
5
5
  :style="styles"
6
6
  v-if="!shrinkAbled"
7
7
  >
8
+ <!-- <flowNew v-bind="$attrs" v-if="!shrinkAbled && newFlow" /> -->
8
9
  <div
9
- v-if="showCirculate && newTypeCode != 'fenyue'"
10
+ v-if="showCirculate && newTypeCode != 'fenyue' && !newFlow"
10
11
  style="height: 100%; display: flex; flex-direction: column"
11
12
  >
12
13
  <div class="es-flow-top">
@@ -113,7 +114,7 @@
113
114
  </el-button>
114
115
  </div>
115
116
  <StartTaskRead
116
- v-else-if="typeCode == 'read'"
117
+ v-else-if="typeCode == 'read' && !newFlow"
117
118
  :pending-id="pendingId"
118
119
  :opinion="value"
119
120
  :showTooltip="showTooltip"
@@ -133,7 +134,7 @@
133
134
  />
134
135
 
135
136
  <FreeCirculation
136
- v-else-if="typeCode == 'freeCirculation'"
137
+ v-else-if="typeCode == 'freeCirculation' && !newFlow"
137
138
  :appId="resetAppId"
138
139
  :params="param"
139
140
  :showOther="showOther"
@@ -152,7 +153,7 @@
152
153
  :hideMessage="hideMessage"
153
154
  :simpleTips="simpleTips"
154
155
  @cancel="closeProcess($event)"
155
- v-else-if="typeCode == 'supervise'"
156
+ v-else-if="typeCode == 'supervise' && !newFlow"
156
157
  />
157
158
  <reset
158
159
  style="height: 100%"
@@ -165,9 +166,9 @@
165
166
  @cancel="closeProcess($event)"
166
167
  :flowParams="param"
167
168
  :subParams="subParams"
168
- v-else-if="newTypeCode == 'reset' || newTypeCode == 'continuation'"
169
+ v-else-if="newTypeCode == 'reset' || newTypeCode == 'continuation' && !newFlow"
169
170
  />
170
- <div class="es-flow-content" :style="{'justify-content':fullFlow?'space-between' : 'unset'}" v-else>
171
+ <div class="es-flow-content" :style="{'justify-content':fullFlow?'space-between' : 'unset'}" v-else-if="!newFlow">
171
172
  <div class="es-flow-top">
172
173
  <div class="es-flow-title">
173
174
  <span v-show="!shrink"
@@ -1235,6 +1236,7 @@
1235
1236
 
1236
1237
  <script>
1237
1238
  import CommonOpinions from './component/CommonOpinions.vue';
1239
+ // import flowNew from './flow.vue';
1238
1240
  import ProcessForm from './processForm.vue';
1239
1241
  import CustomPreset from './component/CustomPreset.vue';
1240
1242
  import Preset from './component/Preset.vue';
@@ -1311,6 +1313,7 @@ export default {
1311
1313
  defaultProcessKey: { type: String, default: '' },
1312
1314
  hideBtn: { type: Boolean, default: false },
1313
1315
  isCirculate: { type: Boolean, default: false },
1316
+ newFlow: { type: Boolean, default: false },
1314
1317
  formLabelPosition: {
1315
1318
  type: String,
1316
1319
  default: 'left'
@@ -1439,7 +1442,7 @@ export default {
1439
1442
  customPresetHintMessage: '', //流程预设标题
1440
1443
  flowType: '',
1441
1444
  flowDisabled: false,
1442
- activeNames: '',
1445
+ activeNames: '1',
1443
1446
  isEndUserTask: true,
1444
1447
  enableCustomLimitTimeSetting: false, //是否开启限时办理
1445
1448
  isForceDisplayDefaultOptionForPrefix: false,
@@ -1,58 +1,58 @@
1
- <template>
2
- <el-table
3
- :data="dataList"
4
- border
5
- stripe
6
- style="width: 100%; margin-top: 10px"
7
- >
8
- <el-table-column
9
- v-for="item of tableHead"
10
- :key="item.id"
11
- align="center"
12
- :prop="item.prop"
13
- :label="item.lable"
14
- :width="item.prop != 'content' && 180"
15
- v-bind="$attrs"
16
- ></el-table-column>
17
- <el-table-column label="操作" width="100" align="center">
18
- <template v-if="scope.row.userid" slot-scope="scope">
19
- <el-button type="text" size="small" @click="handleClick(scope.row)"
20
- >编辑</el-button
21
- >
22
- <el-button type="text" size="small" @click="delClick(scope.row)"
23
- >删除</el-button
24
- >
25
- </template>
26
- </el-table-column>
27
- </el-table>
28
- </template>
29
-
30
- <script>
31
- export default {
32
- name: 'Table',
33
- componentName: 'Table',
34
- props: {
35
- dataList: {
36
- type: Array,
37
- default: () => []
38
- },
39
- tableHead: {
40
- type: Array,
41
- default: () => [
42
- { id: 0, lable: '内容', prop: 'content' },
43
- { id: 1, lable: '用户', prop: 'username' }
44
- ]
45
- }
46
- },
47
- methods: {
48
- handleClick(val) {
49
- this.$emit('upDateClick', val);
50
- this.$emit('up-date-click', val);
51
- },
52
- delClick(val) {
53
- this.$emit('delClick', val);
54
- this.$emit('del-click', val);
55
- }
56
- }
57
- };
58
- </script>
1
+ <template>
2
+ <el-table
3
+ :data="dataList"
4
+ border
5
+ stripe
6
+ style="width: 100%; margin-top: 10px"
7
+ >
8
+ <el-table-column
9
+ v-for="item of tableHead"
10
+ :key="item.id"
11
+ align="center"
12
+ :prop="item.prop"
13
+ :label="item.lable"
14
+ :width="item.prop != 'content' && 180"
15
+ v-bind="$attrs"
16
+ ></el-table-column>
17
+ <el-table-column label="操作" width="100" align="center">
18
+ <template v-if="scope.row.userid" slot-scope="scope">
19
+ <el-button type="text" size="small" @click="handleClick(scope.row)"
20
+ >编辑</el-button
21
+ >
22
+ <el-button type="text" size="small" @click="delClick(scope.row)"
23
+ >删除</el-button
24
+ >
25
+ </template>
26
+ </el-table-column>
27
+ </el-table>
28
+ </template>
29
+
30
+ <script>
31
+ export default {
32
+ name: 'Table',
33
+ componentName: 'Table',
34
+ props: {
35
+ dataList: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ tableHead: {
40
+ type: Array,
41
+ default: () => [
42
+ { id: 0, lable: '内容', prop: 'content' },
43
+ { id: 1, lable: '用户', prop: 'username' }
44
+ ]
45
+ }
46
+ },
47
+ methods: {
48
+ handleClick(val) {
49
+ this.$emit('upDateClick', val);
50
+ this.$emit('up-date-click', val);
51
+ },
52
+ delClick(val) {
53
+ this.$emit('delClick', val);
54
+ this.$emit('del-click', val);
55
+ }
56
+ }
57
+ };
58
+ </script>