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
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
<Col span="6" v-show="showForm" >
|
|
12
12
|
<Row type="flex" justify="end" align="middle" :gutter="0">
|
|
13
13
|
<Col>
|
|
14
|
-
<Button style="float:right" size="small" customIcon="iconfont icon-custom-recallcard" type="text" :disabled="btnReadOnly" @click.stop="resetRow"
|
|
14
|
+
<Button style="float:right" size="small" customIcon="iconfont icon-custom-recallcard" type="text" :disabled="btnReadOnly" @click.stop="resetRow" >{{ $t('撤消') }}</Button>
|
|
15
15
|
</Col>
|
|
16
16
|
<Col >
|
|
17
17
|
<Divider type="vertical" style="margin: 0 15px 0 15px;float:right"/>
|
|
18
18
|
</Col>
|
|
19
19
|
<Col>
|
|
20
|
-
<Button style="float:right" size="small" customIcon="iconfont icon-custom-delcard" type="text" :disabled="btnReadOnly" @click.stop="delBatchRow"
|
|
20
|
+
<Button style="float:right" size="small" customIcon="iconfont icon-custom-delcard" type="text" :disabled="btnReadOnly" @click.stop="delBatchRow">{{ $t('删除') }}</Button>
|
|
21
21
|
</Col>
|
|
22
22
|
</Row>
|
|
23
23
|
</Col>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<Divider type="vertical" style="margin: 0 15px 0 15px;float:right"/>
|
|
26
26
|
</template>
|
|
27
27
|
<template v-else>
|
|
28
|
-
<Badge status="processing" text="新增项" />
|
|
28
|
+
<Badge status="processing" :text="$t('新增项')" />
|
|
29
29
|
</template>
|
|
30
30
|
</p>
|
|
31
31
|
<Divider v-show="showForm" style="margin-top:0px;margin-bottom:10px;"/>
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
<template #header>
|
|
37
37
|
<Row type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom: 10px;display: flex;">
|
|
38
38
|
<Col v-if="showAddBtn">
|
|
39
|
-
<Button customIcon="iconfont icon-custom-rowadd" type="text" size="small" :disabled="btnReadOnly" @click="addRow"
|
|
39
|
+
<Button customIcon="iconfont icon-custom-rowadd" type="text" size="small" :disabled="btnReadOnly" @click="addRow" >{{ $t('添加') }}</Button>
|
|
40
40
|
</Col>
|
|
41
41
|
<Col v-if="showAddBtn && showDelBatchBtn">
|
|
42
42
|
<Divider type="vertical" style="margin: 0 15px 0 15px;height: 20px"/>
|
|
43
43
|
</Col>
|
|
44
44
|
<Col v-if="showDelBatchBtn">
|
|
45
|
-
<Button customIcon="iconfont icon-custom-rowdel" size="small" type="text" :disabled="btnReadOnly" @click="delRow"
|
|
45
|
+
<Button customIcon="iconfont icon-custom-rowdel" size="small" type="text" :disabled="btnReadOnly" @click="delRow">{{ $t('删除') }}</Button>
|
|
46
46
|
</Col>
|
|
47
47
|
<Col class="col-align" v-if="showZoom" style="flex:1;text-align: right;">
|
|
48
48
|
<Button type="ghost" shape="circle" :customIcon="[isFull ? 'iconfont icon-custom-minimize' : 'iconfont icon-custom-fullscreen']" @click="setZoom"></Button>
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
</EditGridCard>
|
|
53
53
|
<Row v-if="isAdd" type="flex" justify="end" align="middle" style="margin-top: 10px;margin-bottom: 10px;" :gutter="16">
|
|
54
54
|
<Col>
|
|
55
|
-
<Button style="width:84px" @click="cancel"
|
|
55
|
+
<Button style="width:84px" @click="cancel">{{ $t('取消') }}</Button>
|
|
56
56
|
</Col>
|
|
57
57
|
<Col>
|
|
58
|
-
<Button style="width:84px" type="info" @click="save"
|
|
58
|
+
<Button style="width:84px" type="info" @click="save">{{ $t('确认') }}</Button>
|
|
59
59
|
</Col>
|
|
60
60
|
</Row>
|
|
61
61
|
</div>
|
|
@@ -116,7 +116,7 @@ export default {
|
|
|
116
116
|
},
|
|
117
117
|
computed: {
|
|
118
118
|
title() {
|
|
119
|
-
let title = '标题';
|
|
119
|
+
let title = this.$t('标题');
|
|
120
120
|
if (this.config.titleName) {
|
|
121
121
|
if (this.valueData[this.config.titleName]) {
|
|
122
122
|
title = this.valueData[this.config.titleName];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<Card :bordered="false" :padding="0" style="padding-top:14px;padding-left:16px;padding-right:16px;padding-bottom:14px" dis-hover>
|
|
3
3
|
<Row type="flex" justify="start" align="middle">
|
|
4
4
|
<Col span='18'>
|
|
5
|
-
<span
|
|
5
|
+
<span style="font-size:14px">{{ $t('显示这些字段') }}</span>
|
|
6
6
|
</Col>
|
|
7
7
|
<Col span='6'>
|
|
8
8
|
<Row type="flex" justify="end" align="middle" >
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<Card :padding="0" dis-hover style="width:330px;margin-top:20px;">
|
|
18
18
|
<template #title>
|
|
19
19
|
<p style="margin-top: 3px;margin-bottom: 3px;margin-left: 8px;margin-right: 10px;">
|
|
20
|
-
<span style="font-size:14px"
|
|
20
|
+
<span style="font-size:14px">{{ $t('已选择字段') }}: </span><span style="color:#AF292E;font-size:14px">{{num}}{{ $t('个') }}</span>
|
|
21
21
|
</p>
|
|
22
22
|
</template>
|
|
23
23
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<Tooltip placement="left">
|
|
36
36
|
<template #content>
|
|
37
37
|
<div>
|
|
38
|
-
<span style="font-size:12px"> 冻结列 </span>
|
|
38
|
+
<span style="font-size:12px"> {{ $t('冻结列') }} </span>
|
|
39
39
|
</div>
|
|
40
40
|
</template>
|
|
41
41
|
<p @click.stop="doFixed(tmp.name)" style="padding-right:14px;">
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<Tooltip placement="left">
|
|
49
49
|
<template #content>
|
|
50
50
|
<div>
|
|
51
|
-
<span style="font-size:12px"> 置顶 </span>
|
|
51
|
+
<span style="font-size:12px"> {{ $t('置顶') }} </span>
|
|
52
52
|
</div>
|
|
53
53
|
</template>
|
|
54
54
|
<p @click.stop="doStick(index)">
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
</Card>
|
|
64
64
|
<Row style="margin-top:14px" type="flex" justify="end" align="middle" :gutter="10" >
|
|
65
65
|
<Col>
|
|
66
|
-
<Button @click="reset"
|
|
66
|
+
<Button @click="reset" >{{ $t('重置') }}</Button>
|
|
67
67
|
</Col>
|
|
68
68
|
<Col>
|
|
69
|
-
<Button type="info" @click="ok"
|
|
69
|
+
<Button type="info" @click="ok" >{{ $t('确定') }}</Button>
|
|
70
70
|
</Col>
|
|
71
71
|
</Row>
|
|
72
72
|
</Card>
|
|
@@ -4,7 +4,7 @@ import SimpleTree from "./simpletree.vue";
|
|
|
4
4
|
import RowBtnToolbar from "./rowbtntoolbar.vue";
|
|
5
5
|
import DetailBtnToolbar from "./detailbtntoolbar.vue";
|
|
6
6
|
import BillTemplate from "./layouttemplate.vue";
|
|
7
|
-
import mListDetails from "./
|
|
7
|
+
import mListDetails from "./RewriteListdetails/indexV3.vue"; // 备份:./listdetails.vue
|
|
8
8
|
import mLeftListRightDetails from "./leftlistrightdetails.vue";
|
|
9
9
|
import mLeftTreeRightDetails from "./lefttreerightdetails.vue";
|
|
10
10
|
import mLeftListRightList from "./leftlistrightlist.vue";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<!-- ============================ -->
|
|
18
18
|
</component>
|
|
19
19
|
<Modal
|
|
20
|
-
title="附件"
|
|
20
|
+
:title="$t('附件')"
|
|
21
21
|
v-model="showDetailAppendix"
|
|
22
22
|
:width="appendixCurrentWidth"
|
|
23
23
|
:footer-hide="true"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
/>
|
|
31
31
|
</Modal>
|
|
32
32
|
<Modal
|
|
33
|
-
title="模版打印"
|
|
33
|
+
:title="$t('模版打印')"
|
|
34
34
|
v-model="showPrintMode"
|
|
35
35
|
:width="appendixCurrentWidth"
|
|
36
36
|
:footer-hide="true"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
>
|
|
60
60
|
</BillImport>
|
|
61
61
|
<Modal
|
|
62
|
-
title="合同模版"
|
|
62
|
+
:title="$t('合同模版')"
|
|
63
63
|
v-model="ContractModalShowType"
|
|
64
64
|
:width="ContractModalWidth"
|
|
65
65
|
:mask-closable="false"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
</Split>
|
|
42
42
|
</div>
|
|
43
|
-
<Modal title="操作日志" v-model="showBilloperlog" :width="logcurrentWidth" :footer-hide="true">
|
|
43
|
+
<Modal :title="$t('操作日志')" v-model="showBilloperlog" :width="logcurrentWidth" :footer-hide="true">
|
|
44
44
|
<BillOperLog ref="billoperlog" :config="billOperLogConfig"/>
|
|
45
45
|
</Modal>
|
|
46
46
|
</div>
|
|
@@ -112,6 +112,8 @@ export default {
|
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
114
|
created() {
|
|
115
|
+
this.myConfig.gridtitle = this.$t('列表');
|
|
116
|
+
this.searchPlaceholder = this.$t('请输入');
|
|
115
117
|
this.myConfig = Object.assign({}, this.myConfig, this.config);
|
|
116
118
|
this.myConfig.gridConfig.onSelectionChange = this.gridOnSelectionChange;
|
|
117
119
|
this.myConfig.gridConfig.overrideData = this.gridOverrideData;
|
|
@@ -170,7 +172,7 @@ export default {
|
|
|
170
172
|
},
|
|
171
173
|
methods: {
|
|
172
174
|
setLogName() {
|
|
173
|
-
this.logName.push({code:this.myConfig.response,name:'主表'});
|
|
175
|
+
this.logName.push({code:this.myConfig.response,name:this.$t('主表')});
|
|
174
176
|
this.myConfig.detailConfig.formsConfig.items.forEach(el => {
|
|
175
177
|
this.initLogName(el.items,this.myConfig.response,el.title)
|
|
176
178
|
});
|
|
@@ -233,7 +235,7 @@ export default {
|
|
|
233
235
|
this.$refs.billoperlog.setData(this.logData[this.billOperLogConfig.operLogKey],this.logData);
|
|
234
236
|
this.showBilloperlog = true;
|
|
235
237
|
} else {
|
|
236
|
-
this.alert('未产生日志');
|
|
238
|
+
this.alert(this.$t('未产生日志'));
|
|
237
239
|
}
|
|
238
240
|
},
|
|
239
241
|
search() {
|
|
@@ -434,12 +436,12 @@ export default {
|
|
|
434
436
|
if (obj.name === 'saveData') {
|
|
435
437
|
let flag = this.$refs.form.checkValidate();
|
|
436
438
|
if (flag) {
|
|
437
|
-
this.alert('必填项不允许为空');
|
|
439
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
438
440
|
return false;
|
|
439
441
|
}
|
|
440
442
|
flag = this.$refs.form.isEdit();
|
|
441
443
|
if (flag) {
|
|
442
|
-
this.alert('存在数据未确认');
|
|
444
|
+
this.alert(this.$t('存在数据未确认'));
|
|
443
445
|
return false;
|
|
444
446
|
}
|
|
445
447
|
let data = this.$refs.form.getChangeData();
|
|
@@ -457,17 +459,17 @@ export default {
|
|
|
457
459
|
});
|
|
458
460
|
obj.para = tempData;
|
|
459
461
|
} else {
|
|
460
|
-
this.alert('没有数据可删除,请检查');
|
|
462
|
+
this.alert(this.$t('没有数据可删除,请检查'));
|
|
461
463
|
return false;
|
|
462
464
|
}
|
|
463
465
|
}
|
|
464
466
|
obj.onOk = this.onOk;
|
|
465
467
|
if (obj.name === 'delData') {
|
|
466
|
-
let text = '删除';
|
|
468
|
+
let text = this.$t('删除');
|
|
467
469
|
let self = this;
|
|
468
470
|
self.$Modal.confirm({
|
|
469
|
-
title: '确认',
|
|
470
|
-
content: '是否确认'
|
|
471
|
+
title: this.$t('确认'),
|
|
472
|
+
content: this.$t('是否确认{text}数据?', { text: text }),
|
|
471
473
|
onOk: () => {
|
|
472
474
|
self.$emit('doAction', obj);
|
|
473
475
|
}
|
|
@@ -504,8 +506,8 @@ export default {
|
|
|
504
506
|
if (tempflag) {
|
|
505
507
|
let self = this;
|
|
506
508
|
self.$Modal.confirm({
|
|
507
|
-
title: '确认',
|
|
508
|
-
content: '数据存在数据未确认,是否放弃?',
|
|
509
|
+
title: this.$t('确认'),
|
|
510
|
+
content: this.$t('数据存在数据未确认,是否放弃?'),
|
|
509
511
|
onOk: () => {
|
|
510
512
|
this.checkChangeData(obj);
|
|
511
513
|
},
|
|
@@ -525,8 +527,8 @@ export default {
|
|
|
525
527
|
if (flag) {
|
|
526
528
|
let self = this;
|
|
527
529
|
self.$Modal.confirm({
|
|
528
|
-
title: '确认',
|
|
529
|
-
content: '数据有修改未保存,是否放弃修改?',
|
|
530
|
+
title: this.$t('确认'),
|
|
531
|
+
content: this.$t('数据有修改未保存,是否放弃修改?'),
|
|
530
532
|
onOk: () => {
|
|
531
533
|
if (obj.onOk) {
|
|
532
534
|
obj.onOk();
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
<div class="efuture-demo-split" :style="'height:' + clientHeight2 +'px'">
|
|
10
10
|
<Split v-model="myConfig.splitNum">
|
|
11
11
|
<template #left>
|
|
12
|
-
<div
|
|
12
|
+
<div class="efuture-demo-split-pane" style="padding:14px 16px;">
|
|
13
13
|
<Card :padding="0" :bordered="false" dis-hover >
|
|
14
|
-
<p
|
|
15
|
-
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold" v-text="myConfig.gridtitle" />
|
|
14
|
+
<p style="margin-bottom:10px;">
|
|
15
|
+
<span class="efuture-title-verticalline" /> <span style="font-size: 14px;font-weight:bold" v-text="myConfig.gridtitle" />
|
|
16
16
|
</p>
|
|
17
17
|
<div ref="para">
|
|
18
|
-
<Input :placeholder="searchPlaceholder" v-model="searchValue" search style="width:
|
|
19
|
-
</div>
|
|
18
|
+
<Input :placeholder="searchPlaceholder" v-model="searchValue" search style="width: 100%;margin-top:10xp;margin-bottom:10px" @on-search="search" @on-enter="search"/>
|
|
19
|
+
</div>
|
|
20
20
|
<SimpleViewGrid ref="grid" :config="myConfig.gridConfig" :dictData="dictData" @rowclick="gridClick"/>
|
|
21
21
|
</Card>
|
|
22
22
|
</div>
|
|
23
23
|
</template>
|
|
24
24
|
<template #right>
|
|
25
|
-
<div
|
|
25
|
+
<div class="efuture-demo-split-pane" style="padding:14px 16px;">
|
|
26
26
|
<Card v-for="tmp in myConfig.detailGridsConfig" :key="'detail_' + tmp.name" v-show="showDetail[tmp.name]" :padding="0" style="padding-left:6px;" :bordered="false" dis-hover >
|
|
27
27
|
<EditGridCardS :ref="tmp.name" :config="tmp" :dictData="dictData" style="padding-bottom:10px" />
|
|
28
28
|
</Card>
|
|
@@ -107,6 +107,12 @@ export default {
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
created() {
|
|
110
|
+
this.myConfig.gridtitle = this.$t('列表');
|
|
111
|
+
this.menuToolbar.items[0].text = this.$t('编辑');
|
|
112
|
+
this.menuToolbar.items[1].text = this.$t('保存');
|
|
113
|
+
this.menuToolbar.items[2].text = this.$t('新增明细');
|
|
114
|
+
this.menuToolbar.items[3].text = this.$t('删除明细');
|
|
115
|
+
this.searchPlaceholder = this.$t('请输入');
|
|
110
116
|
this.myConfig = Object.assign({}, this.myConfig, this.config);
|
|
111
117
|
this.myConfig.gridConfig.headStyle = '';
|
|
112
118
|
this.myConfig.gridConfig.onSelectionChange = this.gridOnSelectionChange;
|
|
@@ -136,14 +142,14 @@ export default {
|
|
|
136
142
|
}
|
|
137
143
|
if (!el.title) {
|
|
138
144
|
let size = index + 1;
|
|
139
|
-
el.title = '明细('
|
|
145
|
+
el.title = this.$t('明细({size})', { size: size }) ;
|
|
140
146
|
}
|
|
141
147
|
el.adjustHeight = 0;
|
|
142
148
|
if (size > 1) {
|
|
143
149
|
el.height = 0.5;
|
|
144
150
|
el.adjustHeight = 124;
|
|
145
151
|
} else {
|
|
146
|
-
el.height = 1;
|
|
152
|
+
el.height = 1;
|
|
147
153
|
el.adjustHeight = 168;
|
|
148
154
|
}
|
|
149
155
|
el.width = 1;
|
|
@@ -160,7 +166,7 @@ export default {
|
|
|
160
166
|
} else {
|
|
161
167
|
this.showDetail[el.name] = true;
|
|
162
168
|
}
|
|
163
|
-
|
|
169
|
+
|
|
164
170
|
});
|
|
165
171
|
if (this.myConfig.gridConfig.multiSelect === undefined) {
|
|
166
172
|
this.myConfig.gridConfig.multiSelect = false;
|
|
@@ -182,10 +188,10 @@ export default {
|
|
|
182
188
|
}
|
|
183
189
|
// 处理按钮
|
|
184
190
|
if (this.myConfig.menuToolbar && this.myConfig.menuToolbar.items) {
|
|
185
|
-
this.menuToolbar = this.$Method.copy(this.myConfig.menuToolbar);
|
|
186
|
-
}
|
|
191
|
+
this.menuToolbar = this.$Method.copy(this.myConfig.menuToolbar);
|
|
192
|
+
}
|
|
187
193
|
this.menuToolbar.mainButton = 'editData';
|
|
188
|
-
this.menuToolbar.mainButtonText = '修改';
|
|
194
|
+
this.menuToolbar.mainButtonText = this.$t('修改');
|
|
189
195
|
},
|
|
190
196
|
methods: {
|
|
191
197
|
search() {
|
|
@@ -326,7 +332,7 @@ export default {
|
|
|
326
332
|
self.myConfig.classPrefix + '.get',
|
|
327
333
|
tmp,
|
|
328
334
|
function(data) {
|
|
329
|
-
result = data[self.myConfig.response];
|
|
335
|
+
result = data[self.myConfig.response];
|
|
330
336
|
}
|
|
331
337
|
);
|
|
332
338
|
return result;
|
|
@@ -344,7 +350,7 @@ export default {
|
|
|
344
350
|
if (obj.name === 'editData') {
|
|
345
351
|
let tempData = this.$refs.grid.getSelection();
|
|
346
352
|
if (tempData.length === 0) {
|
|
347
|
-
this.alert('请先选中行');
|
|
353
|
+
this.alert(this.$t('请先选中行'));
|
|
348
354
|
return ;
|
|
349
355
|
}
|
|
350
356
|
this.myConfig.detailGridsConfig.forEach(el => {
|
|
@@ -355,7 +361,7 @@ export default {
|
|
|
355
361
|
this.$refs.menutoolbar.setAllReadOnly(false);
|
|
356
362
|
this.$refs.menutoolbar.setReadOnly('editData', true);
|
|
357
363
|
}
|
|
358
|
-
|
|
364
|
+
|
|
359
365
|
if (this.$parent[methodAfter]) {
|
|
360
366
|
this.$parent[methodAfter]();
|
|
361
367
|
}
|
|
@@ -372,7 +378,7 @@ export default {
|
|
|
372
378
|
}
|
|
373
379
|
});
|
|
374
380
|
if (checkflag) {
|
|
375
|
-
this.alert('必填项不允许为空');
|
|
381
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
376
382
|
return false;
|
|
377
383
|
}
|
|
378
384
|
obj.para = [];
|
|
@@ -419,8 +425,8 @@ export default {
|
|
|
419
425
|
if (tempData && tempData.length>0) {
|
|
420
426
|
let self = this;
|
|
421
427
|
self.$Modal.confirm({
|
|
422
|
-
title: '确认',
|
|
423
|
-
content: '数据存在数据未确认,是否放弃?',
|
|
428
|
+
title: this.$t('确认'),
|
|
429
|
+
content: this.$t('数据存在数据未确认,是否放弃?'),
|
|
424
430
|
onOk: () => {
|
|
425
431
|
obj.onOk();
|
|
426
432
|
},
|
|
@@ -49,12 +49,12 @@ export default {
|
|
|
49
49
|
data () {
|
|
50
50
|
return {
|
|
51
51
|
myConfig:{
|
|
52
|
-
gridtitle:'列表',
|
|
52
|
+
gridtitle:this.$t('列表'),
|
|
53
53
|
billKey:'ph_key',
|
|
54
54
|
splitNum:0.25,
|
|
55
55
|
resources:'',
|
|
56
56
|
className:'',
|
|
57
|
-
formTitle:'详情',
|
|
57
|
+
formTitle:this.$t('详情'),
|
|
58
58
|
adjustHeight:200,
|
|
59
59
|
treeConfig:{},
|
|
60
60
|
gridConfig:{},
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
66
66
|
menuToolbar:{
|
|
67
67
|
enablePermissions:true
|
|
68
68
|
},
|
|
69
|
-
searchPlaceholder:'请输入编码或名称',
|
|
69
|
+
searchPlaceholder:this.$t('请输入编码或名称'),
|
|
70
70
|
showTree:true,
|
|
71
71
|
ph_key:'',
|
|
72
72
|
treeSeletedNode:[],
|
|
@@ -171,7 +171,7 @@ export default {
|
|
|
171
171
|
this.menuToolbar = Object.assign({}, this.menuToolbar, this.myConfig.menuToolbar);
|
|
172
172
|
}
|
|
173
173
|
this.menuToolbar.mainButton = 'editData';
|
|
174
|
-
this.menuToolbar.mainButtonText = '修改';
|
|
174
|
+
this.menuToolbar.mainButtonText = this.$t('修改');
|
|
175
175
|
this.myConfig.detailConfig.modetype = '2';
|
|
176
176
|
this.myConfig.detailConfig.billKey = this.myConfig.billKey;
|
|
177
177
|
this.myConfig.detailConfig.showAnchorLink = false;
|
|
@@ -389,13 +389,13 @@ export default {
|
|
|
389
389
|
}
|
|
390
390
|
if (obj.name === 'editData') {
|
|
391
391
|
if (this.treeSeletedNode.length === 0) {
|
|
392
|
-
this.alert('请先选择节点');
|
|
392
|
+
this.alert(this.$t('请先选择节点'));
|
|
393
393
|
return false;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
let obj = this.$refs.tree.getRootNode();
|
|
397
397
|
if (obj[this.myConfig.treeConfig.responseCode] === this.treeSeletedNode[0][this.myConfig.treeConfig.responseCode]) {
|
|
398
|
-
this.alert('当前节点不允许修改');
|
|
398
|
+
this.alert(this.$t('当前节点不允许修改'));
|
|
399
399
|
return false;
|
|
400
400
|
}
|
|
401
401
|
|
|
@@ -413,12 +413,12 @@ export default {
|
|
|
413
413
|
if (obj.name === 'saveData') {
|
|
414
414
|
let flag = this.$refs.form.checkValidate();
|
|
415
415
|
if (flag) {
|
|
416
|
-
this.alert('必填项不允许为空');
|
|
416
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
417
417
|
return false;
|
|
418
418
|
}
|
|
419
419
|
flag = this.$refs.form.isEdit();
|
|
420
420
|
if (flag) {
|
|
421
|
-
this.alert('存在数据未确认');
|
|
421
|
+
this.alert(this.$t('存在数据未确认'));
|
|
422
422
|
return false;
|
|
423
423
|
}
|
|
424
424
|
let data = this.$refs.form.getChangeData();
|
|
@@ -440,14 +440,14 @@ export default {
|
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
442
|
if (obj.name === 'delData') {
|
|
443
|
-
let text = '保存';
|
|
443
|
+
let text = this.$t('保存');
|
|
444
444
|
if (obj.name === 'delData') {
|
|
445
|
-
text = '删除';
|
|
445
|
+
text = this.$t('删除');
|
|
446
446
|
}
|
|
447
447
|
let self = this;
|
|
448
448
|
self.$Modal.confirm({
|
|
449
|
-
title:'确认',
|
|
450
|
-
content:'是否确认
|
|
449
|
+
title:this.$t('确认'),
|
|
450
|
+
content:this.$t('是否确认{text}数据?', { text: text }),
|
|
451
451
|
onOk:() => {
|
|
452
452
|
self.$emit('doAction', obj);
|
|
453
453
|
}
|
|
@@ -488,8 +488,8 @@ export default {
|
|
|
488
488
|
if (tempflag) {
|
|
489
489
|
let self = this;
|
|
490
490
|
self.$Modal.confirm({
|
|
491
|
-
title:'确认',
|
|
492
|
-
content:'数据存在数据未确认,是否放弃?',
|
|
491
|
+
title:this.$t('确认'),
|
|
492
|
+
content:this.$t('数据存在数据未确认,是否放弃?'),
|
|
493
493
|
onOk:() => {
|
|
494
494
|
this.checkChangeData(obj);
|
|
495
495
|
},
|
|
@@ -509,8 +509,8 @@ export default {
|
|
|
509
509
|
if (flag) {
|
|
510
510
|
let self = this;
|
|
511
511
|
self.$Modal.confirm({
|
|
512
|
-
title:'确认',
|
|
513
|
-
content:'数据有修改未保存,是否放弃修改?',
|
|
512
|
+
title:this.$t('确认'),
|
|
513
|
+
content:this.$t('数据有修改未保存,是否放弃修改?'),
|
|
514
514
|
onOk:() => {
|
|
515
515
|
if (obj.onOk) {
|
|
516
516
|
obj.onOk();
|
|
@@ -633,4 +633,4 @@ export default {
|
|
|
633
633
|
|
|
634
634
|
<style>
|
|
635
635
|
|
|
636
|
-
</style>
|
|
636
|
+
</style>
|
|
@@ -46,15 +46,15 @@ export default {
|
|
|
46
46
|
titleType:2,
|
|
47
47
|
divStyle:'padding:5px',
|
|
48
48
|
showMaxRow:2,
|
|
49
|
-
title:'查询条件',
|
|
49
|
+
title:this.$t('查询条件'),
|
|
50
50
|
showAsyncImportExport:false
|
|
51
51
|
},
|
|
52
52
|
menuToolbar:{},
|
|
53
53
|
gridToolbar:{},
|
|
54
54
|
frontBtn: [{
|
|
55
|
-
name:'searchData',text:'查询',icon:'custom-search'
|
|
55
|
+
name:'searchData',text:this.$t('查询'),icon:'custom-search'
|
|
56
56
|
},{
|
|
57
|
-
name:'clearData',text:'清除',icon:'custom-clean'
|
|
57
|
+
name:'clearData',text:this.$t('清除'),icon:'custom-clean'
|
|
58
58
|
}],
|
|
59
59
|
oldLevelidSearchBefore:null,
|
|
60
60
|
showSearchPara:true,
|
|
@@ -127,7 +127,7 @@ export default {
|
|
|
127
127
|
});
|
|
128
128
|
this.menuToolbar.items = frontBtn.concat(this.menuToolbar.items);
|
|
129
129
|
this.menuToolbar.mainButton = 'searchData';
|
|
130
|
-
this.menuToolbar.mainButtonText ='查询';
|
|
130
|
+
this.menuToolbar.mainButtonText =this.$t('查询');
|
|
131
131
|
this.menuToolbar.ignoreModule = ['searchData','clearData'];
|
|
132
132
|
|
|
133
133
|
let index = this.myConfig.formConfig.items.findIndex(el => el.name === this.levelIdName);
|
|
@@ -372,7 +372,7 @@ export default {
|
|
|
372
372
|
this.$refs.form.checkValidate();
|
|
373
373
|
let flag = this.$refs.form.isError();
|
|
374
374
|
if (flag) {
|
|
375
|
-
this.alert('必填项不允许为空');
|
|
375
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
376
376
|
return false;
|
|
377
377
|
}
|
|
378
378
|
let data = this.$refs.form.getData();
|
|
@@ -407,7 +407,7 @@ export default {
|
|
|
407
407
|
exportData () {
|
|
408
408
|
let data = this.$refs.grid.getData();
|
|
409
409
|
if (data.length === 0) {
|
|
410
|
-
this.alert('请先查询数据');
|
|
410
|
+
this.alert(this.$t('请先查询数据'));
|
|
411
411
|
return false;
|
|
412
412
|
}
|
|
413
413
|
if (this.myConfig.showAsyncImportExport) {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
</Col>
|
|
30
30
|
</Row>
|
|
31
31
|
<Row v-else type="flex" :gutter="0" justify="start" align="middle">
|
|
32
|
-
<Icon custom="iconfont icon-custom-tishi" size="20" color="#F3B352"/> <span style="margin-left: 12px;font-size:18px;color:#F3B352;font-weight:bold"
|
|
32
|
+
<Icon custom="iconfont icon-custom-tishi" size="20" color="#F3B352"/> <span style="margin-left: 12px;font-size:18px;color:#F3B352;font-weight:bold">{{ $t('注意') }}:{{ $t('当前页面您没有操作权限') }}</span>
|
|
33
33
|
</Row>
|
|
34
34
|
</Col>
|
|
35
35
|
<Col span="6">
|
|
36
36
|
<Row type="flex" :gutter="0" justify="end" align="middle">
|
|
37
37
|
<Col v-if="billoperlog">
|
|
38
|
-
<Button customIcon="iconfont icon-custom-baopidan" @click="openBilloperlog"
|
|
38
|
+
<Button customIcon="iconfont icon-custom-baopidan" @click="openBilloperlog">{{ $t('操作日志') }}</Button>
|
|
39
39
|
</Col>
|
|
40
40
|
<Col v-if="billoperlog">
|
|
41
41
|
<Divider type="vertical" class="dividercommon"/>
|
|
@@ -65,7 +65,7 @@ export default {
|
|
|
65
65
|
modulecode:'',
|
|
66
66
|
items:[],
|
|
67
67
|
mainButton:'addData',
|
|
68
|
-
mainButtonText:'新增',
|
|
68
|
+
mainButtonText:this.$t('新增'),
|
|
69
69
|
mainButtonIcon:null,
|
|
70
70
|
mainButtonCustomIcon:'iconfont icon-custom-add'
|
|
71
71
|
},
|