centaline-data-driven-v3 0.0.73 → 0.0.74
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 +60 -60
- package/package.json +1 -1
- package/src/assets/commonWeb.css +17 -0
- package/src/components/app/PhotoSelectList.vue +24 -7
- package/src/components/web/Form.vue +12 -6
- package/src/components/web/Location.vue +15 -16
- package/src/loader/src/Form.js +42 -0
- package/src/loader/src/LibFunction.js +4 -3
- package/src/loader/src/Location.js +2 -2
- package/src/main.js +1 -1
- package/src/utils/request.js +5 -5
- package/src/views/Form.vue +2 -2
package/package.json
CHANGED
package/src/assets/commonWeb.css
CHANGED
|
@@ -1044,4 +1044,21 @@ body {
|
|
|
1044
1044
|
background-color: #ed745f;
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
+
.ct-location .el-location-input{
|
|
1048
|
+
border: 1px solid var(--bagGray);
|
|
1049
|
+
line-height: 24px;
|
|
1050
|
+
padding-left: 5px;
|
|
1051
|
+
color: var(--centalineBlue);
|
|
1052
|
+
border-radius: 6px !important;
|
|
1053
|
+
font-size: inherit;
|
|
1054
|
+
}
|
|
1055
|
+
.ct-location .el-location-input:hover{
|
|
1056
|
+
border-color: var(--centalineBlue);
|
|
1057
|
+
}
|
|
1058
|
+
.ct-location .el-location-input:focus{
|
|
1059
|
+
outline:0;
|
|
1060
|
+
}
|
|
1061
|
+
.h26{
|
|
1062
|
+
height: 26px;
|
|
1063
|
+
}
|
|
1047
1064
|
/*elementPlus样式重置结束*/
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
<template v-if="imageList.length > 0">
|
|
10
10
|
<template v-if="layout">
|
|
11
11
|
<div style="display: flex;" v-for="(item, index) in imageList" :key="index">
|
|
12
|
-
<van-
|
|
12
|
+
<van-radio v-if="selectedMode == 1" @click="chooseRadio(item)" style="margin: 0 5px;"
|
|
13
|
+
:checked="item.ischeck" icon-size="14px"></van-radio>
|
|
14
|
+
<van-checkbox v-else style="margin: 0 5px;" @change="choose(item, true)" v-model="item.ischeck"
|
|
13
15
|
shape="square" icon-size="14px"></van-checkbox>
|
|
14
|
-
<ct-layout :vmodel="item" :cellLayout="layout" :key="itemKey"
|
|
15
|
-
@rolRouterclick="rolRouterCellClickHandler">
|
|
16
|
+
<ct-layout :vmodel="item" :cellLayout="layout" :key="itemKey" :rowindex="index"
|
|
17
|
+
:flagMediaSelect="true" @rolRouterclick="rolRouterCellClickHandler">
|
|
16
18
|
</ct-layout>
|
|
17
19
|
</div>
|
|
18
20
|
</template>
|
|
@@ -39,13 +41,14 @@
|
|
|
39
41
|
</template>
|
|
40
42
|
</template>
|
|
41
43
|
<template v-else>
|
|
42
|
-
<van-empty :description="common.LocalizedString('没有数据','沒有數據')" />
|
|
44
|
+
<van-empty :description="common.LocalizedString('没有数据', '沒有數據')" />
|
|
43
45
|
</template>
|
|
44
46
|
</div>
|
|
45
47
|
<div class="PhotoSelectList-bottom">
|
|
46
|
-
<van-checkbox @change="allchoose" v-model="allcheck" shape="square"
|
|
48
|
+
<van-checkbox v-if="selectedMode != 1" @change="allchoose" v-model="allcheck" shape="square"
|
|
49
|
+
icon-size="14px">{{ common.LocalizedString('全选', '全選') }}</van-checkbox>
|
|
47
50
|
<van-button type="primary" class="van-button-app" size="small" style="display: flex;margin-left: 30%;"
|
|
48
|
-
@click="handleClick()">{{common.LocalizedString('确定','確認')}}</van-button>
|
|
51
|
+
@click="handleClick()">{{ common.LocalizedString('确定', '確認') }}</van-button>
|
|
49
52
|
</div>
|
|
50
53
|
</div>
|
|
51
54
|
<van-popup v-model:show="showPicker" position="bottom" :safe-area-inset-bottom="true">
|
|
@@ -68,7 +71,7 @@ import { ElMessage } from 'element-plus'
|
|
|
68
71
|
import common from '../../utils/common'
|
|
69
72
|
import util from '../../utils/pub-use'
|
|
70
73
|
import PhotoSelectList from '../../loader/src/PhotoSelectList';
|
|
71
|
-
const emit = defineEmits(['handlePhoto','loaded', 'failLoad'])
|
|
74
|
+
const emit = defineEmits(['handlePhoto', 'loaded', 'failLoad'])
|
|
72
75
|
const props = defineProps({
|
|
73
76
|
Selected: Array,
|
|
74
77
|
api: String,
|
|
@@ -89,6 +92,7 @@ const itemKey = ref(0)
|
|
|
89
92
|
const mediaLabelID = ref('')
|
|
90
93
|
const mediaLabelName = ref('全部')
|
|
91
94
|
const options = ref([])
|
|
95
|
+
const selectedMode = ref(2)
|
|
92
96
|
onMounted(() => {
|
|
93
97
|
nextTick(function () {
|
|
94
98
|
showLoadingToast({ message: '', duration: 10000 });
|
|
@@ -115,6 +119,9 @@ function load(data) {
|
|
|
115
119
|
layout.value = data.source.content.layout;
|
|
116
120
|
paramName.value = data.source.content.paramName;
|
|
117
121
|
sourceRows = common.deepClone(data.source.content.mediaList);
|
|
122
|
+
if (data.source.content.selectedMode) {
|
|
123
|
+
selectedMode.value = data.source.content.selectedMode
|
|
124
|
+
}
|
|
118
125
|
}
|
|
119
126
|
else {
|
|
120
127
|
sourceRows = common.deepClone(data.source.content);
|
|
@@ -188,6 +195,16 @@ function choose(item, flagCheckbox) {
|
|
|
188
195
|
item.ischeck = false;
|
|
189
196
|
}
|
|
190
197
|
|
|
198
|
+
}
|
|
199
|
+
function chooseRadio(item) {
|
|
200
|
+
let chooseItem = common.deepClone(item);
|
|
201
|
+
chooseList.value = [];
|
|
202
|
+
imageList.value.forEach((v) => {
|
|
203
|
+
v.ischeck = false;
|
|
204
|
+
});
|
|
205
|
+
item.ischeck = true;
|
|
206
|
+
chooseList.value.push(chooseItem);
|
|
207
|
+
|
|
191
208
|
}
|
|
192
209
|
function allchoose() {
|
|
193
210
|
chooseList.value = [];
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<el-col v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
17
17
|
<component ref="Fields" :is="col.is" :vmodel="col" :key="itemKey"
|
|
18
18
|
:parameterAction="model.parameterAction" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
19
|
-
@change="changeHandler" @importComplete="importComplete"
|
|
19
|
+
@change="changeHandler" @importComplete="importComplete" @popupLocation="popupLocationHandler"
|
|
20
20
|
@fieldClick="fieldClickHandler" @popupSearchList="popupSearchListHandler"
|
|
21
21
|
@tableButtonClick="clickHandler" @popupGroupList="popupGroupListHandler"
|
|
22
22
|
@flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged">
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<el-col v-if="col.show !== false" :span="col.colspan" style="padding:5px">
|
|
33
33
|
<component ref="Fields" :is="col.is" :vmodel="col" :key="itemKey"
|
|
34
34
|
:parameterAction="model.parameterAction" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
35
|
-
@change="changeHandler" @importComplete="importComplete"
|
|
35
|
+
@change="changeHandler" @importComplete="importComplete" @popupLocation="popupLocationHandler"
|
|
36
36
|
@fieldClick="fieldClickHandler" @popupSearchList="popupSearchListHandler"
|
|
37
37
|
@tableButtonClick="clickHandler" @popupGroupList="popupGroupListHandler"
|
|
38
38
|
@flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged">
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<el-col :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
53
53
|
<component ref="Fields" :is="col.is" :vmodel="col" :key="itemKey"
|
|
54
54
|
:parameterAction="model.parameterAction" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
55
|
-
@change="changeHandler" @fieldClick="fieldClickHandler"
|
|
55
|
+
@change="changeHandler" @fieldClick="fieldClickHandler" @popupLocation="popupLocationHandler"
|
|
56
56
|
@popupSearchList="popupSearchListHandler" @importComplete="importComplete"
|
|
57
57
|
@popupGroupList="popupGroupListHandler" @tableButtonClick="clickHandler"
|
|
58
58
|
@flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged">
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
<el-col :span="col.colspan" v-if="col.show !== false" style="padding:5px">
|
|
84
84
|
<component ref="Fields" :is="col.is" :vmodel="col" :key="itemKey"
|
|
85
85
|
:parameterAction="model.parameterAction" v-bind="col.bindPara" :fileData="getFileData(col)"
|
|
86
|
-
@change="changeHandler" @fieldClick="fieldClickHandler"
|
|
86
|
+
@change="changeHandler" @fieldClick="fieldClickHandler" @popupLocation="popupLocationHandler"
|
|
87
87
|
@popupSearchList="popupSearchListHandler" @importComplete="importComplete"
|
|
88
88
|
@popupGroupList="popupGroupListHandler" @tableButtonClick="clickHandler"
|
|
89
89
|
@flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged">
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
<component ref="Fields" :is="col.is" :vmodel="col" :parameterAction="model.parameterAction"
|
|
103
103
|
v-bind="col.bindPara" @change="changeHandler" :key="itemKey" :fileData="getFileData(col)"
|
|
104
104
|
@fieldClick="fieldClickHandler" @popupSearchList="popupSearchListHandler" @importComplete="importComplete"
|
|
105
|
-
@tableButtonClick="clickHandler" @popupGroupList="popupGroupListHandler"
|
|
105
|
+
@tableButtonClick="clickHandler" @popupGroupList="popupGroupListHandler" @popupLocation="popupLocationHandler"
|
|
106
106
|
@flagNotificationParentAfterContentChanged="flagNotificationParentAfterContentChanged">
|
|
107
107
|
</component>
|
|
108
108
|
</el-col>
|
|
@@ -353,6 +353,9 @@ function validExcute() {
|
|
|
353
353
|
}
|
|
354
354
|
else if (f.$el.offsetParent.offsetParent.offsetParent.classList[0] === 'ct-dialog_wrapper') {
|
|
355
355
|
total = f.$el.offsetTop;
|
|
356
|
+
if(f.$el.offsetParent){
|
|
357
|
+
total+=f.$el.offsetParent.offsetTop
|
|
358
|
+
}
|
|
356
359
|
document.querySelector(".ct-dialog_body").children[0].scrollTop = total;
|
|
357
360
|
}
|
|
358
361
|
else if (f.$el.offsetParent.offsetParent.offsetParent.localName === "body") {
|
|
@@ -547,7 +550,10 @@ function importComplete(res, field) {
|
|
|
547
550
|
}
|
|
548
551
|
//弹出选择列表
|
|
549
552
|
function popupSearchListHandler(singleSelectio, field, router, callBack) {
|
|
550
|
-
|
|
553
|
+
Form.popupSearchListHandler(singleSelectio, field, router, model.value, Fields.value, props, callBack)
|
|
554
|
+
}
|
|
555
|
+
function popupLocationHandler(field, router, callBack) {
|
|
556
|
+
Form.popupLocationHandler(field, router, callBack,model.value,props);
|
|
551
557
|
}
|
|
552
558
|
//弹出分组列表
|
|
553
559
|
function popupGroupListHandler(field, router, callBack) {
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ct-field :vmodel="model">
|
|
3
3
|
<template #Control>
|
|
4
|
-
<div v-if="model !== null" class="ct-location" style="
|
|
5
|
-
<div
|
|
6
|
-
class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput text-justify">
|
|
4
|
+
<div v-if="model !== null" class="ct-location" style="display:flex">
|
|
5
|
+
<div class="el-input el-input--mini el-input-group el-input-group--prepend el-input--suffix showLabel lableinput text-justify">
|
|
7
6
|
<div v-if="model.showLabel && model.label" class="el-input-group__prepend">
|
|
8
7
|
<div slot="prepend" class="label-ellipsis" :class="[model.labelClass]" :title="model.label">
|
|
9
8
|
{{ model.label }}
|
|
10
9
|
</div>
|
|
11
10
|
</div>
|
|
12
|
-
<div style="display:inline-flex;padding-left:0px;" v-bind="model.attrs"
|
|
13
|
-
:class="model.locked ? 'ct-is-disabled' : ''">
|
|
11
|
+
<div style="display:inline-flex;padding-left:0px;" v-bind="model.attrs" :class="model.locked ? 'ct-is-disabled' : ''">
|
|
14
12
|
<input style="text-align:left;width:100%" class="el-location-input hoverColor"
|
|
15
|
-
:placeholder="model.attrs.placeholder1" v-model="model.
|
|
13
|
+
:placeholder="model.attrs.placeholder1" v-model="model.code1" @change="changeModel($event)" />
|
|
16
14
|
<input style="text-align:left;width:100%;margin-left:5px;" class="el-location-input hoverColor"
|
|
17
|
-
:placeholder="model.attrs.placeholder2" v-model="model.
|
|
15
|
+
:placeholder="model.attrs.placeholder2" v-model="model.code2" @change="changeModel($event);" />
|
|
18
16
|
</div>
|
|
19
17
|
</div>
|
|
20
18
|
</div>
|
|
@@ -22,10 +20,10 @@
|
|
|
22
20
|
<template #Sufbutton v-if="model !== null&&model.moreActionRouter">
|
|
23
21
|
<div v-if="model.moreActionRouter" style="display: inline-block;margin-left: 5px;">
|
|
24
22
|
<img v-if="model.moreActionRouter.imgUrl" class="ct-tablecurrencyImg ct-tablecurrencyItem"
|
|
25
|
-
:src="model.moreActionRouter.imgUrl" :title="model.moreActionRouter.
|
|
23
|
+
:src="model.moreActionRouter.imgUrl" :title="model.moreActionRouter.controlLabel"
|
|
26
24
|
@click="popupLocationHandler($event)" />
|
|
27
25
|
<el-button v-else size="mini" type="primary" class="h26" @click="popupLocationHandler($event)">
|
|
28
|
-
{{ model.moreActionRouter.
|
|
26
|
+
{{ model.moreActionRouter.controlLabel }}
|
|
29
27
|
</el-button>
|
|
30
28
|
</div>
|
|
31
29
|
</template>
|
|
@@ -39,16 +37,17 @@ const props = defineProps({
|
|
|
39
37
|
vmodel: Object
|
|
40
38
|
})
|
|
41
39
|
const model = initData(props, Location)
|
|
40
|
+
console.log(model.value);
|
|
42
41
|
function popupLocationHandler() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
emit('popupLocation', model.value, model.value.moreActionRouter, (data) => {
|
|
43
|
+
if(data){
|
|
44
|
+
model.value.value=data.lng;
|
|
45
|
+
model.value.value1=data.lat;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
49
48
|
}
|
|
50
49
|
function changeModel() {
|
|
51
|
-
|
|
50
|
+
changeHandler(model.value, emit);
|
|
52
51
|
}
|
|
53
52
|
defineExpose({
|
|
54
53
|
model
|
package/src/loader/src/Form.js
CHANGED
|
@@ -62,6 +62,14 @@ function loadFromModel(source, isFormList) {
|
|
|
62
62
|
router[attrKey] = attrValue;
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
+
setbuttonRouter(id, attrKey, attrValue) {
|
|
66
|
+
var router = this.form.buttons.find((v1) => {
|
|
67
|
+
return v1.key === id;
|
|
68
|
+
});
|
|
69
|
+
if (router) {
|
|
70
|
+
router[attrKey] = attrValue;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
65
73
|
//获取Field的属性attrKey的值
|
|
66
74
|
getValueByFieldName(id, attrKey) {
|
|
67
75
|
attrKey = common.initialsToLowerCase(attrKey);
|
|
@@ -1043,6 +1051,39 @@ function popupSearchListHandler(singleSelectio, field, router, model, Fields, pr
|
|
|
1043
1051
|
}
|
|
1044
1052
|
common.openDialog(dialogOption);
|
|
1045
1053
|
}
|
|
1054
|
+
function popupLocationHandler(field, router, callBack,model,props) {
|
|
1055
|
+
var submitData = Form.getFileData(router,model);
|
|
1056
|
+
submitData.lng=field.code1;
|
|
1057
|
+
submitData.lat=field.code2;
|
|
1058
|
+
submitData = router.getActionPara(submitData).para;
|
|
1059
|
+
|
|
1060
|
+
var dialogOption = {
|
|
1061
|
+
title: router.pageTitle || router.controlLabel,
|
|
1062
|
+
pane: common.getParentPane(),
|
|
1063
|
+
content: [{
|
|
1064
|
+
component: "ct-mapBaidu",
|
|
1065
|
+
width: router.pageWidth + "px",
|
|
1066
|
+
height: router.pageHeight + "px",
|
|
1067
|
+
documentHeight: props.documentHeight,
|
|
1068
|
+
documentWidth: props.documentWidth,
|
|
1069
|
+
attrs: {
|
|
1070
|
+
field: router,
|
|
1071
|
+
apiParam: submitData,
|
|
1072
|
+
openType : 'Location',
|
|
1073
|
+
onSubmit(ev) {
|
|
1074
|
+
if (callBack) {
|
|
1075
|
+
callBack(ev);
|
|
1076
|
+
}
|
|
1077
|
+
common.closeDialog(dialogOption.dialog);
|
|
1078
|
+
},
|
|
1079
|
+
onCloseDialog(ev) {
|
|
1080
|
+
common.closeDialog(dialogOption.dialog);
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}]
|
|
1084
|
+
};
|
|
1085
|
+
common.openDialog(dialogOption);
|
|
1086
|
+
}
|
|
1046
1087
|
//弹出分组搜索列表
|
|
1047
1088
|
function popupGroupListHandler(field, router, model, Fields, props, callBack) {
|
|
1048
1089
|
let submitData = {};
|
|
@@ -1225,5 +1266,6 @@ const Form = {
|
|
|
1225
1266
|
changeHandler,
|
|
1226
1267
|
getRouterAndSubmitData,
|
|
1227
1268
|
updateFields,
|
|
1269
|
+
popupLocationHandler,
|
|
1228
1270
|
};
|
|
1229
1271
|
export default Form;
|
|
@@ -216,9 +216,10 @@ const LibFunction = {
|
|
|
216
216
|
item.is = 'ct-customizecolumns'
|
|
217
217
|
break;
|
|
218
218
|
case Enum.ControlType.Location:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
moreActionRouter = LibFunction.getRouter(source.actionRouters, field.moreActionRouterKey);
|
|
220
|
+
item = Location(item,moreActionRouter);
|
|
221
|
+
item.is = 'ct-location';
|
|
222
|
+
break;
|
|
222
223
|
case Enum.ControlType.SearchPage: //搜索列表页面
|
|
223
224
|
item = {};
|
|
224
225
|
item.is = 'ct-searchlist';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import base from '../../loader/index';
|
|
2
2
|
import valid from '../../utils//validate';
|
|
3
|
-
const Location = function (source) {
|
|
3
|
+
const Location = function (source,moreActionRouter) {
|
|
4
4
|
let rtn = {
|
|
5
|
-
moreActionRouter:
|
|
5
|
+
moreActionRouter: moreActionRouter,
|
|
6
6
|
getFormObj() {
|
|
7
7
|
var rtnFormObj = {};
|
|
8
8
|
Object.defineProperty(rtnFormObj, source.fieldName1, {
|
package/src/main.js
CHANGED
|
@@ -65,7 +65,7 @@ app.use(centaline, {
|
|
|
65
65
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
66
66
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
67
67
|
//authObject: '{token:"1-a7289bb2-9f1e-4a04-9016-1e555bf39188"}',
|
|
68
|
-
authObject: '{EmpID:"
|
|
68
|
+
authObject: '{EmpID:"Token_f5be9890-db08-463b-b6c3-0874f422fac9",MachineCode:"e1f39b75-7069-4c4f-b5d5-c590da2d9aa2",SSO_Token:"SSOToken_f5be9890-db08-463b-b6c3-0874f422fac9",Platform:"WEB"}',
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
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 + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
18
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action.charAt(0)=='/'? params.action.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 + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
37
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action.charAt(0)=='/'? params.action.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 + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
130
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action.charAt(0)=='/'? params.action.substr(1):params.action);
|
|
131
131
|
params = params.para;
|
|
132
132
|
}
|
|
133
133
|
return Axios.post(url, params, {
|
|
@@ -150,7 +150,7 @@ const request = {
|
|
|
150
150
|
params = params.para;
|
|
151
151
|
}
|
|
152
152
|
else if (common.flagRouterSelf()) {
|
|
153
|
-
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + params.action;
|
|
153
|
+
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0)=='/'? params.action.substr(1):params.action);
|
|
154
154
|
params = params.para;
|
|
155
155
|
}
|
|
156
156
|
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 + (url=='' || url.substr(-1)=='/'?'':'/') + params.action;
|
|
178
|
+
url = url + (url=='' || url.substr(-1)=='/'?'':'/') + (params.action.charAt(0)=='/'? params.action.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="'/PropertyPublish/getLayoutOfAudit'" :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={"workListID":"1902920155446489088","actionType":3}
|
|
14
14
|
</script>
|