centaline-data-driven 1.1.23 → 1.1.24
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 +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
- package/build/centaline/centaline.path.js +2 -0
- package/build/centaline/webpack.centaline.conf.js +5 -3
- package/build/utils.js +2 -1
- package/config/dev.env.js +5 -2
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +73 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +29 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +15 -0
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +23 -0
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +20 -0
- package/obj/project.assets.json +11907 -0
- package/package.json +7 -5
- package/src/Detail.vue +28 -0
- package/src/Edit.vue +23 -130
- package/src/Form.vue +4 -5
- package/src/SearchList.vue +5 -4
- package/src/SearchTree.vue +55 -0
- package/src/assets/Mvr.png +0 -0
- package/src/assets/VR.png +0 -0
- package/src/assets/collection.png +0 -0
- package/src/assets/dian.png +0 -0
- package/src/assets/ewm.png +0 -0
- package/src/assets/image.png +0 -0
- package/src/assets/location.png +0 -0
- package/src/assets/max-fold.png +0 -0
- package/src/assets/max-open.png +0 -0
- package/src/assets/mero.png +0 -0
- package/src/assets/node-collapse.png +0 -0
- package/src/assets/node-expand.png +0 -0
- package/src/assets/video.png +0 -0
- package/src/assets//350/256/241/347/256/227/345/231/250.png +0 -0
- package/src/centaline/comfirm/src/comfirm.vue +2 -2
- package/src/centaline/css/common.css +33 -32
- package/src/centaline/css/max.css +145 -0
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +35 -4
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +1 -1
- package/src/centaline/dynamicDetail/index.js +11 -0
- package/src/centaline/dynamicDetail/src/dynamicDetail.vue +39 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1283 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +29 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +25 -9
- package/src/centaline/dynamicForm/src/dynamicFormList.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +27 -6
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +27 -6
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +10 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +55 -33
- package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +41 -0
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +7 -4
- package/src/centaline/dynamicT/src/dynamicT.vue +18 -23
- package/src/centaline/dynamicTimeSelect/src/dynamicTimeSelect.vue +37 -3
- package/src/centaline/dynamicTree/index.js +11 -0
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +66 -0
- package/src/centaline/dynamicTree/src/dynamicTree.vue +213 -0
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +65 -0
- package/src/centaline/loader/index.js +1 -2
- package/src/centaline/loader/src/ctl/Base.js +31 -2
- package/src/centaline/loader/src/ctl/Button.js +18 -1
- package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +0 -8
- package/src/centaline/loader/src/ctl/Form.js +40 -7
- package/src/centaline/loader/src/ctl/FormList.js +6 -1
- package/src/centaline/loader/src/ctl/HyperLink.js +1 -1
- package/src/centaline/loader/src/ctl/Mo.js +1 -9
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/Router.js +58 -1
- package/src/centaline/loader/src/ctl/SearchScreen.js +34 -2
- package/src/centaline/loader/src/ctl/SearchTable.js +25 -10
- package/src/centaline/loader/src/ctl/So.js +1 -9
- package/src/centaline/loader/src/ctl/Sos.js +2 -11
- package/src/centaline/loader/src/ctl/Tags.js +1 -9
- package/src/centaline/loader/src/ctl/TimeSelect.js +34 -7
- package/src/centaline/loader/src/ctl/Tree.js +154 -0
- package/src/centaline/loader/src/ctl/lib/Enum.js +12 -2
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +8 -0
- package/src/centaline/loader/src/ctl.js +1 -0
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +13 -9
- package/src/main.js +3 -4
- package/src/router/index.js +11 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -7
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -18,7 +18,12 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
18
18
|
return source.title;
|
|
19
19
|
},
|
|
20
20
|
set title(v) {
|
|
21
|
-
source.
|
|
21
|
+
source.title = v;
|
|
22
|
+
},
|
|
23
|
+
get flagShowTitle() {
|
|
24
|
+
let v=false;
|
|
25
|
+
if(source.flagShowTitle)v=source.flagShowTitle;
|
|
26
|
+
return v;
|
|
22
27
|
},
|
|
23
28
|
isChanged: false,
|
|
24
29
|
get isHorizontalLayout() {
|
|
@@ -116,6 +121,13 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
116
121
|
get optionApi() {
|
|
117
122
|
return source.parameterAction;
|
|
118
123
|
},
|
|
124
|
+
_pageDisabled:false,
|
|
125
|
+
get pageDisabled() {
|
|
126
|
+
return this._pageDisabled;
|
|
127
|
+
},
|
|
128
|
+
set pageDisabled(v) {
|
|
129
|
+
this._pageDisabled = v;
|
|
130
|
+
},
|
|
119
131
|
get saveButtonAction() {
|
|
120
132
|
return source.saveButtonAction;
|
|
121
133
|
},
|
|
@@ -247,10 +259,17 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
247
259
|
}
|
|
248
260
|
|
|
249
261
|
if (rowNum === 0 || (rowNum && fiedlId)) {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
262
|
+
try {
|
|
263
|
+
let fields = listData.rows[rowNum].field;
|
|
264
|
+
field = fields.find((v) => {
|
|
265
|
+
return v.id === fiedlId;
|
|
266
|
+
});
|
|
267
|
+
} catch (e) {
|
|
268
|
+
if (listData.rows.length <= rowNum) {
|
|
269
|
+
var checkMsg = "获取列表行索引超出界限";
|
|
270
|
+
this.message(checkMsg);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
254
273
|
}
|
|
255
274
|
}
|
|
256
275
|
|
|
@@ -369,6 +388,13 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
369
388
|
return false;
|
|
370
389
|
},
|
|
371
390
|
|
|
391
|
+
setListAttr(tableId, attrName, attrValue) {
|
|
392
|
+
let listData = this.excuteListData.find((v) => {
|
|
393
|
+
return v.id === tableId;
|
|
394
|
+
});
|
|
395
|
+
listData[attrName] = attrValue
|
|
396
|
+
|
|
397
|
+
},
|
|
372
398
|
|
|
373
399
|
/**
|
|
374
400
|
* @method
|
|
@@ -396,7 +422,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
396
422
|
//因为要传参,并直接执行方法,故successCallback回调里要使用formData的话,要加this
|
|
397
423
|
//若不能接受this,也可修改common.excute方法
|
|
398
424
|
//successCallback.call(formData.form.scripts, data);
|
|
399
|
-
|
|
425
|
+
|
|
400
426
|
//优化,不需要加this
|
|
401
427
|
formData.common.excuteFun.call(formData.form.scripts, successCallback, data);
|
|
402
428
|
}
|
|
@@ -590,7 +616,14 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
590
616
|
refFieldNameArr.forEach((v) => {
|
|
591
617
|
submitData[v] = tempFormData[v];
|
|
592
618
|
});
|
|
593
|
-
|
|
619
|
+
return submitData;
|
|
620
|
+
},
|
|
621
|
+
getParentFieldPara(parentFieldNameArr) {
|
|
622
|
+
let submitData = {};
|
|
623
|
+
var tempFormData = rtn.getFormObj();
|
|
624
|
+
parentFieldNameArr.forEach((v) => {
|
|
625
|
+
submitData[v] = tempFormData[v];
|
|
626
|
+
});
|
|
594
627
|
return submitData;
|
|
595
628
|
},
|
|
596
629
|
//检查是否关闭tab后触发来源页面操作
|
|
@@ -61,6 +61,12 @@ const FormList = function (source, master) {
|
|
|
61
61
|
get totalCols() {
|
|
62
62
|
return source.totalCols;
|
|
63
63
|
},
|
|
64
|
+
set tableDisabled(v) {
|
|
65
|
+
source.disabled = v;
|
|
66
|
+
},
|
|
67
|
+
get tableDisabled() {
|
|
68
|
+
return source.disabled || false;
|
|
69
|
+
},
|
|
64
70
|
getFormObj() {
|
|
65
71
|
let rtnFormArr = [];
|
|
66
72
|
|
|
@@ -159,7 +165,6 @@ const FormList = function (source, master) {
|
|
|
159
165
|
currentRow: null,
|
|
160
166
|
_tableData: undefined,
|
|
161
167
|
get tableData() {
|
|
162
|
-
debugger
|
|
163
168
|
if (this._tableData) {
|
|
164
169
|
return this._tableData;
|
|
165
170
|
}
|
|
@@ -148,7 +148,7 @@ const Mo = function (source, moreActionRouter) {
|
|
|
148
148
|
action: apiAddrs,
|
|
149
149
|
para: {
|
|
150
150
|
paramName: self.paramName,
|
|
151
|
-
parentValue:
|
|
151
|
+
parentValue: rtn.getFormParentFieldPara(),
|
|
152
152
|
extraData: rtn.getFormRefFieldPara()
|
|
153
153
|
}
|
|
154
154
|
};
|
|
@@ -174,14 +174,6 @@ const Mo = function (source, moreActionRouter) {
|
|
|
174
174
|
|
|
175
175
|
return null;
|
|
176
176
|
},
|
|
177
|
-
getFormRefFieldPara() {
|
|
178
|
-
if (rtn.form && typeof source.refFieldName !== 'undefined' && source.refFieldName.length > 0) {
|
|
179
|
-
if (typeof rtn.form.getRefFieldPara === 'function') {
|
|
180
|
-
return JSON.stringify(rtn.form.getRefFieldPara(source.refFieldName));
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
177
|
};
|
|
186
178
|
rtn = base.copy(Base(source), rtn);
|
|
187
179
|
rtn = base.copy(rtn, valid.Init(rtn));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import base from '../../index';
|
|
2
|
-
import Base from './Base';
|
|
2
|
+
import Base from './Base';
|
|
3
3
|
|
|
4
4
|
const PlaceHolder = function (source) {
|
|
5
5
|
var rtn = {
|
|
@@ -14,4 +14,4 @@ const PlaceHolder = function (source) {
|
|
|
14
14
|
return rtn;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export default PlaceHolder;
|
|
17
|
+
export default PlaceHolder;
|
|
@@ -32,6 +32,9 @@ const Router = function (source) {
|
|
|
32
32
|
get isHyperLink() {
|
|
33
33
|
return source.buttonType === Enum.ButtonType.HyperLink;
|
|
34
34
|
},
|
|
35
|
+
get isDropdown() {
|
|
36
|
+
return source.buttonType === Enum.ButtonType.Dropdown;
|
|
37
|
+
},
|
|
35
38
|
get alert() {
|
|
36
39
|
return source.flagAlert === true;
|
|
37
40
|
},
|
|
@@ -123,6 +126,9 @@ const Router = function (source) {
|
|
|
123
126
|
get pageTitle() {
|
|
124
127
|
return source.pageTitle;
|
|
125
128
|
},
|
|
129
|
+
get pageStyle() {
|
|
130
|
+
return source.pageStyle;
|
|
131
|
+
},
|
|
126
132
|
//是否附带本页面的SearchLayout
|
|
127
133
|
get flagAttachSearchCondition() {
|
|
128
134
|
return source.flagAttachSearchCondition === true;
|
|
@@ -176,6 +182,29 @@ const Router = function (source) {
|
|
|
176
182
|
get flagFreshCurrentRow() {
|
|
177
183
|
return source.flagFreshCurrentRow;
|
|
178
184
|
},
|
|
185
|
+
get textColor() {
|
|
186
|
+
return source.textColor || '';
|
|
187
|
+
},
|
|
188
|
+
get bgColor() {
|
|
189
|
+
return source.bgColor || '';
|
|
190
|
+
},
|
|
191
|
+
get borderColor() {
|
|
192
|
+
return source.borderColor ? source.borderColor : (source.bgColor || '');
|
|
193
|
+
},
|
|
194
|
+
attrs: {
|
|
195
|
+
set class(v)
|
|
196
|
+
{
|
|
197
|
+
source.className=v
|
|
198
|
+
},
|
|
199
|
+
get class() {
|
|
200
|
+
var size = this.size ? this.size : "mini";
|
|
201
|
+
source.className=source.className||'ct-font-size-' + size;
|
|
202
|
+
return source.className;
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
get paramName() {
|
|
206
|
+
return source.paramName;
|
|
207
|
+
},
|
|
179
208
|
getActionPara(data) {
|
|
180
209
|
let params = {};
|
|
181
210
|
if (rtn.isSubmit) {
|
|
@@ -190,6 +219,9 @@ const Router = function (source) {
|
|
|
190
219
|
else {
|
|
191
220
|
data.actionType = rtn.actionType;
|
|
192
221
|
data = Object.assign(data, rtn.queryPara);
|
|
222
|
+
if(rtn.isDropdown && rtn.selectOptionCode){
|
|
223
|
+
data[rtn.paramName]=rtn.selectOptionCode;
|
|
224
|
+
}
|
|
193
225
|
params = {
|
|
194
226
|
action: rtn.action,
|
|
195
227
|
para: data
|
|
@@ -208,7 +240,32 @@ const Router = function (source) {
|
|
|
208
240
|
else {
|
|
209
241
|
callback({ rtnCode: Enum.ReturnCode.Successful });
|
|
210
242
|
}
|
|
211
|
-
}
|
|
243
|
+
},
|
|
244
|
+
selectOptionCode:'',
|
|
245
|
+
_elementOptions: [],
|
|
246
|
+
get elementOptions() {
|
|
247
|
+
return this._elementOptions;
|
|
248
|
+
},
|
|
249
|
+
set elementOptions(v) {
|
|
250
|
+
this._elementOptions = v;
|
|
251
|
+
},
|
|
252
|
+
getOptions(paramsAction) {
|
|
253
|
+
var self = this;
|
|
254
|
+
var apiAddrs = paramsAction;
|
|
255
|
+
var params = {
|
|
256
|
+
action: apiAddrs,
|
|
257
|
+
para: {
|
|
258
|
+
paramName: self.paramName,
|
|
259
|
+
parentValue: '',
|
|
260
|
+
extraData: null
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
Vue.prototype.$api.postHandler(common.globalUri(), params).then((response) => {
|
|
264
|
+
if (response.rtnCode === 200) {
|
|
265
|
+
self.elementOptions = response.content;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
},
|
|
212
269
|
};
|
|
213
270
|
return rtn;
|
|
214
271
|
}
|
|
@@ -21,7 +21,15 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
21
21
|
source.content.colSpan = v;
|
|
22
22
|
},
|
|
23
23
|
get title() {
|
|
24
|
-
return source.content.
|
|
24
|
+
return source.content.title;
|
|
25
|
+
},
|
|
26
|
+
set title(v) {
|
|
27
|
+
source.content.title = v;
|
|
28
|
+
},
|
|
29
|
+
get flagShowTitle() {
|
|
30
|
+
let v=false;
|
|
31
|
+
if(source.content.flagShowTitle)v=source.content.flagShowTitle;
|
|
32
|
+
return v;
|
|
25
33
|
},
|
|
26
34
|
get optionApi() {
|
|
27
35
|
return source.content.parameterAction;
|
|
@@ -130,6 +138,7 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
130
138
|
screens.forEach((value) => {
|
|
131
139
|
let item = LibFunction.GetControl(value, source, true, true);
|
|
132
140
|
if (item instanceof Object) {
|
|
141
|
+
item.form = rtn;
|
|
133
142
|
rtnscreens.push(item);
|
|
134
143
|
}
|
|
135
144
|
});
|
|
@@ -156,7 +165,28 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
156
165
|
action: btn.action,
|
|
157
166
|
para: submitData
|
|
158
167
|
});
|
|
159
|
-
}
|
|
168
|
+
},
|
|
169
|
+
//绑定联动参数组件
|
|
170
|
+
getRefFieldPara(refFieldNameArr) {
|
|
171
|
+
let submitData = {};
|
|
172
|
+
var tempFormData = rtn.searchData;
|
|
173
|
+
refFieldNameArr.forEach((v) => {
|
|
174
|
+
tempFormData.fields.forEach((n)=>{
|
|
175
|
+
if(n.fieldName1==v)submitData[v] = n.searchValue1;
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
return submitData;
|
|
179
|
+
},
|
|
180
|
+
getParentFieldPara(parentFieldNameArr) {
|
|
181
|
+
let submitData = {};
|
|
182
|
+
var tempFormData = rtn.searchData;
|
|
183
|
+
parentFieldNameArr.forEach((v) => {
|
|
184
|
+
tempFormData.fields.forEach((n)=>{
|
|
185
|
+
if(n.fieldName1==v)submitData[v] = n.searchValue1;
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
return submitData;
|
|
189
|
+
},
|
|
160
190
|
};
|
|
161
191
|
return rtn;
|
|
162
192
|
};
|
|
@@ -165,6 +195,8 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
165
195
|
Vue.prototype.$api.postHandler(common.globalUri(), { action: source, para: screenPara }).then(
|
|
166
196
|
function (response) {
|
|
167
197
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
198
|
+
response.content.title='XXXXXXXXXXX';
|
|
199
|
+
response.content.flagShowTitle=true;
|
|
168
200
|
var rtn = init(response);
|
|
169
201
|
if (callBack) {
|
|
170
202
|
callBack(rtn);
|
|
@@ -14,6 +14,17 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
14
14
|
pageIndex: 1,
|
|
15
15
|
selectIndex: 0,
|
|
16
16
|
selectAll: 0,
|
|
17
|
+
get title() {
|
|
18
|
+
return source.title;
|
|
19
|
+
},
|
|
20
|
+
set title(v) {
|
|
21
|
+
source.title = v;
|
|
22
|
+
},
|
|
23
|
+
get flagShowTitle() {
|
|
24
|
+
let v=false;
|
|
25
|
+
if(source.flagShowTitle)v=source.flagShowTitle;
|
|
26
|
+
return v;
|
|
27
|
+
},
|
|
17
28
|
get source() {
|
|
18
29
|
return source;
|
|
19
30
|
},
|
|
@@ -35,10 +46,6 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
35
46
|
|
|
36
47
|
source.content.columns.forEach((v) => {
|
|
37
48
|
v.columnWidth = v.columnWidth ? v.columnWidth : 'auto';
|
|
38
|
-
//if (v.dn === "物业名称") {
|
|
39
|
-
// v.rk = '1';
|
|
40
|
-
//}
|
|
41
|
-
|
|
42
49
|
var col = {
|
|
43
50
|
fixedSize: 0,
|
|
44
51
|
get source() {
|
|
@@ -266,10 +273,11 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
266
273
|
else {
|
|
267
274
|
rtn._buttons = [];
|
|
268
275
|
if (source.content.toolButtons) {
|
|
276
|
+
|
|
269
277
|
source.content.toolButtons.forEach((v) => {
|
|
270
278
|
var button = Router(v);
|
|
271
279
|
button.is = "ct-btn";
|
|
272
|
-
button.attrs = { size: "mini"
|
|
280
|
+
button.attrs = { size: "mini",class:'max-btn-gray'}
|
|
273
281
|
rtn._buttons.push(button);
|
|
274
282
|
});
|
|
275
283
|
}
|
|
@@ -410,7 +418,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
410
418
|
var self = this;
|
|
411
419
|
this.isLoading = true;
|
|
412
420
|
if (self.searchModel) {
|
|
413
|
-
|
|
421
|
+
//不需要禁用查询按钮
|
|
422
|
+
// self.searchModel.setBtnLoading(true);
|
|
414
423
|
}
|
|
415
424
|
Vue.prototype.$api.postHandler(common.globalUri(), {
|
|
416
425
|
action: data,
|
|
@@ -468,13 +477,13 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
468
477
|
}
|
|
469
478
|
|
|
470
479
|
if (self.searchModel) {
|
|
471
|
-
self.searchModel.setBtnLoading(false);
|
|
480
|
+
// self.searchModel.setBtnLoading(false);
|
|
472
481
|
}
|
|
473
482
|
})
|
|
474
483
|
.catch((error) => {
|
|
475
484
|
self.isLoading = false;
|
|
476
485
|
if (self.searchModel) {
|
|
477
|
-
self.searchModel.setBtnLoading(false);
|
|
486
|
+
// self.searchModel.setBtnLoading(false);
|
|
478
487
|
}
|
|
479
488
|
console.error(error);
|
|
480
489
|
});
|
|
@@ -579,6 +588,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
579
588
|
get rowMergedColumns() {
|
|
580
589
|
return source.content.rowMergedColumns || [];
|
|
581
590
|
},
|
|
591
|
+
get optionApi() {
|
|
592
|
+
return source.content.parameterAction;
|
|
593
|
+
},
|
|
582
594
|
setRow(rows) {
|
|
583
595
|
rtn.setStyleRow(rows);
|
|
584
596
|
rtn.setMergeRow(rows);
|
|
@@ -634,6 +646,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
634
646
|
}
|
|
635
647
|
},
|
|
636
648
|
doAction(response) {
|
|
649
|
+
|
|
637
650
|
if (response.responseData) {
|
|
638
651
|
response = response.responseData;
|
|
639
652
|
}
|
|
@@ -655,6 +668,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
655
668
|
break;
|
|
656
669
|
case Enum.ActionType.New://新增
|
|
657
670
|
case Enum.ActionType.CloseTabThenNew://新增
|
|
671
|
+
|
|
658
672
|
rtn.setStyleRow(response.content);
|
|
659
673
|
response.content.forEach((nr) => {
|
|
660
674
|
rtn.listData.unshift(nr);
|
|
@@ -662,6 +676,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
662
676
|
rtn.dataDictionary = response.content;
|
|
663
677
|
|
|
664
678
|
source.page.rows = source.page.rows + response.content.length;
|
|
679
|
+
rtn.$vue.calculatingRowHeight()
|
|
665
680
|
break;
|
|
666
681
|
case Enum.ActionType.Update://修改
|
|
667
682
|
case Enum.ActionType.CloseTabThenUpdate://修改
|
|
@@ -691,8 +706,8 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
691
706
|
checkCloseTabThen(notification) {
|
|
692
707
|
var rtn = false;
|
|
693
708
|
if (notification == Enum.ActionType.CloseTabThenDelete
|
|
694
|
-
|| notification == Enum.ActionType.
|
|
695
|
-
|| notification == Enum.ActionType.
|
|
709
|
+
|| notification == Enum.ActionType.CloseTabThenNew
|
|
710
|
+
|| notification == Enum.ActionType.CloseTabThenUpdate) {
|
|
696
711
|
rtn = true;
|
|
697
712
|
}
|
|
698
713
|
return rtn;
|
|
@@ -81,7 +81,7 @@ const So = function (source, moreActionRouter) {
|
|
|
81
81
|
action: apiAddrs,
|
|
82
82
|
para: {
|
|
83
83
|
paramName: self.paramName,
|
|
84
|
-
parentValue:
|
|
84
|
+
parentValue: rtn.getFormParentFieldPara(),
|
|
85
85
|
extraData: rtn.getFormRefFieldPara()
|
|
86
86
|
}
|
|
87
87
|
};
|
|
@@ -110,14 +110,6 @@ const So = function (source, moreActionRouter) {
|
|
|
110
110
|
|
|
111
111
|
return null;
|
|
112
112
|
},
|
|
113
|
-
getFormRefFieldPara() {
|
|
114
|
-
if (rtn.form && typeof source.refFieldName !== 'undefined' && source.refFieldName.length > 0) {
|
|
115
|
-
if (typeof rtn.form.getRefFieldPara === 'function') {
|
|
116
|
-
return JSON.stringify(rtn.form.getRefFieldPara(source.refFieldName));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return null;
|
|
120
|
-
}
|
|
121
113
|
};
|
|
122
114
|
rtn = base.copy(Base(source), rtn);
|
|
123
115
|
rtn = base.copy(rtn, valid.Init(rtn));
|
|
@@ -86,15 +86,14 @@ const Sos = function (source, moreActionRouter) {
|
|
|
86
86
|
set searchTick(v) {
|
|
87
87
|
source.searchTick = v;
|
|
88
88
|
},
|
|
89
|
-
getOptions(paramsAction,key) {
|
|
90
|
-
debugger;
|
|
89
|
+
getOptions(paramsAction,key) {
|
|
91
90
|
var self = this;
|
|
92
91
|
var apiAddrs = paramsAction || this.api;
|
|
93
92
|
var params = {
|
|
94
93
|
action: apiAddrs,
|
|
95
94
|
para: {
|
|
96
95
|
paramName: self.paramName,
|
|
97
|
-
parentValue:
|
|
96
|
+
parentValue: rtn.getFormParentFieldPara(),
|
|
98
97
|
key: key,
|
|
99
98
|
extraData: rtn.getFormRefFieldPara()
|
|
100
99
|
}
|
|
@@ -121,14 +120,6 @@ const Sos = function (source, moreActionRouter) {
|
|
|
121
120
|
|
|
122
121
|
return null;
|
|
123
122
|
},
|
|
124
|
-
getFormRefFieldPara() {
|
|
125
|
-
if (rtn.form && typeof source.refFieldName !== 'undefined' && source.refFieldName.length > 0) {
|
|
126
|
-
if (typeof rtn.form.getRefFieldPara === 'function') {
|
|
127
|
-
return JSON.stringify(rtn.form.getRefFieldPara(source.refFieldName));
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return null;
|
|
131
|
-
},
|
|
132
123
|
};
|
|
133
124
|
rtn = base.copy(Base(source), rtn);
|
|
134
125
|
rtn = base.copy(rtn, valid.Init(rtn));
|
|
@@ -155,7 +155,7 @@ const Tags = function (source, moreActionRouter) {
|
|
|
155
155
|
action: apiAddrs,
|
|
156
156
|
para: {
|
|
157
157
|
paramName: self.paramName,
|
|
158
|
-
parentValue:
|
|
158
|
+
parentValue: rtn.getFormParentFieldPara(),
|
|
159
159
|
key: key,
|
|
160
160
|
extraData: rtn.getFormRefFieldPara()
|
|
161
161
|
}
|
|
@@ -182,14 +182,6 @@ const Tags = function (source, moreActionRouter) {
|
|
|
182
182
|
|
|
183
183
|
return null;
|
|
184
184
|
},
|
|
185
|
-
getFormRefFieldPara() {
|
|
186
|
-
if (rtn.form && typeof source.refFieldName !== 'undefined' && source.refFieldName.length > 0) {
|
|
187
|
-
if (typeof rtn.form.getRefFieldPara === 'function') {
|
|
188
|
-
return JSON.stringify(rtn.form.getRefFieldPara(source.refFieldName));
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
return null;
|
|
192
|
-
}
|
|
193
185
|
};
|
|
194
186
|
rtn = base.copy(Base(source), rtn);
|
|
195
187
|
rtn = base.copy(rtn, valid.Init(rtn));
|
|
@@ -9,8 +9,8 @@ const TimeSelect = function (source, isRange, dateType) {
|
|
|
9
9
|
var rtn = {
|
|
10
10
|
isRange: isRange,//是否是区间
|
|
11
11
|
get valueFormat() {
|
|
12
|
-
if (typeof source.
|
|
13
|
-
return source.
|
|
12
|
+
if (typeof source.format !== 'undefined') {
|
|
13
|
+
return source.format;
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
16
|
if (dateType === "time") {
|
|
@@ -20,24 +20,51 @@ const TimeSelect = function (source, isRange, dateType) {
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
set valueFormat(v) {
|
|
23
|
-
source.
|
|
23
|
+
source.format = v;
|
|
24
|
+
},
|
|
25
|
+
get step() {
|
|
26
|
+
return source.step;
|
|
27
|
+
},
|
|
28
|
+
set step(v) {
|
|
29
|
+
source.step = v;
|
|
24
30
|
},
|
|
25
31
|
get value() {
|
|
26
|
-
if (source.code1 && Object.prototype.toString.call(source.code1) === "[object String]") source.code1 = new Date(common.formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code1);
|
|
32
|
+
if (source.code1 && source.format !="HH:mm" && Object.prototype.toString.call(source.code1) === "[object String]") source.code1 = new Date(common.formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code1);
|
|
27
33
|
return source.code1;
|
|
28
34
|
},
|
|
29
35
|
set value(v) {
|
|
30
|
-
if (v && Object.prototype.toString.call(v) === "[object Date]") v = common.formatDate(v, rtn.valueFormat);
|
|
36
|
+
if (v && source.format != "HH:mm" && Object.prototype.toString.call(v) === "[object Date]") v = common.formatDate(v, rtn.valueFormat);
|
|
31
37
|
source.code1 = v;
|
|
32
38
|
},
|
|
33
39
|
get value1() {
|
|
34
|
-
if (source.code2 && Object.prototype.toString.call(source.code2) === "[object String]") source.code2 = new Date(common.formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code2);
|
|
40
|
+
if (source.code2 && source.format != "HH:mm" && Object.prototype.toString.call(source.code2) === "[object String]") source.code2 = new Date(common.formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code2);
|
|
35
41
|
return source.code2;
|
|
36
42
|
},
|
|
37
43
|
set value1(v) {
|
|
38
|
-
if (v && Object.prototype.toString.call(v) === "[object Date]") v = common.formatDate(v, rtn.valueFormat);
|
|
44
|
+
if (v && source.format != "HH:mm" && Object.prototype.toString.call(v) === "[object Date]") v = common.formatDate(v, rtn.valueFormat);
|
|
39
45
|
source.code2 = v;
|
|
40
46
|
},
|
|
47
|
+
get id1() {
|
|
48
|
+
return source.fieldName2;
|
|
49
|
+
},
|
|
50
|
+
getFormObj() {
|
|
51
|
+
var rtnFormObj = {};
|
|
52
|
+
Object.defineProperty(rtnFormObj, source.fieldName1, {
|
|
53
|
+
get: function () {
|
|
54
|
+
return source.code1;
|
|
55
|
+
},
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(rtnFormObj, source.fieldName2, {
|
|
60
|
+
get: function () {
|
|
61
|
+
return source.code2;
|
|
62
|
+
},
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true
|
|
65
|
+
});
|
|
66
|
+
return rtnFormObj;
|
|
67
|
+
},
|
|
41
68
|
get attrs() {
|
|
42
69
|
return {}
|
|
43
70
|
}
|