cloud-web-corejs 1.1.0-dev.45 → 1.1.0-dev.47

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 (41) hide show
  1. package/package.json +1 -1
  2. package/src/app-bootstrap.js +6 -5
  3. package/src/components/Qrcode/fileParse.vue +11 -0
  4. package/src/components/VabUpload/index.js +11 -4
  5. package/src/components/VabUpload/mixins/fileLibraryDialog.js +2 -0
  6. package/src/components/VabUpload/mixins.js +72 -40
  7. package/src/components/VabUpload/partUploadConfig.js +95 -0
  8. package/src/components/VabUpload/privateProfileDialogMixins.js +2 -0
  9. package/src/components/baseInputExport/mixins.js +1 -0
  10. package/src/components/fileLibrary/mixins/indexMixins.js +2 -0
  11. package/src/components/jdPrint/mixins.js +2 -0
  12. package/src/components/obsUpload/index.js +4 -1
  13. package/src/components/obsUpload/mixins.js +45 -15
  14. package/src/components/onlineTalk/mixins.js +11 -0
  15. package/src/components/table/index.js +74 -78
  16. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/344/273/243/347/240/201/350/257/204/345/256/241.md" +255 -0
  17. package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/346/265/213/350/257/225/351/252/214/350/257/201/345/256/236/346/226/275/346/226/207/346/241/243.md" +595 -0
  18. package/src/components/xform/docs//346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206/344/270/216/344/277/256/345/244/215/350/220/275/345/234/260/346/226/271/346/241/210.md +324 -0
  19. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +1 -1
  20. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -0
  21. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +24 -0
  22. package/src/components/xform/form-render/container-item/data-table-mixin.js +413 -41
  23. package/src/components/xform/form-render/container-item/list-h5-item.vue +109 -38
  24. package/src/components/xform/styles/h5-designer.scss +13 -13
  25. package/src/components/xform/styles/h5-runtime.scss +520 -0
  26. package/src/components/xform/styles/h5.scss +5 -2
  27. package/src/layout/components/TagsView/index.vue +11 -10
  28. package/src/layout/components/TagsView/style.scss +92 -0
  29. package/src/styles/btn.scss +214 -3
  30. package/src/styles/dialog.scss +1710 -0
  31. package/src/styles/element-ui.scss +957 -36
  32. package/src/styles/index.scss +45 -0
  33. package/src/styles/layout-skins.scss +840 -0
  34. package/src/styles/mixin.scss +8 -0
  35. package/src/styles/page-shell.scss +622 -0
  36. package/src/styles/sidebar.scss +15 -0
  37. package/src/styles/utilities.scss +234 -118
  38. package/src/styles/variables.scss +28 -0
  39. package/src/views/user/home/wjl/content.vue +5 -0
  40. package/src/views/user/intf_permission/edit.vue +230 -0
  41. package/src/views/user/intf_permission/list.vue +196 -0
@@ -1,106 +1,106 @@
1
- // Core 通用状态色与提示辅助类。仅由 styles/index.scss 引入一次。
2
- @import "./variables.scss";
3
-
4
- .a-link > i {
5
- vertical-align: middle;
6
- }
7
-
8
- .f-red {
9
- color: $red;
10
- }
11
- .f-dred {
12
- color: $dred;
13
- }
14
- .f-green {
15
- color: $green;
16
- }
17
- .f-blue {
18
- color: $baseColor;
19
- }
20
- .f-gray {
21
- color: #999;
22
- }
23
-
24
- .underLine {
25
- border-bottom: solid 1px;
26
- &.f-red {
27
- border-color: $red;
28
- &:focus,
29
- &:hover {
30
- color: $red;
31
- }
32
- }
33
- }
34
- .txt-status {
35
- border-radius: 22px;
36
- display: inline-block;
37
- height: 22px;
38
- line-height: 22px;
39
- padding: 0 14px;
40
- background: transparentize($green, 0.88);
41
- color: $green;
42
- &:before {
43
- content: "";
44
- margin: -2px 6px 0 0;
45
- width: 6px;
46
- height: 6px;
47
- vertical-align: middle;
48
- display: inline-block;
49
- background-color: $green;
50
- text-align: center;
51
- border-radius: 3px;
52
- }
53
- &.disable,
54
- &.s-3 {
55
- color: $red;
56
- background: transparentize($red, 0.88);
57
- &:before {
58
- background-color: $red;
59
- }
60
- }
61
- &.red {
62
- color: $dred;
63
- background: transparentize($dred, 0.88);
64
- &:before {
65
- background-color: $dred;
66
- }
67
- }
68
- &.green {
69
- color: $green;
70
- background: transparentize($green, 0.88);
71
- &:before {
72
- background-color: $green;
73
- }
74
- }
75
- span {
76
- padding: 0 3px;
77
- }
78
- }
79
- .tips {
80
- font-size: $fontSizeBase;
81
- color: $red;
82
- line-height: 28px;
83
- }
84
- .tips_1 {
85
- font-size: $fontSizeBase;
86
- color: $dred;
87
- line-height: 28px;
88
- > span {
89
- border-bottom: solid 1px $dred;
90
- line-height: 18px;
91
- display: inline-block;
92
- }
93
- }
94
- .tips_2 {
95
- font-size: $fontSizeBase;
96
- line-height: 28px;
97
- display: inline-block;
98
- margin-left: 14px;
99
- > span {
100
- margin-right: 13px;
101
- }
102
- }
103
-
1
+ // Core 通用辅助类(状态色、提示、细线表、flex 基线等)。仅由 styles/index.scss 引入一次。
2
+ @import "./variables.scss";
3
+
4
+ .a-link > i {
5
+ vertical-align: middle;
6
+ }
7
+
8
+ .f-red {
9
+ color: $red;
10
+ }
11
+ .f-dred {
12
+ color: $dred;
13
+ }
14
+ .f-green {
15
+ color: $green;
16
+ }
17
+ .f-blue {
18
+ color: $baseColor;
19
+ }
20
+ .f-gray {
21
+ color: #999;
22
+ }
23
+
24
+ .underLine {
25
+ border-bottom: solid 1px;
26
+ &.f-red {
27
+ border-color: $red;
28
+ &:focus,
29
+ &:hover {
30
+ color: $red;
31
+ }
32
+ }
33
+ }
34
+ .txt-status {
35
+ border-radius: 22px;
36
+ display: inline-block;
37
+ height: 22px;
38
+ line-height: 22px;
39
+ padding: 0 14px;
40
+ background: transparentize($green, 0.88);
41
+ color: $green;
42
+ &:before {
43
+ content: "";
44
+ margin: -2px 6px 0 0;
45
+ width: 6px;
46
+ height: 6px;
47
+ vertical-align: middle;
48
+ display: inline-block;
49
+ background-color: $green;
50
+ text-align: center;
51
+ border-radius: 3px;
52
+ }
53
+ &.disable,
54
+ &.s-3 {
55
+ color: $red;
56
+ background: transparentize($red, 0.88);
57
+ &:before {
58
+ background-color: $red;
59
+ }
60
+ }
61
+ &.red {
62
+ color: $dred;
63
+ background: transparentize($dred, 0.88);
64
+ &:before {
65
+ background-color: $dred;
66
+ }
67
+ }
68
+ &.green {
69
+ color: $green;
70
+ background: transparentize($green, 0.88);
71
+ &:before {
72
+ background-color: $green;
73
+ }
74
+ }
75
+ span {
76
+ padding: 0 3px;
77
+ }
78
+ }
79
+ .tips {
80
+ font-size: $fontSizeBase;
81
+ color: $red;
82
+ line-height: 28px;
83
+ }
84
+ .tips_1 {
85
+ font-size: $fontSizeBase;
86
+ color: $dred;
87
+ line-height: 28px;
88
+ > span {
89
+ border-bottom: solid 1px $dred;
90
+ line-height: 18px;
91
+ display: inline-block;
92
+ }
93
+ }
94
+ .tips_2 {
95
+ font-size: $fontSizeBase;
96
+ line-height: 28px;
97
+ display: inline-block;
98
+ margin-left: 14px;
99
+ > span {
100
+ margin-right: 13px;
101
+ }
102
+ }
103
+
104
104
  .is-error {
105
105
  .ace-editor,
106
106
  .el-checkbox__inner,
@@ -115,23 +115,139 @@
115
115
  .el-button-tag {
116
116
  border: solid 1px $dred !important;
117
117
  }
118
- }
119
-
120
- .d-item {
121
- position: relative;
122
- .btn-tips {
123
- display: inline-block;
124
- position: absolute;
125
- padding: 4px;
126
- margin: -5px 0 0 10px;
127
- }
128
- }
129
-
118
+ }
119
+
120
+ .d-item {
121
+ position: relative;
122
+ .btn-tips {
123
+ display: inline-block;
124
+ position: absolute;
125
+ padding: 4px;
126
+ margin: -5px 0 0 10px;
127
+ }
128
+ }
129
+
130
130
  .ellipsis-box {
131
- overflow: hidden;
132
- text-overflow: ellipsis;
131
+ overflow: hidden;
132
+ text-overflow: ellipsis;
133
133
  white-space: nowrap;
134
134
  .a-link {
135
135
  display: inline !important;
136
136
  }
137
- }
137
+ }
138
+
139
+ // 以下从历史 style.scss 迁入。body 前缀的三类保持 (0,1,1)。
140
+ // .flex 内的 .flex-tabboxWidth 分栏宽度仍在 App 层 style.scss。
141
+ body {
142
+ .f12 {
143
+ font-size: $fontSizeBase;
144
+ }
145
+ .txt-mid {
146
+ vertical-align: middle;
147
+ > i,
148
+ > span {
149
+ vertical-align: middle;
150
+ }
151
+ }
152
+ .disable-click {
153
+ pointer-events: none;
154
+ }
155
+ }
156
+
157
+ .table-border {
158
+ border-collapse: collapse;
159
+ font-size: $fontSizeBase;
160
+ width: 100%;
161
+ border-top: solid 1px #ebebec;
162
+ border-left: solid 1px #ebebec;
163
+ thead th {
164
+ background: #f6faff;
165
+ border-bottom: 1px solid #ebebec;
166
+ border-right: solid 1px #ebebec;
167
+ font-weight: 600;
168
+ padding: 6px 10px;
169
+ text-align: center;
170
+ line-height: 18px;
171
+ }
172
+ td {
173
+ border-bottom: 1px solid #ebebec;
174
+ border-right: solid 1px #ebebec;
175
+ padding: 6px 10px;
176
+ line-height: 18px;
177
+ &.tc {
178
+ text-align: center;
179
+ }
180
+ .el-input {
181
+ width: 100% !important;
182
+ }
183
+ }
184
+ }
185
+
186
+ .disabled-upload {
187
+ .upload-list .el-upload-list__item .el-icon-close {
188
+ display: none;
189
+ }
190
+ .el-upload .avatar-uploader {
191
+ display: none;
192
+ }
193
+ }
194
+
195
+ .flex {
196
+ display: flex;
197
+ height: 100%;
198
+ .flex-item {
199
+ flex: 1;
200
+ -webkit-transition: all 0.2s ease-in;
201
+ -moz-transition: all 0.2s ease-in;
202
+ -o-transition: all 0.2s ease-in;
203
+ transition: all 0.2s ease-in;
204
+ }
205
+ }
206
+
207
+ .number-range {
208
+ .el-input-number {
209
+ width: 148px !important;
210
+ overflow: hidden;
211
+ vertical-align: middle;
212
+ }
213
+ > span {
214
+ margin: 0 6px;
215
+ vertical-align: middle;
216
+ }
217
+ }
218
+
219
+ .list-tag {
220
+ background-color: #eaf0f4;
221
+ border-color: #d4e0ea;
222
+ display: inline-block;
223
+ height: 22px;
224
+ padding: 0 10px;
225
+ line-height: 20px;
226
+ font-size: $fontSizeBase;
227
+ color: $baseColor;
228
+ border-width: 1px;
229
+ border-style: solid;
230
+ border-radius: 4px;
231
+ box-sizing: border-box;
232
+ white-space: nowrap;
233
+ &.warning {
234
+ background-color: #fdf6ec;
235
+ border-color: #faecd8;
236
+ color: #e6a23c;
237
+ }
238
+ &.success {
239
+ background-color: #eaf7f4;
240
+ border-color: #d6efe9;
241
+ color: #30b08f;
242
+ }
243
+ &.info {
244
+ background-color: #f4f4f5;
245
+ border-color: #e9e9eb;
246
+ color: $text-color-secondary;
247
+ }
248
+ &.danger {
249
+ background-color: #fdeeee;
250
+ border-color: #fbdddd;
251
+ color: #ea5353;
252
+ }
253
+ }
@@ -30,6 +30,34 @@ $baseColor:#2a6494 !default;
30
30
  $borderColor:#e9e9e9 !default;
31
31
  $dialogheadHeight:42px !default;
32
32
  $dialogfooterHeight:52px !default;
33
+
34
+ // ===== 全局控件尺寸/圆角 =====
35
+ $control-height: 28px !default; // 标准控件高度(输入框、按钮、下拉等)
36
+ $control-radius: 2px !default; // 标准控件小圆角
37
+
38
+ // ===== 业务灰阶色板 =====
39
+ // 文字色(由深到浅)
40
+ $text-color-darker: #212121 !default;
41
+ $text-color-dark: #323232 !default;
42
+ $text-color-dark-gray: #464646 !default;
43
+ $text-color-title: #303133 !default;
44
+ $text-color-body: #606266 !default;
45
+ $text-color-gray: #808080 !default;
46
+ $text-color-muted: #999999 !default;
47
+ $text-color-secondary: #909399 !default;
48
+ $text-color-placeholder: #c0c4cc !default;
49
+ $text-color-disabled: #565656 !default;
50
+ // 边框色
51
+ $border-color-soft: #e8e8e8 !default;
52
+ $border-color-lighter: #eeeeee !default;
53
+ $border-color-light: #e4e7ed !default;
54
+ $border-color-base: #dcdfe6 !default;
55
+ $border-color-disabled: #dfe4ed !default;
56
+ // 背景色
57
+ $bg-color-page: #f1f5fb !default;
58
+ $bg-color-disabled: #f3f3f3 !default;
59
+ $bg-color-gray: #f5f7fa !default;
60
+ $bg-color-light: #fafafa !default;
33
61
  // the :export directive is the magic sauce for webpack
34
62
  // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
35
63
  :export {
@@ -797,6 +797,7 @@ export default {
797
797
  data: opts.data || {},
798
798
  isLoading,
799
799
  modal: isLoading || false,
800
+ ignoreNetworkError: opts.ignoreNetworkError,
800
801
  success: opts.success,
801
802
  failMsg: false,
802
803
  errorMsg: false,
@@ -816,6 +817,7 @@ export default {
816
817
  this.callFormScript({
817
818
  url: YX_PREFIX + "/bd_api/intf/getOrderCount",
818
819
  isLoading,
820
+ ignoreNetworkError: !isLoading,
819
821
  success: (res) => {
820
822
  let objx = res.objx || {};
821
823
  this.shortcutItems.forEach((item) => {
@@ -831,6 +833,7 @@ export default {
831
833
  this.callFormScript({
832
834
  url: YX_PREFIX + "/bd_api/intf/getOrderMessage",
833
835
  isLoading,
836
+ ignoreNetworkError: !isLoading,
834
837
  success: (res) => {
835
838
  let objx = res.objx;
836
839
  this.pendingMessageRows = Array.isArray(objx)
@@ -1042,6 +1045,7 @@ export default {
1042
1045
  method: "post",
1043
1046
  isLoading: isLoading,
1044
1047
  modal: isLoading || false,
1048
+ ignoreNetworkError: !isLoading,
1045
1049
  // loadingTarget: document.body,
1046
1050
  success: (res) => {
1047
1051
  this.unDoWfRows =
@@ -1066,6 +1070,7 @@ export default {
1066
1070
  data: {},
1067
1071
  isLoading: isLoading,
1068
1072
  modal: isLoading || false,
1073
+ ignoreNetworkError: !isLoading,
1069
1074
  // loadingTarget: document.body,
1070
1075
  success: (res) => {
1071
1076
  this.unreadMessageNum = res.objx || 0;
@@ -0,0 +1,230 @@
1
+ <template>
2
+ <div class="detail-wrap">
3
+ <el-form ref="editForm" :model="intfPermission">
4
+ <div class="d-header clearfix">
5
+ <div class="fl">
6
+ <i class="el-icon-info"/>
7
+ {{ dataId ? $t1('查看接口权限配置') : $t1('新增接口权限配置') }}
8
+ </div>
9
+ <div class="fr">
10
+ <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
+ {{ $t1('重置') }}
12
+ </el-button>
13
+ <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
14
+ </el-button>
15
+ </div>
16
+ </div>
17
+ <baseTabs>
18
+ <baseTabPane :label="$t1('基本信息')">
19
+ <template #default>
20
+ <table class="table-detail">
21
+ <tbody>
22
+ <tr>
23
+ <th>
24
+ <em class="f-red">*</em>
25
+ {{ $t1('接口地址') }}
26
+ </th>
27
+ <td colspan="3">
28
+ <el-form-item prop="url" :rules="[{ required: true, trigger: 'blur' }]">
29
+ <el-input type="text" autocomplete="off" v-model="intfPermission.url" clearable/>
30
+ </el-form-item>
31
+ </td>
32
+ <th>{{ $t1('设置') }}</th>
33
+ <td>
34
+ <el-checkbox :label="$t1('是否启用')" v-model="intfPermission.enabled"></el-checkbox>
35
+ </td>
36
+ </tr>
37
+ <tr>
38
+ <th>{{ $t1('备注') }}</th>
39
+ <td colspan="5">
40
+ <el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
41
+ v-model="intfPermission.remark"
42
+ clearable></el-input>
43
+ </td>
44
+ </tr>
45
+ <tr>
46
+ <th>{{ $t1('创建人') }}</th>
47
+ <td>{{ intfPermission._createBy }}</td>
48
+ <th>{{ $t1('创建时间') }}</th>
49
+ <td>{{ intfPermission.createDate }}</td>
50
+ <th>{{ $t1('更新人') }}</th>
51
+ <td>{{ intfPermission._modifyBy }}</td>
52
+ <th>{{ $t1('更新时间') }}</th>
53
+ <td>{{ intfPermission.modifyDate }}</td>
54
+ </tr>
55
+ </tbody>
56
+ </table>
57
+ </template>
58
+ </baseTabPane>
59
+ <baseTabPane :label="$t1('角色信息')">
60
+ <template #button>
61
+ <el-button class="button-sty" @click="addItem()" icon="el-icon-plus">{{ $t1('新增') }}</el-button>
62
+ </template>
63
+ <template #default>
64
+ <vxe-grid
65
+ ref="m1Grid"
66
+ :data="intfPermission.intfPermissionItemDTOs"
67
+ v-bind="m1Option"
68
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
69
+ @custom="$vxeTableUtil.customHandle"
70
+ ></vxe-grid>
71
+ </template>
72
+ </baseTabPane>
73
+ </baseTabs>
74
+ </el-form>
75
+ </div>
76
+ </template>
77
+
78
+ <script>
79
+ export default {
80
+ name: 'intf_permissionEdit',
81
+ props: {
82
+ _dataId: [String, Number]
83
+ },
84
+ components: {},
85
+ data() {
86
+ return {
87
+ isEdit: false,
88
+ dataId: '',
89
+ intfPermission: {
90
+ enabled: true,
91
+ intfPermissionItemDTOs: []
92
+ },
93
+ m1Option: {}
94
+ };
95
+ },
96
+ created() {
97
+ if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
98
+ },
99
+ mounted() {
100
+ this.getData();
101
+ this.initM1Table();
102
+ },
103
+ methods: {
104
+ getData() {
105
+ if (this.dataId && !isNaN(this.dataId)) {
106
+ this.isEdit = true;
107
+ this.$commonHttp({
108
+ url: USER_PREFIX + `/intf_permission/get`,
109
+ method: `post`,
110
+ data: {
111
+ id: this.dataId
112
+ },
113
+ isLoading: true,
114
+ modalStrictly: true,
115
+ success: res => {
116
+ let intfPermission = res.objx || {}
117
+ intfPermission.intfPermissionItemDTOs = []
118
+ this.intfPermission = intfPermission;
119
+ this.loadItems();
120
+ }
121
+ });
122
+ }
123
+ },
124
+ saveData() {
125
+ this.$refs.editForm.$baseValidate(valid => {
126
+ if (valid) {
127
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
128
+ let url = USER_PREFIX + (this.isEdit ? `/intf_permission/update` : `/intf_permission/save`);
129
+ this.$http({
130
+ url: url,
131
+ method: `post`,
132
+ data: this.intfPermission,
133
+ isLoading: true,
134
+ success: res => {
135
+ this.$message({
136
+ message: res.content,
137
+ type: 'success',
138
+ duration: 500,
139
+ onClose: t => {
140
+ if (this.isEdit) {
141
+ this.$baseReload();
142
+ } else {
143
+ this.$baseReload({
144
+ updateParam: {
145
+ _dataId: res.objx
146
+ }
147
+ });
148
+ }
149
+ }
150
+ });
151
+ }
152
+ });
153
+ });
154
+ }
155
+ });
156
+ },
157
+ initM1Table() {
158
+ const tableOption = {
159
+ vue: this,
160
+ tableRef: 'm1Grid',
161
+ tableName: 'editIntfPermission-m1Grid',
162
+ columns: [
163
+ {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
164
+ {
165
+ title: this.$t1('角色编码'),
166
+ field: 'roleCode',
167
+ width: 200,
168
+ slots: {
169
+ default: ({row}) => {
170
+ return [
171
+ <el-input v-model={row.roleCode} clearable></el-input>
172
+ ]
173
+ }
174
+ }
175
+ },
176
+ {
177
+ width: 47,
178
+ fixed: 'right',
179
+ title: '',
180
+ sortable: false,
181
+ slots: {
182
+ default: ({row, rowIndex, $table}) => {
183
+ return [
184
+ <a
185
+ href="javascript:void(0);"
186
+ class="a-link"
187
+ onclick={() => {
188
+ this.intfPermission.intfPermissionItemDTOs.splice(rowIndex, 1)
189
+ }}
190
+ >
191
+ <el-tooltip
192
+ enterable={false}
193
+ effect="dark"
194
+ content={this.$t1("删除")}
195
+ placement="top"
196
+ popper-class="tooltip-skin"
197
+ >
198
+ <i class="el-icon-delete"/>
199
+ </el-tooltip>
200
+ </a>
201
+ ];
202
+ }
203
+ }
204
+ }
205
+ ]
206
+ };
207
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
208
+ this.m1Option = opts;
209
+ });
210
+ },
211
+ loadItems() {
212
+ if (this.dataId) {
213
+ this.$http({
214
+ url: USER_PREFIX + '/intf_permission/getItems',
215
+ method: `post`,
216
+ data: {id: this.dataId},
217
+ isLoading: true,
218
+ modalStrictly: true,
219
+ success: res => {
220
+ this.intfPermission.intfPermissionItemDTOs = res.objx || [];
221
+ }
222
+ });
223
+ }
224
+ },
225
+ addItem() {
226
+ this.intfPermission.intfPermissionItemDTOs.push({});
227
+ }
228
+ }
229
+ };
230
+ </script>