fmui-base 2.0.62 → 2.0.63
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/README.md +1 -0
- package/lib/css/react_grid.css +968 -829
- package/lib/db/db.js +14 -0
- package/lib/db/variables.js +1 -0
- package/lib/form/form.js +3 -20
- package/lib/form/table.js +3 -20
- package/lib/poppage/tree/tree.js +3 -3
- package/lib/react_grid/react_grid.js +26 -14
- package/lib/react_grid/react_grid.less +5 -0
- package/lib/select-fileno/pageHome.js +1 -1
- package/lib/select-serialnumber/pageHome.js +1 -1
- package/lib/select-serialnumber/pageHome1.js +1 -1
- package/lib/signature/draw.js +3 -3
- package/lib/signature/sign.less +73 -73
- package/lib/signature//346/211/213/345/206/231/347/255/276/345/220/215/344/275/277/347/224/250/346/226/207/346/241/243.md +11 -11
- package/package.json +1 -1
package/lib/db/db.js
CHANGED
|
@@ -921,6 +921,20 @@ context.create('reactGrid', {
|
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
923
|
|
|
924
|
+
// 常用应用(频次)
|
|
925
|
+
getNewComAppInfo: {
|
|
926
|
+
url: _variables2.default.URLS.getNewComAppInfo,
|
|
927
|
+
method: 'GET',
|
|
928
|
+
header: {
|
|
929
|
+
Authorization: 'Bearer ' + getLoginUserInfo().token
|
|
930
|
+
},
|
|
931
|
+
willFetch: function willFetch() {
|
|
932
|
+
_Toast2.default.show({
|
|
933
|
+
content: _react2.default.createElement(_loading2.default, null),
|
|
934
|
+
duration: 800
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
},
|
|
924
938
|
getNewHomePageTodoData: {
|
|
925
939
|
// mockUrl: 'query/getNewHomePageTodoData.json',
|
|
926
940
|
url: _variables2.default.URLS.getNewHomePageTodoData,
|
package/lib/db/variables.js
CHANGED
|
@@ -112,6 +112,7 @@ exports.default = {
|
|
|
112
112
|
|
|
113
113
|
getPortalPage: portalUrlPrefix + "getPortalPage" + '?token=' + getLoginUserInfo().token, //移动门户部件详情
|
|
114
114
|
getComponentInfoListAll: portalAllUrlPrefix + "getComponentInfoList" + '?token=' + getLoginUserInfo().token, //获取首页部件信息
|
|
115
|
+
getNewComAppInfo: portalAllUrlPrefix + "getNewComAppInfo" + '?token=' + getLoginUserInfo().token, //首页部件常用应用
|
|
115
116
|
getNewHomePageTodoData: portalAllUrlPrefix + "getNewHomePageTodoData" + '?token=' + getLoginUserInfo().token,
|
|
116
117
|
getNewHomePageCollectAppInfoList: portalAllUrlPrefix + "getNewHomePageCollectAppInfoList" + '?token=' + getLoginUserInfo().token,
|
|
117
118
|
getNewHomePageRemindCount: portalAllUrlPrefix + "getNewHomePageRemindCount" + '?token=' + getLoginUserInfo().token,
|
package/lib/form/form.js
CHANGED
|
@@ -2684,14 +2684,6 @@ var PageHome = function (_React$Component) {
|
|
|
2684
2684
|
});
|
|
2685
2685
|
}
|
|
2686
2686
|
}
|
|
2687
|
-
|
|
2688
|
-
//常用语设置跳转
|
|
2689
|
-
|
|
2690
|
-
}, {
|
|
2691
|
-
key: 'skipToCommonwordsSet',
|
|
2692
|
-
value: function skipToCommonwordsSet() {
|
|
2693
|
-
pageSkip('mobile/modules/mobileoffice/dist/index.html', '#/hospitalmanage/personal/setting/listPhrase');
|
|
2694
|
-
}
|
|
2695
2687
|
}, {
|
|
2696
2688
|
key: 'phraseItemClick',
|
|
2697
2689
|
value: function phraseItemClick(commonwords) {
|
|
@@ -3219,20 +3211,11 @@ var PageHome = function (_React$Component) {
|
|
|
3219
3211
|
_react2.default.createElement(_List2.default, { list: t.state.itemParam.value }),
|
|
3220
3212
|
_react2.default.createElement(
|
|
3221
3213
|
'div',
|
|
3222
|
-
{ className: t.state.commentField == this.state.itemParam.uniqueName ? 't-PL10
|
|
3214
|
+
{ className: t.state.commentField == this.state.itemParam.uniqueName ? 't-PL10' : 't-DN' },
|
|
3223
3215
|
_react2.default.createElement(
|
|
3224
3216
|
'div',
|
|
3225
|
-
{ className: t.state.commentField == this.state.itemParam.uniqueName ? 'theme-color t-P6 t-FS16 commonwords' : 't-DN' },
|
|
3226
|
-
|
|
3227
|
-
'div',
|
|
3228
|
-
{ onClick: this.selectCommonwords.bind(this) },
|
|
3229
|
-
'\u5E38\u7528\u8BED'
|
|
3230
|
-
),
|
|
3231
|
-
_react2.default.createElement(
|
|
3232
|
-
'div',
|
|
3233
|
-
{ onClick: this.skipToCommonwordsSet.bind(this) },
|
|
3234
|
-
'\u7F16\u8F91'
|
|
3235
|
-
)
|
|
3217
|
+
{ className: t.state.commentField == this.state.itemParam.uniqueName ? 'theme-color t-P6 t-FS16 commonwords' : 't-DN', onClick: this.selectCommonwords.bind(this) },
|
|
3218
|
+
'\u5E38\u7528\u8BED'
|
|
3236
3219
|
),
|
|
3237
3220
|
_react2.default.createElement(
|
|
3238
3221
|
'div',
|
package/lib/form/table.js
CHANGED
|
@@ -1482,14 +1482,6 @@ var PageHome = function (_React$Component) {
|
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
|
-
|
|
1486
|
-
//常用语设置跳转
|
|
1487
|
-
|
|
1488
|
-
}, {
|
|
1489
|
-
key: 'skipToCommonwordsSet',
|
|
1490
|
-
value: function skipToCommonwordsSet() {
|
|
1491
|
-
pageSkip('mobile/modules/mobileoffice/dist/index.html', '#/hospitalmanage/personal/setting/listPhrase');
|
|
1492
|
-
}
|
|
1493
1485
|
}, {
|
|
1494
1486
|
key: 'phraseItemClick',
|
|
1495
1487
|
value: function phraseItemClick(commonwords) {
|
|
@@ -1646,20 +1638,11 @@ var PageHome = function (_React$Component) {
|
|
|
1646
1638
|
_react2.default.createElement(_List2.default, { list: t.props.commentDefaultList }),
|
|
1647
1639
|
_react2.default.createElement(
|
|
1648
1640
|
'div',
|
|
1649
|
-
{ className: t.props.commentField == "default" ? 't-PL10
|
|
1641
|
+
{ className: t.props.commentField == "default" ? 't-PL10' : 't-DN' },
|
|
1650
1642
|
_react2.default.createElement(
|
|
1651
1643
|
'div',
|
|
1652
|
-
{ className: 'theme-color t-P6 t-FS16 commonwords' },
|
|
1653
|
-
|
|
1654
|
-
'div',
|
|
1655
|
-
{ onClick: this.selectCommonwords.bind(this) },
|
|
1656
|
-
'\u5E38\u7528\u8BED'
|
|
1657
|
-
),
|
|
1658
|
-
_react2.default.createElement(
|
|
1659
|
-
'div',
|
|
1660
|
-
{ onClick: this.skipToCommonwordsSet.bind(this) },
|
|
1661
|
-
'\u7F16\u8F91'
|
|
1662
|
-
)
|
|
1644
|
+
{ className: 'theme-color t-P6 t-FS16 commonwords', onClick: this.selectCommonwords.bind(this) },
|
|
1645
|
+
'\u5E38\u7528\u8BED'
|
|
1663
1646
|
),
|
|
1664
1647
|
_react2.default.createElement(_TextareaField2.default, {
|
|
1665
1648
|
readOnly: false,
|
package/lib/poppage/tree/tree.js
CHANGED
|
@@ -115,11 +115,11 @@ var MyGrid = function (_React$Component) {
|
|
|
115
115
|
t.getShoucangAppInfo(item.id);
|
|
116
116
|
t.getComAppInfo(item.id);
|
|
117
117
|
} else if (item.portletCode !== 'tbgl') {
|
|
118
|
-
var
|
|
118
|
+
var _params = {
|
|
119
119
|
code: item.portletCode,
|
|
120
120
|
ppId: item.id
|
|
121
121
|
};
|
|
122
|
-
_db2.default.reactGrid.getComponentInfoListAll(
|
|
122
|
+
_db2.default.reactGrid.getComponentInfoListAll(_params).then(function (res) {
|
|
123
123
|
_this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
|
|
124
124
|
});
|
|
125
125
|
}
|
|
@@ -138,6 +138,18 @@ var MyGrid = function (_React$Component) {
|
|
|
138
138
|
duration: 2000
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
|
+
|
|
142
|
+
var params = {};
|
|
143
|
+
_db2.default.reactGrid.getNewHomePageTodoData(params).then(function (content) {
|
|
144
|
+
var openModule = content.hpOpenModule ? content.hpOpenModule : "";
|
|
145
|
+
localStorage.setItem('hpOpenModule', openModule);
|
|
146
|
+
var todoData = content.todoData != null ? content.todoData.entity : {};
|
|
147
|
+
var pageTitle = todoData.pageTitle;
|
|
148
|
+
if (!pageTitle || pageTitle == '') {
|
|
149
|
+
pageTitle = '一网通办管理平台';
|
|
150
|
+
}
|
|
151
|
+
setPageTitle(pageTitle);
|
|
152
|
+
});
|
|
141
153
|
};
|
|
142
154
|
|
|
143
155
|
_this.getShoucangAppInfo = function (id) {
|
|
@@ -176,11 +188,12 @@ var MyGrid = function (_React$Component) {
|
|
|
176
188
|
thirdMenuType = 'DING';
|
|
177
189
|
}
|
|
178
190
|
params.showClient = thirdMenuType;
|
|
179
|
-
_db2.default.reactGrid.
|
|
180
|
-
if (
|
|
181
|
-
_this.setState(_defineProperty({}, 'cyyy' + '_' + id,
|
|
182
|
-
var appOftenListlocal = JSON.stringify(
|
|
183
|
-
localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
|
|
191
|
+
_db2.default.reactGrid.getNewComAppInfo(params).then(function (content) {
|
|
192
|
+
if (content.data) {
|
|
193
|
+
_this.setState(_defineProperty({}, 'cyyy' + '_' + id, content.data));
|
|
194
|
+
var appOftenListlocal = JSON.stringify(content.data);
|
|
195
|
+
// localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
|
|
196
|
+
localStorage.setItem('appOftenList', appOftenListlocal);
|
|
184
197
|
}
|
|
185
198
|
}).catch(function (error) {
|
|
186
199
|
console.error(error);
|
|
@@ -291,13 +304,12 @@ var MyGrid = function (_React$Component) {
|
|
|
291
304
|
value: function getRemindCount() {
|
|
292
305
|
var _this2 = this;
|
|
293
306
|
|
|
294
|
-
_db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo,
|
|
295
|
-
if (content.undo || content.approveundo || content.toBeAttendedCount || content.unreadPubMailCount) {
|
|
296
|
-
|
|
297
|
-
console.log(content, 'contentcontentcontent');
|
|
298
|
-
console.log('====================================');
|
|
307
|
+
_db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo,unreadMail,unreadPubMail,toBeAttended,approveundo" }).then(function (content) {
|
|
308
|
+
if (content.undo || content.approveundo || content.toBeAttendedCount || content.unreadPubMailCount || content.unreadMail) {
|
|
309
|
+
|
|
299
310
|
_this2.setState({
|
|
300
311
|
undo: content.undo,
|
|
312
|
+
unreadMail: content.unreadMail,
|
|
301
313
|
approveundo: content.approveundo,
|
|
302
314
|
toBeAttendedCount: content.toBeAttendedCount,
|
|
303
315
|
unreadPubMailCount: content.unreadPubMailCount
|
|
@@ -731,7 +743,7 @@ var MyGrid = function (_React$Component) {
|
|
|
731
743
|
{ className: 'iconblock t-iconBC' + ele.iconColor },
|
|
732
744
|
_react2.default.createElement(
|
|
733
745
|
_Badge2.default,
|
|
734
|
-
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : '' },
|
|
746
|
+
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : ele.name == '邮件' ? t.state.unreadMail : '' },
|
|
735
747
|
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
736
748
|
)
|
|
737
749
|
),
|
|
@@ -781,7 +793,7 @@ var MyGrid = function (_React$Component) {
|
|
|
781
793
|
{ className: 'iconblock t-iconBC' + ele.iconColor },
|
|
782
794
|
_react2.default.createElement(
|
|
783
795
|
_Badge2.default,
|
|
784
|
-
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : '' },
|
|
796
|
+
{ count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : ele.name == '邮件' ? t.state.unreadMail : '' },
|
|
785
797
|
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
786
798
|
)
|
|
787
799
|
),
|
package/lib/signature/draw.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
/**
|
|
7
|
-
* Created by louizhai on 17/6/30.
|
|
8
|
-
* description: Use canvas to draw.
|
|
6
|
+
/**
|
|
7
|
+
* Created by louizhai on 17/6/30.
|
|
8
|
+
* description: Use canvas to draw.
|
|
9
9
|
*/
|
|
10
10
|
function Draw(canvas, degree) {
|
|
11
11
|
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
package/lib/signature/sign.less
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
.page-demo {
|
|
2
|
-
color:#666;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
#canvasBox {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
height: 100%;
|
|
10
|
-
}
|
|
11
|
-
.greet {
|
|
12
|
-
padding: 20px;
|
|
13
|
-
font-size: 20px;
|
|
14
|
-
user-select: none;
|
|
15
|
-
}
|
|
16
|
-
.greet a {
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
19
|
-
.greet select {
|
|
20
|
-
font-size: 18px;
|
|
21
|
-
}
|
|
22
|
-
canvas {
|
|
23
|
-
flex: 1;
|
|
24
|
-
//border: 0.5px solid #ccc;
|
|
25
|
-
cursor: crosshair;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
@media screen and (orientation: portrait) {
|
|
32
|
-
.dd-write-sign-page {
|
|
33
|
-
position: absolute;
|
|
34
|
-
width: 100vh;
|
|
35
|
-
height: 100vw;
|
|
36
|
-
top: 0;
|
|
37
|
-
left: 100vw;
|
|
38
|
-
-webkit-transform: rotate(90deg);
|
|
39
|
-
-moz-transform: rotate(90deg);
|
|
40
|
-
-ms-transform: rotate(90deg);
|
|
41
|
-
transform: rotate(90deg);
|
|
42
|
-
transform-origin: 0% 0%;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media screen and (orientation: landscape) {
|
|
47
|
-
.dd-write-sign-page {
|
|
48
|
-
-webkit-transform: rotate(0);
|
|
49
|
-
-moz-transform: rotate(0);
|
|
50
|
-
-ms-transform: rotate(0);
|
|
51
|
-
transform: rotate(0)
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.dd-write-sign {
|
|
56
|
-
height: calc(~"100% - 83px");
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.dd-write-sign-del.t-text-button {
|
|
60
|
-
height: 32px;
|
|
61
|
-
line-height: 32px;
|
|
62
|
-
|
|
63
|
-
.iconfont {
|
|
64
|
-
height: 32px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
.img-border{
|
|
68
|
-
border:1px solid #ccc;
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
.page-demo {
|
|
2
|
+
color:#666;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
#canvasBox {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
.greet {
|
|
12
|
+
padding: 20px;
|
|
13
|
+
font-size: 20px;
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
.greet a {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
.greet select {
|
|
20
|
+
font-size: 18px;
|
|
21
|
+
}
|
|
22
|
+
canvas {
|
|
23
|
+
flex: 1;
|
|
24
|
+
//border: 0.5px solid #ccc;
|
|
25
|
+
cursor: crosshair;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@media screen and (orientation: portrait) {
|
|
32
|
+
.dd-write-sign-page {
|
|
33
|
+
position: absolute;
|
|
34
|
+
width: 100vh;
|
|
35
|
+
height: 100vw;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 100vw;
|
|
38
|
+
-webkit-transform: rotate(90deg);
|
|
39
|
+
-moz-transform: rotate(90deg);
|
|
40
|
+
-ms-transform: rotate(90deg);
|
|
41
|
+
transform: rotate(90deg);
|
|
42
|
+
transform-origin: 0% 0%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media screen and (orientation: landscape) {
|
|
47
|
+
.dd-write-sign-page {
|
|
48
|
+
-webkit-transform: rotate(0);
|
|
49
|
+
-moz-transform: rotate(0);
|
|
50
|
+
-ms-transform: rotate(0);
|
|
51
|
+
transform: rotate(0)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dd-write-sign {
|
|
56
|
+
height: calc(~"100% - 83px");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dd-write-sign-del.t-text-button {
|
|
60
|
+
height: 32px;
|
|
61
|
+
line-height: 32px;
|
|
62
|
+
|
|
63
|
+
.iconfont {
|
|
64
|
+
height: 32px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.img-border{
|
|
68
|
+
border:1px solid #ccc;
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# 手写签名使用文档
|
|
2
|
-
|
|
3
|
-
1. 安装fmui 0.0.36-ygy以上的版本
|
|
4
|
-
2. 引用: import Sign from 'fmui/lib/signature';
|
|
5
|
-
3. 写标签
|
|
6
|
-
```
|
|
7
|
-
<Sign upload={(val)=>{alert(val)}}/>
|
|
8
|
-
```
|
|
9
|
-
4. 参数
|
|
10
|
-
- upload : (必填项)回调方法,返回参数为生成手写签名图片的id
|
|
11
|
-
- title : (必填项)显示的输入框标题
|
|
1
|
+
# 手写签名使用文档
|
|
2
|
+
|
|
3
|
+
1. 安装fmui 0.0.36-ygy以上的版本
|
|
4
|
+
2. 引用: import Sign from 'fmui/lib/signature';
|
|
5
|
+
3. 写标签
|
|
6
|
+
```
|
|
7
|
+
<Sign upload={(val)=>{alert(val)}}/>
|
|
8
|
+
```
|
|
9
|
+
4. 参数
|
|
10
|
+
- upload : (必填项)回调方法,返回参数为生成手写签名图片的id
|
|
11
|
+
- title : (必填项)显示的输入框标题
|
|
12
12
|
- fileId : 初始化签名图片文件id
|