centaline-data-driven-v3 0.0.68 → 0.0.70
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 +71 -71
- package/package.json +1 -1
- package/src/components/Layout/Layout.vue +7 -2
- package/src/components/app/ComboBox.vue +16 -7
- package/src/components/app/PhotoSelect.vue +16 -11
- package/src/components/app/SearchList/SearchTable.vue +3 -1
- package/src/components/app/searchScreen.vue +1 -1
- package/src/components/web/ComboBox.vue +1 -1
- package/src/components/web/File.vue +0 -7
- package/src/components/web/Form.vue +4 -2
- package/src/components/web/FormList.vue +12 -7
- package/src/components/web/RadioButton.vue +5 -1
- package/src/components/web/SearchList/SearchTable.vue +21 -12
- package/src/components/web/SearchList.vue +1 -0
- package/src/loader/src/ComboBox.js +18 -7
- package/src/loader/src/File.js +2 -0
- package/src/loader/src/Form.js +21 -17
- package/src/loader/src/FormList.js +2 -1
- package/src/loader/src/SearchScreen.js +0 -2
- package/src/main.js +1 -1
- package/src/utils/mixins.js +7 -2
- package/src/utils/request.js +4 -4
- package/src/views/Form.vue +2 -2
- package/src/views/SearchList.vue +2 -3
package/src/utils/mixins.js
CHANGED
|
@@ -342,7 +342,9 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
342
342
|
cancelButtonText: '取消',
|
|
343
343
|
type: 'warning'
|
|
344
344
|
}).then(() => {
|
|
345
|
+
field.disabled = true;
|
|
345
346
|
field.doAction(model.$vue.getFormObj({ flagHaveAlert: '1' }), (res) => {
|
|
347
|
+
field.disabled = false;
|
|
346
348
|
if (res.rtnCode === Enum.ReturnCode.Successful) {
|
|
347
349
|
if (res.notification === Enum.ActionType.Router) {
|
|
348
350
|
if (common.dialogList && common.dialogList.List.value.length > 0
|
|
@@ -358,6 +360,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
358
360
|
}
|
|
359
361
|
});
|
|
360
362
|
}).catch(() => {
|
|
363
|
+
field.disabled = false;
|
|
361
364
|
});
|
|
362
365
|
}
|
|
363
366
|
}, model.scripts);
|
|
@@ -834,9 +837,11 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
834
837
|
common.openDialog(dialogOption);
|
|
835
838
|
}
|
|
836
839
|
else {
|
|
837
|
-
submitData = field.getActionPara(submitData).para;
|
|
838
840
|
if (source == 'table') {
|
|
839
|
-
|
|
841
|
+
model.$vue.operationLoading = true
|
|
842
|
+
}
|
|
843
|
+
else{
|
|
844
|
+
submitData = field.getActionPara(submitData).para;
|
|
840
845
|
}
|
|
841
846
|
field.doAction(submitData, (data) => {
|
|
842
847
|
if (source == 'table') {
|
package/src/utils/request.js
CHANGED
|
@@ -15,7 +15,7 @@ const request = {
|
|
|
15
15
|
params = params.para;
|
|
16
16
|
}
|
|
17
17
|
else if (common.flagRouterSelf()) {
|
|
18
|
-
url = url + params.action;
|
|
18
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
19
19
|
params = params.para;
|
|
20
20
|
}
|
|
21
21
|
return Axios.get(url, params, {
|
|
@@ -34,7 +34,7 @@ const request = {
|
|
|
34
34
|
params = params.para;
|
|
35
35
|
}
|
|
36
36
|
else if (common.flagRouterSelf()) {
|
|
37
|
-
url = url + params.action;
|
|
37
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
38
38
|
params = params.para;
|
|
39
39
|
}
|
|
40
40
|
return Axios.post(url, params, {
|
|
@@ -127,7 +127,7 @@ const request = {
|
|
|
127
127
|
params = params.para;
|
|
128
128
|
}
|
|
129
129
|
else if (common.flagRouterSelf()) {
|
|
130
|
-
url = url + params.action;
|
|
130
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
131
131
|
params = params.para;
|
|
132
132
|
}
|
|
133
133
|
return Axios.post(url, params, {
|
|
@@ -175,7 +175,7 @@ const request = {
|
|
|
175
175
|
params = params.para;
|
|
176
176
|
}
|
|
177
177
|
else if (common.flagRouterSelf()) {
|
|
178
|
-
url = url + params.action;
|
|
178
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
179
179
|
params = params.para;
|
|
180
180
|
}
|
|
181
181
|
return Axios.post(url, params, {
|
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="'/salemanage/ContractByPoint/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,5 +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={"
|
|
13
|
+
const apiParam={"estateId":"2503120955255B0598513062476EB741","propertyId":"250312100237582995D2919948BDB1D2","actionType":2,"commissionMode":"1"}
|
|
14
14
|
</script>
|
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="'/batchcontractadjust/batchAdjustCommissionPointList/getLayoutOfSearch'"
|
|
4
|
+
:searchDataApi="'/batchcontractadjust/batchAdjustCommissionPointList/getList'"></ct-searchlist>
|
|
6
5
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
7
6
|
|
|
8
7
|
</div>
|