fmui-base 1.0.49 → 2.0.0
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 +13 -32
- package/lib/db/variables.js +1 -0
- package/lib/form/form.js +234 -82
- package/lib/form/subForm.js +3 -3
- package/lib/form/table.js +25 -14
- package/lib/form_info/formInfo.js +2 -2
- package/lib/poppage/table/table.js +2 -2
- package/lib/process_batch/processBatch.js +3 -3
- package/lib/process_info/FlowChart.js +62 -99
- package/lib/process_info/processInfo.js +117 -80
- package/lib/process_list/processList.js +94 -68
- package/lib/process_list/processList.less +1 -1
- package/lib/selectMember/select.js +281 -351
- package/lib/selectMember/select.less +21 -10
- package/lib/signature/sign.js +2 -2
- package/lib/upload/upload.js +38 -23
- package/package.json +3 -2
|
@@ -1,29 +1,40 @@
|
|
|
1
|
-
.t-crumb-scroll{
|
|
2
|
-
width:100% !important;
|
|
1
|
+
.t-crumb-scroll {
|
|
2
|
+
width: 100% !important;
|
|
3
3
|
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
.t-crumb {
|
|
6
7
|
height: 34px;
|
|
7
|
-
padding:5px 16px;
|
|
8
|
+
padding: 5px 16px;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
.t-disable-mask {
|
|
10
12
|
position: absolute;
|
|
11
13
|
left: 0;
|
|
12
14
|
right: 0;
|
|
13
15
|
top: 0;
|
|
14
16
|
bottom: 0;
|
|
15
|
-
background-color: rgba(255,255,255
|
|
17
|
+
background-color: rgba(255, 255, 255, .4);
|
|
16
18
|
}
|
|
19
|
+
|
|
17
20
|
.t-checkbox-field-icon-list.disabled {
|
|
18
|
-
background-color: rgba(31,56,88
|
|
21
|
+
background-color: rgba(31, 56, 88, .1);
|
|
19
22
|
}
|
|
20
|
-
|
|
23
|
+
|
|
24
|
+
.dd-app-avatar {
|
|
21
25
|
height: 101px !important;
|
|
22
26
|
}
|
|
27
|
+
|
|
23
28
|
.t-checkbox-field-icon-list {
|
|
24
|
-
|
|
29
|
+
background: #38adff;
|
|
25
30
|
}
|
|
26
|
-
|
|
31
|
+
|
|
32
|
+
.select-member-div-top {
|
|
27
33
|
left: 0;
|
|
28
34
|
background: #f7f7f7;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//4.0规范修改样式
|
|
38
|
+
.t-search-bar-input[type=search] {
|
|
39
|
+
border-radius: 83px !important;
|
|
29
40
|
}
|
package/lib/signature/sign.js
CHANGED
|
@@ -334,13 +334,13 @@ var Page = function (_React$Component) {
|
|
|
334
334
|
{ style: { background: '#f2f3f5', height: '35px', padding: '10px 5px' } },
|
|
335
335
|
_react2.default.createElement(
|
|
336
336
|
'span',
|
|
337
|
-
{ className: 't-
|
|
337
|
+
{ className: 't-FCblue' },
|
|
338
338
|
_react2.default.createElement('i', { className: 'iconfont icon-back t-rotate-180 t-FS14' }),
|
|
339
339
|
t.props.title
|
|
340
340
|
),
|
|
341
341
|
_react2.default.createElement(
|
|
342
342
|
'span',
|
|
343
|
-
{ onClick: t.popDraw.bind(t), className: 't-
|
|
343
|
+
{ onClick: t.popDraw.bind(t), className: 't-FCblue t-FR' },
|
|
344
344
|
t.state.fileId == "" ? "去手写签名" : "重写签名"
|
|
345
345
|
)
|
|
346
346
|
),
|
package/lib/upload/upload.js
CHANGED
|
@@ -155,7 +155,6 @@ var PageHome = function (_React$Component) {
|
|
|
155
155
|
limitNo: limitNo,
|
|
156
156
|
context: context,
|
|
157
157
|
uploadUrl: context + '/api/m/plugin/attachment/mobile/createFile?token=' + token,
|
|
158
|
-
// uploadUrl: context + '/api/m/plugin/attachment/mobile/createFile?token=eyJhbGciOiJIUzUxMiIsInppcCI6IkRFRiJ9.eNqMzz1OAzEQhuG7uI4l79rr2OkokRAVF_DMzoSFZL3anyQI0cBBEA0dx4rEMRijVFSUfv3os_ysHuZObVTNtsY1gA5gkna8bnRErnRkqCvi0NomqpWaFigYo03iggUg9GCqYNFAZI_gEqPAbpoE8o5OkCbSc36kXk80Hmgst2lWm8pHG4w3oV4pOg2XYF0oAfM4XLcyYYRjf5v2JIfvt4_z1_v581XiLm-7_u5pKH04tlIW2b9CzEsv6-p-X17KzB3STbHS5nGhC_wd_8dH8rj9Q71rk-VCfagttpRcaCr18gMAAP__.H79vBsL4T7TyEKIa1TciTI8VgGQFSXT82nQdlW7_v3gT4NO2txshOwruwudd6UjcrueiO3MTDYlFQA7R6Ha8qg',
|
|
159
158
|
urlPrev: context + '/api/m/plugin/attachment/mobile/viewImage?token=' + token + '&fid=',
|
|
160
159
|
queryUrl: context + '/api/m/plugin/attachment/mobile/getAttachmentByIds?token=' + token + '&ids=',
|
|
161
160
|
//queryUrl: context + '/client/approve/getCanBackActivity?ids=',
|
|
@@ -234,17 +233,15 @@ var PageHome = function (_React$Component) {
|
|
|
234
233
|
return false;
|
|
235
234
|
}
|
|
236
235
|
}
|
|
237
|
-
console.info('queuefileadded', file);
|
|
236
|
+
// console.info('queuefileadded', file);
|
|
238
237
|
file.session().progress(function (e) {
|
|
239
|
-
console.info('progress', e);
|
|
238
|
+
// console.info('progress', e);
|
|
240
239
|
}).fail(function (error) {
|
|
241
240
|
console.info(error);
|
|
242
241
|
}).done(function (response) {
|
|
243
242
|
console.info(response.getJson());
|
|
244
243
|
});
|
|
245
|
-
})
|
|
246
|
-
// 进度条
|
|
247
|
-
.on(_uploadcore.Events.FILE_UPLOAD_PROGRESS, function (file, progress) {
|
|
244
|
+
}).on(_uploadcore.Events.FILE_UPLOAD_PROGRESS, function (file, progress) {
|
|
248
245
|
_this2.setState({
|
|
249
246
|
percent1: progress.percentage
|
|
250
247
|
});
|
|
@@ -326,7 +323,7 @@ var PageHome = function (_React$Component) {
|
|
|
326
323
|
}
|
|
327
324
|
}).on(_uploadcore.Events.FILE_UPLOAD_COMPLETED, function (file) {
|
|
328
325
|
if (file.getStatus() === _uploadcore.Status.SUCCESS) {
|
|
329
|
-
//alert('上传成功');
|
|
326
|
+
// alert('上传成功');
|
|
330
327
|
var result = file.response.getJson();
|
|
331
328
|
if (result.code == -1) {
|
|
332
329
|
alert(result.message);
|
|
@@ -575,7 +572,7 @@ var PageHome = function (_React$Component) {
|
|
|
575
572
|
),
|
|
576
573
|
_react2.default.createElement(
|
|
577
574
|
'div',
|
|
578
|
-
{ className: t.state.uploadType == 'image' ? "t-FBH t-
|
|
575
|
+
{ className: t.state.uploadType == 'image' ? "t-FBH t-fw" : "upload" },
|
|
579
576
|
t.state.initList.map(function (item, i) {
|
|
580
577
|
function calculate(no) {
|
|
581
578
|
var a = no / 1024;
|
|
@@ -590,23 +587,43 @@ var PageHome = function (_React$Component) {
|
|
|
590
587
|
}
|
|
591
588
|
return t.state.uploadType == 'image' ? _react2.default.createElement(
|
|
592
589
|
'div',
|
|
593
|
-
{ className: '
|
|
594
|
-
_react2.default.createElement('img', { width: '
|
|
590
|
+
{ className: 'upload-image-item', key: i },
|
|
591
|
+
_react2.default.createElement('img', { width: '100', height: '98', src: t.state.urlPrev + item.id + '&token=' + t.state.token }),
|
|
595
592
|
_react2.default.createElement('i', { className: t.state.canDel ? 'iconfont icon-minus' : 't-DN', onClick: _this3.del.bind(_this3, i) })
|
|
596
|
-
) :
|
|
593
|
+
) :
|
|
594
|
+
// <div className="t-FBH" key={i} >
|
|
595
|
+
// <div className="dd-t-border t-P6 t-MB10 t-FB1" onClick={this.view.bind(this, item)}>
|
|
596
|
+
// <i className="iconfont icon-file t-FC9 t-FL t-MR6" ></i>
|
|
597
|
+
// <div className="dd-t-list-text-content" >
|
|
598
|
+
// <div className="t-list-title t-omit t-LH1_4" >
|
|
599
|
+
// {typeof(item.fileDisplayName)=='undefined'?item.name:item.fileDisplayName}
|
|
600
|
+
// </div>
|
|
601
|
+
// <div className="dd-t-list-time t-FBAC" >{calculate(typeof(item.fileSize)=='undefined'?item.size:item.fileSize)}</div>
|
|
602
|
+
// </div>
|
|
603
|
+
// </div>
|
|
604
|
+
// <i className={t.state.canDel?'iconfont icon-minus t-BC04 t-WH25 t-R50 t-ML10 t-FCf t-LH1 t-MT10':'t-DN'} onClick={this.del.bind(this,i)}></i>
|
|
605
|
+
// </div>
|
|
606
|
+
|
|
607
|
+
/* 4.0修改 */
|
|
608
|
+
_react2.default.createElement(
|
|
597
609
|
'div',
|
|
598
|
-
{ className: '
|
|
610
|
+
{ className: 'upload-list', key: i },
|
|
599
611
|
_react2.default.createElement(
|
|
600
612
|
'div',
|
|
601
|
-
{ className: '
|
|
602
|
-
_react2.default.createElement('i', { className: 'iconfont icon-file t-FC9 t-FL t-MR6' }),
|
|
613
|
+
{ className: 'upload-content' },
|
|
603
614
|
_react2.default.createElement(
|
|
604
615
|
'div',
|
|
605
|
-
{ className: 'dd-t-list-
|
|
616
|
+
{ className: 'dd-t-border upload-list-item', onClick: _this3.view.bind(_this3, item) },
|
|
606
617
|
_react2.default.createElement(
|
|
607
618
|
'div',
|
|
608
|
-
{ className: '
|
|
609
|
-
|
|
619
|
+
{ className: 'upload-list-item-content' },
|
|
620
|
+
_react2.default.createElement('i', { className: 'iconfont icon-PDF' }),
|
|
621
|
+
_react2.default.createElement(
|
|
622
|
+
'div',
|
|
623
|
+
{ className: 't-list-title t-omit t-LH1_4' },
|
|
624
|
+
typeof item.fileDisplayName == 'undefined' ? item.name : item.fileDisplayName
|
|
625
|
+
),
|
|
626
|
+
_react2.default.createElement('i', { className: t.state.canDel ? 'iconfont icon-delete' : 't-DN', onClick: _this3.del.bind(_this3, i) })
|
|
610
627
|
),
|
|
611
628
|
_react2.default.createElement(
|
|
612
629
|
'div',
|
|
@@ -614,9 +631,7 @@ var PageHome = function (_React$Component) {
|
|
|
614
631
|
calculate(typeof item.fileSize == 'undefined' ? item.size : item.fileSize)
|
|
615
632
|
)
|
|
616
633
|
)
|
|
617
|
-
)
|
|
618
|
-
_react2.default.createElement('i', { className: t.props.canDownload ? 'iconfont icon-download1 t-BC04 t-WH25 t-R50 t-ML10 t-FCf t-LH1 t-MT10' : 't-DN', style: { "paddingTop": "4px", "paddingLeft": "4px" }, onClick: _this3.downloadFile.bind(_this3, item) }),
|
|
619
|
-
_react2.default.createElement('i', { className: t.state.canDel ? 'iconfont icon-minus t-BC04 t-WH25 t-R50 t-ML10 t-FCf t-LH1 t-MT10' : 't-DN', style: { "paddingTop": "4px", "paddingLeft": "4px" }, onClick: _this3.del.bind(_this3, i) })
|
|
634
|
+
)
|
|
620
635
|
);
|
|
621
636
|
}),
|
|
622
637
|
_react2.default.createElement(
|
|
@@ -624,7 +639,7 @@ var PageHome = function (_React$Component) {
|
|
|
624
639
|
{ className: t.state.canAdd && (t.state.limitNo > t.state.initList.length || t.state.limitNo == -1) && t.state.percent1 > 0 && t.state.showProgress ? t.state.uploadType == 'image' ? 'upload-image-p' : 'upload-file-p' : 't-DN' },
|
|
625
640
|
_react2.default.createElement(
|
|
626
641
|
'div',
|
|
627
|
-
{ style: { width: '100%'
|
|
642
|
+
{ style: { width: '100%' } },
|
|
628
643
|
_react2.default.createElement(
|
|
629
644
|
'span',
|
|
630
645
|
{ className: 'upload-progress-tip' },
|
|
@@ -635,8 +650,8 @@ var PageHome = function (_React$Component) {
|
|
|
635
650
|
),
|
|
636
651
|
_react2.default.createElement(
|
|
637
652
|
'div',
|
|
638
|
-
{ flex: 1, className: 't-
|
|
639
|
-
_react2.default.createElement('i', { id: 'ddUploadPic' + t.state.keyNum, className:
|
|
653
|
+
{ flex: 1, className: t.state.canAdd && (t.state.limitNo > t.state.initList.length || t.state.limitNo == -1) ? t.state.uploadType == 'image' ? 'upload-image' : 'upload-file' : 't-DN' },
|
|
654
|
+
_react2.default.createElement('i', { id: 'ddUploadPic' + t.state.keyNum, className: 'iconfont icon-plus' })
|
|
640
655
|
)
|
|
641
656
|
)
|
|
642
657
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fmui-base",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"title": "fmui-base",
|
|
5
5
|
"description": "fmui移动端组件",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"copy-webpack-plugin": "^3.0.1",
|
|
70
|
-
"saltui": "^4.13.1"
|
|
70
|
+
"saltui": "^4.13.1",
|
|
71
|
+
"h5-imageviewer": "^0.7.8"
|
|
71
72
|
}
|
|
72
73
|
}
|