cloud-web-corejs 1.1.0-dev.6 → 1.1.0-dev.7

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 (45) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/view.vue +27 -26
  3. package/src/components/excelImport/index.vue +156 -156
  4. package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
  5. package/src/components/mobile/wf/content.vue +110 -67
  6. package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
  7. package/src/components/mobile/wf/selectUserDialog.vue +122 -0
  8. package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
  9. package/src/components/mobile/wf/urgingDialog.vue +26 -3
  10. package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
  11. package/src/components/xform/form-designer/designer.js +36 -52
  12. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
  13. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
  14. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +2 -2
  15. package/src/components/xform/form-designer/indexMixin.js +25 -0
  16. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -860
  17. package/src/components/xform/form-designer/toolbar-panel/index.vue +874 -874
  18. package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
  19. package/src/components/xform/form-designer/widget-panel/indexMixin.js +15 -2
  20. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -1
  21. package/src/components/xform/form-render/container-item/list-h5-item.vue +154 -27
  22. package/src/components/xform/form-render/indexMixin.js +23 -3
  23. package/src/components/xform/styles/h5.scss +774 -588
  24. package/src/directive/append-to-body/index.js +48 -0
  25. package/src/index.js +4 -0
  26. package/src/layout/components/Sidebar/default.vue +1655 -1655
  27. package/src/router/index.js +48 -48
  28. package/src/utils/vab.js +1283 -1283
  29. package/src/views/bd/setting/form_template/edit.vue +378 -356
  30. package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
  31. package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
  32. package/src/views/bd/setting/form_template/list.vue +304 -303
  33. package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
  34. package/src/views/bd/setting/form_template/mixins/list.js +748 -721
  35. package/src/views/user/file_view_ins/list.vue +970 -970
  36. package/src/views/user/form/vform/designer.vue +823 -821
  37. package/src/views/user/home/default.vue +1117 -1117
  38. package/src/views/user/home/index.vue +103 -103
  39. package/src/views/user/notify_message/dialog.vue +139 -139
  40. package/src/views/user/outLink/form_view.vue +202 -202
  41. package/src/views/user/outLink/index.vue +110 -110
  42. package/src/views/user/wf/iframe/index.vue +51 -51
  43. package/src/views/user/wf/iframe/index2.vue +64 -64
  44. package/src/views/user/wf/wf_manage/list2.vue +871 -871
  45. package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -134
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.1.0-dev.6",
4
+ "version": "1.1.0-dev.7",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "dev:micro": "vue-cli-service serve --port 17527",
@@ -176,16 +176,21 @@
176
176
  />
177
177
  <!-- H5 非图片文件预览:结构与 mobile/wf/content.vue 的流程图预览一致,
178
178
  样式走 xform/styles/h5.scss 块 L 的 .pop-box(全屏 fixed + 内部 flex)。
179
- 只在宿主传了 h5Preview 时才会被 openPreview 打开,PC 上永远不渲染。 -->
180
- <div class="pop-box" v-if="showFilePreviewDialog">
181
- <div>
182
- <div class="header-box">
183
- <i
184
- class="back el-icon-close"
185
- @click="showFilePreviewDialog = false"
186
- ></i>
187
- {{ $t2("文件预览", "components.VabUpload.filePreview") }}
188
- </div>
179
+ 只在宿主传了 h5Preview 时才会被 openPreview 打开,PC 上永远不渲染。 -->
180
+ <el-dialog
181
+ title="文件预览"
182
+ :modal-append-to-body="false"
183
+ :close-on-click-modal="false"
184
+ :visible.sync="showFilePreviewDialog"
185
+ :modal="false"
186
+ custom-class="dialog-style h5view-dialog"
187
+ width="100%"
188
+ top="0px"
189
+ v-el-drag-dialog
190
+ v-el-dialog-center
191
+ :append-to-body ="true"
192
+ :destroy-on-close="true"
193
+ >
189
194
  <div class="flex">
190
195
  <div class="form-box">
191
196
  <div class="tit">
@@ -196,22 +201,18 @@
196
201
  :src="previewFileUrl"
197
202
  ></iframe>
198
203
  </div>
199
- </div>
200
- <!-- 与流程图预览/任务情况预览同款:底部一个铺满行的「关 闭」。
201
- .btn 的 flex:1 由 xform/styles/h5.scss 块 L 给,单个按钮自动占满。 -->
202
- <div class="fixed-bottom-btns">
203
- <el-button
204
- type="primary"
205
- plain
206
- class="btn"
207
- icon="el-icon-close"
208
- @click="showFilePreviewDialog = false"
209
- >
210
- {{ $t2("关 闭", "system.button.close2") }}
211
- </el-button>
212
- </div>
213
- </div>
214
- </div>
204
+ </div>
205
+ <span slot="footer" class="dialog-footer">
206
+ <el-button
207
+ type="primary"
208
+ plain
209
+ class="button-sty"
210
+ icon="el-icon-close"
211
+ @click="showFilePreviewDialog = false"
212
+ >{{$t2('关 闭', 'system.button.close2')}}</el-button
213
+ >
214
+ </span>
215
+ </el-dialog>
215
216
  </div>
216
217
  </template>
217
218
 
@@ -1,156 +1,156 @@
1
- <template>
2
- <div v-if="showContent">
3
- <el-dialog
4
- :title="option.title || $t2('导入', 'components.excelImport.title')"
5
- :append-to-body="falseValue"
6
- :modal-append-to-body="falseValue"
7
- :close-on-click-modal="falseValue"
8
- :visible.sync="showImportDialog"
9
- :modal="falseValue"
10
- custom-class="dialog-style"
11
- width="501px"
12
- v-el-drag-dialog
13
- >
14
- <div class="import-box">
15
- <template v-if="!!option.excel">
16
- <div class="tips">{{ $t2('请下载文件模板,填写信息后再上传文件', 'components.excelImport.tip') }}</div>
17
- <el-button type="success" plain class="button-sty template-btn" @click="commonLocalDownload()">
18
- {{ $t2('模板下载', 'components.excelImport.downloadBUtton') }}
19
- </el-button>
20
- </template>
21
- <el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
22
- :on-change="fileChange">
23
- <div class="el-upload-dragger">
24
- <i class="el-icon-upload"></i>
25
- <div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
26
- </div>
27
- </el-upload>
28
- <div class="upload-finish" v-if="fileRaw">
29
- <img :src="$assetUrl(require('@/resources' + '/images/ico-excel.svg'))" class="ico"/>
30
- <p class="name">{{ fileRaw.name }}</p>
31
- <!-- <p>2022-1-17</p> -->
32
- <el-tooltip :enterable="false" class="item" effect="dark"
33
- :content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
34
- <i
35
- class="el-icon-error js-close"
36
- @click="
37
- fileRaw = false;
38
- $refs.uploadBtn.clearFiles();
39
- "
40
- ></i>
41
- </el-tooltip>
42
- </div>
43
- </div>
44
- <span slot="footer" class="dialog-footer">
45
- <el-button type="primary" plain class="button-sty" @click="dialogClose1">
46
- <i class="el-icon-close el-icon"></i>
47
- {{ $t2('取 消', 'system.button.cancel2') }}
48
- </el-button>
49
- <el-button type="primary" @click="dialogPrimary1" class="button-sty">
50
- <i class="el-icon-check el-icon"></i>
51
- {{ $t2('确 定', 'system.button.confirm2') }}
52
- </el-button>
53
- </span>
54
- </el-dialog>
55
- <el-dialog
56
- ref="importDialog"
57
- :title="$t2('导入', 'components.excelImport.title')"
58
- :append-to-body="falseValue"
59
- :modal-append-to-body="falseValue"
60
- :close-on-click-modal="falseValue"
61
- :visible.sync="showImportDialog2"
62
- :modal="falseValue"
63
- custom-class="dialog-style"
64
- width="501px"
65
- height="250px"
66
- :beforeClose="handleBeforeClose"
67
- @close="handleClose2"
68
- v-el-drag-dialog
69
- >
70
- <div>
71
- <div class="import-box">
72
- <div class="tips">
73
- {{ $t2('导入中,请勿关闭当前窗口', 'components.excelImport.tip2') }}
74
- <!-- <span class="fr">耗时:<em class="time-txt">0 时 0 分 0 秒 </em></span> -->
75
- </div>
76
- <el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
77
- class="export-progress"></el-progress>
78
- <div class="i-status">
79
- <div class="item">
80
- <i class="el-icon-success f-green"></i>
81
- {{ $t2('成功', 'components.excelImport.success') }}:
82
- <span class="successNum" @click="showSuccessResult">{{ totalSuccessNum }}</span>
83
- </div>
84
- <div class="item">
85
- <i class="el-icon-error f-red"></i>
86
- {{ $t2('失败', 'components.excelImport.fail') }}:
87
- <span class="failNum" @click="showErrorResult">{{ totalErrorNum }}</span>
88
- </div>
89
- </div>
90
- </div>
91
- </div>
92
- <div slot="footer" class="dialog-footer" center="true">
93
- <div class="fl import-count">
94
- <span class="f-red doneNum">0</span>
95
- /
96
- <span class="dataSize">0</span>
97
- </div>
98
- <el-button type="primary" plain class="button-sty" @click="dialogClose2">
99
- <i class="el-icon-close el-icon"></i>
100
- {{ $t2('取 消', 'system.button.cancel2') }}
101
- </el-button>
102
- <el-button type="primary" class="button-sty" @click="dialogPrimary2">
103
- <i class="el-icon-check el-icon"></i>
104
- {{ $t2('确 定', 'system.button.confirm2') }}
105
- </el-button>
106
- </div>
107
- </el-dialog>
108
- <el-dialog
109
- :title="$t2('结果', 'components.excelImport.resultTitle')"
110
- :append-to-body="true"
111
- :modal-append-to-body="true"
112
- :close-on-click-modal="falseValue"
113
- :visible.sync="showImportResult"
114
- :modal="falseValue"
115
- custom-class="dialog-style list-dialog"
116
- width="1200px"
117
- v-el-drag-dialog
118
- >
119
- <div>
120
- <div class="box-style">
121
- <div class="cont">
122
- <div class="table-div">
123
- <vxe-grid
124
- id="resGrid"
125
- ref="resGrid"
126
- height="440px"
127
- v-bind="resOption"
128
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
129
- @custom="$vxeTableUtil.customHandle"
130
- >
131
- <template #form>
132
- <div class="clearfix screen-btns">
133
- <div class="fl">
134
- <vxe-button status="primary" class="button-sty" icon="el-icon-upload2" @click="exportToExcel()">
135
- {{ $t1('导出') }}
136
- </vxe-button>
137
- </div>
138
- <div class="fr"></div>
139
- </div>
140
- </template>
141
- </vxe-grid>
142
- </div>
143
- </div>
144
- </div>
145
- </div>
146
- </el-dialog>
147
- </div>
148
- </template>
149
-
150
- <script>
151
- import {mixins} from './mixins';
152
-
153
- export default {
154
- mixins: [mixins]
155
- };
156
- </script>
1
+ <template>
2
+ <div v-if="showContent">
3
+ <el-dialog
4
+ :title="option.title || $t2('导入', 'components.excelImport.title')"
5
+ :append-to-body="falseValue"
6
+ :modal-append-to-body="falseValue"
7
+ :close-on-click-modal="falseValue"
8
+ :visible.sync="showImportDialog"
9
+ :modal="falseValue"
10
+ custom-class="dialog-style"
11
+ width="501px"
12
+ v-el-drag-dialog
13
+ >
14
+ <div class="import-box">
15
+ <template v-if="!!option.excel">
16
+ <div class="tips">{{ $t2('请下载文件模板,填写信息后再上传文件', 'components.excelImport.tip') }}</div>
17
+ <el-button type="success" plain class="button-sty template-btn" @click="commonLocalDownload()">
18
+ {{ $t2('模板下载', 'components.excelImport.downloadBUtton') }}
19
+ </el-button>
20
+ </template>
21
+ <el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
22
+ :on-change="fileChange">
23
+ <div class="el-upload-dragger">
24
+ <i class="el-icon-upload"></i>
25
+ <div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
26
+ </div>
27
+ </el-upload>
28
+ <div class="upload-finish" v-if="fileRaw">
29
+ <img :src="$assetUrl(require('@/resources' + '/images/ico-excel.svg'))" class="ico"/>
30
+ <p class="name">{{ fileRaw.name }}</p>
31
+ <!-- <p>2022-1-17</p> -->
32
+ <el-tooltip :enterable="false" class="item" effect="dark"
33
+ :content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
34
+ <i
35
+ class="el-icon-error js-close"
36
+ @click="
37
+ fileRaw = false;
38
+ $refs.uploadBtn.clearFiles();
39
+ "
40
+ ></i>
41
+ </el-tooltip>
42
+ </div>
43
+ </div>
44
+ <span slot="footer" class="dialog-footer">
45
+ <el-button type="primary" plain class="button-sty" @click="dialogClose1">
46
+ <i class="el-icon-close el-icon"></i>
47
+ {{ $t2('取 消', 'system.button.cancel2') }}
48
+ </el-button>
49
+ <el-button type="primary" @click="dialogPrimary1" class="button-sty">
50
+ <i class="el-icon-check el-icon"></i>
51
+ {{ $t2('确 定', 'system.button.confirm2') }}
52
+ </el-button>
53
+ </span>
54
+ </el-dialog>
55
+ <el-dialog
56
+ ref="importDialog"
57
+ :title="$t2('导入', 'components.excelImport.title')"
58
+ :append-to-body="falseValue"
59
+ :modal-append-to-body="falseValue"
60
+ :close-on-click-modal="falseValue"
61
+ :visible.sync="showImportDialog2"
62
+ :modal="falseValue"
63
+ custom-class="dialog-style"
64
+ width="501px"
65
+ height="250px"
66
+ :beforeClose="handleBeforeClose"
67
+ @close="handleClose2"
68
+ v-el-drag-dialog
69
+ >
70
+ <div>
71
+ <div class="import-box">
72
+ <div class="tips">
73
+ {{ $t2('导入中,请勿关闭当前窗口', 'components.excelImport.tip2') }}
74
+ <!-- <span class="fr">耗时:<em class="time-txt">0 时 0 分 0 秒 </em></span> -->
75
+ </div>
76
+ <el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
77
+ class="export-progress"></el-progress>
78
+ <div class="i-status">
79
+ <div class="item">
80
+ <i class="el-icon-success f-green"></i>
81
+ {{ $t2('成功', 'components.excelImport.success') }}:
82
+ <span class="successNum" @click="showSuccessResult">{{ totalSuccessNum }}</span>
83
+ </div>
84
+ <div class="item">
85
+ <i class="el-icon-error f-red"></i>
86
+ {{ $t2('失败', 'components.excelImport.fail') }}:
87
+ <span class="failNum" @click="showErrorResult">{{ totalErrorNum }}</span>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ <div slot="footer" class="dialog-footer" center="true">
93
+ <div class="fl import-count">
94
+ <span class="f-red doneNum">0</span>
95
+ /
96
+ <span class="dataSize">0</span>
97
+ </div>
98
+ <el-button type="primary" plain class="button-sty" @click="dialogClose2">
99
+ <i class="el-icon-close el-icon"></i>
100
+ {{ $t2('取 消', 'system.button.cancel2') }}
101
+ </el-button>
102
+ <el-button type="primary" class="button-sty" @click="dialogPrimary2">
103
+ <i class="el-icon-check el-icon"></i>
104
+ {{ $t2('确 定', 'system.button.confirm2') }}
105
+ </el-button>
106
+ </div>
107
+ </el-dialog>
108
+ <el-dialog
109
+ :title="$t2('结果', 'components.excelImport.resultTitle')"
110
+ :append-to-body="true"
111
+ :modal-append-to-body="true"
112
+ :close-on-click-modal="falseValue"
113
+ :visible.sync="showImportResult"
114
+ :modal="falseValue"
115
+ custom-class="dialog-style list-dialog"
116
+ width="1200px"
117
+ v-el-drag-dialog
118
+ >
119
+ <div>
120
+ <div class="box-style">
121
+ <div class="cont">
122
+ <div class="table-div">
123
+ <vxe-grid
124
+ id="resGrid"
125
+ ref="resGrid"
126
+ height="440px"
127
+ v-bind="resOption"
128
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
129
+ @custom="$vxeTableUtil.customHandle"
130
+ >
131
+ <template #form>
132
+ <div class="clearfix screen-btns">
133
+ <div class="fl">
134
+ <vxe-button status="primary" class="button-sty" icon="el-icon-upload2" @click="exportToExcel()">
135
+ {{ $t1('导出') }}
136
+ </vxe-button>
137
+ </div>
138
+ <div class="fr"></div>
139
+ </div>
140
+ </template>
141
+ </vxe-grid>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </el-dialog>
147
+ </div>
148
+ </template>
149
+
150
+ <script>
151
+ import {mixins} from './mixins';
152
+
153
+ export default {
154
+ mixins: [mixins]
155
+ };
156
+ </script>
@@ -1,5 +1,20 @@
1
1
  <template>
2
- <div class="pop-box" :style="'z-index:'+zIndex">
2
+ <!-- 外壳改成 el-dialog + append-to-body,说明见 urgingDialog.vue。
3
+ 里面的 h5SearchDialog(.pop-screen-box)跟着一起进了 body:它自己是
4
+ position:fixed + z-index:99,在 wrapper 这个层叠上下文内部照样盖住本弹层,
5
+ 样式同样要走顶层选择器,见 xform/styles/h5.scss。 -->
6
+ <el-dialog
7
+ :visible.sync="dialogVisible"
8
+ :append-to-body="true"
9
+ :modal="false"
10
+ :show-close="false"
11
+ :close-on-click-modal="false"
12
+ :destroy-on-close="true"
13
+ custom-class="h5-pop-dialog"
14
+ width="100%"
15
+ top="0px"
16
+ @close="dialogClose"
17
+ >
3
18
  <div>
4
19
  <div class="header-box">
5
20
  <i class="back el-icon-close" @click="dialogClose"></i>
@@ -65,7 +80,7 @@
65
80
  </el-form>
66
81
  </h5SearchDialog>
67
82
  </div>
68
- </div>
83
+ </el-dialog>
69
84
  </template>
70
85
 
71
86
  <script>
@@ -75,6 +90,11 @@ import mixin from './mixins/addTaskUserdialogMixin';
75
90
  export default {
76
91
  name: 'userDialog',
77
92
  props: ['visiable', 'multi', 'rows', 'param'],
78
- mixins: [selectDialogMixins, mixin]
93
+ mixins: [selectDialogMixins, mixin],
94
+ data() {
95
+ return {
96
+ dialogVisible: true
97
+ };
98
+ }
79
99
  };
80
100
  </script>