centaline-data-driven-v3 0.0.58 → 0.0.59
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 +39 -39
- package/package.json +1 -1
- package/src/components/web/SearchList/SearchTable.vue +1 -0
- package/src/components/web/SearchList.vue +4 -1
- package/src/loader/src/Form.js +5 -0
- package/src/loader/src/PhotoSelect.js +11 -1
- package/src/main.js +1 -1
- package/src/views/Form.vue +2 -3
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@rowClickHandle="rowClickHandle" @refreshRowHandle="refreshRowHandle" @scrollHandle="scrollHandle"
|
|
20
20
|
@refreshParent="refreshParentHandler" @simpleRouterRefreshHandler="simpleRouterRefreshHandler"
|
|
21
21
|
@closeSideBar="closeSideBar" @popupClickHandler="popupClickHandler" :dragStartItem="dragStartItem"
|
|
22
|
-
:dragStartName="dragStartName"
|
|
22
|
+
:dragStartName="dragStartName" @loadedError="tableLoadedError"
|
|
23
23
|
@flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged"
|
|
24
24
|
@drag="drag"
|
|
25
25
|
>
|
|
@@ -285,6 +285,9 @@ function tableLoaded() {
|
|
|
285
285
|
emit('tableLoaded', refTable.value.model);
|
|
286
286
|
emit('loaded', refTable.value.model);
|
|
287
287
|
}
|
|
288
|
+
function tableLoadedError() {
|
|
289
|
+
pageDisabled.value = false;
|
|
290
|
+
}
|
|
288
291
|
function sideMenuClickHandler(v) {
|
|
289
292
|
drowerClose.value = v;
|
|
290
293
|
let popoverCallTels = document.getElementsByClassName('el-popoverCallTel');
|
package/src/loader/src/Form.js
CHANGED
|
@@ -81,6 +81,11 @@ function loadFromModel(source, isFormList) {
|
|
|
81
81
|
attrValue = Number(attrValue).toFixed(rtn1.decimals1)
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
else if (attrKey == 'code1' && (rtn1.controlType === Enum.ControlType.File
|
|
85
|
+
|| rtn1.controlType === Enum.ControlType.SliceUpload|| rtn1.controlType === Enum.ControlType.PhotoSelect)
|
|
86
|
+
&& attrValue != undefined && attrValue != null && attrValue != '') {
|
|
87
|
+
rtn1.jsSetFile(attrValue,rtn1);
|
|
88
|
+
}
|
|
84
89
|
rtn1[attrKey] = attrValue;
|
|
85
90
|
if (rtn1.controlType === Enum.ControlType.Tags) {
|
|
86
91
|
rtn1["value"] = JSON.parse(attrValue);
|
|
@@ -32,6 +32,16 @@ const loadModel = function (source, fileSourceList, router, optionApi, sourceLis
|
|
|
32
32
|
}
|
|
33
33
|
return rtn._fileList;
|
|
34
34
|
},
|
|
35
|
+
//外部调用赋值
|
|
36
|
+
jsSetFile(data, model) {
|
|
37
|
+
var photos = JSON.parse(data);
|
|
38
|
+
photos.forEach((v) => {
|
|
39
|
+
if (model.fileSourceList.length < parseInt(model.maxValue1 || 999)) {
|
|
40
|
+
model.fileList.push(v);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
PhotoSelect.setSelectfileSourceList(model.fileList, model);
|
|
44
|
+
},
|
|
35
45
|
getFormObj() {
|
|
36
46
|
var rtnFormObj = {};
|
|
37
47
|
var self = this;
|
|
@@ -95,7 +105,7 @@ function setSelectfileSourceList(newfileList, model) {
|
|
|
95
105
|
let item = newfileList.find(v => {
|
|
96
106
|
return v.mediaID === model.fileSourceList[i].mediaID;
|
|
97
107
|
});
|
|
98
|
-
if(!item){
|
|
108
|
+
if (!item) {
|
|
99
109
|
model.fileSourceList[i].flagDefault = false;
|
|
100
110
|
model.fileSourceList[i].flagDeleted = true;
|
|
101
111
|
pushArr.push(model.fileSourceList[i])
|
package/src/main.js
CHANGED
|
@@ -64,7 +64,7 @@ app.use(centaline, {
|
|
|
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
66
|
//authObject: '{token:"1-7acf3f06-c2ea-471c-a5fa-07e1c2a81728"}',
|
|
67
|
-
authObject: '{EmpID:"
|
|
67
|
+
authObject: '{EmpID:"Token_0cb4ef4e-d86d-4090-9973-d3466ea6429f",MachineCode:"7a216b39-84af-43bb-842b-07604ac37a10",SSO_Token:"SSOToken_0cb4ef4e-d86d-4090-9973-d3466ea6429f",Platform:"WEB"}',
|
|
68
68
|
};
|
|
69
69
|
},
|
|
70
70
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
package/src/views/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="data-driven" id="app-form" >
|
|
3
3
|
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/PropertyPublish/readDetail'" :apiParam="apiParam" :flagNavbar="true"></ct-form>
|
|
5
5
|
<!-- <ct-form :api="'/api/third-dept-tran/tran-comm-adjust/task'" :apiParam="apiParam"></ct-form> -->
|
|
6
6
|
<!-- <ct-form :api="'/PropertyTranToActive/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
7
7
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
@@ -10,6 +10,5 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
<script lang="ts" setup>
|
|
12
12
|
//const apiParam={"originalTraId":"1739561435204980737","actionType":1,"pageStyle":2,"pageTitle":"成交报告","pageOnly":true}
|
|
13
|
-
const apiParam={"actionType":2,"
|
|
14
|
-
const source={"controlType":2,"showLabel":true,"controlLabel":"制度标识","groupExpand":false,"singleLine":false,"rows":1,"required":true,"spanCols":1,"locked":false,"autoFill":false,"searchDataType":1,"searchOperation":1,"displayLabelAfterSelected":true,"autoSearch":false,"mediaViewPageType":1,"fieldName1":"WorkSystemID","code1":"CD","name1":"","decimals1":-1,"maxValue1":"50","preLabel1":"","sufLabel1":"","fieldName2":"","code2":"","name2":"","decimals2":-1,"decimals3":0,"decimals4":-1,"width":200,"applyNew":1,"applyEdit":1,"applyBrowse":1}
|
|
13
|
+
const apiParam={"actionType":2,propertyCode: "B9D0D330-95B2-4D5D-B6DB-EB0D62B7BF5A",sitePlatformID: "10"}
|
|
15
14
|
</script>
|