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/package.json
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
<div v-if="!!config.hide">
|
|
14
14
|
<p v-if="hideFlag" @click.stop="hide" class="efuture-hide-text">
|
|
15
15
|
<Icon type="ios-arrow-up" />
|
|
16
|
-
<span>
|
|
17
|
-
收起查询条件
|
|
16
|
+
<span>
|
|
17
|
+
{{ $t('收起查询条件') }}
|
|
18
18
|
</span>
|
|
19
19
|
</p>
|
|
20
20
|
<p v-else @click.stop="hide" class="efuture-hide-text"><Icon type="ios-arrow-down" />
|
|
21
|
-
<span
|
|
21
|
+
<span>{{ $t('展开查询条件') }}</span>
|
|
22
22
|
</p>
|
|
23
23
|
</div>
|
|
24
24
|
</template>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
myConfig: {
|
|
10
10
|
},
|
|
11
|
-
clearInfo:'
|
|
11
|
+
clearInfo:'',
|
|
12
12
|
conditionPrior:[],
|
|
13
13
|
condition:[],
|
|
14
14
|
dataType:{},
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
this.myConfig = Object.assign({}, this.myConfig, this.config);
|
|
52
52
|
}
|
|
53
53
|
if (this.isPop) {
|
|
54
|
-
this.clearInfo = '清空';
|
|
54
|
+
this.clearInfo = this.$t('清空');
|
|
55
55
|
} else {
|
|
56
|
-
this.clearInfo = '重置';
|
|
56
|
+
this.clearInfo = this.$t('重置');
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
if (this.myConfig.clearInfo) {
|
|
@@ -78,7 +78,7 @@ import { resolveComponent } from 'vue';
|
|
|
78
78
|
this.myConfig.selector = [];
|
|
79
79
|
let obj = {};
|
|
80
80
|
obj.code = '1';
|
|
81
|
-
obj.name = '筛选条件';
|
|
81
|
+
obj.name = this.$t('筛选条件');
|
|
82
82
|
if (this.myConfig.rootName){
|
|
83
83
|
obj.name = this.myConfig.rootName;
|
|
84
84
|
}
|
|
@@ -105,7 +105,7 @@ import { resolveComponent } from 'vue';
|
|
|
105
105
|
root.render = this.renderRootStaticContent;
|
|
106
106
|
root.children = [];
|
|
107
107
|
let obj = {
|
|
108
|
-
title:'连接关系',
|
|
108
|
+
title:this.$t('连接关系'),
|
|
109
109
|
operflag:true,
|
|
110
110
|
selectorClass:2,
|
|
111
111
|
selector:this.myConfig.selector[0].code,
|
|
@@ -115,7 +115,7 @@ import { resolveComponent } from 'vue';
|
|
|
115
115
|
render:this.renderContent,
|
|
116
116
|
children:[
|
|
117
117
|
{
|
|
118
|
-
title:'条件',
|
|
118
|
+
title:this.$t('条件'),
|
|
119
119
|
operflag:true,
|
|
120
120
|
isConnector:false,
|
|
121
121
|
expand: true,
|
|
@@ -130,13 +130,13 @@ import { resolveComponent } from 'vue';
|
|
|
130
130
|
if (this.myConfig.rootName) {
|
|
131
131
|
root.title = this.myConfig.rootName;
|
|
132
132
|
} else {
|
|
133
|
-
root.title = '筛选条件';
|
|
133
|
+
root.title = this.$t('筛选条件');
|
|
134
134
|
}
|
|
135
135
|
root.expand =true;
|
|
136
136
|
root.children = [];
|
|
137
137
|
root.render = this.renderRootStaticContent;
|
|
138
138
|
root.children.push({
|
|
139
|
-
title: '连接关系',
|
|
139
|
+
title: this.$t('连接关系'),
|
|
140
140
|
isConnector:true,
|
|
141
141
|
expand: true,
|
|
142
142
|
operflag:false,
|
|
@@ -156,7 +156,7 @@ import { resolveComponent } from 'vue';
|
|
|
156
156
|
obj.render=this.renderRootStaticContent;
|
|
157
157
|
obj.children = [];
|
|
158
158
|
let temp = {
|
|
159
|
-
title:'连接关系',
|
|
159
|
+
title:this.$t('连接关系'),
|
|
160
160
|
operflag:true,
|
|
161
161
|
selectorClass:3,
|
|
162
162
|
selector:el.code,
|
|
@@ -166,7 +166,7 @@ import { resolveComponent } from 'vue';
|
|
|
166
166
|
render:this.renderContent,
|
|
167
167
|
children:[
|
|
168
168
|
{
|
|
169
|
-
title:'条件',
|
|
169
|
+
title:this.$t('条件'),
|
|
170
170
|
operflag:true,
|
|
171
171
|
isConnector:false,
|
|
172
172
|
expand: true,
|
|
@@ -262,9 +262,9 @@ import { resolveComponent } from 'vue';
|
|
|
262
262
|
const children = data.children || [];
|
|
263
263
|
let nextClass = Number(data.selectorClass) + 1;
|
|
264
264
|
let isConnector = !data.isConnector;
|
|
265
|
-
let title ='条件';
|
|
265
|
+
let title =this.$t('条件');
|
|
266
266
|
if (isConnector) {
|
|
267
|
-
title = '连接关系';
|
|
267
|
+
title = this.$t('连接关系');
|
|
268
268
|
let flag = false;
|
|
269
269
|
for (let i=0; i<children.length; i++) {
|
|
270
270
|
if (children[i].isConnector) {
|
|
@@ -31,58 +31,60 @@
|
|
|
31
31
|
lineNum:12,
|
|
32
32
|
labelWidth:10,
|
|
33
33
|
showLabel:false,
|
|
34
|
-
items:[
|
|
35
|
-
name:'field',
|
|
36
|
-
type:'ComboBox',
|
|
37
|
-
codeWithName:false,
|
|
38
|
-
valueChanged:this.fieldChanged,
|
|
39
|
-
colNum:3,
|
|
40
|
-
// size:'small',
|
|
41
|
-
isFull:true
|
|
42
|
-
},{
|
|
43
|
-
name:'oper',
|
|
44
|
-
type:'ComboBox',
|
|
45
|
-
codeWithName:false,
|
|
46
|
-
clearable:false,
|
|
47
|
-
//size:'small',
|
|
48
|
-
colNum:2,
|
|
49
|
-
data:[{
|
|
50
|
-
name: '等于',
|
|
51
|
-
code: '=='
|
|
52
|
-
}],
|
|
53
|
-
defaultValue:'==',
|
|
54
|
-
isFull:true
|
|
55
|
-
},{
|
|
56
|
-
name:'value',
|
|
57
|
-
type:'TextBox',
|
|
58
|
-
//size:'small',
|
|
59
|
-
readOnly:true,
|
|
60
|
-
colNum:3,
|
|
61
|
-
isFull:true
|
|
62
|
-
}]
|
|
34
|
+
items:[]
|
|
63
35
|
},
|
|
64
36
|
formConnector:{
|
|
65
37
|
lineNum:8,
|
|
66
38
|
labelWidth:30,
|
|
67
39
|
showLabel:false,
|
|
68
|
-
items:[
|
|
69
|
-
name:'connector',
|
|
70
|
-
type:'ComboBox',
|
|
71
|
-
codeWithName:false,
|
|
72
|
-
//size:'small',
|
|
73
|
-
colNum:2,
|
|
74
|
-
data:[{'code':'$or','name':'或'}, {'code':'$and','name':'且'}],
|
|
75
|
-
defaultValue:'$and',
|
|
76
|
-
style:{
|
|
77
|
-
'min-width':'50px'
|
|
78
|
-
},
|
|
79
|
-
clearable:false
|
|
80
|
-
}]
|
|
40
|
+
items:[]
|
|
81
41
|
},
|
|
82
42
|
dataType:{}
|
|
83
43
|
};
|
|
84
44
|
},
|
|
85
45
|
created () {
|
|
46
|
+
this.form.items = [{
|
|
47
|
+
name:'field',
|
|
48
|
+
type:'ComboBox',
|
|
49
|
+
codeWithName:false,
|
|
50
|
+
valueChanged:this.fieldChanged,
|
|
51
|
+
colNum:3,
|
|
52
|
+
// size:'small',
|
|
53
|
+
isFull:true
|
|
54
|
+
},{
|
|
55
|
+
name:'oper',
|
|
56
|
+
type:'ComboBox',
|
|
57
|
+
codeWithName:false,
|
|
58
|
+
clearable:false,
|
|
59
|
+
//size:'small',
|
|
60
|
+
colNum:2,
|
|
61
|
+
data:[{
|
|
62
|
+
name: this.$t('等于'),
|
|
63
|
+
code: '=='
|
|
64
|
+
}],
|
|
65
|
+
defaultValue:'==',
|
|
66
|
+
isFull:true
|
|
67
|
+
},{
|
|
68
|
+
name:'value',
|
|
69
|
+
type:'TextBox',
|
|
70
|
+
//size:'small',
|
|
71
|
+
readOnly:true,
|
|
72
|
+
colNum:3,
|
|
73
|
+
isFull:true
|
|
74
|
+
}];
|
|
75
|
+
this.formConnector.items = [{
|
|
76
|
+
name:'connector',
|
|
77
|
+
type:'ComboBox',
|
|
78
|
+
codeWithName:false,
|
|
79
|
+
//size:'small',
|
|
80
|
+
colNum:2,
|
|
81
|
+
data:[{'code':'$or','name':this.$t('或')}, {'code':'$and','name':this.$t('且')}],
|
|
82
|
+
defaultValue:'$and',
|
|
83
|
+
style:{
|
|
84
|
+
'min-width':'50px'
|
|
85
|
+
},
|
|
86
|
+
clearable:false
|
|
87
|
+
}];
|
|
86
88
|
this.init();
|
|
87
89
|
},
|
|
88
90
|
props:{
|
|
@@ -147,30 +149,30 @@
|
|
|
147
149
|
getOperData(el) {
|
|
148
150
|
let tempData = [];
|
|
149
151
|
tempData.push({
|
|
150
|
-
name: '等于',
|
|
152
|
+
name: this.$t('等于'),
|
|
151
153
|
code: '=='
|
|
152
154
|
});
|
|
153
155
|
if (el.type === 'DateBox' || el.type === 'NumberBox') {
|
|
154
156
|
tempData.push({
|
|
155
|
-
name: '不小于',
|
|
157
|
+
name: this.$t('不小于'),
|
|
156
158
|
code: '>='
|
|
157
159
|
});
|
|
158
160
|
tempData.push({
|
|
159
|
-
name: '不大于',
|
|
161
|
+
name: this.$t('不大于'),
|
|
160
162
|
code: '<='
|
|
161
163
|
});
|
|
162
164
|
tempData.push({
|
|
163
|
-
name: '不等于',
|
|
165
|
+
name: this.$t('不等于'),
|
|
164
166
|
code: '<>'
|
|
165
167
|
});
|
|
166
|
-
}
|
|
168
|
+
}
|
|
167
169
|
if (el.type === 'TextBox') {
|
|
168
170
|
tempData.push({
|
|
169
|
-
name: '不等于',
|
|
171
|
+
name: this.$t('不等于'),
|
|
170
172
|
code: '<>'
|
|
171
173
|
});
|
|
172
174
|
tempData.push({
|
|
173
|
-
name: '包含',
|
|
175
|
+
name: this.$t('包含'),
|
|
174
176
|
code: 'LIKE'
|
|
175
177
|
});
|
|
176
178
|
}
|
|
@@ -201,7 +203,7 @@
|
|
|
201
203
|
}
|
|
202
204
|
} else {
|
|
203
205
|
oper.data = [{
|
|
204
|
-
name: '等于',
|
|
206
|
+
name: this.$t('等于'),
|
|
205
207
|
code: '=='
|
|
206
208
|
}];
|
|
207
209
|
oper.readOnly = true;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
<Col span='6'>
|
|
8
8
|
<Row type="flex" justify="end" align="middle" >
|
|
9
9
|
<Col>
|
|
10
|
-
<Button customIcon="iconfont icon-custom-search" type="primary" style="width:80px" @click="search"
|
|
10
|
+
<Button customIcon="iconfont icon-custom-search" type="primary" style="width:80px" @click="search">{{ $t('查询') }}</Button>
|
|
11
11
|
</COl>
|
|
12
12
|
<Col style="margin-left:10px">
|
|
13
|
-
<Button customIcon="iconfont icon-custom-reset" style="width:80px" @click="doClear"
|
|
13
|
+
<Button customIcon="iconfont icon-custom-reset" style="width:80px" @click="doClear">{{ $t('重置') }}</Button>
|
|
14
14
|
</Col>
|
|
15
15
|
</Row>
|
|
16
16
|
</Col>
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
<ControlBox v-if="hackReset" ref="editors" :config="editorsConfig" ></ControlBox>
|
|
9
9
|
</Col>
|
|
10
10
|
<Col>
|
|
11
|
-
<Button icon="ios-search" @click="search"
|
|
11
|
+
<Button icon="ios-search" @click="search" >{{ $t('查询') }}</Button>
|
|
12
12
|
</Col>
|
|
13
13
|
<Col>
|
|
14
14
|
<Button icon="ios-refresh" @click="clear">{{clearInfo}}</Button>
|
|
15
15
|
</Col>
|
|
16
16
|
<Col>
|
|
17
|
-
<Button icon="ios-search" type="primary" @click="showHighSearch"
|
|
17
|
+
<Button icon="ios-search" type="primary" @click="showHighSearch">{{ $t('高级查询') }}</Button>
|
|
18
18
|
</Col>
|
|
19
19
|
</Row>
|
|
20
20
|
<SearchGrid ref="searchgrid" :config="config" :dictData="searchDictData" :dataType="dataType" @search="search"/>
|
|
@@ -17,23 +17,23 @@
|
|
|
17
17
|
</style>
|
|
18
18
|
<template>
|
|
19
19
|
<div>
|
|
20
|
-
<Modal v-model="modalSearch" :width="900" title="高级查询" class-name="vertical-center-modal" :footer-hide="true">
|
|
20
|
+
<Modal v-model="modalSearch" :width="900" :title="$t('高级查询')" class-name="vertical-center-modal" :footer-hide="true">
|
|
21
21
|
<div style="padding:10px">
|
|
22
22
|
<Row type="flex" :gutter="10" justify="start" align="middle">
|
|
23
23
|
<Col>
|
|
24
|
-
<Button icon="ios-add" type="primary" @click="addCondition"
|
|
24
|
+
<Button icon="ios-add" type="primary" @click="addCondition">{{ $t('新建') }}</Button>
|
|
25
25
|
</Col>
|
|
26
26
|
<Col>
|
|
27
|
-
<Button icon="ios-remove" type="primary" @click="delCondition"
|
|
27
|
+
<Button icon="ios-remove" type="primary" @click="delCondition">{{ $t('删除') }}</Button>
|
|
28
28
|
</Col>
|
|
29
29
|
<Col>
|
|
30
|
-
<Button icon="ios-close" type="primary" @click="clearCondition"
|
|
30
|
+
<Button icon="ios-close" type="primary" @click="clearCondition">{{ $t('清空') }}</Button>
|
|
31
31
|
</Col>
|
|
32
32
|
<Col>
|
|
33
|
-
<Button icon="ios-redo-outline" style="float:right;" @click="backCondition"
|
|
33
|
+
<Button icon="ios-redo-outline" style="float:right;" @click="backCondition">{{ $t('取消') }}</Button>
|
|
34
34
|
</Col>
|
|
35
35
|
<Col>
|
|
36
|
-
<Button icon="ios-search" style="float:right;margin-right:5px;" type="primary" @click="searchCondition"
|
|
36
|
+
<Button icon="ios-search" style="float:right;margin-right:5px;" type="primary" @click="searchCondition">{{ $t('确定查询') }}</Button>
|
|
37
37
|
</Col>
|
|
38
38
|
</Row>
|
|
39
39
|
<EditGrid ref="grid" :config="gridConfig" :dictData="dictData">
|
|
@@ -60,81 +60,10 @@ export default {
|
|
|
60
60
|
showIndex:false,
|
|
61
61
|
height:0.5,
|
|
62
62
|
cellbeginedit:this.cellbeginedit,
|
|
63
|
-
items:[
|
|
64
|
-
label:'左括号',
|
|
65
|
-
name:'bracket_left',
|
|
66
|
-
type:'ComboBox',
|
|
67
|
-
width:80,
|
|
68
|
-
align:'center',
|
|
69
|
-
codeWithName:false,
|
|
70
|
-
data:[{code:'1',name:'('},{code:'2',name:'(('}]
|
|
71
|
-
},{
|
|
72
|
-
label:'条件字段',
|
|
73
|
-
name:'field',
|
|
74
|
-
type:'ComboBox',
|
|
75
|
-
codeWithName:false,
|
|
76
|
-
align:'center',
|
|
77
|
-
contentAlign:'left',
|
|
78
|
-
dictkey:'FIELD'
|
|
79
|
-
}, {
|
|
80
|
-
label:'运算',
|
|
81
|
-
name:'calculator',
|
|
82
|
-
type:'ComboBox',
|
|
83
|
-
width:100,
|
|
84
|
-
align:'center',
|
|
85
|
-
codeWithName:false,
|
|
86
|
-
clearable:false,
|
|
87
|
-
data:[{
|
|
88
|
-
name: '等于',
|
|
89
|
-
code: '=='
|
|
90
|
-
}, {
|
|
91
|
-
name: '大于',
|
|
92
|
-
code: '>'
|
|
93
|
-
}, {
|
|
94
|
-
name: '大于等于',
|
|
95
|
-
code: '>='
|
|
96
|
-
}, {
|
|
97
|
-
name: '小于',
|
|
98
|
-
code: '<'
|
|
99
|
-
}, {
|
|
100
|
-
name: '小于等于',
|
|
101
|
-
code: '<='
|
|
102
|
-
}, {
|
|
103
|
-
name: '不等于',
|
|
104
|
-
code: '<>'
|
|
105
|
-
}, {
|
|
106
|
-
name: '包含',
|
|
107
|
-
code: 'LIKE'
|
|
108
|
-
}],
|
|
109
|
-
defaultValue:'=='
|
|
110
|
-
}, {
|
|
111
|
-
label:'条件值',
|
|
112
|
-
name:'editors',
|
|
113
|
-
type:'TextBox',
|
|
114
|
-
align:'center',
|
|
115
|
-
contentAlign:'left',
|
|
116
|
-
updateCellConfig:this.updateCellConfig
|
|
117
|
-
},{
|
|
118
|
-
label:'右括号',
|
|
119
|
-
name:'bracket_right',
|
|
120
|
-
type:'ComboBox',
|
|
121
|
-
width:80,
|
|
122
|
-
align:'center',
|
|
123
|
-
codeWithName:false,
|
|
124
|
-
data:[{code:'1',name:')'},{code:'2',name:'))'}]
|
|
125
|
-
},{
|
|
126
|
-
label:'关系',
|
|
127
|
-
name:'relationship',
|
|
128
|
-
type:'ComboBox',
|
|
129
|
-
width:80,
|
|
130
|
-
align:'center',
|
|
131
|
-
codeWithName:false,
|
|
132
|
-
clearable:false,
|
|
133
|
-
data:[{code:'1',name:'且'},{code:'2',name:'或'}]
|
|
134
|
-
}]
|
|
63
|
+
items:[]
|
|
135
64
|
},
|
|
136
65
|
initData:[],
|
|
137
|
-
condition:[],
|
|
66
|
+
condition:[],
|
|
138
67
|
bracket:[],
|
|
139
68
|
bracketLeft:0,
|
|
140
69
|
bracketRight:0
|
|
@@ -157,6 +86,78 @@ export default {
|
|
|
157
86
|
},
|
|
158
87
|
},
|
|
159
88
|
created() {
|
|
89
|
+
this.gridConfig.items = [{
|
|
90
|
+
label: this.$t('左括号'),
|
|
91
|
+
name:'bracket_left',
|
|
92
|
+
type:'ComboBox',
|
|
93
|
+
width:80,
|
|
94
|
+
align:'center',
|
|
95
|
+
codeWithName:false,
|
|
96
|
+
data:[{code:'1',name:'('},{code:'2',name:'(('}]
|
|
97
|
+
},{
|
|
98
|
+
label: this.$t('条件字段'),
|
|
99
|
+
name:'field',
|
|
100
|
+
type:'ComboBox',
|
|
101
|
+
codeWithName:false,
|
|
102
|
+
align:'center',
|
|
103
|
+
contentAlign:'left',
|
|
104
|
+
dictkey:'FIELD'
|
|
105
|
+
}, {
|
|
106
|
+
label: this.$t('运算'),
|
|
107
|
+
name:'calculator',
|
|
108
|
+
type:'ComboBox',
|
|
109
|
+
width:100,
|
|
110
|
+
align:'center',
|
|
111
|
+
codeWithName:false,
|
|
112
|
+
clearable:false,
|
|
113
|
+
data:[{
|
|
114
|
+
name: this.$t('等于'),
|
|
115
|
+
code: '=='
|
|
116
|
+
}, {
|
|
117
|
+
name: this.$t('大于'),
|
|
118
|
+
code: '>'
|
|
119
|
+
}, {
|
|
120
|
+
name: this.$t('大于等于'),
|
|
121
|
+
code: '>='
|
|
122
|
+
}, {
|
|
123
|
+
name: this.$t('小于'),
|
|
124
|
+
code: '<'
|
|
125
|
+
}, {
|
|
126
|
+
name: this.$t('小于等于'),
|
|
127
|
+
code: '<='
|
|
128
|
+
}, {
|
|
129
|
+
name: this.$t('不等于'),
|
|
130
|
+
code: '<>'
|
|
131
|
+
}, {
|
|
132
|
+
name: this.$t('包含'),
|
|
133
|
+
code: 'LIKE'
|
|
134
|
+
}],
|
|
135
|
+
defaultValue:'=='
|
|
136
|
+
}, {
|
|
137
|
+
label: this.$t('条件值'),
|
|
138
|
+
name:'editors',
|
|
139
|
+
type:'TextBox',
|
|
140
|
+
align:'center',
|
|
141
|
+
contentAlign:'left',
|
|
142
|
+
updateCellConfig:this.updateCellConfig
|
|
143
|
+
},{
|
|
144
|
+
label: this.$t('右括号'),
|
|
145
|
+
name:'bracket_right',
|
|
146
|
+
type:'ComboBox',
|
|
147
|
+
width:80,
|
|
148
|
+
align:'center',
|
|
149
|
+
codeWithName:false,
|
|
150
|
+
data:[{code:'1',name:')'},{code:'2',name:'))'}]
|
|
151
|
+
},{
|
|
152
|
+
label: this.$t('关系'),
|
|
153
|
+
name:'relationship',
|
|
154
|
+
type:'ComboBox',
|
|
155
|
+
width:80,
|
|
156
|
+
align:'center',
|
|
157
|
+
codeWithName:false,
|
|
158
|
+
clearable:false,
|
|
159
|
+
data:[{code:'1',name:this.$t('且')},{code:'2',name:this.$t('或')}]
|
|
160
|
+
}];
|
|
160
161
|
this.init();
|
|
161
162
|
},
|
|
162
163
|
methods: {
|
|
@@ -267,11 +268,11 @@ export default {
|
|
|
267
268
|
for (let i=0;i<data.length;i++) {
|
|
268
269
|
if (data[i].bracket_left || data[i].bracket_right) {
|
|
269
270
|
if (!data[i].field) {
|
|
270
|
-
this.alert('第'
|
|
271
|
+
this.alert(this.$t('第{row}行的条件字段为空,请检查', { row: i+1 }));
|
|
271
272
|
return false;
|
|
272
273
|
}
|
|
273
274
|
if (!data[i].editors) {
|
|
274
|
-
this.alert('第'
|
|
275
|
+
this.alert(this.$t('第{row}行的值为空,请检查', { row: i+1 }));
|
|
275
276
|
return false;
|
|
276
277
|
}
|
|
277
278
|
if (data[i].bracket_left) {
|
|
@@ -284,7 +285,7 @@ export default {
|
|
|
284
285
|
|
|
285
286
|
if (data[i].field && data[i].editors) {
|
|
286
287
|
if (!data[i].relationship) {
|
|
287
|
-
this.alert('第'
|
|
288
|
+
this.alert(this.$t('第{row}行的关系为空,请检查', { row: i+1 }));
|
|
288
289
|
return false;
|
|
289
290
|
}
|
|
290
291
|
result.push(this.$Method.copy(data[i]));
|
|
@@ -292,7 +293,7 @@ export default {
|
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
if (this.bracketLeft !== this.bracketRight) {
|
|
295
|
-
this.alert('有效条件的左括号(
|
|
296
|
+
this.alert(this.$t('有效条件的左括号({left})与右括号({right})的数量不一致,请检查', { left: this.bracketLeft, right: this.bracketRight }));
|
|
296
297
|
return false;
|
|
297
298
|
}
|
|
298
299
|
if (result.length > 0) {
|
|
@@ -331,10 +332,10 @@ export default {
|
|
|
331
332
|
let orIndex = el.indexOf('$or');
|
|
332
333
|
if (andIndex !== -1 && orIndex !== -1) {
|
|
333
334
|
let oper = '$or';
|
|
334
|
-
let opername = '或';
|
|
335
|
+
let opername = this.$t('或');
|
|
335
336
|
if (orIndex < andIndex) {
|
|
336
337
|
oper = '$and';
|
|
337
|
-
opername = '且';
|
|
338
|
+
opername = this.$t('且');
|
|
338
339
|
}
|
|
339
340
|
let list = el.split('_');
|
|
340
341
|
let index = -1;
|
|
@@ -350,7 +351,7 @@ export default {
|
|
|
350
351
|
});
|
|
351
352
|
}
|
|
352
353
|
if (index > -1) {
|
|
353
|
-
this.alert('第
|
|
354
|
+
this.alert(this.$t('第{row}行的关系不能为[{oper}]或请添加括号', { row: index+1, oper: opername }) );
|
|
354
355
|
return true;
|
|
355
356
|
}
|
|
356
357
|
}
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
<template #footer>
|
|
45
45
|
<Row type="flex" justify="center" align="middle" style="margin-top: 10px;margin-bottom: 10px;" :gutter="16">
|
|
46
46
|
<Col>
|
|
47
|
-
<Button type="primary" @click="save"
|
|
48
|
-
<Button style="margin-left: 20px;" @click="cancel"
|
|
47
|
+
<Button type="primary" @click="save">{{ $t('保存') }}</Button>
|
|
48
|
+
<Button style="margin-left: 20px;" @click="cancel">{{ $t('放弃') }}</Button>
|
|
49
49
|
</Col>
|
|
50
50
|
</Row>
|
|
51
51
|
</template>
|
|
@@ -112,6 +112,8 @@ export default {
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
created () {
|
|
115
|
+
this.myConfig.addBtnName = this.$t('新增');
|
|
116
|
+
this.myConfig.editBtnName = this.$t('编辑');
|
|
115
117
|
this.init();
|
|
116
118
|
},
|
|
117
119
|
computed: {
|
|
@@ -449,7 +451,7 @@ export default {
|
|
|
449
451
|
}
|
|
450
452
|
});
|
|
451
453
|
if (flag) {
|
|
452
|
-
this.alert('必填项不允许为空');
|
|
454
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
453
455
|
}
|
|
454
456
|
}
|
|
455
457
|
return flag;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
<Row type="flex" justify="start">
|
|
11
11
|
<Col style="margin-top: 18px;text-align:right;width:2%">
|
|
12
12
|
<Affix>
|
|
13
|
-
<Poptip v-show="!leftSpan" trigger="hover" placement="right" content="展开功能菜单栏">
|
|
13
|
+
<Poptip v-show="!leftSpan" trigger="hover" placement="right" :content="$t('展开功能菜单栏')">
|
|
14
14
|
<CommonIcon type="_right" :size="1" @click="doShowLeft"> </CommonIcon>
|
|
15
15
|
</Poptip>
|
|
16
|
-
<Poptip v-show="leftSpan" trigger="hover" placement="right" content="收缩功能菜单栏">
|
|
16
|
+
<Poptip v-show="leftSpan" trigger="hover" placement="right" :content="$t('收缩功能菜单栏')">
|
|
17
17
|
<CommonIcon type="_left" :size="1" @click="doHideLeft"> </CommonIcon>
|
|
18
18
|
</Poptip>
|
|
19
19
|
</Affix>
|