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
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
extends: Base,
|
|
20
20
|
data () {
|
|
21
21
|
return {
|
|
22
|
-
searchPlaceholder:'请输入编码或名称',
|
|
22
|
+
searchPlaceholder:this.$t('请输入编码或名称'),
|
|
23
23
|
searchValue:'',
|
|
24
24
|
gridReset:true
|
|
25
25
|
}
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
this.gridConfig.items = [];
|
|
45
45
|
}
|
|
46
46
|
let code = {
|
|
47
|
-
label:'编码',
|
|
47
|
+
label:this.$t('编码'),
|
|
48
48
|
name:this.myConfig.responseCode,
|
|
49
49
|
type:'TextBox',
|
|
50
50
|
}
|
|
51
51
|
let name = {
|
|
52
|
-
label:'名称',
|
|
52
|
+
label:this.$t('名称'),
|
|
53
53
|
name:this.myConfig.responseName,
|
|
54
54
|
type:'TextBox',
|
|
55
55
|
}
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
</Col>
|
|
51
51
|
<Col span= '2'>
|
|
52
52
|
<Row type="flex" justify="center" align="middle" style="padding:5px;" >
|
|
53
|
-
<Tooltip content="添加" placement="right">
|
|
53
|
+
<Tooltip :content="$t('添加')" placement="right">
|
|
54
54
|
<Button type="primary" size="small" icon="ios-arrow-forward" :disabled="!leftActive" @click="moveToRight"></Button>
|
|
55
55
|
</Tooltip>
|
|
56
56
|
</Row>
|
|
57
57
|
<Row type="flex" justify="center" align="middle" style="padding:5px;" >
|
|
58
|
-
<Tooltip content="删除" placement="left">
|
|
58
|
+
<Tooltip :content="$t('删除')" placement="left">
|
|
59
59
|
<Button type="primary" size="small" icon="ios-arrow-back" :disabled="!rightActive" @click="moveToLeft"></Button>
|
|
60
60
|
</Tooltip>
|
|
61
61
|
</Row>
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
if (this.myConfig.showIndex) {
|
|
98
98
|
if (this.myConfig.showSumGroup) {
|
|
99
99
|
let indexConfig = {
|
|
100
|
-
label: '行号',
|
|
100
|
+
label: this.$t('行号'),
|
|
101
101
|
name: 'sumindex',
|
|
102
102
|
type: 'TextBox',
|
|
103
103
|
align: 'center',
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
index.type = 'index';
|
|
112
112
|
index.key = 'index';
|
|
113
113
|
index.width = 45;
|
|
114
|
-
index.title = '行号';
|
|
114
|
+
index.title = this.$t('行号');
|
|
115
115
|
index.align = 'center';
|
|
116
116
|
if (this.myConfig.fixedIndex){
|
|
117
117
|
index.fixed = 'left';
|
|
@@ -116,21 +116,21 @@ export default {
|
|
|
116
116
|
}
|
|
117
117
|
if (this.myConfig.boundaryValue) {
|
|
118
118
|
if (Number(this.label) < this.myConfig.min) {
|
|
119
|
-
this.alert('输入值不能小于'
|
|
119
|
+
this.alert(this.$t('输入值不能小于{min}', { min: this.myConfig.min }));
|
|
120
120
|
this.label = this.myConfig.min;
|
|
121
121
|
}
|
|
122
122
|
if (Number(this.label) > this.myConfig.max) {
|
|
123
|
-
this.alert('输入值不能大于'
|
|
123
|
+
this.alert(this.$t('输入值不能大于{max}', { max: this.myConfig.max }));
|
|
124
124
|
this.label = this.myConfig.max;
|
|
125
125
|
}
|
|
126
126
|
} else {
|
|
127
127
|
if (Number(this.label) <= this.myConfig.min) {
|
|
128
|
-
this.alert('输入值不能小于等于'
|
|
128
|
+
this.alert(this.$t('输入值不能小于等于{min}', { min: this.myConfig.min }));
|
|
129
129
|
this.setFatherValueFail();
|
|
130
130
|
return false;
|
|
131
131
|
}
|
|
132
132
|
if (Number(this.label) >= this.myConfig.max) {
|
|
133
|
-
this.alert('输入值不能大于等于'
|
|
133
|
+
this.alert(this.$t('输入值不能大于等于{max}', { max: this.myConfig.max }));
|
|
134
134
|
this.setFatherValueFail();
|
|
135
135
|
return false;
|
|
136
136
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
<template v-if="showUnit" #append>
|
|
21
21
|
<span >
|
|
22
|
-
<Tooltip content="最小值" placement="right">{{myConfig.unit}}</Tooltip>
|
|
22
|
+
<Tooltip :content="$t('最小值')" placement="right">{{myConfig.unit}}</Tooltip>
|
|
23
23
|
</span>
|
|
24
24
|
<div v-if="myConfig.unitCustom" :style="'min-width:' + myConfig.unitWidth + 'px'">
|
|
25
25
|
<NumberRangeExpand :render="myConfig.unitRender" />
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</template>
|
|
48
48
|
<template v-if="showUnit" #append>
|
|
49
49
|
<span >
|
|
50
|
-
<Tooltip content="最大值" placement="right">{{myConfig.unit}}</Tooltip>
|
|
50
|
+
<Tooltip :content="$t('最大值')" placement="right">{{myConfig.unit}}</Tooltip>
|
|
51
51
|
</span>
|
|
52
52
|
<div v-if="myConfig.unitCustom" :style="'min-width:' + myConfig.unitWidth + 'px'">
|
|
53
53
|
<NumberRangeExpand :render="myConfig.unitRender" />
|
|
@@ -217,21 +217,21 @@ export default {
|
|
|
217
217
|
}
|
|
218
218
|
if (this.myConfig.boundaryValue) {
|
|
219
219
|
if (Number(this.slabel) < this.myConfig.smin) {
|
|
220
|
-
this.alert('开始值不能小于'
|
|
220
|
+
this.alert(this.$t('开始值不能小于{smin}', { smin: this.myConfig.smin }));
|
|
221
221
|
this.slabel = this.myConfig.smin;
|
|
222
222
|
}
|
|
223
223
|
if (Number(this.slabel) > this.myConfig.smax) {
|
|
224
|
-
this.alert('开始值不能大于'
|
|
224
|
+
this.alert(this.$t('开始值不能大于{smax}', { smax: this.myConfig.smax }));
|
|
225
225
|
this.slabel = this.myConfig.smax;
|
|
226
226
|
}
|
|
227
227
|
} else {
|
|
228
228
|
if (Number(this.slabel) <= this.myConfig.smin) {
|
|
229
|
-
this.alert('开始值不能小于且等于'
|
|
229
|
+
this.alert(this.$t('开始值不能小于且等于{smin}', { smin: this.myConfig.smin }));
|
|
230
230
|
this.setSvalueFail();
|
|
231
231
|
return false;
|
|
232
232
|
}
|
|
233
233
|
if (Number(this.slabel) >= this.myConfig.smax) {
|
|
234
|
-
this.alert('开始值不能大于且等于'
|
|
234
|
+
this.alert(this.$t('开始值不能大于且等于{smax}', { smax: this.myConfig.smax }));
|
|
235
235
|
this.slabel = this.myConfig.smax;
|
|
236
236
|
this.setSvalueFail();
|
|
237
237
|
return false;
|
|
@@ -241,7 +241,7 @@ export default {
|
|
|
241
241
|
if (this.myConfig.rangeCheck) {
|
|
242
242
|
if (this.elabel) {
|
|
243
243
|
if (Number(this.slabel) > Number(this.evalue)) {
|
|
244
|
-
this.alert('开始值不能大于结束值');
|
|
244
|
+
this.alert(this.$t('开始值不能大于结束值'));
|
|
245
245
|
this.slabel = this.evalue;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -275,21 +275,21 @@ export default {
|
|
|
275
275
|
}
|
|
276
276
|
if (this.myConfig.boundaryValue) {
|
|
277
277
|
if (Number(this.elabel) < this.myConfig.emin) {
|
|
278
|
-
this.alert('结束值不能小于'
|
|
278
|
+
this.alert(this.$t('结束值不能小于{emin}', { emin: this.myConfig.emin }));
|
|
279
279
|
this.elabel = this.myConfig.emin;
|
|
280
280
|
}
|
|
281
281
|
if (Number(this.elabel) > this.myConfig.emax) {
|
|
282
|
-
this.alert('结束值不能小于'
|
|
282
|
+
this.alert(this.$t('结束值不能小于{emax}', { emax: this.myConfig.emax }));
|
|
283
283
|
this.elabel = this.myConfig.emax;
|
|
284
284
|
}
|
|
285
285
|
} else {
|
|
286
286
|
if (Number(this.elabel) <= this.myConfig.emin) {
|
|
287
|
-
this.alert('结束值不能小于且等于'
|
|
287
|
+
this.alert(this.$t('结束值不能小于且等于{emin}', { emin: this.myConfig.emin }));
|
|
288
288
|
this.setEvalueFail();
|
|
289
289
|
return false;
|
|
290
290
|
}
|
|
291
291
|
if (Number(this.elabel) >= this.myConfig.emax) {
|
|
292
|
-
this.alert('结束值不能大于且等于'
|
|
292
|
+
this.alert(this.$t('结束值不能大于且等于{emax}', { emax: this.myConfig.emax }));
|
|
293
293
|
this.setEvalueFail();
|
|
294
294
|
return false;
|
|
295
295
|
}
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
<Row type="flex" justify="center" align="middle" :gutter="16">
|
|
22
22
|
<Col v-if="showPreview" style="cursor:pointer">
|
|
23
23
|
<p @click.stop="searchFile">
|
|
24
|
-
预览
|
|
24
|
+
{{ $t('预览') }}
|
|
25
25
|
</p>
|
|
26
26
|
</Col>
|
|
27
27
|
<Col style="cursor:pointer" v-if="showDownBtn" >
|
|
28
28
|
<p @click.stop="downFile">
|
|
29
|
-
下载
|
|
29
|
+
{{ $t('下载') }}
|
|
30
30
|
</p>
|
|
31
31
|
</Col>
|
|
32
32
|
<Col style="cursor:pointer" v-if="!myConfig.readOnly && showDelBtn">
|
|
33
33
|
<p @click.stop="delFile">
|
|
34
|
-
删除
|
|
34
|
+
{{ $t('删除') }}
|
|
35
35
|
</p>
|
|
36
36
|
</Col>
|
|
37
37
|
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
<div ref="photo" v-show="false">
|
|
41
41
|
<li><img :src="imgUrl" :data-original="`${imgUrl}`" style="width: 100%; height: 100%;" /></li>
|
|
42
42
|
</div>
|
|
43
|
-
<Modal :styles="{top:'20px', width:'80%'}" title="文本" v-model="txtPanelFlag" :footer-hide="true">
|
|
43
|
+
<Modal :styles="{top:'20px', width:'80%'}" :title="$t('文本')" v-model="txtPanelFlag" :footer-hide="true">
|
|
44
44
|
<div v-html="textStr"/>
|
|
45
45
|
</Modal>
|
|
46
|
-
<Modal :styles="{top:'20px', width:'80%'}" title="PDF" v-model="pdfFlag" :footer-hide="true">
|
|
46
|
+
<Modal :styles="{top:'20px', width:'80%'}" :title="$t('PDF')" v-model="pdfFlag" :footer-hide="true">
|
|
47
47
|
<div ref="pdf" style="height:630px"/>
|
|
48
48
|
</Modal>
|
|
49
49
|
<UploadBox ref="uploadbox" v-show="false" :config="myConfig" :readOnly="myConfig.readOnly" @success="handleSuccess" :headers="headers" :multiSelect="false">
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
methods: {
|
|
125
125
|
customInit() {
|
|
126
|
+
this.myConfig.placeholder = this.$t('请上传文件');
|
|
126
127
|
if (this?.OmdUrl?.portalConfig?.appendixsize) {
|
|
127
128
|
this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
|
|
128
129
|
}
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
89
89
|
},
|
|
90
90
|
handleFormatError(file) {
|
|
91
91
|
let type = this.myConfig.fileType.join(',');
|
|
92
|
-
this.alert('文件['
|
|
92
|
+
this.alert(this.$t('文件[{name}]的格式不正确,请上传格式为({type})的文件', { name: file.name, type: type }));
|
|
93
93
|
},
|
|
94
94
|
handleMaxSize(file) {
|
|
95
95
|
let error = '';
|
|
@@ -103,13 +103,13 @@ export default {
|
|
|
103
103
|
} else {
|
|
104
104
|
error = size + 'M';
|
|
105
105
|
}
|
|
106
|
-
this.alert('文件['
|
|
106
|
+
this.alert(this.$t('文件[{name}]的文件大小不允许超过{error}', { name: file.name, error: error }));
|
|
107
107
|
},
|
|
108
108
|
handleBeforeUpload() {
|
|
109
109
|
if (!this.myConfig.multiSelect) {
|
|
110
110
|
const check = this.$refs.upload.fileList.length < this.myConfig.fileNum;
|
|
111
111
|
if (!check) {
|
|
112
|
-
this.alert('上传的文件数量过多,请先删除部分已上传文件再上传');
|
|
112
|
+
this.alert(this.$t('上传的文件数量过多,请先删除部分已上传文件再上传'));
|
|
113
113
|
}
|
|
114
114
|
return check;
|
|
115
115
|
} else {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div>
|
|
9
9
|
<Row type="flex" justify="center" align="middle" :gutter="8">
|
|
10
10
|
<Col>
|
|
11
|
-
<Button type="primary" style="width:120px" @click="ok"
|
|
11
|
+
<Button type="primary" style="width:120px" @click="ok" >{{ $t('确认') }}</Button>
|
|
12
12
|
</Col>
|
|
13
13
|
</Row>
|
|
14
14
|
</div>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
this.customRows = [];
|
|
90
90
|
let flag = true;
|
|
91
91
|
if (temp.rows.length === 0) {
|
|
92
|
-
this.$refs.popView.alert('请选择');
|
|
92
|
+
this.$refs.popView.alert(this.$t('请选择'));
|
|
93
93
|
this.popShow = true;
|
|
94
94
|
return true;
|
|
95
95
|
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
if (!flag) {
|
|
106
|
-
this.$refs.popView.alert('选中的节点存在非末级节点,请检查');
|
|
106
|
+
this.$refs.popView.alert(this.$t('选中的节点存在非末级节点,请检查'));
|
|
107
107
|
this.popShow = true;
|
|
108
108
|
} else {
|
|
109
109
|
if (this.config.allowLastNode === true) {
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
},
|
|
179
179
|
|
|
180
180
|
customInit () {
|
|
181
|
+
this.myConfig.btnText = this.$t('添加');
|
|
181
182
|
if (this.config.selectkey) {
|
|
182
183
|
Object.assign(this.queryConfig, this.getQueryConfig(this.config.selectkey));
|
|
183
184
|
if (!this.queryConfig.isConfig) {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
<div>
|
|
45
45
|
<Row type="flex" justify="end" align="middle" :gutter="0">
|
|
46
46
|
<Col>
|
|
47
|
-
<Button style="width:80px" @click="cancel"
|
|
47
|
+
<Button style="width:80px" @click="cancel" >{{ $t('取消') }}</Button>
|
|
48
48
|
</Col>
|
|
49
49
|
<Col style="margin-left:20px">
|
|
50
|
-
<Button type="info" style="width:80px" @click="ok"
|
|
50
|
+
<Button type="info" style="width:80px" @click="ok" >{{ $t('确认') }}</Button>
|
|
51
51
|
</Col>
|
|
52
52
|
</Row>
|
|
53
53
|
</div>
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
this.customRows = [];
|
|
148
148
|
let flag = true;
|
|
149
149
|
if (temp.rows.length === 0) {
|
|
150
|
-
this.$refs.popView.alert('请选择');
|
|
150
|
+
this.$refs.popView.alert(this.$t('请选择'));
|
|
151
151
|
this.popShow = true;
|
|
152
152
|
return true;
|
|
153
153
|
}
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
if (!flag) {
|
|
168
|
-
this.$refs.popView.alert('选中的节点存在非末级节点,请检查');
|
|
168
|
+
this.$refs.popView.alert(this.$t('选中的节点存在非末级节点,请检查'));
|
|
169
169
|
this.popShow = true;
|
|
170
170
|
} else {
|
|
171
171
|
if (allowLastNode === true) {
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
searchParam[this.queryConfig.responseCode] = this.text;
|
|
503
503
|
let data = this.$refs['popView'].popValueChanged(searchParam);
|
|
504
504
|
if (data.length === 0) {
|
|
505
|
-
this.alert((this.myConfig.label ? this.$t(this.myConfig.label) : this.myConfig.label
|
|
505
|
+
this.alert(this.$t('{label}:[{text}]不存在!', { label: this.myConfig.label ? this.$t(this.myConfig.label) : this.myConfig.label, text: this.text }));
|
|
506
506
|
this.text = this.oldText;
|
|
507
507
|
} else {
|
|
508
508
|
this.setCommmonValue(data[0]);
|
|
@@ -44,49 +44,49 @@ DividerBlot.className = 'user-at-span';
|
|
|
44
44
|
Quill.register(DividerBlot);
|
|
45
45
|
|
|
46
46
|
const titleConfig = [
|
|
47
|
-
{Choice:'.ql-bold', title
|
|
48
|
-
{Choice:'.ql-italic', title
|
|
49
|
-
{Choice:'.ql-underline', title
|
|
50
|
-
{Choice:'.ql-header', title
|
|
51
|
-
{Choice:'.ql-strike', title
|
|
52
|
-
{Choice:'.ql-blockquote', title
|
|
53
|
-
{Choice:'.ql-code', title
|
|
54
|
-
{Choice:'.ql-code-block', title
|
|
47
|
+
{Choice:'.ql-bold', title:$t('加粗')},
|
|
48
|
+
{Choice:'.ql-italic', title:$t('斜体')},
|
|
49
|
+
{Choice:'.ql-underline', title:$t('下划线')},
|
|
50
|
+
{Choice:'.ql-header', title:$t('段落格式')},
|
|
51
|
+
{Choice:'.ql-strike', title:$t('删除线')},
|
|
52
|
+
{Choice:'.ql-blockquote', title:$t('块引用')},
|
|
53
|
+
{Choice:'.ql-code', title:$t('插入代码')},
|
|
54
|
+
{Choice:'.ql-code-block', title:$t('插入代码段')},
|
|
55
55
|
// {Choice:'.ql-font', title:'字体'},
|
|
56
56
|
// {Choice:'.ql-size', title:'字体大小'},
|
|
57
|
-
{Choice:'.ql-list[value="ordered"]', title
|
|
58
|
-
{Choice:'.ql-list[value="bullet"]', title
|
|
59
|
-
{Choice:'.ql-direction', title
|
|
57
|
+
{Choice:'.ql-list[value="ordered"]', title:$t('编号列表')},
|
|
58
|
+
{Choice:'.ql-list[value="bullet"]', title:$t('项目列表')},
|
|
59
|
+
{Choice:'.ql-direction', title:$t('文本方向')},
|
|
60
60
|
{Choice:'.ql-header[value="1"]', title:'h1'},
|
|
61
61
|
{Choice:'.ql-header[value="2"]', title:'h2'},
|
|
62
|
-
{Choice:'.ql-align', title
|
|
63
|
-
{Choice:'.ql-color', title
|
|
64
|
-
{Choice:'.ql-background', title
|
|
65
|
-
{Choice:'.ql-image', title
|
|
66
|
-
{Choice:'.ql-video', title
|
|
67
|
-
{Choice:'.ql-link', title
|
|
68
|
-
{Choice:'.ql-formula', title
|
|
69
|
-
{Choice:'.ql-clean', title
|
|
70
|
-
{Choice:'.ql-script[value="sub"]', title
|
|
71
|
-
{Choice:'.ql-script[value="super"]', title
|
|
72
|
-
{Choice:'.ql-indent[value="-1"]', title
|
|
73
|
-
{Choice:'.ql-indent[value="+1"]', title
|
|
74
|
-
{Choice:'.ql-header .ql-picker-label', title
|
|
75
|
-
{Choice:'.ql-header .ql-picker-item[data-value="1"]', title
|
|
76
|
-
{Choice:'.ql-header .ql-picker-item[data-value="2"]', title
|
|
77
|
-
{Choice:'.ql-header .ql-picker-item[data-value="3"]', title
|
|
78
|
-
{Choice:'.ql-header .ql-picker-item[data-value="4"]', title
|
|
79
|
-
{Choice:'.ql-header .ql-picker-item[data-value="5"]', title
|
|
80
|
-
{Choice:'.ql-header .ql-picker-item[data-value="6"]', title
|
|
81
|
-
{Choice:'.ql-header .ql-picker-item:last-child', title
|
|
62
|
+
{Choice:'.ql-align', title:$t('对齐方式')},
|
|
63
|
+
{Choice:'.ql-color', title:$t('字体颜色')},
|
|
64
|
+
{Choice:'.ql-background', title:$t('背景颜色')},
|
|
65
|
+
{Choice:'.ql-image', title:$t('图像')},
|
|
66
|
+
{Choice:'.ql-video', title:$t('视频')},
|
|
67
|
+
{Choice:'.ql-link', title:$t('添加链接')},
|
|
68
|
+
{Choice:'.ql-formula', title:$t('插入公式')},
|
|
69
|
+
{Choice:'.ql-clean', title:$t('清除字体格式')},
|
|
70
|
+
{Choice:'.ql-script[value="sub"]', title:$t('下标')},
|
|
71
|
+
{Choice:'.ql-script[value="super"]', title:$t('上标')},
|
|
72
|
+
{Choice:'.ql-indent[value="-1"]', title:$t('向左缩进')},
|
|
73
|
+
{Choice:'.ql-indent[value="+1"]', title:$t('向右缩进')},
|
|
74
|
+
{Choice:'.ql-header .ql-picker-label', title:$t('标题大小')},
|
|
75
|
+
{Choice:'.ql-header .ql-picker-item[data-value="1"]', title:$t('标题一')},
|
|
76
|
+
{Choice:'.ql-header .ql-picker-item[data-value="2"]', title:$t('标题二')},
|
|
77
|
+
{Choice:'.ql-header .ql-picker-item[data-value="3"]', title:$t('标题三')},
|
|
78
|
+
{Choice:'.ql-header .ql-picker-item[data-value="4"]', title:$t('标题四')},
|
|
79
|
+
{Choice:'.ql-header .ql-picker-item[data-value="5"]', title:$t('标题五')},
|
|
80
|
+
{Choice:'.ql-header .ql-picker-item[data-value="6"]', title:$t('标题六')},
|
|
81
|
+
{Choice:'.ql-header .ql-picker-item:last-child', title:$t('标准')},
|
|
82
82
|
//{Choice:'.ql-size .ql-picker-item[data-value="small"]', title:'小号'},
|
|
83
83
|
//{Choice:'.ql-size .ql-picker-item[data-value="large"]', title:'大号'},
|
|
84
84
|
//{Choice:'.ql-size .ql-picker-item[data-value="huge"]', title:'超大号'},
|
|
85
85
|
//{Choice:'.ql-size .ql-picker-item:nth-child(2)', title:'标准'},
|
|
86
|
-
{Choice:'.ql-align .ql-picker-item:first-child', title
|
|
87
|
-
{Choice:'.ql-align .ql-picker-item[data-value="center"]', title
|
|
88
|
-
{Choice:'.ql-align .ql-picker-item[data-value="right"]', title
|
|
89
|
-
{Choice:'.ql-align .ql-picker-item[data-value="justify"]', title
|
|
86
|
+
{Choice:'.ql-align .ql-picker-item:first-child', title:$t('居左对齐')},
|
|
87
|
+
{Choice:'.ql-align .ql-picker-item[data-value="center"]', title:$t('居中对齐')},
|
|
88
|
+
{Choice:'.ql-align .ql-picker-item[data-value="right"]', title:$t('居右对齐')},
|
|
89
|
+
{Choice:'.ql-align .ql-picker-item[data-value="justify"]', title:$t('两端对齐')}
|
|
90
90
|
]
|
|
91
91
|
|
|
92
92
|
const props = defineProps(['value','myConfig','toolbarOptions'])
|
|
@@ -112,7 +112,7 @@ const data = reactive({
|
|
|
112
112
|
modules: {
|
|
113
113
|
toolbar: toolbarOptions
|
|
114
114
|
},
|
|
115
|
-
placeholder: '请输入内容...'
|
|
115
|
+
placeholder: $t('请输入内容...')
|
|
116
116
|
}
|
|
117
117
|
})
|
|
118
118
|
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
// 调整光标到最后
|
|
124
124
|
quill.setSelection(length + 1);
|
|
125
125
|
} else {
|
|
126
|
-
this.$message.error('图片插入失败');
|
|
126
|
+
this.$message.error(this.$t('图片插入失败'));
|
|
127
127
|
}
|
|
128
128
|
// loading动画消失
|
|
129
129
|
this.quillUpdateImg = false;
|
|
@@ -132,20 +132,20 @@ export default {
|
|
|
132
132
|
uploadError () {
|
|
133
133
|
// loading动画消失
|
|
134
134
|
this.quillUpdateImg = false;
|
|
135
|
-
this.$message.error('图片插入失败');
|
|
135
|
+
this.$message.error(this.$t('图片插入失败'));
|
|
136
136
|
},
|
|
137
137
|
addQuillTitle () {
|
|
138
138
|
// eslint-disable-next-line one-var
|
|
139
139
|
const oToolBar = document.querySelector('.ql-toolbar'),
|
|
140
140
|
aButton = oToolBar.querySelectorAll('button'),
|
|
141
141
|
aSelect = oToolBar.querySelectorAll('select');
|
|
142
|
-
aButton.forEach(
|
|
142
|
+
aButton.forEach((item) => {
|
|
143
143
|
if (item.className === 'ql-script') {
|
|
144
|
-
item.value === 'sub' ? (item.title = '下标') : (item.title = '上标');
|
|
144
|
+
item.value === 'sub' ? (item.title = this.$t('下标')) : (item.title = this.$t('上标'));
|
|
145
145
|
} else if (item.className === 'ql-indent') {
|
|
146
146
|
item.value === '+1'
|
|
147
|
-
? (item.title = '向右缩进')
|
|
148
|
-
: (item.title = '向左缩进');
|
|
147
|
+
? (item.title = this.$t('向右缩进'))
|
|
148
|
+
: (item.title = this.$t('向左缩进'));
|
|
149
149
|
} else {
|
|
150
150
|
// eslint-disable-next-line no-undef
|
|
151
151
|
item.title = titleConfig[item.classList[0]];
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</Row>
|
|
27
27
|
<Dropdown v-if="!showType" @on-click="action">
|
|
28
28
|
<a href="javascript:void(0)">
|
|
29
|
-
操作
|
|
29
|
+
{{ $t('操作') }}
|
|
30
30
|
<CommonIcon type="ios-arrow-down"></CommonIcon>
|
|
31
31
|
</a>
|
|
32
32
|
<template #list>
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
<template v-if="tooltype === 'batch'">
|
|
41
41
|
<Row v-if="visible" type="flex" justify="end" :gutter="8">
|
|
42
42
|
<Col v-if="showAddData">
|
|
43
|
-
<Button icon="ios-add" @click="action('addData')"
|
|
43
|
+
<Button icon="ios-add" @click="action('addData')" >{{ $t('新建') }}</Button>
|
|
44
44
|
</Col>
|
|
45
45
|
<Col>
|
|
46
46
|
<Dropdown v-if="showBatchAction" @on-click="action">
|
|
47
47
|
<Button>
|
|
48
|
-
批量操作
|
|
48
|
+
{{ $t('批量操作') }}
|
|
49
49
|
<CommonIcon type="ios-arrow-down"></CommonIcon>
|
|
50
50
|
</Button>
|
|
51
51
|
<template #list>
|
|
@@ -254,13 +254,13 @@ export default {
|
|
|
254
254
|
if (this.isBillImport()) {
|
|
255
255
|
let importconfig = {};
|
|
256
256
|
if (this.myConfig.importbtn && JSON.stringify(this.myConfig.importbtn) !== '{}') {
|
|
257
|
-
importconfig = Object.assign({},{iconcls:'_download',name:'downTemplate',text:'导入模版'},this.myConfig.backbtn) ;
|
|
257
|
+
importconfig = Object.assign({},{iconcls:'_download',name:'downTemplate',text:this.$t('导入模版')},this.myConfig.backbtn) ;
|
|
258
258
|
importconfig.name = 'downTemplate';
|
|
259
259
|
} else {
|
|
260
260
|
importconfig = {
|
|
261
261
|
iconcls:'_download',
|
|
262
262
|
name:'downTemplate',
|
|
263
|
-
text:'导入模版'
|
|
263
|
+
text:this.$t('导入模版')
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
266
|
importconfig.visible = true;
|
|
@@ -270,13 +270,13 @@ export default {
|
|
|
270
270
|
if (this.showback) {
|
|
271
271
|
let back = {};
|
|
272
272
|
if (this.myConfig.backbtn && JSON.stringify(this.myConfig.backbtn) !== '{}') {
|
|
273
|
-
back = Object.assign({},{iconcls:'_back',name:'back',text:'返回'},this.myConfig.backbtn) ;
|
|
273
|
+
back = Object.assign({},{iconcls:'_back',name:'back',text:this.$t('返回')},this.myConfig.backbtn) ;
|
|
274
274
|
back.name = 'back';
|
|
275
275
|
} else {
|
|
276
276
|
back = {
|
|
277
277
|
iconcls:'_back',
|
|
278
278
|
name:'back',
|
|
279
|
-
text:'返回'
|
|
279
|
+
text:this.$t('返回')
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
back.visible = true;
|
|
@@ -75,6 +75,7 @@ export default {
|
|
|
75
75
|
init() {
|
|
76
76
|
//获取初期默认值
|
|
77
77
|
this.myConfig = Object.assign({}, this.globalConfig, this.myConfig);
|
|
78
|
+
this.myConfig.emptyText = this.$t('暂无数据');
|
|
78
79
|
|
|
79
80
|
//获取配置
|
|
80
81
|
if (this.config) {
|
|
@@ -82,7 +83,7 @@ export default {
|
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
let rootCode = '0';
|
|
85
|
-
let rootName = '根节点';
|
|
86
|
+
let rootName = this.$t('根节点');
|
|
86
87
|
if (this.myConfig.showRootNode) {
|
|
87
88
|
if (this.myConfig.rootNode !== undefined && this.myConfig.rootNode.code !== undefined) {
|
|
88
89
|
rootCode = this.myConfig.rootNode.code;
|
|
@@ -549,7 +550,7 @@ export default {
|
|
|
549
550
|
checkData(data) {
|
|
550
551
|
let index = data.findIndex(el => el[this.myConfig.idField] === el[this.myConfig.parentField]);
|
|
551
552
|
if (index > -1) {
|
|
552
|
-
this.alert('存在'
|
|
553
|
+
this.alert(this.$t('存在{idField}与{parentField}都为[{idValue}]的数据,请检查', { idField: this.myConfig.idField, parentField: this.myConfig.parentField, idValue: data[index][this.myConfig.idField] }),null,2);
|
|
553
554
|
return false;
|
|
554
555
|
}
|
|
555
556
|
return true;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<template>
|
|
26
26
|
<div >
|
|
27
27
|
<template v-if="modeltype==='upload'">
|
|
28
|
-
<Modal title="上传文件" v-model="showUpload" class-name="vertical-center-modal" :footer-hide="true">
|
|
28
|
+
<Modal :title="$t('上传文件')" v-model="showUpload" class-name="vertical-center-modal" :footer-hide="true">
|
|
29
29
|
<div class="demo-spin-col">
|
|
30
30
|
<Row v-if="showType" type="flex" justify="center" :gutter="4" style="margin-bottom: 20px">
|
|
31
31
|
<Col>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</Row>
|
|
39
39
|
<Row type="flex" justify="center" :gutter="4">
|
|
40
40
|
<Col>
|
|
41
|
-
<Button @click="upload"
|
|
41
|
+
<Button @click="upload">{{ $t('上传') }}</Button>
|
|
42
42
|
</Col>
|
|
43
43
|
<Col>
|
|
44
44
|
<Poptip trigger="focus">
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
:on-success="handleSuccess"
|
|
58
58
|
:show-upload-list="false"
|
|
59
59
|
:action="url">
|
|
60
|
-
<Button
|
|
60
|
+
<Button>{{ $t('浏览') }}</Button>
|
|
61
61
|
</Upload>
|
|
62
62
|
</Col>
|
|
63
63
|
</Row>
|
|
64
64
|
<Spin v-show="loading" fix>
|
|
65
65
|
<CommonIcon type="ios-loading" size="18" class="demo-spin-icon-load"></CommonIcon>
|
|
66
|
-
<div
|
|
66
|
+
<div>{{ $t('导入中') }}</div>
|
|
67
67
|
</Spin>
|
|
68
68
|
</div>
|
|
69
69
|
</Modal>
|
|
70
70
|
</template>
|
|
71
71
|
<template v-if="modeltype === 'down'">
|
|
72
|
-
<Modal v-model="showUpload" title="选择模版" @on-ok="downTemplate" class-name="vertical-center-modal">
|
|
72
|
+
<Modal v-model="showUpload" :title="$t('选择模版')" @on-ok="downTemplate" class-name="vertical-center-modal">
|
|
73
73
|
<RadioGroup v-model="type">
|
|
74
74
|
<Radio v-for="(item,index) in myConfig.typeData" :key="index" :label="item.code">
|
|
75
75
|
<span>{{item.name}}</span>
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
if (this.name) {
|
|
114
114
|
return this.name;
|
|
115
115
|
} else {
|
|
116
|
-
return '请选择Excel文件';
|
|
116
|
+
return this.$t('请选择Excel文件');
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
},
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
},
|
|
199
199
|
handleFormatError (file) {
|
|
200
200
|
let type = this.myConfig.fileType.join(',');
|
|
201
|
-
this.alert('文件['
|
|
201
|
+
this.alert(this.$t('文件[{name}]的格式不正确,请上传格式为({type})的文件', { name: file.name, type: type }));
|
|
202
202
|
},
|
|
203
203
|
handleSuccess(res) {
|
|
204
204
|
if (res && res.returncode !== '0') {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
this.name = '';
|
|
208
208
|
this.alert(res.data);
|
|
209
209
|
} else {
|
|
210
|
-
this.alert(res.elapsed,'导入成功');
|
|
210
|
+
this.alert(res.elapsed, this.$t('导入成功'));
|
|
211
211
|
this.showUpload = false;
|
|
212
212
|
this.file = null;
|
|
213
213
|
this.name = '';
|