ocpview-pro 0.1.6 → 0.1.8
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/dist/ocpviewplus.min.esm.js +3599 -2520
- package/dist/ocpviewplus.min.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/base/controlbox.vue +3 -3
- package/src/components/base/load.js +1 -1
- package/src/components/conditionbox/conditionbase.vue +3 -3
- package/src/components/conditionbox/conditionfilterbox.vue +9 -9
- package/src/components/conditionbox/conditionselectorbox.vue +52 -50
- package/src/components/conditionbox/queryconditionbox.vue +2 -2
- package/src/components/conditionbox/searchconditionbox.vue +2 -2
- package/src/components/conditionbox/searchgrid.vue +87 -86
- package/src/components/datebox/DateBoxV1.vue +1 -1
- package/src/components/form/detailsbox.vue +5 -3
- package/src/components/form/formcardbox.vue +3 -0
- package/src/components/form/formcardbox2.vue +3 -0
- package/src/components/form/formcardgroupbox.vue +2 -0
- package/src/components/form/formdetail.vue +2 -2
- package/src/components/form/formdetailtwo.vue +7 -7
- package/src/components/grid/basegrid.vue +5 -5
- package/src/components/grid/editgrid.vue +1 -1
- package/src/components/grid/editgridbase.vue +10 -1
- package/src/components/grid/editgridcard.vue +1 -1
- package/src/components/grid/viewgrid.vue +3 -3
- package/src/components/grid/viewgridbase.vue +10 -10
- package/src/components/map/mapbox.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTable.vue +6 -6
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTableControlbox.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelQueryBar.vue +16 -7
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/index.vue +10 -10
- package/src/components/masterplate/RewriteListdetails/BillListPanelV3QueryBar.vue +16 -7
- package/src/components/masterplate/RewriteListdetails/indexV2.vue +10 -10
- package/src/components/masterplate/RewriteListdetails/indexV3.vue +10 -10
- package/src/components/masterplate/appendix.vue +23 -23
- package/src/components/masterplate/approval.vue +42 -42
- package/src/components/masterplate/base.vue +10 -10
- package/src/components/masterplate/billasyncimport.vue +39 -39
- package/src/components/masterplate/billconditionbox.vue +11 -11
- package/src/components/masterplate/billconditionsbox.vue +60 -57
- package/src/components/masterplate/billdetailform.vue +4 -4
- package/src/components/masterplate/billimport.vue +12 -12
- package/src/components/masterplate/billquerygrid.vue +2 -2
- package/src/components/masterplate/billsinglegrid.vue +4 -4
- package/src/components/masterplate/birtreport.vue +5 -5
- package/src/components/masterplate/contractappendix.vue +27 -27
- package/src/components/masterplate/detailbtntoolbar.vue +11 -11
- package/src/components/masterplate/detailsbox.vue +7 -7
- package/src/components/masterplate/editgridcard.vue +7 -7
- package/src/components/masterplate/editgridcard2.vue +5 -5
- package/src/components/masterplate/formdetailtwo.vue +8 -8
- package/src/components/masterplate/gridcolset.vue +6 -6
- package/src/components/masterplate/index.js +1 -1
- package/src/components/masterplate/layouttemplate.vue +3 -3
- package/src/components/masterplate/leftlistrightdetails.vue +15 -13
- package/src/components/masterplate/leftlistrightlist.vue +24 -18
- package/src/components/masterplate/lefttreerightdetails.vue +17 -17
- package/src/components/masterplate/levelreport.vue +6 -6
- package/src/components/masterplate/listbtntoolbar.vue +3 -3
- package/src/components/masterplate/listdetails.vue +45 -45
- package/src/components/masterplate/operlog.vue +19 -19
- package/src/components/masterplate/promptmessage.vue +1 -1
- package/src/components/masterplate/querybar.vue +33 -21
- package/src/components/masterplate/report.vue +7 -7
- package/src/components/masterplate/rowbtntoolbar.vue +1 -1
- package/src/components/masterplate/simpletree.vue +3 -3
- package/src/components/masterplate/simpleviewgrid.vue +4 -4
- package/src/components/mychart/gauge/gauge.vue +1 -1
- package/src/components/numberbox/numberbox.vue +4 -4
- package/src/components/numberbox/numberrangebox.vue +11 -11
- package/src/components/picturebox/filebox.vue +6 -5
- package/src/components/picturebox/uploadbox.vue +3 -3
- package/src/components/poptagbox/poptagbox.vue +4 -3
- package/src/components/poptextbox/poptextbox.vue +5 -5
- package/src/components/richtextbox/editor.vue +36 -36
- package/src/components/richtextbox/richtextbox.vue +6 -6
- package/src/components/toolbar/toolbar.vue +7 -7
- package/src/components/tree/basetree.vue +3 -2
- package/src/components/tree/treedatabase.vue +1 -1
- package/src/components/upload/billimport.vue +8 -8
- package/src/components/videobox/uploadbox.vue +3 -9
- package/src/components/videobox/videobox.vue +1 -1
- package/src/components/wrichtextbox/editor.vue +26 -26
- package/src/index.js +2 -2
- package/src/localePlus/en-US.js +331 -1
- package/src/localePlus/zh-CN.js +331 -1
- package/src/localePlus/zh-TW.js +331 -1
- package/src/method/case/case.js +10 -10
- package/src/method/const/const.js +1 -1
- package/src/plugins/vxeTable/index.js +1 -1
package/src/method/case/case.js
CHANGED
|
@@ -94,12 +94,12 @@ caseMethod.alert = function (_strerr, _title, _flag) {
|
|
|
94
94
|
_flag = _flag + '';
|
|
95
95
|
if (_flag === '2') {
|
|
96
96
|
Modal.error({
|
|
97
|
-
title: '系统警告',
|
|
97
|
+
title: this.$t('系统警告'),
|
|
98
98
|
content: '<div style="word-wrap:break-word">' + _strerr + '</div>'
|
|
99
99
|
});
|
|
100
100
|
} else if (_flag === '3') {
|
|
101
101
|
if (!_title) {
|
|
102
|
-
_title = '成功';
|
|
102
|
+
_title = this.$t('成功');
|
|
103
103
|
}
|
|
104
104
|
Modal.success({
|
|
105
105
|
title:_title,
|
|
@@ -107,7 +107,7 @@ caseMethod.alert = function (_strerr, _title, _flag) {
|
|
|
107
107
|
});
|
|
108
108
|
} else {
|
|
109
109
|
if (!_title) {
|
|
110
|
-
_title = '提醒';
|
|
110
|
+
_title = this.$t('提醒');
|
|
111
111
|
}
|
|
112
112
|
Modal.warning({
|
|
113
113
|
title: _title,
|
|
@@ -999,7 +999,7 @@ caseMethod.downloadFile = function(url, that) {
|
|
|
999
999
|
|
|
1000
1000
|
} else {
|
|
1001
1001
|
that.$Spin.hide();
|
|
1002
|
-
that.alert('导出失败');
|
|
1002
|
+
that.alert(that.$t('导出失败'));
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
1005
|
};
|
|
@@ -1042,7 +1042,7 @@ caseMethod.doExportExcel = function(_baseUrl,_method,_param,exportType,that){
|
|
|
1042
1042
|
}
|
|
1043
1043
|
that.$Spin.show({
|
|
1044
1044
|
render: (h) => {
|
|
1045
|
-
return h('div', '
|
|
1045
|
+
return h('div', that.$t('导出中...,请勿关闭!'));
|
|
1046
1046
|
}
|
|
1047
1047
|
});
|
|
1048
1048
|
if (!exportType) {
|
|
@@ -1075,7 +1075,7 @@ caseMethod.doExportReport= function(_baseUrl,_method,_param,that){
|
|
|
1075
1075
|
url = encodeURI(url + '¶m=' + _paramStr);
|
|
1076
1076
|
that.$Spin.show({
|
|
1077
1077
|
render: (h) => {
|
|
1078
|
-
return h('div', '
|
|
1078
|
+
return h('div', that.$t('导出中...,请勿关闭!'));
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
1081
|
caseMethod.downloadFile(url, that);
|
|
@@ -1090,7 +1090,7 @@ caseMethod.doBillExport = function (baseUrl, method, param, ctx) {
|
|
|
1090
1090
|
|
|
1091
1091
|
// 显示加载动画
|
|
1092
1092
|
ctx.$Spin.show({
|
|
1093
|
-
render: h => h('div', '
|
|
1093
|
+
render: h => h('div', ctx.$t('导出中...,请勿关闭!'))
|
|
1094
1094
|
});
|
|
1095
1095
|
|
|
1096
1096
|
caseMethod.downloadExcel(url, ctx, param);
|
|
@@ -1107,7 +1107,7 @@ caseMethod.downloadExcel = function (url, ctx, postObj = {}) {
|
|
|
1107
1107
|
ctx.$Spin.hide();
|
|
1108
1108
|
|
|
1109
1109
|
if (this.status !== 200) {
|
|
1110
|
-
ctx.alert(
|
|
1110
|
+
ctx.alert(ctx.$t('导出失败:{status} {statusText}', { status: this.status, statusText: this.statusText }));
|
|
1111
1111
|
return;
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
@@ -1120,7 +1120,7 @@ caseMethod.downloadExcel = function (url, ctx, postObj = {}) {
|
|
|
1120
1120
|
try {
|
|
1121
1121
|
const json = JSON.parse(text);
|
|
1122
1122
|
if (json.returncode && json.returncode !== '0') {
|
|
1123
|
-
ctx.alert(json.data || '导出失败');
|
|
1123
|
+
ctx.alert(json.data || ctx.$t('导出失败'));
|
|
1124
1124
|
return;
|
|
1125
1125
|
}
|
|
1126
1126
|
} catch (e) {
|
|
@@ -1140,7 +1140,7 @@ caseMethod.downloadExcel = function (url, ctx, postObj = {}) {
|
|
|
1140
1140
|
|
|
1141
1141
|
xhr.onerror = () => {
|
|
1142
1142
|
ctx.$Spin.hide();
|
|
1143
|
-
ctx.alert('网络错误,导出失败');
|
|
1143
|
+
ctx.alert(ctx.$t('网络错误,导出失败'));
|
|
1144
1144
|
};
|
|
1145
1145
|
|
|
1146
1146
|
xhr.send(JSON.stringify(postObj));
|