centaline-data-driven-v3 0.0.53 → 0.0.55
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/centaline-data-driven-v3.umd.js +48 -48
- package/package.json +1 -1
- package/src/components/app/ContainerControl.vue +2 -2
- package/src/components/app/File.vue +3 -2
- package/src/components/app/FormList.vue +1 -1
- package/src/components/app/Label.vue +5 -2
- package/src/components/app/Photo.vue +3 -2
- package/src/components/app/ViewerFile.vue +3 -2
- package/src/components/web/CheckBoxList.vue +2 -1
- package/src/components/web/ContainerControl.vue +2 -2
- package/src/components/web/File.vue +53 -40
- package/src/components/web/FormList.vue +1 -1
- package/src/components/web/Label.vue +6 -4
- package/src/components/web/PictureEdit.vue +2 -0
- package/src/components/web/SearchList/SearchTable.vue +7 -1
- package/src/components/web/ViewerFile.vue +1 -1
- package/src/components/web/photo.vue +56 -45
- package/src/loader/src/CheckBoxList.js +13 -3
- package/src/loader/src/File.js +2 -1
- package/src/loader/src/Form.js +13 -1
- package/src/loader/src/LibFunction.js +6 -1
- package/src/loader/src/Photo.js +2 -2
- package/src/loader/src/Router.js +3 -0
- package/src/main.js +4 -4
- package/src/utils/common.js +6 -0
- package/src/views/SearchList.vue +2 -3
package/src/loader/src/Form.js
CHANGED
|
@@ -55,7 +55,7 @@ function loadFromModel(source, isFormList) {
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
setActionRouter(id, attrKey, attrValue) {
|
|
58
|
-
var router =
|
|
58
|
+
var router = this.form.actionRouters.find((v1) => {
|
|
59
59
|
return v1.key === id;
|
|
60
60
|
});
|
|
61
61
|
if (router) {
|
|
@@ -286,6 +286,18 @@ function loadFromModel(source, isFormList) {
|
|
|
286
286
|
}
|
|
287
287
|
return false;
|
|
288
288
|
},
|
|
289
|
+
//设置表格选择路由
|
|
290
|
+
setListSelectRouter(tableId, attrKey, attrValue) {
|
|
291
|
+
let listData = this.excuteListData.find((v) => {
|
|
292
|
+
return v.fieldName1 === tableId;
|
|
293
|
+
});
|
|
294
|
+
if (listData) {
|
|
295
|
+
var router = listData.selectRouter;
|
|
296
|
+
if (router) {
|
|
297
|
+
router[attrKey] = attrValue;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
289
301
|
//设置表格属性值
|
|
290
302
|
setListAttr(tableId, attrName, attrValue) {
|
|
291
303
|
let listData = this.excuteListData.find((v) => {
|
|
@@ -188,7 +188,12 @@ const LibFunction = {
|
|
|
188
188
|
|
|
189
189
|
}
|
|
190
190
|
// var files = getMmdias(source, field);
|
|
191
|
-
var files =
|
|
191
|
+
var files = [];
|
|
192
|
+
if (Array.isArray(field.code1)) {
|
|
193
|
+
files = field.code1;
|
|
194
|
+
} else {
|
|
195
|
+
files= field.code1 && field.code1 != "[]" ? JSON.parse(field.code1) : [];
|
|
196
|
+
}
|
|
192
197
|
item = Photo.loadFromModel(item, files, router, source.videoPlayIconUrl);
|
|
193
198
|
item.is = 'ct-photo';
|
|
194
199
|
break;
|
package/src/loader/src/Photo.js
CHANGED
|
@@ -342,7 +342,7 @@ function updateFile(file, model) {
|
|
|
342
342
|
model.fileSource[0].mediaUrl = file.mediaUrl;
|
|
343
343
|
model.fileSource[0].savedFileName = file.savedFileName;
|
|
344
344
|
model.fileSource[0].mediaDate = file.mediaDate;
|
|
345
|
-
|
|
345
|
+
model.fileSource[0].mediaCode = file.mediaCode;
|
|
346
346
|
|
|
347
347
|
}
|
|
348
348
|
function uploadguid() {
|
|
@@ -380,7 +380,7 @@ function viewerfile(file, model) {
|
|
|
380
380
|
function selfValidExcute(eventName, model) {
|
|
381
381
|
if (model.required) {
|
|
382
382
|
if (Photo.getfileListLength(model) === 0) {
|
|
383
|
-
model.validMessage = "必须上传附件";
|
|
383
|
+
model.validMessage = common.LocalizedString("必须上传附件","必須上傳附件");
|
|
384
384
|
model.valid = false;
|
|
385
385
|
model.displayValidMessage = model.validMessage;
|
|
386
386
|
return false;
|
package/src/loader/src/Router.js
CHANGED
|
@@ -250,6 +250,9 @@ const Router = function (source) {
|
|
|
250
250
|
get isMulti() {
|
|
251
251
|
return source.selectedMode === Enum.ListSelectMode.Multiple;
|
|
252
252
|
},
|
|
253
|
+
set selectedMode(v) {
|
|
254
|
+
source.selectedMode = v;
|
|
255
|
+
},
|
|
253
256
|
// 路由操作完成后是否刷新当前行
|
|
254
257
|
get flagFreshCurrentRow() {
|
|
255
258
|
return source.flagFreshCurrentRow;
|
package/src/main.js
CHANGED
|
@@ -21,8 +21,8 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
|
-
|
|
25
|
-
baseUrl: "http://10.88.22.66:6060/onecard-api/",
|
|
24
|
+
baseUrl:"http://10.88.22.66/IBS.Mvc/api/",
|
|
25
|
+
//baseUrl: "http://10.88.22.66:6060/onecard-api/",
|
|
26
26
|
//baseUrl: "http://10.1.245.50:38735/max-uplink-api/",
|
|
27
27
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
28
28
|
flagRouterSelf: true,
|
|
@@ -63,8 +63,8 @@ app.use(centaline, {
|
|
|
63
63
|
return {
|
|
64
64
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
65
65
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
66
|
-
authObject: '{token:"
|
|
67
|
-
|
|
66
|
+
//authObject: '{token:"1647-1802885825978044416",platform:"WEB"}',
|
|
67
|
+
authObject: '{EmpID:"Token_5b072fc4-1c91-4b7a-b31b-e75d1ab66570",MachineCode:"7a216b39-84af-43bb-842b-07604ac37a10",SSO_Token:"SSOToken_5b072fc4-1c91-4b7a-b31b-e75d1ab66570",Platform:"WEB"}',
|
|
68
68
|
};
|
|
69
69
|
},
|
|
70
70
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
package/src/utils/common.js
CHANGED
package/src/views/SearchList.vue
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
4
|
-
:searchDataApi="'/
|
|
5
|
-
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
4
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist>
|
|
6
5
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
7
6
|
|
|
8
7
|
</div>
|