cloud-web-corejs 1.0.54-dev.810 → 1.0.54-dev.812
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.
- package/package.json +1 -1
- package/src/components/VabUpload/image-viewer.vue +442 -442
- package/src/components/VabUpload/index.vue +44 -2
- package/src/components/VabUpload/mixins.js +126 -19
- package/src/components/VabUpload/view.vue +247 -209
- package/src/components/baseTabs/mixins.js +181 -181
- package/src/components/mobile/wf/content.vue +1665 -1556
- package/src/components/table/config.js +78 -78
- package/src/components/table/index.js +1276 -1276
- package/src/components/table/tableForm.vue +330 -330
- package/src/components/table/tableFormMixin.js +318 -318
- package/src/components/table/vxeFilter/index.js +163 -163
- package/src/components/table/vxeFilter/mixin.js +316 -316
- package/src/components/wf/content.vue +1188 -1188
- package/src/components/wf/wf.js +29 -12
- package/src/components/wf/wfActionDropdown.vue +1 -1
- package/src/components/wf/wfActionItems.js +1 -1
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
- package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
- package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
- package/src/components/xform/form-designer/designer.js +15 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +29 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -438
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +55 -3
- package/src/components/xform/form-render/container-item/data-table-mixin.js +33 -12
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +183 -32
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1642 -1700
- package/src/components/xform/form-render/index.vue +153 -147
- package/src/components/xform/form-render/indexMixin.js +12 -0
- package/src/components/xform/lang/en-US.js +10 -0
- package/src/components/xform/lang/zh-CN.js +12 -0
- package/src/components/xform/mixins/defaultHandle.js +707 -707
- package/src/components/xform/styles/h5.scss +1634 -0
- package/src/components/xform/utils/textMaskUtil.js +182 -182
- package/src/components/xform/utils/treeTableUtil.js +1292 -1265
- package/src/components/xform/utils/util.js +56 -11
- package/src/utils/pdfUtil.js +429 -429
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/table_model/edit.vue +1066 -1066
- package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
- package/src/views/user/home/wjl/content.vue +394 -31
- package/src/views/user/role/edit.vue +632 -632
- package/src/views/user/role/list.vue +260 -260
- package/src/views/user/wf/wf_manage/list.vue +1116 -1116
|
@@ -0,0 +1,1634 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* xform H5(移动端)版式样式基线
|
|
3
|
+
*
|
|
4
|
+
* 作用域:全部收在 .xform-h5 下。该根类由 form-render/index.vue 依
|
|
5
|
+
* formConfig.layoutType === 'H5' 输出,PC/Pad 版式下整份样式不生效。
|
|
6
|
+
*
|
|
7
|
+
* 为什么放包内而不是 resources/css/style.scss:
|
|
8
|
+
* package.json 的 files 只含 src/resources/js,不含 src/resources/css ——
|
|
9
|
+
* style.scss 不随 cloud-web-corejs 发布,消费应用用的是自己那份拷贝。
|
|
10
|
+
* 样式写在这里才能随包走,改一次各应用同步生效。
|
|
11
|
+
* 详见 docs/2026-08 xform 移动端布局对齐 bill_setting 方案.md 决策 2。
|
|
12
|
+
*
|
|
13
|
+
* ★ 特异度硬约束(改这个文件前必读):
|
|
14
|
+
* style.scss 里已有一批裸类名的 H5 规则(.h5-detail-wrap .h5-item ...),
|
|
15
|
+
* 它走全局 styles/index.scss,本文件走组件 <style> 块,两者加载先后在
|
|
16
|
+
* webpack 下不可靠,不能靠「后写覆盖先写」。因此:
|
|
17
|
+
* 1. 覆盖规则的选择器段数必须严格多于对手(对手 0,3,0 就写到 0,4,0 以上);
|
|
18
|
+
* 2. 对手带 !important 的,本方也必须带,特异度再高也压不过。
|
|
19
|
+
* 每处覆盖点都标了对手所在行号,便于核对。
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
@import "~@/styles/variables.scss";
|
|
23
|
+
|
|
24
|
+
/* ============ 块 A:变量 ============ */
|
|
25
|
+
/* 收掉 bill_setting 散在 4 处 5 个值的 calc(100vh - N),不要抄它的具体数值 */
|
|
26
|
+
$xformH5HeaderHeight: 38px; // 标题栏
|
|
27
|
+
$xformH5FooterHeight: 56px; // 底部动作栏
|
|
28
|
+
$xformH5RowHeight: 48px; // 字段行高
|
|
29
|
+
$xformH5LabelWidth: 80px; // 标签宽
|
|
30
|
+
$xformH5RowBorder: #f3f3f3; // 行分隔线
|
|
31
|
+
$xformH5CardRadius: 12px;
|
|
32
|
+
$xformH5PageBg: #f1f5fb;
|
|
33
|
+
|
|
34
|
+
/* ============ 块 B:分组卡片(对齐 bill_setting 的 .c-item / .tit) ============ */
|
|
35
|
+
/* 对手:style.scss:13766 .h5-detail-wrap .h5-item (0,2,0);本方 0,3,0
|
|
36
|
+
.c-item / .tit 是 components/mobile/h5Card/h5CardPane.vue 的外壳类
|
|
37
|
+
(移动版 wf 面板 content.vue 的根节点就是 <h5-card-pane>)。
|
|
38
|
+
把它们并进来,wf 面板直接复用 xform 的卡片视觉,不必再搬一套卡片皮肤。 */
|
|
39
|
+
.xform-h5 .h5-detail-wrap {
|
|
40
|
+
.h5-item,
|
|
41
|
+
.c-item {
|
|
42
|
+
background: #fff;
|
|
43
|
+
border-radius: $xformH5CardRadius;
|
|
44
|
+
margin: 12px 8px 0;
|
|
45
|
+
padding-bottom: 6px;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
|
|
48
|
+
/* 对手:style.scss:13771 .h5-detail-wrap .h5-item .h5-title (0,3,0);本方 0,4,0
|
|
49
|
+
.tit 同上,是 h5CardPane 的标题类 */
|
|
50
|
+
.h5-title,
|
|
51
|
+
.tit {
|
|
52
|
+
line-height: 45px;
|
|
53
|
+
padding: 0 12px;
|
|
54
|
+
border-bottom: 1px solid #f6f6f6;
|
|
55
|
+
position: relative;
|
|
56
|
+
|
|
57
|
+
b {
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
color: #323232;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* 左侧竖色条,对齐 bill_setting 的 .tit > b::before */
|
|
64
|
+
&::after {
|
|
65
|
+
content: "";
|
|
66
|
+
position: absolute;
|
|
67
|
+
left: 0;
|
|
68
|
+
top: 16px;
|
|
69
|
+
width: 4px;
|
|
70
|
+
height: 13px;
|
|
71
|
+
background: $baseColor;
|
|
72
|
+
border-radius: 4px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* 展开/收起箭头。h5CardPane 的那份在块 L 里(.c-item > .tit > .arrow),
|
|
76
|
+
这里是 xform 自己的卡片 h5-card-pane-item.vue,口径保持一致。 */
|
|
77
|
+
> .arrow {
|
|
78
|
+
position: absolute;
|
|
79
|
+
right: 12px;
|
|
80
|
+
top: 0;
|
|
81
|
+
line-height: 45px;
|
|
82
|
+
font-size: 16px;
|
|
83
|
+
color: #909399;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* 标题栏的按钮区原本贴右边(style.scss:13786 right:12px),会和箭头叠在一起,
|
|
89
|
+
给箭头让出一格。对手 (0,4,0),本方 (0,5,0)。 */
|
|
90
|
+
.h5-item .h5-title .btns {
|
|
91
|
+
right: 34px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* ============ 块 C:字段行(表格版式的 CSS 复刻) ============ */
|
|
96
|
+
/* 决策 4 走 CSS 复刻而非真 <table>:字段组件全部依赖 el-form-item 挂
|
|
97
|
+
prop/rules,compareView 也包在里面,拆 th/td 会打断校验链与对比包裹。 */
|
|
98
|
+
.xform-h5 .h5-detail-wrap .h5-item .h5-form-box {
|
|
99
|
+
padding: 12px;
|
|
100
|
+
|
|
101
|
+
.form-widget-list {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-wrap: wrap;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.field-wrapper {
|
|
107
|
+
width: 100%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* 半宽(两列),由字段选项 h5Span === 'half' 打在 form-item-wrapper 根节点上 */
|
|
111
|
+
.field-wrapper.h5-half {
|
|
112
|
+
width: 50%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.el-form-item {
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: flex-start;
|
|
118
|
+
position: relative;
|
|
119
|
+
min-height: $xformH5RowHeight;
|
|
120
|
+
padding: 6px 0;
|
|
121
|
+
margin-bottom: 0;
|
|
122
|
+
border-bottom: 1px solid $xformH5RowBorder;
|
|
123
|
+
|
|
124
|
+
/* 对手:style.scss:13860 附近 .h5-detail-wrap .h5-item .el-form-item__label (0,3,0)
|
|
125
|
+
带 text-align:left !important,且把 &:after 设成了 display:none */
|
|
126
|
+
.el-form-item__label {
|
|
127
|
+
width: $xformH5LabelWidth;
|
|
128
|
+
padding: 0 5px 0 0;
|
|
129
|
+
margin: 0;
|
|
130
|
+
line-height: 1.4;
|
|
131
|
+
height: auto;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
color: #808080;
|
|
134
|
+
text-align: left !important;
|
|
135
|
+
|
|
136
|
+
/* 标签后自动补冒号,对齐 bill_setting form-table 的 th::after。
|
|
137
|
+
对手把 display 关了,必须先打开再给 content。 */
|
|
138
|
+
&::after {
|
|
139
|
+
display: inline !important;
|
|
140
|
+
content: ":";
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.el-form-item__content {
|
|
145
|
+
flex: 1;
|
|
146
|
+
line-height: 1.4;
|
|
147
|
+
text-align: right;
|
|
148
|
+
word-break: break-word;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:last-child {
|
|
152
|
+
border-bottom: none;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ============ 块 D:输入控件归一(去边框、右对齐) ============ */
|
|
158
|
+
.xform-h5 .h5-detail-wrap .h5-item .h5-form-box .el-form-item__content {
|
|
159
|
+
.el-input,
|
|
160
|
+
.el-select {
|
|
161
|
+
width: 100% !important;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* 对手:style.scss:13868 附近 .h5-detail-wrap .h5-item .el-input .el-input__inner (0,4,0)
|
|
165
|
+
带 height/line-height 双 !important,故本方三条也带 */
|
|
166
|
+
.el-input .el-input__inner,
|
|
167
|
+
.el-textarea .el-textarea__inner {
|
|
168
|
+
height: auto !important;
|
|
169
|
+
line-height: 1.4 !important;
|
|
170
|
+
min-height: 34px;
|
|
171
|
+
border: none !important;
|
|
172
|
+
border-radius: 0 !important;
|
|
173
|
+
padding: 0;
|
|
174
|
+
text-align: right;
|
|
175
|
+
background: transparent;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.el-input .el-input__suffix,
|
|
179
|
+
.el-input .el-input__prefix {
|
|
180
|
+
.el-input__icon {
|
|
181
|
+
line-height: 34px !important;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.el-radio-group .el-radio,
|
|
186
|
+
.el-checkbox-group .el-checkbox {
|
|
187
|
+
margin: 0 0 0 8px;
|
|
188
|
+
|
|
189
|
+
.el-radio__label,
|
|
190
|
+
.el-checkbox__label {
|
|
191
|
+
padding-left: 4px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* ============ 块 C1:表格布局(.table-layout)下的行高 ============ */
|
|
197
|
+
/* 块 C 那套(flex 行 + min-height:48px)只在字段直接排在 .h5-form-box 里时生效。
|
|
198
|
+
表单若用「表格布局」,字段会被塞进 td.table-cell,此时 style.scss:9896 起把
|
|
199
|
+
.field-wrapper 变成 display:table、.el-form-item 变成 display:table-row:
|
|
200
|
+
|
|
201
|
+
- table-row 上的 min-height / padding / border 一律不生效 —— 块 C 的 48px
|
|
202
|
+
行高在这条路径上完全落空;
|
|
203
|
+
- 那段还想把 .el-form-item__label 设成 table-cell,但 element 的 label 自带
|
|
204
|
+
float:left,而 CSS 规范里 float 非 none 会把 display 强制算成 block,
|
|
205
|
+
于是标签变成浮动块、脱出表格流,整行高度只剩内容格的 16.8px(实测)。
|
|
206
|
+
|
|
207
|
+
所以这里做两件事:把标签的浮动去掉、还原成真正的 table-cell;行高改用
|
|
208
|
+
table-row 上的 height(对 table-row 而言 height 即最小高度)。两个单元格
|
|
209
|
+
vertical-align:middle 之后,标签与值在行内垂直居中。
|
|
210
|
+
对手 .designer-view .table-layout td.table-cell .field-wrapper .el-form-item …
|
|
211
|
+
是 (0,6,1);本方 (0,7,1) 起步。 */
|
|
212
|
+
.xform-h5
|
|
213
|
+
.h5-detail-wrap
|
|
214
|
+
.h5-item
|
|
215
|
+
.h5-form-box
|
|
216
|
+
.table-layout
|
|
217
|
+
td.table-cell
|
|
218
|
+
.field-wrapper
|
|
219
|
+
.el-form-item {
|
|
220
|
+
height: $xformH5RowHeight;
|
|
221
|
+
|
|
222
|
+
> .el-form-item__label,
|
|
223
|
+
> .el-form-item__content {
|
|
224
|
+
display: table-cell;
|
|
225
|
+
float: none;
|
|
226
|
+
vertical-align: middle;
|
|
227
|
+
padding-top: 4px;
|
|
228
|
+
padding-bottom: 4px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* ============ 块 C2:宽内容字段不走紧凑行版式 ============ */
|
|
233
|
+
/* 附件、图片、富文本这类字段的内容是一片区域而不是一行值。
|
|
234
|
+
块 C/D 那套(标签定宽 80px + 内容 flex:1 右对齐)是给单行输入设计的,
|
|
235
|
+
套上去会把附件列表挤到右侧贴着边框、文件名压线、缩略图变形。
|
|
236
|
+
这里让它们恢复成「标签在上、内容整行左对齐」。
|
|
237
|
+
h5-block 由 form-item-wrapper 按字段类型打,见其 isH5BlockField。
|
|
238
|
+
本方 0,6,0 > 块 C/D 的 0,5,0,且在其后定义。 */
|
|
239
|
+
.xform-h5 .h5-detail-wrap .h5-item .h5-form-box .field-wrapper.h5-block {
|
|
240
|
+
width: 100%;
|
|
241
|
+
|
|
242
|
+
.el-form-item {
|
|
243
|
+
display: block;
|
|
244
|
+
|
|
245
|
+
.el-form-item__label {
|
|
246
|
+
width: auto;
|
|
247
|
+
float: none;
|
|
248
|
+
display: block;
|
|
249
|
+
text-align: left !important;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.el-form-item__content {
|
|
253
|
+
flex: none;
|
|
254
|
+
text-align: left;
|
|
255
|
+
margin-left: 0 !important; // el-form 的 label-width 会给 content 留左边距
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* 上传组件内部不该继承「输入框去边框 + 右对齐」那几条 */
|
|
260
|
+
.el-input .el-input__inner,
|
|
261
|
+
.el-textarea .el-textarea__inner {
|
|
262
|
+
text-align: left;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* ============ 块 E:必填星号与校验错误位 ============ */
|
|
267
|
+
/* 字段行改 flex 后 Element 的星号与错误提示会错位,必须显式定位
|
|
268
|
+
(bill_setting 的 .el-form-item__label:before{position:absolute} 是同一处理) */
|
|
269
|
+
.xform-h5 .h5-detail-wrap .h5-item .h5-form-box .el-form-item {
|
|
270
|
+
&.is-required:not(.is-no-asterisk) > .el-form-item__label::before {
|
|
271
|
+
position: absolute;
|
|
272
|
+
left: -8px;
|
|
273
|
+
margin: 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.el-form-item__error {
|
|
277
|
+
position: static;
|
|
278
|
+
text-align: right;
|
|
279
|
+
padding-top: 2px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* ============ 块 F:半宽落单行 ============ */
|
|
284
|
+
/* 一行末尾落单的半宽字段保持半宽、右侧留白(bill_setting 的 table 版式天然如此)。
|
|
285
|
+
若产品要求撑满整行,把下面这条注释放开即可。 */
|
|
286
|
+
// 用 // 而非 /* */:sass 的块注释会原样输出到生产 CSS,被注释掉的规则不该进产物
|
|
287
|
+
// .xform-h5 .h5-detail-wrap .h5-item .h5-form-box .field-wrapper.h5-half:nth-child(odd):last-child {
|
|
288
|
+
// width: 100%;
|
|
289
|
+
// }
|
|
290
|
+
|
|
291
|
+
/* ============ 块 G:骨架(flex 列 + 内部滚动区) ============ */
|
|
292
|
+
/* 改动前是「整页滚 + 底栏 position:fixed」,底栏在弹框里会钉到屏幕底部
|
|
293
|
+
(三个弹框各写过 .H5 补丁想推回去,但那三条选择器从未生效,已删)。
|
|
294
|
+
改成流内布局后,底栏自然贴容器底部,且 iOS 键盘弹起不再顶飞底栏。 */
|
|
295
|
+
.xform-h5 {
|
|
296
|
+
height: 100%;
|
|
297
|
+
|
|
298
|
+
/* container-item-wrapper 那层,高度要能传下去 */
|
|
299
|
+
.container-wrapper {
|
|
300
|
+
height: 100%;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.h5-detail-wrap {
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: column;
|
|
306
|
+
height: 100%;
|
|
307
|
+
min-height: 0; // 允许在 flex 父级下收缩
|
|
308
|
+
/* 压掉 style.scss:13765 的 padding-bottom:68px(那是给 fixed 底栏让位用的) */
|
|
309
|
+
padding-bottom: 0 !important;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.h5-header {
|
|
313
|
+
flex: none;
|
|
314
|
+
height: $xformH5HeaderHeight;
|
|
315
|
+
line-height: $xformH5HeaderHeight;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.h5-detail-body {
|
|
319
|
+
flex: 1;
|
|
320
|
+
/* ★ 必写:flex 子项默认 min-height:auto 会被内容撑开,
|
|
321
|
+
结果是父级溢出而不是子级滚动 */
|
|
322
|
+
min-height: 0;
|
|
323
|
+
overflow-y: auto;
|
|
324
|
+
-webkit-overflow-scrolling: touch;
|
|
325
|
+
/* 滚到底时最后一张卡片要留出呼吸位,否则它的下边缘正好压在底部动作栏上。
|
|
326
|
+
卡片是 margin:12px 8px 0(只有上间距),末尾这一格只能由滚动区补。
|
|
327
|
+
取 12px 与卡片间距同口径。 */
|
|
328
|
+
padding-bottom: 12px;
|
|
329
|
+
|
|
330
|
+
/* ★ 字段卡片那组的高度必须由内容决定。
|
|
331
|
+
detail-h5-item.vue 的 scoped 样式里有一条从设计器画布抄来的
|
|
332
|
+
`.grid-container .form-widget-list { height: 100% }`,而该组件的根节点
|
|
333
|
+
正是 .h5-detail-wrap.grid-container —— 于是这个 transition-group 被钉成
|
|
334
|
+
滚动区的高度(100%),跟内容实际高度脱钩:内容更高时,排在它后面的
|
|
335
|
+
流程面板会按 100% 那个位置起排,直接压到卡片上(实测重叠 65px,表现
|
|
336
|
+
就是「流程信息和附件信息之间没有间隔」);内容更矮时则反过来空一大段。
|
|
337
|
+
对手是 scoped 的 .grid-container .form-widget-list[data-v-x] (0,3,0),
|
|
338
|
+
本方 (0,4,0)。 */
|
|
339
|
+
> .form-widget-list {
|
|
340
|
+
height: auto;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.h5-fixed-bottom-btns {
|
|
345
|
+
/* 压掉 style.scss:10246 附近的 position:fixed 与 height:56px!important。
|
|
346
|
+
单行固定高:超出三个的按钮进图标下拉,不换行。 */
|
|
347
|
+
position: static !important;
|
|
348
|
+
flex: none;
|
|
349
|
+
height: $xformH5FooterHeight !important;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* ★ 页面态必须定死一屏,不能用 min-height。
|
|
354
|
+
实测宿主链没有确定高度(#containt 只有背景/圆角,没有 height),
|
|
355
|
+
.designer-view{height:100%} → .xform-h5{height:100%} 一路塌陷成 auto;
|
|
356
|
+
此时 min-height:100vh 会被内容撑高 → 整页滚动 → 标题栏和底部动作栏跟着滚走。
|
|
357
|
+
改成 height:100vh + overflow:hidden:容器恰好一屏、外层无可滚余量,
|
|
358
|
+
内容只在 .h5-detail-body 里滚,标题栏与底栏才真正固定。 */
|
|
359
|
+
.xform-h5 .h5-detail-wrap {
|
|
360
|
+
height: 100vh;
|
|
361
|
+
overflow: hidden;
|
|
362
|
+
}
|
|
363
|
+
/* 弹框/抽屉态:高度由弹框自己的 .cont 给,跟随容器而不是视口 */
|
|
364
|
+
.el-dialog .xform-h5 .h5-detail-wrap,
|
|
365
|
+
.el-drawer .xform-h5 .h5-detail-wrap {
|
|
366
|
+
height: 100%;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* ============ 块 H:底部动作栏(胶囊按钮,单行、最多三个 + 图标下拉) ============ */
|
|
370
|
+
.xform-h5 .h5-detail-wrap .h5-fixed-bottom-btns {
|
|
371
|
+
display: flex;
|
|
372
|
+
align-items: center;
|
|
373
|
+
background: #fff;
|
|
374
|
+
padding: 8px;
|
|
375
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
|
|
376
|
+
|
|
377
|
+
.form-widget-list,
|
|
378
|
+
.el-form {
|
|
379
|
+
display: flex;
|
|
380
|
+
flex: 1;
|
|
381
|
+
min-width: 0; // 让内部按钮能被压缩,否则长文案会把下拉挤出去
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* flex:1 等分 —— 1 个铺满、2 个各一半、3 个各三分之一,全自动 */
|
|
385
|
+
.field-wrapper {
|
|
386
|
+
flex: 1;
|
|
387
|
+
min-width: 0;
|
|
388
|
+
margin: 0 5px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.button-sty,
|
|
392
|
+
.el-button {
|
|
393
|
+
width: 100%;
|
|
394
|
+
height: 40px;
|
|
395
|
+
border-radius: 30px;
|
|
396
|
+
padding: 0;
|
|
397
|
+
/* 三个并排时按钮偏窄:字号收一档、超长省略,避免文字撑破 */
|
|
398
|
+
font-size: 13px;
|
|
399
|
+
overflow: hidden;
|
|
400
|
+
text-overflow: ellipsis;
|
|
401
|
+
white-space: nowrap;
|
|
402
|
+
|
|
403
|
+
i {
|
|
404
|
+
margin-right: 3px;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* 「更多」:一个裸的箭头图标,不做成按钮 —— 没有底色、边框、圆角,
|
|
409
|
+
只按内容宽占位,不参与等分。 */
|
|
410
|
+
> .h5-more-dropdown {
|
|
411
|
+
flex: none;
|
|
412
|
+
margin-left: 4px;
|
|
413
|
+
|
|
414
|
+
.h5-more-icon {
|
|
415
|
+
display: block;
|
|
416
|
+
padding: 0 8px;
|
|
417
|
+
font-size: 20px;
|
|
418
|
+
line-height: 40px;
|
|
419
|
+
color: $baseColor;
|
|
420
|
+
cursor: pointer;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/* ============ 「更多」下拉菜单 ============ */
|
|
426
|
+
/* ★ 不能嵌进 .xform-h5:el-dropdown-menu 默认 append-to-body,
|
|
427
|
+
菜单 DOM 会被挪到 <body> 下、脱离根类作用域,嵌套写法一律失效。
|
|
428
|
+
bill_setting 的 .mobileApp_dropdown.el-dropdown-menu 也是顶层选择器,同一模式。 */
|
|
429
|
+
.xform-h5-dropdown.el-dropdown-menu {
|
|
430
|
+
.el-dropdown-menu__item {
|
|
431
|
+
margin: 8px 0;
|
|
432
|
+
line-height: normal;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.button-sty,
|
|
436
|
+
.el-button {
|
|
437
|
+
width: 100%;
|
|
438
|
+
height: 36px;
|
|
439
|
+
border-radius: 30px;
|
|
440
|
+
padding: 0 16px;
|
|
441
|
+
font-size: 13px;
|
|
442
|
+
|
|
443
|
+
i {
|
|
444
|
+
margin-right: 4px;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/* ============ 明细详情弹框:铺满视口 ============ */
|
|
450
|
+
/* 这个弹框是 :modal="false"(无遮罩),高度又只由内容撑开,
|
|
451
|
+
于是底部动作栏(通过/驳回/中断)会从弹框下方露出来,看着像两层界面。
|
|
452
|
+
让它铺满一屏盖住底栏。作用域限定在 .xform-h5 内,不影响 bill_setting
|
|
453
|
+
那边同样用 .h5view-dialog 的弹框(弹框未 append-to-body,DOM 就在本作用域里)。 */
|
|
454
|
+
.xform-h5 .el-dialog__wrapper .el-dialog.h5view-dialog {
|
|
455
|
+
margin: 0 !important;
|
|
456
|
+
height: 100vh;
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-direction: column;
|
|
459
|
+
border-radius: 0;
|
|
460
|
+
|
|
461
|
+
> .el-dialog__body {
|
|
462
|
+
flex: 1;
|
|
463
|
+
min-height: 0;
|
|
464
|
+
overflow-y: auto;
|
|
465
|
+
-webkit-overflow-scrolling: touch;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* 内容区的 height 是模板里的内联样式,只能用 !important 压掉,
|
|
469
|
+
改由上面的 flex 决定高度 */
|
|
470
|
+
.cont {
|
|
471
|
+
height: auto !important;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/* 底部「关闭」:与底部动作栏同款胶囊,铺满一行 */
|
|
475
|
+
> .el-dialog__footer {
|
|
476
|
+
flex: none;
|
|
477
|
+
padding: 8px 13px;
|
|
478
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
|
|
479
|
+
|
|
480
|
+
.button-sty,
|
|
481
|
+
.el-button {
|
|
482
|
+
width: 100%;
|
|
483
|
+
height: 40px;
|
|
484
|
+
border-radius: 30px;
|
|
485
|
+
padding: 0;
|
|
486
|
+
font-size: 13px;
|
|
487
|
+
|
|
488
|
+
i {
|
|
489
|
+
margin-right: 3px;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/* ============ 明细行的「查看」角标 ============ */
|
|
496
|
+
/* 对齐 bill_setting 的 .pro-item .t::after:主色淡底圆钮 + 右向箭头,
|
|
497
|
+
提示这一行可以点进详情。与 itemStyle 无关,明细行一律有。
|
|
498
|
+
对手 .h5-list-box .item (0,2,0);本方 (0,3,0)。 */
|
|
499
|
+
.xform-h5 .h5-list-box .item {
|
|
500
|
+
.h5-item-arrow {
|
|
501
|
+
position: absolute;
|
|
502
|
+
right: 12px;
|
|
503
|
+
top: 10px;
|
|
504
|
+
z-index: 1;
|
|
505
|
+
width: 20px;
|
|
506
|
+
height: 20px;
|
|
507
|
+
line-height: 20px;
|
|
508
|
+
text-align: center;
|
|
509
|
+
font-size: 12px;
|
|
510
|
+
border-radius: 50%;
|
|
511
|
+
background: transparentize($baseColor, 0.88);
|
|
512
|
+
color: $baseColor;
|
|
513
|
+
|
|
514
|
+
&::before {
|
|
515
|
+
content: "\e6e0";
|
|
516
|
+
font-family: element-icons !important;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* 给角标让位:明细行没有 .t1 标题行,字段区直接顶到右边会被角标压住 */
|
|
521
|
+
.t2 {
|
|
522
|
+
padding-right: 28px;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* ============ 块 I:明细行卡片皮肤(list-h5 的 itemStyle=card) ============ */
|
|
527
|
+
/* 现状 .h5-list-box .item(style.scss:14029)已经是白底+radius8+1px边框+左侧竖条的卡片,
|
|
528
|
+
与 bill_setting 的 .pro-item 只差 4 点:圆角、竖条→圆点、右上角箭头角标、小字段字号。
|
|
529
|
+
对手 .h5-list-box .item (0,2,0);本方 .xform-h5 .h5-list-box .item.h5-item-card (0,4,0)。 */
|
|
530
|
+
.xform-h5 .h5-list-box .item.h5-item-card {
|
|
531
|
+
border-radius: $xformH5CardRadius;
|
|
532
|
+
|
|
533
|
+
.t1 {
|
|
534
|
+
padding-right: 40px; // 给右上角箭头角标让位
|
|
535
|
+
|
|
536
|
+
/* 左侧 4px 竖条 → 5px 圆点(对手 .t1:before 是 0,3,1,本方 0,5,1) */
|
|
537
|
+
&::before {
|
|
538
|
+
position: relative !important;
|
|
539
|
+
display: inline-block;
|
|
540
|
+
left: auto !important;
|
|
541
|
+
top: auto !important;
|
|
542
|
+
width: 5px !important;
|
|
543
|
+
height: 5px !important;
|
|
544
|
+
margin-right: 4px;
|
|
545
|
+
border-radius: 50% !important;
|
|
546
|
+
vertical-align: middle;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.t2 > dl {
|
|
551
|
+
min-width: 49%;
|
|
552
|
+
font-size: 11px;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* 行级对比标记(getCompareRowClass 的返回值),角标对齐 bill_setting 的
|
|
556
|
+
.pro-item .t i.el-icon-warning */
|
|
557
|
+
&.xform-compare-row-changed::after {
|
|
558
|
+
content: "\e7a3";
|
|
559
|
+
font-family: element-icons !important;
|
|
560
|
+
position: absolute;
|
|
561
|
+
right: 38px;
|
|
562
|
+
top: 10px;
|
|
563
|
+
font-size: 14px;
|
|
564
|
+
color: #ff731c;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
&.xform-compare-row-new {
|
|
568
|
+
border-color: $baseColor;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/* ============ 块 J:附件(VabUpload 列表的 H5 行式版式) ============ */
|
|
573
|
+
/* 这一块的第一版是照抄 bill_setting/h5.scss 的 74px 方格口径,实测把附件压没了、
|
|
574
|
+
已撤回;那套 DOM 里 .el-upload-list__item-thumbnail 是 item 的直接子元素,而
|
|
575
|
+
VabUpload 不是。这一版照 VabUpload/view.vue 的真实结构重写:
|
|
576
|
+
|
|
577
|
+
.upload-list 一个附件一个(模板内联 inline-block + float:left)
|
|
578
|
+
.upload-box > ul.el-upload-list--picture
|
|
579
|
+
li.el-upload-list__item
|
|
580
|
+
> div ← 唯一子元素,行的 flex 容器只能挂在它上面
|
|
581
|
+
.el-upload-list__item-thumbnail > p > .el-image
|
|
582
|
+
.el-upload-list__item-name > p 文件名 / p 大小 / p 创建时间
|
|
583
|
+
.el-upload-input showSortInput / showNameInput 时才有
|
|
584
|
+
.el-upload-list__item-status-label
|
|
585
|
+
.el-icon-close 删除(编辑态才渲染)
|
|
586
|
+
.el-icon-tagEdit 下载 + 详情
|
|
587
|
+
|
|
588
|
+
改成「一行一个附件」:左 56px 缩略图,右文件名两行截断 + 次要信息,行右端是常驻的
|
|
589
|
+
操作图标。PC 那套是 102px 卡片流式排,一个附件就吃掉 H5 小半屏,还大片留白。
|
|
590
|
+
|
|
591
|
+
★ 操作入口必须常驻:PC 上 .show-video 靠 :hover 出现、.el-icon-tagEdit 被
|
|
592
|
+
style.scss 的 H5 段直接 display:none —— 触摸屏没有 hover,等于下载/详情在 H5
|
|
593
|
+
上根本点不到。(view.vue 里这两个还受 attachment.h5 !== 1 控制,那是历史遗留
|
|
594
|
+
开关,不是「H5 不给操作」的意思,故三个入口全放开。)
|
|
595
|
+
预览不用放开 .show-video:它只是缩略图上的 hover 遮罩,el-image 自己就绑了
|
|
596
|
+
@click="openPreview",H5 上直接点缩略图即可,放出来反而挡住图。
|
|
597
|
+
|
|
598
|
+
★ 特异度:真正难缠的对手是 style.scss:15604 起的 `#uploadImage.widgetSize-N`
|
|
599
|
+
一段(尺寸全在那里:li 的 width/height/padding-left、缩略图的 width/height 与
|
|
600
|
+
margin-left:-98px 负边距、p 与 img 的定死宽高),**带 id,(1,3,0)~(1,6,0),
|
|
601
|
+
再多的 class 也压不过**。所以本块整体嵌在 #uploadImage 下取到 (1,5,0) 起步,
|
|
602
|
+
每一条都严格高于对应对手。另外两个较弱的对手是 style.scss:13801 起的
|
|
603
|
+
.h5-detail-wrap .h5-item .h5-form-box …(0,4,0~0,5,0)和 body .el-upload-list
|
|
604
|
+
… .show-video(0,4,1),顺带一并压掉。
|
|
605
|
+
注:#uploadImage 是 VabUpload 每个实例都写死的 id(DOM 里会重复),这里只把它
|
|
606
|
+
当选择器用来抬特异度,不依赖它唯一。 */
|
|
607
|
+
.xform-h5 .h5-detail-wrap .h5-item .h5-form-box #uploadImage {
|
|
608
|
+
/* 行容器。模板里写死了内联 display:inline-block;float:left,只能用 !important 压 */
|
|
609
|
+
.upload-list {
|
|
610
|
+
display: block !important;
|
|
611
|
+
float: none !important;
|
|
612
|
+
width: 100%;
|
|
613
|
+
margin: 0 0 8px;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.upload-box {
|
|
617
|
+
border-top: none;
|
|
618
|
+
margin-top: 0;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.el-upload-list {
|
|
622
|
+
margin: 0;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.el-upload-list__item {
|
|
626
|
+
width: 100%;
|
|
627
|
+
height: auto;
|
|
628
|
+
margin: 0;
|
|
629
|
+
padding: 8px;
|
|
630
|
+
overflow: visible;
|
|
631
|
+
background: #fff;
|
|
632
|
+
border: solid 1px #f0f1f1;
|
|
633
|
+
border-radius: 10px;
|
|
634
|
+
transition: none; // element 的 item 有 transform 过渡,行式下没意义还会闪
|
|
635
|
+
|
|
636
|
+
/* 行本体。li 下只有这一个 div,所有子块都在它里面 */
|
|
637
|
+
> div {
|
|
638
|
+
display: flex;
|
|
639
|
+
flex-wrap: wrap; // showSortInput/showNameInput 时那两个输入框整行另起
|
|
640
|
+
align-items: center;
|
|
641
|
+
width: 100%;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.el-upload-list__item-thumbnail {
|
|
645
|
+
flex: none;
|
|
646
|
+
width: 56px;
|
|
647
|
+
height: 56px;
|
|
648
|
+
margin: 0 10px 0 0;
|
|
649
|
+
padding: 0;
|
|
650
|
+
border-radius: 8px;
|
|
651
|
+
overflow: hidden;
|
|
652
|
+
background: #f7f8fa;
|
|
653
|
+
|
|
654
|
+
/* 这三层的宽高在 #uploadImage.widgetSize-N 里都被写死成 88/98px,逐层压掉 */
|
|
655
|
+
p {
|
|
656
|
+
width: 100%;
|
|
657
|
+
height: 100%;
|
|
658
|
+
padding: 0;
|
|
659
|
+
margin: 0;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.el-image {
|
|
663
|
+
width: 100%;
|
|
664
|
+
height: 100%;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
img {
|
|
668
|
+
max-width: 100%;
|
|
669
|
+
max-height: 100%;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/* hover 遮罩:H5 用不上,直接点缩略图就是预览 */
|
|
673
|
+
.show-video {
|
|
674
|
+
display: none;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.el-upload-list__item-name {
|
|
679
|
+
flex: 1;
|
|
680
|
+
min-width: 0; // 不写这行,长文件名会把行撑破而不是省略
|
|
681
|
+
width: auto;
|
|
682
|
+
height: auto;
|
|
683
|
+
margin: 0;
|
|
684
|
+
padding: 0;
|
|
685
|
+
line-height: 1.4;
|
|
686
|
+
|
|
687
|
+
/* 文件名:两行截断 */
|
|
688
|
+
> .el-tooltip > p,
|
|
689
|
+
> p:first-child {
|
|
690
|
+
margin: 0;
|
|
691
|
+
font-size: 13px;
|
|
692
|
+
color: #212121;
|
|
693
|
+
display: -webkit-box;
|
|
694
|
+
-webkit-line-clamp: 2;
|
|
695
|
+
-webkit-box-orient: vertical;
|
|
696
|
+
overflow: hidden;
|
|
697
|
+
word-break: break-all;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/* 大小 / 创建时间等次要信息 */
|
|
701
|
+
> p + p,
|
|
702
|
+
> .el-tooltip + p {
|
|
703
|
+
margin: 2px 0 0;
|
|
704
|
+
font-size: 11px;
|
|
705
|
+
color: rgba(128, 128, 128, 0.8);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/* 序号 / 名称输入:整行另起,不跟缩略图挤一行 */
|
|
710
|
+
.el-upload-input {
|
|
711
|
+
width: 100%;
|
|
712
|
+
margin: 8px 0 0;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.el-upload-list__item-status-label {
|
|
716
|
+
display: none;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/* 行右端常驻操作:只留「下载」。点击区按 44px 给足 */
|
|
720
|
+
.el-icon-tagEdit {
|
|
721
|
+
display: flex;
|
|
722
|
+
flex: none;
|
|
723
|
+
position: static;
|
|
724
|
+
align-items: center;
|
|
725
|
+
margin-left: 4px;
|
|
726
|
+
color: $baseColor;
|
|
727
|
+
|
|
728
|
+
i {
|
|
729
|
+
margin: 0;
|
|
730
|
+
padding: 0 8px;
|
|
731
|
+
font-size: 20px;
|
|
732
|
+
line-height: 44px;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/* 「文件详情」(属性弹框)H5 上不出:它是 PC 的管理向功能,
|
|
736
|
+
弹的是一整张属性表,小屏上既挤又用不上。 */
|
|
737
|
+
.icon-shuxing {
|
|
738
|
+
display: none;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/* 删除(编辑态才渲染):并进右端图标组,不再做成飘在角上的红点 */
|
|
743
|
+
.el-icon-close {
|
|
744
|
+
display: flex;
|
|
745
|
+
flex: none;
|
|
746
|
+
position: static;
|
|
747
|
+
align-items: center;
|
|
748
|
+
width: auto;
|
|
749
|
+
height: auto;
|
|
750
|
+
top: auto;
|
|
751
|
+
right: auto;
|
|
752
|
+
background: none;
|
|
753
|
+
border-radius: 0;
|
|
754
|
+
color: $dred;
|
|
755
|
+
opacity: 1;
|
|
756
|
+
|
|
757
|
+
i {
|
|
758
|
+
padding: 0 8px;
|
|
759
|
+
font-size: 18px;
|
|
760
|
+
line-height: 44px;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/* 上传入口(编辑态):PC 是 100×100 的虚线方块,跟行式列表放一起很突兀。
|
|
766
|
+
改成整行一条虚线「+」条,与上面每条附件同宽同圆角。
|
|
767
|
+
.el-upload 的 float/inline-block 是模板内联样式,只能 !important 压。 */
|
|
768
|
+
.el-upload.el-upload--picture {
|
|
769
|
+
display: block !important;
|
|
770
|
+
float: none !important;
|
|
771
|
+
width: 100%;
|
|
772
|
+
|
|
773
|
+
.avatar-uploader {
|
|
774
|
+
width: 100%;
|
|
775
|
+
height: 44px;
|
|
776
|
+
line-height: 44px;
|
|
777
|
+
margin: 0;
|
|
778
|
+
padding: 0;
|
|
779
|
+
background: none;
|
|
780
|
+
border: dashed 1px #dfdfdf;
|
|
781
|
+
border-radius: 10px;
|
|
782
|
+
color: $baseColor;
|
|
783
|
+
|
|
784
|
+
.avatar-uploader-icon {
|
|
785
|
+
font-size: 18px;
|
|
786
|
+
line-height: 44px;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/* ============ 块 K:H5 按钮基线 —— 不出图标 ============ */
|
|
793
|
+
/* H5 的按钮只出文字,不带 el-icon-*。底部动作栏本来就是这样(detail-h5-item.vue
|
|
794
|
+
构造按钮时明确不取注册表的 iconClass/elIcon),但弹框里的按钮是直接沿用 PC 模板
|
|
795
|
+
的,`icon="el-icon-close"` / `icon="el-icon-check"` 都跟着进来了,同一屏里两种样子。
|
|
796
|
+
|
|
797
|
+
用 CSS 抹而不是逐个删模板上的 icon 属性:这些模板(选用户 views/mobile/user/user、
|
|
798
|
+
加签 addTaskUserdialog、减签、催办、修改候选人…)同时被手写移动页用着,
|
|
799
|
+
改模板会波及包外;收在 .xform-h5 下则只影响 xform 的 H5 版式。
|
|
800
|
+
|
|
801
|
+
只作用于 el-button 的直接子 i(element 把 icon 渲染成按钮的第一个子元素)。
|
|
802
|
+
底栏「更多」下拉的触发器是裸 <i class="h5-more-icon">、不在 el-button 里,不受影响。 */
|
|
803
|
+
.xform-h5 {
|
|
804
|
+
.pop-box .el-button > i,
|
|
805
|
+
.pop-tipsBox .el-button > i,
|
|
806
|
+
.pop-screen-box .el-button > i,
|
|
807
|
+
.h5-detail-wrap .h5-fixed-bottom-btns .el-button > i,
|
|
808
|
+
.el-dialog.h5view-dialog > .el-dialog__footer .el-button > i {
|
|
809
|
+
display: none;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/* ============ 块 L:移动版流程(wf)面板 ============ */
|
|
814
|
+
/* 来源:resources/css/h5.scss —— 那份不随包发布、xform 引不到,故把
|
|
815
|
+
components/mobile/wf/content.vue 实际用到的类搬进包内。
|
|
816
|
+
原规则嵌在 .h5-box .form-box .c .c-item .cont 下(xform 没有 .h5-box 祖先,
|
|
817
|
+
本来就命中不了),这里重新挂到 .xform-h5 下,不存在与原规则的覆盖竞争。
|
|
818
|
+
卡片外壳 .c-item / .tit 已并进块 B,此处只补 wf 专属部分。 */
|
|
819
|
+
.xform-h5 {
|
|
820
|
+
/* h5CardPane 的折叠箭头 */
|
|
821
|
+
.c-item > .tit > .arrow {
|
|
822
|
+
position: absolute;
|
|
823
|
+
right: 12px;
|
|
824
|
+
top: 0;
|
|
825
|
+
line-height: 45px;
|
|
826
|
+
font-size: 16px;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* ---- 流程信息区 ---- */
|
|
830
|
+
.flowPath-box {
|
|
831
|
+
overflow: hidden;
|
|
832
|
+
padding: 0 12px;
|
|
833
|
+
|
|
834
|
+
> .t,
|
|
835
|
+
.m2 .t {
|
|
836
|
+
color: $baseColor;
|
|
837
|
+
margin-top: 16px;
|
|
838
|
+
|
|
839
|
+
&:before {
|
|
840
|
+
content: "";
|
|
841
|
+
width: 5px;
|
|
842
|
+
height: 5px;
|
|
843
|
+
border-radius: 50%;
|
|
844
|
+
background: $baseColor;
|
|
845
|
+
margin-right: 3px;
|
|
846
|
+
vertical-align: middle;
|
|
847
|
+
display: inline-block;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
span {
|
|
851
|
+
vertical-align: middle;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.c {
|
|
856
|
+
padding: 0 5px;
|
|
857
|
+
margin-top: 5px;
|
|
858
|
+
height: auto;
|
|
859
|
+
margin-bottom: 12px;
|
|
860
|
+
|
|
861
|
+
.name {
|
|
862
|
+
font-weight: 600;
|
|
863
|
+
|
|
864
|
+
.el-tag {
|
|
865
|
+
line-height: 19px;
|
|
866
|
+
font-weight: 400;
|
|
867
|
+
display: inline-block;
|
|
868
|
+
margin-top: 4px;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.btn {
|
|
873
|
+
color: $baseColor;
|
|
874
|
+
background: transparentize($baseColor, 0.91);
|
|
875
|
+
padding: 7px 10px;
|
|
876
|
+
font-size: 13px;
|
|
877
|
+
|
|
878
|
+
i {
|
|
879
|
+
font-size: 12px;
|
|
880
|
+
margin-right: 3px;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.m2 {
|
|
886
|
+
min-width: 50%;
|
|
887
|
+
float: left;
|
|
888
|
+
margin-bottom: 12px;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/* ---- 审批动作按钮区 ---- */
|
|
893
|
+
.flowPath-btns {
|
|
894
|
+
padding: 12px 0;
|
|
895
|
+
margin: 0 0 0 -10px;
|
|
896
|
+
|
|
897
|
+
.btn {
|
|
898
|
+
height: 34px;
|
|
899
|
+
border-radius: 20px;
|
|
900
|
+
padding: 0 0 0 12px;
|
|
901
|
+
font-size: 13px;
|
|
902
|
+
width: calc(33% - 24px);
|
|
903
|
+
margin-left: 24px;
|
|
904
|
+
margin-bottom: 10px;
|
|
905
|
+
background: none;
|
|
906
|
+
position: relative;
|
|
907
|
+
|
|
908
|
+
i {
|
|
909
|
+
width: 22px;
|
|
910
|
+
height: 23px;
|
|
911
|
+
background: #e9e9e9;
|
|
912
|
+
margin: 0 17px 0 -7px;
|
|
913
|
+
vertical-align: middle;
|
|
914
|
+
border-radius: 15px;
|
|
915
|
+
display: inline-block;
|
|
916
|
+
line-height: 22px;
|
|
917
|
+
text-align: center;
|
|
918
|
+
color: #fff;
|
|
919
|
+
position: absolute;
|
|
920
|
+
left: 0;
|
|
921
|
+
top: 4px;
|
|
922
|
+
font-size: 14px;
|
|
923
|
+
|
|
924
|
+
&.icon-tongguo {
|
|
925
|
+
font-size: 16px;
|
|
926
|
+
line-height: 24px;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
&.el-button--success {
|
|
931
|
+
color: $green;
|
|
932
|
+
> i {
|
|
933
|
+
background: $green;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
&.el-button--primary > i {
|
|
938
|
+
background: $baseColor;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
&.el-button--warning {
|
|
942
|
+
color: $yellow;
|
|
943
|
+
> i {
|
|
944
|
+
background: $yellow;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
&.el-button--danger {
|
|
949
|
+
color: $dred;
|
|
950
|
+
> i {
|
|
951
|
+
background: $dred;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/* ---- 全屏弹层(.pop-box)---- */
|
|
958
|
+
/* 用这个根类的一共 7 个:流程图预览、任务情况预览(这两个是 mobile/wf/content.vue
|
|
959
|
+
模板里内联写的,见该文件 showPreviewDialog / showRenwuDialog 两段)、
|
|
960
|
+
选用户 views/mobile/user/user/dialog.vue、加签 addTaskUserdialog、减签
|
|
961
|
+
deleteTaskUserDialog、催办 urgingDialog、修改候选人 setCandidateDialog、
|
|
962
|
+
修改单据 wfModifyDialog。它们共用同一批类名,所以一次搬齐。
|
|
963
|
+
|
|
964
|
+
原规则整段嵌在 resources/css/h5.scss 的 `.h5-box` 下,而 xform H5 的根类是
|
|
965
|
+
.xform-h5、全项目没有任何 .vue 输出过 h5-box —— 一条都命中不了,表现是列表
|
|
966
|
+
退化成裸文字、搜索行和已选区完全没有版式。(对比 .pop-tipsBox 是顶层选择器,
|
|
967
|
+
所以通过/驳回/转办那几个小确认框看着正常,一点「选用户」就裸。)
|
|
968
|
+
|
|
969
|
+
骨架高度不抄原文的 calc(100vh - 102px / 138px / 151px) 那套(值随有没有搜索行
|
|
970
|
+
而变,脆),一律 flex + min-height:0,与块 A、块 G 同口径。content.vue 那两处
|
|
971
|
+
.flex 上的内联 height:calc(100vh - 38px) 不用管:flex-basis:0% 会接管主轴尺寸。 */
|
|
972
|
+
.pop-box {
|
|
973
|
+
position: fixed;
|
|
974
|
+
top: 0;
|
|
975
|
+
right: 0;
|
|
976
|
+
bottom: 0;
|
|
977
|
+
left: 0;
|
|
978
|
+
background: #f6f6f6;
|
|
979
|
+
z-index: 99;
|
|
980
|
+
|
|
981
|
+
/* 骨架:标题栏 / 搜索行 / 底部按钮条 flex:none,中间那段独占剩余高度并内部滚动 */
|
|
982
|
+
> div {
|
|
983
|
+
display: flex;
|
|
984
|
+
flex-direction: column;
|
|
985
|
+
height: 100%;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.header-box {
|
|
989
|
+
flex: none;
|
|
990
|
+
position: relative;
|
|
991
|
+
background-color: #fff;
|
|
992
|
+
text-align: center;
|
|
993
|
+
height: $xformH5HeaderHeight;
|
|
994
|
+
line-height: $xformH5HeaderHeight;
|
|
995
|
+
font-size: 16px;
|
|
996
|
+
color: #212121;
|
|
997
|
+
border-bottom: solid 1px #f1f6fc;
|
|
998
|
+
|
|
999
|
+
.back {
|
|
1000
|
+
position: absolute;
|
|
1001
|
+
right: 14px;
|
|
1002
|
+
top: 50%;
|
|
1003
|
+
margin-top: -10px;
|
|
1004
|
+
line-height: 20px;
|
|
1005
|
+
font-size: 20px;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/* 「修改单据 — 节点:xx」这类副标题 */
|
|
1009
|
+
> span {
|
|
1010
|
+
margin: 0 8px;
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/* 搜索行(选用户 / 加签):输入框 + 右侧「高级筛选」 */
|
|
1015
|
+
.search-H5box {
|
|
1016
|
+
flex: none;
|
|
1017
|
+
position: relative;
|
|
1018
|
+
display: flex;
|
|
1019
|
+
padding: 8px 16px 0;
|
|
1020
|
+
|
|
1021
|
+
.txt {
|
|
1022
|
+
flex: 1;
|
|
1023
|
+
position: relative;
|
|
1024
|
+
height: 38px;
|
|
1025
|
+
background: #fff;
|
|
1026
|
+
border: solid 1px #e4e4e4;
|
|
1027
|
+
border-radius: 38px 0 0 38px;
|
|
1028
|
+
|
|
1029
|
+
.el-input {
|
|
1030
|
+
width: 100% !important;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.el-input__inner {
|
|
1034
|
+
height: 38px !important;
|
|
1035
|
+
width: 100%;
|
|
1036
|
+
border: none;
|
|
1037
|
+
background: none;
|
|
1038
|
+
line-height: 38px;
|
|
1039
|
+
padding-left: 39px;
|
|
1040
|
+
font-size: 13px;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/* 放大镜挪到左侧(element 默认在右) */
|
|
1044
|
+
.el-input__suffix {
|
|
1045
|
+
position: absolute;
|
|
1046
|
+
left: 12px;
|
|
1047
|
+
right: inherit;
|
|
1048
|
+
top: 7px;
|
|
1049
|
+
width: 20px;
|
|
1050
|
+
transform: inherit !important;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.el-input-group__append {
|
|
1054
|
+
border: none;
|
|
1055
|
+
background: none;
|
|
1056
|
+
|
|
1057
|
+
.el-button {
|
|
1058
|
+
border: none;
|
|
1059
|
+
background: $baseColor;
|
|
1060
|
+
color: #fff;
|
|
1061
|
+
width: 53px;
|
|
1062
|
+
height: 30px;
|
|
1063
|
+
padding: 0;
|
|
1064
|
+
position: absolute;
|
|
1065
|
+
right: 4px;
|
|
1066
|
+
top: 4px;
|
|
1067
|
+
/* element 给 .el-input-group__append .el-button 定了 margin:-10px -20px,
|
|
1068
|
+
绝对定位后这对负边距会把按钮整体往右上顶出去(实测右溢 16px、上溢
|
|
1069
|
+
5px,正好压在「高级筛选」上)。原文是用 right:26px/top:14px 反向补
|
|
1070
|
+
偿的,这里直接清零,right/top 才是所见即所得。 */
|
|
1071
|
+
margin: 0;
|
|
1072
|
+
border-radius: 30px;
|
|
1073
|
+
outline: none;
|
|
1074
|
+
font-size: 13px;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.icon-screen {
|
|
1080
|
+
flex: none;
|
|
1081
|
+
height: 38px;
|
|
1082
|
+
line-height: 38px;
|
|
1083
|
+
padding: 0 10px;
|
|
1084
|
+
font-size: 13px;
|
|
1085
|
+
color: $baseColor;
|
|
1086
|
+
background: transparentize($baseColor, 0.88);
|
|
1087
|
+
border: solid 1px #e4e4e4;
|
|
1088
|
+
border-left: none;
|
|
1089
|
+
border-radius: 0 10px 10px 0;
|
|
1090
|
+
|
|
1091
|
+
i {
|
|
1092
|
+
margin-right: 5px;
|
|
1093
|
+
font-size: 14px;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/* 修改单据:表单直接挂在骨架下,不套 .flex */
|
|
1099
|
+
> div > .form-box {
|
|
1100
|
+
flex: 1;
|
|
1101
|
+
min-height: 0;
|
|
1102
|
+
overflow-y: auto;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
.flex {
|
|
1106
|
+
display: flex;
|
|
1107
|
+
flex-direction: column;
|
|
1108
|
+
flex: 1;
|
|
1109
|
+
min-height: 0;
|
|
1110
|
+
|
|
1111
|
+
/* 可滚动的候选列表 */
|
|
1112
|
+
.checkbox-all_list {
|
|
1113
|
+
flex: 1;
|
|
1114
|
+
min-height: 0;
|
|
1115
|
+
overflow: auto;
|
|
1116
|
+
padding: 0 12px;
|
|
1117
|
+
|
|
1118
|
+
.order-item {
|
|
1119
|
+
background: #fff;
|
|
1120
|
+
|
|
1121
|
+
.is-checked {
|
|
1122
|
+
position: absolute;
|
|
1123
|
+
right: 0;
|
|
1124
|
+
top: 0;
|
|
1125
|
+
width: 62px;
|
|
1126
|
+
height: 22px;
|
|
1127
|
+
line-height: 20px;
|
|
1128
|
+
text-align: center;
|
|
1129
|
+
font-size: 13px;
|
|
1130
|
+
color: #fff;
|
|
1131
|
+
background: #e2e2e2;
|
|
1132
|
+
border: solid 1px #dcdcdc;
|
|
1133
|
+
border-radius: 0 8px 0 6px;
|
|
1134
|
+
|
|
1135
|
+
i {
|
|
1136
|
+
margin-right: 3px;
|
|
1137
|
+
font-size: 13px;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
&.on {
|
|
1142
|
+
border: solid 1px $baseColor;
|
|
1143
|
+
|
|
1144
|
+
.is-checked {
|
|
1145
|
+
border-color: $baseColor;
|
|
1146
|
+
background: $baseColor;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/* 已选区(底部固定,不滚) */
|
|
1153
|
+
.checkbox-all {
|
|
1154
|
+
flex: none;
|
|
1155
|
+
position: relative;
|
|
1156
|
+
min-height: 80px;
|
|
1157
|
+
padding: 0 12px 8px;
|
|
1158
|
+
background: #fff;
|
|
1159
|
+
box-shadow: 0 -3px 4px rgba(0, 0, 0, 0.06);
|
|
1160
|
+
|
|
1161
|
+
.ca-t {
|
|
1162
|
+
margin: 8px 0;
|
|
1163
|
+
font-size: 14px;
|
|
1164
|
+
font-weight: 600;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.ca-c span {
|
|
1168
|
+
display: inline-block;
|
|
1169
|
+
position: relative;
|
|
1170
|
+
height: 24px;
|
|
1171
|
+
line-height: 24px;
|
|
1172
|
+
padding: 0 28px 0 2px;
|
|
1173
|
+
margin: 4px 10px 4px 0;
|
|
1174
|
+
font-size: 13px;
|
|
1175
|
+
color: $baseColor;
|
|
1176
|
+
border: solid 1px $baseColor;
|
|
1177
|
+
border-radius: 4px;
|
|
1178
|
+
|
|
1179
|
+
i {
|
|
1180
|
+
position: absolute;
|
|
1181
|
+
top: 0;
|
|
1182
|
+
right: 0;
|
|
1183
|
+
width: 24px;
|
|
1184
|
+
height: 24px;
|
|
1185
|
+
line-height: 24px;
|
|
1186
|
+
text-align: center;
|
|
1187
|
+
background: transparentize($baseColor, 0.91);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.form-box {
|
|
1193
|
+
display: flex;
|
|
1194
|
+
flex-direction: column;
|
|
1195
|
+
flex: 1;
|
|
1196
|
+
overflow: hidden;
|
|
1197
|
+
|
|
1198
|
+
.tit {
|
|
1199
|
+
margin: 8px 12px;
|
|
1200
|
+
background: rgba(51, 106, 153, 0.1);
|
|
1201
|
+
border-radius: 11px;
|
|
1202
|
+
padding: 10px 12px;
|
|
1203
|
+
font-size: 13px;
|
|
1204
|
+
color: $baseColor;
|
|
1205
|
+
|
|
1206
|
+
&:before {
|
|
1207
|
+
content: "";
|
|
1208
|
+
width: 5px;
|
|
1209
|
+
height: 5px;
|
|
1210
|
+
background: $baseColor;
|
|
1211
|
+
border-radius: 50%;
|
|
1212
|
+
vertical-align: middle;
|
|
1213
|
+
margin-right: 5px;
|
|
1214
|
+
display: inline-block;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
> span {
|
|
1218
|
+
vertical-align: middle;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/* 按钮口径与块 H 的底部动作栏、块 G 的明细详情弹框页脚保持一致(40px 高胶囊)。
|
|
1225
|
+
原文搬过来时是 border-radius:14px —— 那是手写移动页 resources/css/h5.scss 的
|
|
1226
|
+
口径,跟包内基线不是一套,同一屏里会出现两种按钮,故改齐。
|
|
1227
|
+
左右 margin 保留:选用户/加签这些是两个按钮并排,需要中间那道缝。 */
|
|
1228
|
+
.fixed-bottom-btns {
|
|
1229
|
+
flex: none;
|
|
1230
|
+
background: #f6f6f6;
|
|
1231
|
+
display: flex;
|
|
1232
|
+
padding: 4px 8px;
|
|
1233
|
+
|
|
1234
|
+
.btn {
|
|
1235
|
+
flex: 1;
|
|
1236
|
+
margin: 4px 6px;
|
|
1237
|
+
height: 40px;
|
|
1238
|
+
border-radius: 30px;
|
|
1239
|
+
padding: 0;
|
|
1240
|
+
font-size: 13px;
|
|
1241
|
+
|
|
1242
|
+
i {
|
|
1243
|
+
margin-right: 3px;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/* 列表里的一张候选卡片。原文挂在 .h5-box 下(不在 .pop-box 段内),
|
|
1249
|
+
xform 里只有这批弹层用得到,就收进来。 */
|
|
1250
|
+
.order-item {
|
|
1251
|
+
position: relative;
|
|
1252
|
+
border: solid 1px #f0f1f1;
|
|
1253
|
+
border-radius: 12px;
|
|
1254
|
+
padding: 8px 10px;
|
|
1255
|
+
margin: 8px 0;
|
|
1256
|
+
|
|
1257
|
+
/* 左侧那道竖条 */
|
|
1258
|
+
&:before {
|
|
1259
|
+
content: "";
|
|
1260
|
+
position: absolute;
|
|
1261
|
+
left: 0;
|
|
1262
|
+
top: 6px;
|
|
1263
|
+
width: 3px;
|
|
1264
|
+
height: 50px;
|
|
1265
|
+
background: $baseColor;
|
|
1266
|
+
border-radius: 5px;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.t1 {
|
|
1270
|
+
margin-bottom: 6px;
|
|
1271
|
+
|
|
1272
|
+
/* 模板里恒有 <i class="icon">(原文设了一圈头像样式后又 display:none,
|
|
1273
|
+
等于留着没用)。照原样隐藏,避免哪天有人给裸 .icon 加了全局规则时冒出来。 */
|
|
1274
|
+
.icon {
|
|
1275
|
+
display: none;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
span {
|
|
1279
|
+
vertical-align: middle;
|
|
1280
|
+
margin: 0 5px 0 0;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.t2 {
|
|
1285
|
+
font-size: 11px;
|
|
1286
|
+
color: rgba(128, 128, 128, 0.8);
|
|
1287
|
+
|
|
1288
|
+
p {
|
|
1289
|
+
min-width: 50%;
|
|
1290
|
+
margin-bottom: 4px;
|
|
1291
|
+
display: inline-block;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/* 修改候选人:卡片内的「设置候选人」按钮 */
|
|
1296
|
+
.btns {
|
|
1297
|
+
text-align: right;
|
|
1298
|
+
margin-top: 4px;
|
|
1299
|
+
|
|
1300
|
+
.btn {
|
|
1301
|
+
height: 28px;
|
|
1302
|
+
padding: 0 10px;
|
|
1303
|
+
font-size: 13px;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/* ---- 高级筛选抽屉(h5SearchDialog,从 .pop-box 里再弹一层)---- */
|
|
1310
|
+
.pop-screen-box {
|
|
1311
|
+
position: fixed;
|
|
1312
|
+
top: 0;
|
|
1313
|
+
right: 0;
|
|
1314
|
+
bottom: 0;
|
|
1315
|
+
left: 0;
|
|
1316
|
+
z-index: 99;
|
|
1317
|
+
|
|
1318
|
+
&:before {
|
|
1319
|
+
content: "";
|
|
1320
|
+
position: absolute;
|
|
1321
|
+
left: 0;
|
|
1322
|
+
right: 0;
|
|
1323
|
+
top: 0;
|
|
1324
|
+
bottom: 0;
|
|
1325
|
+
background: rgba(0, 0, 0, 0.3);
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
> div {
|
|
1329
|
+
display: flex;
|
|
1330
|
+
flex-direction: column;
|
|
1331
|
+
position: absolute;
|
|
1332
|
+
top: 0;
|
|
1333
|
+
right: 0;
|
|
1334
|
+
bottom: 0;
|
|
1335
|
+
width: 80%;
|
|
1336
|
+
background: #fff;
|
|
1337
|
+
|
|
1338
|
+
.header-box {
|
|
1339
|
+
flex: none;
|
|
1340
|
+
position: relative;
|
|
1341
|
+
text-align: center;
|
|
1342
|
+
height: $xformH5HeaderHeight;
|
|
1343
|
+
line-height: $xformH5HeaderHeight;
|
|
1344
|
+
font-size: 16px;
|
|
1345
|
+
color: #212121;
|
|
1346
|
+
border-bottom: solid 1px #eee;
|
|
1347
|
+
|
|
1348
|
+
.back {
|
|
1349
|
+
position: absolute;
|
|
1350
|
+
right: 14px;
|
|
1351
|
+
top: 50%;
|
|
1352
|
+
margin-top: -10px;
|
|
1353
|
+
line-height: 20px;
|
|
1354
|
+
font-size: 20px;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
.p-cont {
|
|
1359
|
+
flex: 1;
|
|
1360
|
+
min-height: 0;
|
|
1361
|
+
overflow-y: auto;
|
|
1362
|
+
padding: 10px 16px 0;
|
|
1363
|
+
|
|
1364
|
+
.txt {
|
|
1365
|
+
width: 100%;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
.el-form .el-form-item {
|
|
1369
|
+
margin-bottom: 4px;
|
|
1370
|
+
|
|
1371
|
+
.el-form-item__label {
|
|
1372
|
+
padding: 0;
|
|
1373
|
+
margin: 0;
|
|
1374
|
+
font-size: 13px;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.el-input {
|
|
1378
|
+
width: 100% !important;
|
|
1379
|
+
height: 38px;
|
|
1380
|
+
border-radius: 4px;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
.el-input__inner {
|
|
1384
|
+
font-size: 13px;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
.p-btn {
|
|
1390
|
+
flex: none;
|
|
1391
|
+
display: flex;
|
|
1392
|
+
padding: 8px;
|
|
1393
|
+
|
|
1394
|
+
.btn {
|
|
1395
|
+
flex: 1;
|
|
1396
|
+
margin: 0 8px;
|
|
1397
|
+
height: 42px;
|
|
1398
|
+
border-radius: 12px;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/* ---- 任务情况时间轴 ---- */
|
|
1405
|
+
.h5-process-info {
|
|
1406
|
+
font-size: 12px;
|
|
1407
|
+
padding: 12px 16px;
|
|
1408
|
+
background: #fff;
|
|
1409
|
+
margin: 10px 12px;
|
|
1410
|
+
border-radius: 15px;
|
|
1411
|
+
|
|
1412
|
+
.item {
|
|
1413
|
+
display: flex;
|
|
1414
|
+
line-height: 1.4;
|
|
1415
|
+
padding: 6px 0 8px;
|
|
1416
|
+
position: relative;
|
|
1417
|
+
|
|
1418
|
+
&:after {
|
|
1419
|
+
content: "";
|
|
1420
|
+
width: 2px;
|
|
1421
|
+
position: absolute;
|
|
1422
|
+
background: #e9e9e9;
|
|
1423
|
+
top: 22px;
|
|
1424
|
+
bottom: -10px;
|
|
1425
|
+
left: 76px;
|
|
1426
|
+
z-index: 2;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
&:last-child:after {
|
|
1430
|
+
display: none;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
.time {
|
|
1434
|
+
color: #666;
|
|
1435
|
+
width: 82px;
|
|
1436
|
+
position: absolute;
|
|
1437
|
+
top: 37px;
|
|
1438
|
+
left: -14px;
|
|
1439
|
+
right: 0;
|
|
1440
|
+
text-align: center;
|
|
1441
|
+
zoom: 0.9;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.status {
|
|
1445
|
+
width: 50px;
|
|
1446
|
+
line-height: 16px;
|
|
1447
|
+
padding: 2px 0;
|
|
1448
|
+
height: 100%;
|
|
1449
|
+
text-align: center;
|
|
1450
|
+
border-radius: 22px;
|
|
1451
|
+
vertical-align: middle;
|
|
1452
|
+
background: #fff;
|
|
1453
|
+
border: 1px solid #dcdfe6;
|
|
1454
|
+
color: #606266;
|
|
1455
|
+
|
|
1456
|
+
&.green {
|
|
1457
|
+
border: solid 1px #acedc9;
|
|
1458
|
+
background: #e7faf0;
|
|
1459
|
+
color: #67c23a;
|
|
1460
|
+
}
|
|
1461
|
+
&.red {
|
|
1462
|
+
border: solid 1px #ffcaca;
|
|
1463
|
+
background: #ffeded;
|
|
1464
|
+
color: #f56c6c;
|
|
1465
|
+
}
|
|
1466
|
+
&.gray {
|
|
1467
|
+
color: #d6d6d6;
|
|
1468
|
+
background: #f4f4f5;
|
|
1469
|
+
border-color: #d3d4d6;
|
|
1470
|
+
}
|
|
1471
|
+
&.orgn {
|
|
1472
|
+
color: #e6a23c;
|
|
1473
|
+
background: #fdf6ec;
|
|
1474
|
+
border-color: #f5dab1;
|
|
1475
|
+
}
|
|
1476
|
+
&.blue {
|
|
1477
|
+
background-color: transparentize($baseColor, 0.94);
|
|
1478
|
+
color: $baseColor;
|
|
1479
|
+
border: solid 1px transparentize($baseColor, 0.72);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
.circle {
|
|
1484
|
+
background: $baseColor;
|
|
1485
|
+
width: 14px;
|
|
1486
|
+
height: 14px;
|
|
1487
|
+
border-radius: 50%;
|
|
1488
|
+
border: solid 3px #fff;
|
|
1489
|
+
display: inline-block;
|
|
1490
|
+
margin: 3px 20px;
|
|
1491
|
+
z-index: 9;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
.info {
|
|
1495
|
+
width: calc(100% - 100px);
|
|
1496
|
+
|
|
1497
|
+
p {
|
|
1498
|
+
margin: 2px 0;
|
|
1499
|
+
display: block;
|
|
1500
|
+
|
|
1501
|
+
> span {
|
|
1502
|
+
display: inline-block;
|
|
1503
|
+
min-width: 50%;
|
|
1504
|
+
|
|
1505
|
+
&.name {
|
|
1506
|
+
font-weight: 600;
|
|
1507
|
+
width: 100%;
|
|
1508
|
+
margin-bottom: 3px;
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
&.t {
|
|
1513
|
+
display: flex;
|
|
1514
|
+
|
|
1515
|
+
.t1 {
|
|
1516
|
+
min-width: 65px;
|
|
1517
|
+
margin-right: 0;
|
|
1518
|
+
flex: none;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
span {
|
|
1522
|
+
flex: 1;
|
|
1523
|
+
white-space: pre-line;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
/* ---- 确认/表单提示框(通过、驳回、转办等)---- */
|
|
1532
|
+
/* 注意:.icon 沿用 resources/images 下的图标,`~@/` 在消费应用里解析到它自己的
|
|
1533
|
+
src/resources/images —— 该目录同样不在 package.json files 内,属隐式依赖。
|
|
1534
|
+
消费应用现有的 h5.scss 已引用同一批图,故风险可控;若要彻底解耦可换字体图标。 */
|
|
1535
|
+
.pop-tipsBox {
|
|
1536
|
+
position: relative;
|
|
1537
|
+
|
|
1538
|
+
&:before {
|
|
1539
|
+
content: "";
|
|
1540
|
+
position: fixed;
|
|
1541
|
+
top: 0;
|
|
1542
|
+
right: 0;
|
|
1543
|
+
bottom: 0;
|
|
1544
|
+
left: 0;
|
|
1545
|
+
background: rgba(0, 0, 0, 0.4);
|
|
1546
|
+
z-index: 998;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
> div {
|
|
1550
|
+
position: fixed;
|
|
1551
|
+
top: 24%;
|
|
1552
|
+
left: 32px;
|
|
1553
|
+
right: 32px;
|
|
1554
|
+
box-shadow: 0 0 14px rgba(0, 0, 0, 0.16);
|
|
1555
|
+
border-radius: 18px;
|
|
1556
|
+
padding: 68px 16px 18px;
|
|
1557
|
+
text-align: center;
|
|
1558
|
+
z-index: 999;
|
|
1559
|
+
background-color: #fff;
|
|
1560
|
+
background-size: 100% auto;
|
|
1561
|
+
border: solid 2px #fff;
|
|
1562
|
+
|
|
1563
|
+
.icon {
|
|
1564
|
+
background: url(~@/resources/images/icon-tips.png) no-repeat center;
|
|
1565
|
+
background-size: cover;
|
|
1566
|
+
position: absolute;
|
|
1567
|
+
top: -19px;
|
|
1568
|
+
left: 50%;
|
|
1569
|
+
margin-left: -34px;
|
|
1570
|
+
width: 68px;
|
|
1571
|
+
height: 68px;
|
|
1572
|
+
border-radius: 50%;
|
|
1573
|
+
border: solid 2px #fff;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
.cont {
|
|
1577
|
+
padding: 0 0 18px;
|
|
1578
|
+
|
|
1579
|
+
.name {
|
|
1580
|
+
font-weight: 600;
|
|
1581
|
+
font-size: 18px;
|
|
1582
|
+
margin-bottom: 24px;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
.txt {
|
|
1586
|
+
max-height: 100px;
|
|
1587
|
+
overflow: auto;
|
|
1588
|
+
word-break: break-word;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
.txt2 {
|
|
1592
|
+
max-height: 200px;
|
|
1593
|
+
overflow: auto;
|
|
1594
|
+
word-break: break-word;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
.form-box {
|
|
1598
|
+
border: solid 1px #dcdcdc;
|
|
1599
|
+
padding: 0 12px;
|
|
1600
|
+
border-radius: 10px;
|
|
1601
|
+
margin-top: -8px;
|
|
1602
|
+
|
|
1603
|
+
.line {
|
|
1604
|
+
border: solid 1px #e8e8e8;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
.btns {
|
|
1610
|
+
display: flex;
|
|
1611
|
+
|
|
1612
|
+
.btn {
|
|
1613
|
+
flex: 1;
|
|
1614
|
+
height: 40px;
|
|
1615
|
+
border-radius: 12px;
|
|
1616
|
+
|
|
1617
|
+
&.el-button--primary.is-plain {
|
|
1618
|
+
border-color: $baseColor;
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
&.error > div .icon {
|
|
1625
|
+
background-image: url(~@/resources/images/icon-error.png);
|
|
1626
|
+
border-color: #fff;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
/* ============ 页面底色 ============ */
|
|
1632
|
+
.xform-h5 .h5-detail-wrap {
|
|
1633
|
+
background: $xformH5PageBg;
|
|
1634
|
+
}
|