centaline-data-driven 1.5.30 → 1.5.31
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/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache.v2 +0 -0
- package/.vs/Centaline.Front_End.DataDriven/config/applicationhost.config +1034 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +10 -11
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +14 -11
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +7 -7
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.csproj.FileListAbsolute.txt +6 -0
- package/obj/project.assets.json +52 -11
- package/package.json +1 -1
- package/release-log.md +16 -10
- package/src/SearchList.vue +20 -20
- package/src/centaline/common/index.js +5 -5
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +46 -46
- package/src/centaline/dynamicForm/src/dynamicForm.vue +5 -2
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildren.vue +17 -17
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildrenFor.vue +4 -4
- package/src/centaline/dynamicLayout/src/dynamicLayoutImage.vue +4 -4
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicRepeat/src/dynamicRepeat.vue +21 -19
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +44 -44
- package/src/centaline/dynamicSos/src/dynamicSos.vue +8 -8
- package/src/centaline/dynamicTree/src/dynamicTree.vue +41 -29
- package/src/centaline/formData/index.js +3 -3
- package/src/centaline/loader/src/ctl/Button.js +16 -16
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/Repeat.js +18 -18
- package/src/centaline/loader/src/ctl/SearchScreen.js +48 -48
- package/src/centaline/loader/src/ctl/Sos.js +2 -2
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +61894 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
|
@@ -429,7 +429,7 @@ const common = {
|
|
|
429
429
|
* @desc 执行动态脚本,装载自定义方法和参数在window上(这样使用自定义对象时,不需要this.了)
|
|
430
430
|
* @returns {obj} 返回值
|
|
431
431
|
*/
|
|
432
|
-
excute(code) {
|
|
432
|
+
excute(code) {
|
|
433
433
|
var self = this;
|
|
434
434
|
common.with(self);
|
|
435
435
|
let rtn = eval(code);
|
|
@@ -620,11 +620,11 @@ const common = {
|
|
|
620
620
|
* @return 格式化后的日期
|
|
621
621
|
*/
|
|
622
622
|
formatDate: function (date, format) {
|
|
623
|
-
var v = "";
|
|
624
|
-
if (typeof date === "string") {
|
|
625
|
-
date = new Date(date)
|
|
623
|
+
var v = "";
|
|
624
|
+
if (typeof date === "string") {
|
|
625
|
+
date = new Date(date)
|
|
626
626
|
}
|
|
627
|
-
if (typeof date === "string" || typeof date !== "object") {
|
|
627
|
+
if (typeof date === "string" || typeof date !== "object") {
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
630
|
if (date == null) return "";
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<span v-else>{{model.label}}</span>
|
|
69
69
|
</div>
|
|
70
70
|
<el-dropdown-menu>
|
|
71
|
-
<el-dropdown-item>
|
|
71
|
+
<el-dropdown-item>
|
|
72
72
|
<div style="width:100%;float: left;margin:10px 0;">
|
|
73
73
|
<el-button style="float: left" v-for="(field, index) in SearchWhereButtons" :key="index" :type="field.isHyperLink ? 'text' : 'primary'" :disabled="field.locked" @click="SaveSearchWhere(field)">{{field.label}}</el-button>
|
|
74
74
|
<span style="margin-left:10px;margin-top:3px;float:left" @click="SearchWhereManage" title="维维护已保存的查询条件,如:设置和取消默认、修改标签、删除等。"><i class="el-icon-s-tools" style=" font-size: 18px;"></i></span>
|
|
@@ -105,14 +105,14 @@
|
|
|
105
105
|
optionApi:String,
|
|
106
106
|
rowData: Object,
|
|
107
107
|
rowindex:Number,
|
|
108
|
-
flagAppMode: Boolean,
|
|
108
|
+
flagAppMode: Boolean,
|
|
109
109
|
actionRouters: Array,
|
|
110
110
|
},
|
|
111
111
|
mixins: [dynamicElement],
|
|
112
112
|
data: function () {
|
|
113
|
-
return {
|
|
114
|
-
fieldSearchWhere: {},
|
|
115
|
-
SearchWhereList: [],
|
|
113
|
+
return {
|
|
114
|
+
fieldSearchWhere: {},
|
|
115
|
+
SearchWhereList: [],
|
|
116
116
|
SearchWhereButtons:[],
|
|
117
117
|
visible:false,
|
|
118
118
|
message:'',
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
137
137
|
this.model = this.vmodel;
|
|
138
|
-
}
|
|
139
|
-
if (this.actionRouters && this.model.routerKey) {
|
|
138
|
+
}
|
|
139
|
+
if (this.actionRouters && this.model.routerKey) {
|
|
140
140
|
this.fieldSearchWhere = this.actionRouters.find((b) => {
|
|
141
141
|
return b.id === this.model.routerKey;
|
|
142
|
-
});
|
|
143
|
-
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
144
|
},
|
|
145
145
|
computed: {
|
|
146
146
|
uploadData() {
|
|
@@ -199,43 +199,43 @@
|
|
|
199
199
|
else{
|
|
200
200
|
this.$emit('click',this.model,this.rowData,this.rowindex);
|
|
201
201
|
}
|
|
202
|
-
},
|
|
203
|
-
clickHandleDropdown(v) {
|
|
204
|
-
if (v) {
|
|
205
|
-
this.getSearchWherList();
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
SaveSearchWhere(field) {
|
|
209
|
-
if (field.lock) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
this.$refs.searchwhere.hide();
|
|
213
|
-
this.$emit('SaveSearchWhere', field);
|
|
214
|
-
},
|
|
215
|
-
getSearchWherList() {
|
|
216
|
-
if (this.model.routerKey) {
|
|
202
|
+
},
|
|
203
|
+
clickHandleDropdown(v) {
|
|
204
|
+
if (v) {
|
|
205
|
+
this.getSearchWherList();
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
SaveSearchWhere(field) {
|
|
209
|
+
if (field.lock) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
this.$refs.searchwhere.hide();
|
|
213
|
+
this.$emit('SaveSearchWhere', field);
|
|
214
|
+
},
|
|
215
|
+
getSearchWherList() {
|
|
216
|
+
if (this.model.routerKey) {
|
|
217
217
|
let field = this.actionRouters.find((b) => {
|
|
218
218
|
return b.id === this.model.routerKey;
|
|
219
|
-
});
|
|
220
|
-
if (field) {
|
|
221
|
-
this.model.getApiData(this.loadSearchWher, field);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
SearchWhereManage() {
|
|
226
|
-
this.$refs.searchwhere.hide();
|
|
227
|
-
this.$emit('SearchWhereManage', this.model);
|
|
228
|
-
},
|
|
229
|
-
clickDropdownItem(col) {
|
|
230
|
-
this.$refs.searchwhere.hide();
|
|
231
|
-
this.$emit('clichSearchWhere', col);
|
|
232
|
-
},
|
|
233
|
-
loadSearchWher(data, Buttons) {
|
|
234
|
-
this.SearchWhereList = [];
|
|
235
|
-
data.rows.forEach((row) => {
|
|
219
|
+
});
|
|
220
|
+
if (field) {
|
|
221
|
+
this.model.getApiData(this.loadSearchWher, field);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
SearchWhereManage() {
|
|
226
|
+
this.$refs.searchwhere.hide();
|
|
227
|
+
this.$emit('SearchWhereManage', this.model);
|
|
228
|
+
},
|
|
229
|
+
clickDropdownItem(col) {
|
|
230
|
+
this.$refs.searchwhere.hide();
|
|
231
|
+
this.$emit('clichSearchWhere', col);
|
|
232
|
+
},
|
|
233
|
+
loadSearchWher(data, Buttons) {
|
|
234
|
+
this.SearchWhereList = [];
|
|
235
|
+
data.rows.forEach((row) => {
|
|
236
236
|
this.SearchWhereList.push(row);
|
|
237
|
-
});
|
|
238
|
-
this.SearchWhereButtons = Buttons;
|
|
237
|
+
});
|
|
238
|
+
this.SearchWhereButtons = Buttons;
|
|
239
239
|
},
|
|
240
240
|
callTelClick(data){
|
|
241
241
|
var self=this;
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
.max-info:hover .subText{
|
|
292
292
|
color: #fff;
|
|
293
293
|
}
|
|
294
|
-
.max-search-btn-dropdown {
|
|
294
|
+
.max-search-btn-dropdown {
|
|
295
295
|
margin-right:10px;
|
|
296
296
|
}
|
|
297
297
|
.max-search-btn-dropdown .el-dropdown__caret-button::before {
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
border-radius: 5px 0 0 5px;
|
|
303
303
|
}
|
|
304
304
|
.max-search-btn-dropdown .el-dropdown__caret-button {
|
|
305
|
-
border-radius: 0 5px 5px 0;
|
|
305
|
+
border-radius: 0 5px 5px 0;
|
|
306
306
|
}
|
|
307
307
|
.max-search-btn-dropdown .el-button:first-child:focus {
|
|
308
308
|
background-color: var(--chinaRed);
|
|
@@ -318,4 +318,4 @@
|
|
|
318
318
|
border-bottom-color: var(--chinaRed);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
</style>
|
|
321
|
+
</style>
|
|
@@ -808,6 +808,10 @@
|
|
|
808
808
|
},
|
|
809
809
|
changeHandler(field) {
|
|
810
810
|
var self = this;
|
|
811
|
+
|
|
812
|
+
self.model.hiddenHandle(field);
|
|
813
|
+
self.model.requiredHandle(field);
|
|
814
|
+
|
|
811
815
|
if (typeof field.change !== 'undefined') {
|
|
812
816
|
if (typeof this.model.scripts !== 'undefined') {
|
|
813
817
|
this.model.scripts.formData.setExcuteListData(this.model.fields);
|
|
@@ -817,8 +821,6 @@
|
|
|
817
821
|
}
|
|
818
822
|
|
|
819
823
|
self.model.isChanged = true;
|
|
820
|
-
self.model.hiddenHandle(field);
|
|
821
|
-
self.model.requiredHandle(field);
|
|
822
824
|
//self.model.validMrf(field);
|
|
823
825
|
|
|
824
826
|
if (field.onAfterChanged && field.type !== 4) {
|
|
@@ -1131,6 +1133,7 @@
|
|
|
1131
1133
|
|
|
1132
1134
|
.ct-collapse-item-title .el-collapse-item__header {
|
|
1133
1135
|
color: #303133 !important;
|
|
1136
|
+
line-height: normal;
|
|
1134
1137
|
}
|
|
1135
1138
|
|
|
1136
1139
|
.el-collapse-saveLine .ct-collapse-item-title:last-child .el-collapse-item__wrap {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container v-if="model.routerKey&&model.visibility!='0'&&model.rightRouter&&model.value!=''" :direction="model.orientation" :style="model.styleObject" ref="layoutchildren">
|
|
3
|
-
<div @click="clickHandlerLayout($event)">
|
|
4
|
-
<component v-for="(item, index) in model.fields" :actionRouter="actionRouter" :rowdata="rowdata" :key="index" :is="item.is" :vmodel="item" :rowindex="rowindex" :forname="forname" :forrowindex="forrowindex" @click="clickHandler"></component>
|
|
5
|
-
</div>
|
|
6
|
-
</el-container>
|
|
7
|
-
<el-container v-else-if="model.value!=''&&model.visibility!='0'" :direction="model.orientation" :style="model.styleObject" ref="layoutchildren">
|
|
8
|
-
<component v-for="(item, index) in model.fields" :actionRouter="actionRouter" :rowdata="rowdata" :key="index" :is="item.is" :vmodel="item" :rowindex="rowindex" :forname="forname" :forrowindex="forrowindex" @click="clickHandler"></component>
|
|
9
|
-
</el-container>
|
|
1
|
+
<template>
|
|
2
|
+
<el-container v-if="model.routerKey&&model.visibility!='0'&&model.rightRouter&&model.value!=''" :direction="model.orientation" :style="model.styleObject" ref="layoutchildren">
|
|
3
|
+
<div @click="clickHandlerLayout($event)">
|
|
4
|
+
<component v-for="(item, index) in model.fields" :actionRouter="actionRouter" :rowdata="rowdata" :key="index" :is="item.is" :vmodel="item" :rowindex="rowindex" :forname="forname" :forrowindex="forrowindex" @click="clickHandler"></component>
|
|
5
|
+
</div>
|
|
6
|
+
</el-container>
|
|
7
|
+
<el-container v-else-if="model.value!=''&&model.visibility!='0'" :direction="model.orientation" :style="model.styleObject" ref="layoutchildren">
|
|
8
|
+
<component v-for="(item, index) in model.fields" :actionRouter="actionRouter" :rowdata="rowdata" :key="index" :is="item.is" :vmodel="item" :rowindex="rowindex" :forname="forname" :forrowindex="forrowindex" @click="clickHandler"></component>
|
|
9
|
+
</el-container>
|
|
10
10
|
</template>
|
|
11
11
|
<script>
|
|
12
12
|
import dynamicElement from '../../mixins/dynamicElement'
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
};
|
|
38
38
|
},
|
|
39
39
|
created() {
|
|
40
|
-
this.model = this.loaderObj.CellLayout(this.vmodel);
|
|
40
|
+
this.model = this.loaderObj.CellLayout(this.vmodel);
|
|
41
41
|
},
|
|
42
42
|
methods: {
|
|
43
43
|
clickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
|
|
44
44
|
this.$emit('click', routerKey, rowindex, forname, forrowindex,flagHaveAlert);
|
|
45
|
-
},
|
|
46
|
-
clickHandlerLayout(ev) {
|
|
45
|
+
},
|
|
46
|
+
clickHandlerLayout(ev) {
|
|
47
47
|
this.$emit(
|
|
48
48
|
"click",
|
|
49
49
|
this.model.routerKey,
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
for (const vn of vnodes) {
|
|
65
65
|
destroyDeep(vn)
|
|
66
66
|
}
|
|
67
|
-
}
|
|
68
|
-
if (typeof vnode.componentInstance !== 'undefined') {
|
|
69
|
-
vnode.componentInstance.$destroy()
|
|
67
|
+
}
|
|
68
|
+
if (typeof vnode.componentInstance !== 'undefined') {
|
|
69
|
+
vnode.componentInstance.$destroy()
|
|
70
70
|
}
|
|
71
71
|
setTimeout(() => {
|
|
72
72
|
vnode.componentInstance = undefined
|
|
73
73
|
vnode.elm.innerHTML = ''
|
|
74
74
|
}, 0)
|
|
75
75
|
}
|
|
76
|
-
destroyDeep(this._vnode)
|
|
76
|
+
destroyDeep(this._vnode)
|
|
77
77
|
},
|
|
78
78
|
}
|
|
79
|
-
</script>
|
|
79
|
+
</script>
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
for (const vn of vnodes) {
|
|
42
42
|
destroyDeep(vn)
|
|
43
43
|
}
|
|
44
|
-
}
|
|
45
|
-
if (typeof vnode.componentInstance !== 'undefined') {
|
|
46
|
-
vnode.componentInstance.$destroy()
|
|
44
|
+
}
|
|
45
|
+
if (typeof vnode.componentInstance !== 'undefined') {
|
|
46
|
+
vnode.componentInstance.$destroy()
|
|
47
47
|
}
|
|
48
48
|
setTimeout(() => {
|
|
49
49
|
vnode.componentInstance = undefined
|
|
50
50
|
vnode.elm.innerHTML = ''
|
|
51
51
|
}, 0)
|
|
52
52
|
}
|
|
53
|
-
destroyDeep(this._vnode)
|
|
53
|
+
destroyDeep(this._vnode)
|
|
54
54
|
},
|
|
55
55
|
}
|
|
56
56
|
</script>
|
|
@@ -109,16 +109,16 @@
|
|
|
109
109
|
for (const vn of vnodes) {
|
|
110
110
|
destroyDeep(vn)
|
|
111
111
|
}
|
|
112
|
-
}
|
|
113
|
-
if (typeof vnode.componentInstance !== 'undefined') {
|
|
114
|
-
vnode.componentInstance.$destroy()
|
|
112
|
+
}
|
|
113
|
+
if (typeof vnode.componentInstance !== 'undefined') {
|
|
114
|
+
vnode.componentInstance.$destroy()
|
|
115
115
|
}
|
|
116
116
|
setTimeout(() => {
|
|
117
117
|
vnode.componentInstance = undefined
|
|
118
118
|
vnode.elm.innerHTML = ''
|
|
119
119
|
}, 0)
|
|
120
120
|
}
|
|
121
|
-
destroyDeep(this._vnode)
|
|
121
|
+
destroyDeep(this._vnode)
|
|
122
122
|
},
|
|
123
123
|
}
|
|
124
124
|
</script>
|
|
@@ -110,25 +110,27 @@
|
|
|
110
110
|
},
|
|
111
111
|
validExcute() {
|
|
112
112
|
var self = this;
|
|
113
|
-
var rtnBool = true;
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
message
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
self
|
|
127
|
-
message
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
113
|
+
var rtnBool = true;
|
|
114
|
+
if (this.model.show) {
|
|
115
|
+
if (!self.fieldsValidExcute()) {
|
|
116
|
+
rtnBool = false;
|
|
117
|
+
}
|
|
118
|
+
else if (this.model.tableData.length < this.model.min) {
|
|
119
|
+
self.$message({
|
|
120
|
+
message: this.model.title + " 最少需要" + this.model.min + "条数据",
|
|
121
|
+
type: 'warning',
|
|
122
|
+
showClose: true,
|
|
123
|
+
});
|
|
124
|
+
rtnBool = false;
|
|
125
|
+
}
|
|
126
|
+
if (rtnBool && self.model.required && this.model.tableData.length === 0) {
|
|
127
|
+
self.$message({
|
|
128
|
+
message: this.model.title + " 表格不能为空",
|
|
129
|
+
type: 'warning',
|
|
130
|
+
showClose: true,
|
|
131
|
+
});
|
|
132
|
+
rtnBool = false;
|
|
133
|
+
}
|
|
132
134
|
}
|
|
133
135
|
return rtnBool;
|
|
134
136
|
},
|
|
@@ -46,7 +46,7 @@ import dynamicElement from '../../mixins/dynamicElement';
|
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
data() {
|
|
49
|
-
return {
|
|
49
|
+
return {
|
|
50
50
|
LabelName:'',
|
|
51
51
|
isLoading: true,
|
|
52
52
|
screenRow: [],
|
|
@@ -59,7 +59,7 @@ import dynamicElement from '../../mixins/dynamicElement';
|
|
|
59
59
|
mounted() {
|
|
60
60
|
var self = this;
|
|
61
61
|
if(self.categoryLoaded){
|
|
62
|
-
this.$nextTick(function () {
|
|
62
|
+
this.$nextTick(function () {
|
|
63
63
|
if (typeof self.api !== 'undefined') {
|
|
64
64
|
self.loaderObj.SearchScreen(self.api, self.load, self.screenPara);
|
|
65
65
|
}
|
|
@@ -73,7 +73,7 @@ import dynamicElement from '../../mixins/dynamicElement';
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
methods: {
|
|
76
|
-
clickHandler(model) {
|
|
76
|
+
clickHandler(model) {
|
|
77
77
|
switch (model.action) {
|
|
78
78
|
case 'showHigh':
|
|
79
79
|
this.$set(this, 'highScreen', !this.highScreen);
|
|
@@ -99,44 +99,44 @@ import dynamicElement from '../../mixins/dynamicElement';
|
|
|
99
99
|
}
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
|
-
},
|
|
103
|
-
clichSearchWhere(col) {
|
|
104
|
-
if (typeof col.scripts !== 'undefined') {
|
|
105
|
-
this.model.reset();
|
|
106
|
-
this.model.scripts.formData = this.model.formData;
|
|
107
|
-
this.model.scripts.formData.form = this.model;
|
|
108
|
-
this.model.scripts.formData.excuteData = this.model.screen;
|
|
109
|
-
this.model.scripts.formData.fieldsDic = this.model.screenDic;
|
|
110
|
-
this.$common.excute.call(this.model.scripts, col.scripts);
|
|
111
|
-
this.$emit('search', this.model.scripts.formData.form);
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
SaveSearchWhere(field) {
|
|
115
|
-
if (this.model.searchDataOfShow.fields.length == 0) {
|
|
102
|
+
},
|
|
103
|
+
clichSearchWhere(col) {
|
|
104
|
+
if (typeof col.scripts !== 'undefined') {
|
|
105
|
+
this.model.reset();
|
|
106
|
+
this.model.scripts.formData = this.model.formData;
|
|
107
|
+
this.model.scripts.formData.form = this.model;
|
|
108
|
+
this.model.scripts.formData.excuteData = this.model.screen;
|
|
109
|
+
this.model.scripts.formData.fieldsDic = this.model.screenDic;
|
|
110
|
+
this.$common.excute.call(this.model.scripts, col.scripts);
|
|
111
|
+
this.$emit('search', this.model.scripts.formData.form);
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
SaveSearchWhere(field) {
|
|
115
|
+
if (this.model.searchDataOfShow.fields.length == 0) {
|
|
116
116
|
this.$message({
|
|
117
117
|
message: "没有选择任何搜索条件,无需保存!",
|
|
118
118
|
type: 'warning',
|
|
119
119
|
showClose: true,
|
|
120
|
-
});
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
var submitData = {};
|
|
124
|
-
submitData["jsonData"] = JSON.stringify(this.model.searchData.fields);
|
|
125
|
-
this.clickHandlerfield(field, submitData)
|
|
126
|
-
},
|
|
127
|
-
SearchWhereManage(model) {
|
|
120
|
+
});
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
var submitData = {};
|
|
124
|
+
submitData["jsonData"] = JSON.stringify(this.model.searchData.fields);
|
|
125
|
+
this.clickHandlerfield(field, submitData)
|
|
126
|
+
},
|
|
127
|
+
SearchWhereManage(model) {
|
|
128
128
|
let field = this.model.actionRouters.find((b) => {
|
|
129
129
|
return b.id === model.routerKey;
|
|
130
|
-
});
|
|
131
|
-
this.clickHandlerfieldManage(field);
|
|
132
|
-
},
|
|
130
|
+
});
|
|
131
|
+
this.clickHandlerfieldManage(field);
|
|
132
|
+
},
|
|
133
133
|
clickHandlerfield(field, submitData) {
|
|
134
134
|
var self = this;
|
|
135
135
|
this.model.scripts.$fd = field.id;
|
|
136
136
|
this.model.scripts.$result = [];
|
|
137
137
|
|
|
138
138
|
var clickAcion = function (field) {
|
|
139
|
-
//若不是客户端方法,则直接访问接口
|
|
139
|
+
//若不是客户端方法,则直接访问接口
|
|
140
140
|
if (!field.isClientFuntion) {
|
|
141
141
|
let verified = true;
|
|
142
142
|
if (field.isSubmit) {
|
|
@@ -545,19 +545,19 @@ import dynamicElement from '../../mixins/dynamicElement';
|
|
|
545
545
|
else {
|
|
546
546
|
clickAcion(field, submitData);
|
|
547
547
|
}
|
|
548
|
-
},
|
|
548
|
+
},
|
|
549
549
|
clickHandlerfieldManage(field, submitData) {
|
|
550
550
|
var self = this;
|
|
551
|
-
var clickAcion = function (field) {
|
|
551
|
+
var clickAcion = function (field) {
|
|
552
552
|
//若不是客户端方法,则直接访问接口
|
|
553
|
-
if (!field.isClientFuntion) {
|
|
554
|
-
if (!submitData) {
|
|
553
|
+
if (!field.isClientFuntion) {
|
|
554
|
+
if (!submitData) {
|
|
555
555
|
submitData = {};
|
|
556
|
-
field.getSearchPara().fields.forEach((f) => {
|
|
556
|
+
field.getSearchPara().fields.forEach((f) => {
|
|
557
557
|
submitData[common.initialsToLowerCase(f.fieldName1)] = f.searchValue1;
|
|
558
|
-
});
|
|
558
|
+
});
|
|
559
559
|
submitData["sourceFrom"] = "setting";
|
|
560
|
-
}
|
|
560
|
+
}
|
|
561
561
|
var dialogOption = {
|
|
562
562
|
title: field.pageTitle,
|
|
563
563
|
pane: self.$common.getParentPane(self),
|
|
@@ -604,7 +604,7 @@ import dynamicElement from '../../mixins/dynamicElement';
|
|
|
604
604
|
else {
|
|
605
605
|
clickAcion(field, submitData);
|
|
606
606
|
}
|
|
607
|
-
},
|
|
607
|
+
},
|
|
608
608
|
loadScreen() {
|
|
609
609
|
var self = this;
|
|
610
610
|
var hasParent = self.model.screen.filter((v) => {
|
|
@@ -669,17 +669,17 @@ import dynamicElement from '../../mixins/dynamicElement';
|
|
|
669
669
|
self.model.$vue = self;
|
|
670
670
|
self.loadScreen();
|
|
671
671
|
self.loadHighScreen();
|
|
672
|
-
self.setScreenShow();
|
|
673
|
-
if (self.model.onload) {
|
|
674
|
-
self.model.scripts.formData = self.model.formData;
|
|
675
|
-
self.model.scripts.formData.form = self.model;
|
|
676
|
-
self.model.scripts.formData.excuteData = self.model.screen;
|
|
672
|
+
self.setScreenShow();
|
|
673
|
+
if (self.model.onload) {
|
|
674
|
+
self.model.scripts.formData = self.model.formData;
|
|
675
|
+
self.model.scripts.formData.form = self.model;
|
|
676
|
+
self.model.scripts.formData.excuteData = self.model.screen;
|
|
677
677
|
self.model.scripts.formData.fieldsDic = self.model.screenDic;
|
|
678
678
|
self.$common.excute.call(self.model.scripts, self.model.onload);
|
|
679
|
-
}
|
|
679
|
+
}
|
|
680
680
|
self.isLoading = false;
|
|
681
681
|
self.$emit('loaded', self.model.defaultSearch);
|
|
682
|
-
self.$emit('showTitle');
|
|
682
|
+
self.$emit('showTitle');
|
|
683
683
|
},
|
|
684
684
|
searchComplate() {
|
|
685
685
|
var self = this;
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
else {
|
|
79
79
|
this.model = this.vmodel;
|
|
80
80
|
}
|
|
81
|
-
this.$watch('model.value', (n, o) => {
|
|
82
|
-
if (typeof this.model.child !== 'undefined' && this.model.enableRelationFields) {
|
|
83
|
-
for (var item of this.model.child) {
|
|
81
|
+
this.$watch('model.value', (n, o) => {
|
|
82
|
+
if (typeof this.model.child !== 'undefined' && this.model.enableRelationFields) {
|
|
83
|
+
for (var item of this.model.child) {
|
|
84
84
|
item.value = item.defaultValue || '';
|
|
85
|
-
item.text = item.defaultText || '';
|
|
86
|
-
item.enableRelationFields = this.model.enableRelationFields;
|
|
85
|
+
item.text = item.defaultText || '';
|
|
86
|
+
item.enableRelationFields = this.model.enableRelationFields;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
});
|
|
@@ -147,11 +147,11 @@
|
|
|
147
147
|
var self = this;
|
|
148
148
|
this.model.getOptions(this.api, self.searchText);
|
|
149
149
|
},
|
|
150
|
-
soChange: function () {
|
|
151
|
-
var self = this;
|
|
150
|
+
soChange: function () {
|
|
151
|
+
var self = this;
|
|
152
152
|
this.model.enableRelationFields = true;
|
|
153
153
|
if (typeof this.model.child !== 'undefined') {
|
|
154
|
-
for (var item of this.model.child) {
|
|
154
|
+
for (var item of this.model.child) {
|
|
155
155
|
item.value = item.defaultValue || '';
|
|
156
156
|
item.text = item.defaultText || '';
|
|
157
157
|
}
|