centaline-data-driven-v3 0.1.58 → 0.1.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 +53 -53
- package/package.json +1 -1
- package/src/components/app/FormList.vue +10 -21
- package/src/loader/src/Form.js +15 -5
- package/src/main.js +3 -3
- package/src/views/Form.vue +2 -2
- package/src/views/SearchList.vue +2 -8
package/package.json
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
<template v-else>
|
|
34
|
-
<div v-if="model.
|
|
35
|
-
<h5>{{ model.
|
|
34
|
+
<div v-if="model.title" class="list-title">
|
|
35
|
+
<h5>{{ model.title }}</h5>
|
|
36
36
|
</div>
|
|
37
37
|
<div class="list-button">
|
|
38
38
|
<component v-if="model.selectRouter !== null" :is="model.selectRouter.is" size="small"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<thead ref="tableHead" class="right-no-fixation-th">
|
|
49
49
|
<tr class="ct-tr" ref="headTr">
|
|
50
50
|
<th class="ct-th th-edit"
|
|
51
|
-
v-if="model.rows[0].edit || model.rows[0].delete ||
|
|
51
|
+
v-if="model.rows[0].edit || model.rows[0].delete || model.buttons.length > 0">
|
|
52
52
|
<span>操作</span>
|
|
53
53
|
</th>
|
|
54
54
|
<template v-for="(column, i) in model.rows[0].field" :key="i">
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<tr v-for="(row, rowindex) in model.tableData" :key="rowindex"
|
|
66
66
|
:ref="'rows.' + rowindex" class="ct-tr">
|
|
67
67
|
<template
|
|
68
|
-
v-if="model.rows[0].edit || model.rows[0].delete ||
|
|
68
|
+
v-if="model.rows[0].edit || model.rows[0].delete || model.buttons.length > 0">
|
|
69
69
|
<td class="ct-td td-edit" align="center" valign="middle">
|
|
70
70
|
<van-image v-if="row.edit || row.isSet"
|
|
71
71
|
style="cursor: pointer;margin-right: 5px;" width="20" height="20"
|
|
@@ -87,14 +87,8 @@
|
|
|
87
87
|
<template v-for="(column, i) in model.rows[0].field" :key="i">
|
|
88
88
|
<td v-if="column.show" class="ct-td" :rowspan="column.rowspan"
|
|
89
89
|
:colspan="column.colspan">
|
|
90
|
-
<span v-if="column.
|
|
91
|
-
|
|
92
|
-
:colValue="row[column.fieldName1].code1" :rowData="row"
|
|
93
|
-
@click="rolRouterClickHandler">
|
|
94
|
-
</Tablecurrency>
|
|
95
|
-
</span>
|
|
96
|
-
<ct-span v-else-if="row[column.fieldName1]"
|
|
97
|
-
:vmodel="row[column.fieldName1]" :rowData="row"></ct-span>
|
|
90
|
+
<ct-span v-if="row[column.fieldName1]" :vmodel="row[column.fieldName1]"
|
|
91
|
+
:rowData="row"></ct-span>
|
|
98
92
|
</td>
|
|
99
93
|
</template>
|
|
100
94
|
</tr>
|
|
@@ -102,7 +96,7 @@
|
|
|
102
96
|
<template v-else>
|
|
103
97
|
<tr class="ct-tr" ref="headTr">
|
|
104
98
|
<td class="ct-td" :colspan="colspansum" style="text-align: center;">
|
|
105
|
-
<span>
|
|
99
|
+
<span> {{common.LocalizedString('暂无数据','暫無數據')}}</span>
|
|
106
100
|
</td>
|
|
107
101
|
</tr>
|
|
108
102
|
</template>
|
|
@@ -141,8 +135,6 @@ import Enum from '../../utils/Enum'
|
|
|
141
135
|
import common from '../../utils/common'
|
|
142
136
|
import util from '../../utils/pub-use'
|
|
143
137
|
import draggable from "vuedraggable";
|
|
144
|
-
import Tablecurrency from './SearchList/Tablecurrency.vue';
|
|
145
|
-
|
|
146
138
|
const emit = defineEmits(['click', 'input', 'change', 'popupSearchList', 'tableButtonClick'])
|
|
147
139
|
const props = defineProps({
|
|
148
140
|
parameterAction: String,
|
|
@@ -175,7 +167,7 @@ function Init() {
|
|
|
175
167
|
model.value.validExcute = () => {
|
|
176
168
|
var rtn = fieldsValidExcute();
|
|
177
169
|
if (!rtn) {
|
|
178
|
-
model.value.displayValidMessage = common.LocalizedString('请填写',
|
|
170
|
+
model.value.displayValidMessage = common.LocalizedString('请填写','請填寫')+'[' + model.value.controlLabel + ']'
|
|
179
171
|
}
|
|
180
172
|
return fieldsValidExcute();
|
|
181
173
|
}
|
|
@@ -238,7 +230,7 @@ function fieldsValidExcute() {
|
|
|
238
230
|
if (model.value.form && model.value.form.fields) {
|
|
239
231
|
const currentIndex = model.value.form.fields.findIndex(v => v.fieldName1 === model.value.fieldName1);
|
|
240
232
|
if (currentIndex - 1 >= 0) {
|
|
241
|
-
if (model.value.form.fields[currentIndex - 1].controlType == Enum.ControlType.Group)
|
|
233
|
+
if (model.value.form.fields[currentIndex - 1].controlType == Enum.ControlType.Group){
|
|
242
234
|
controlLabel = model.value.form.fields[currentIndex - 1].controlLabel;
|
|
243
235
|
}
|
|
244
236
|
}
|
|
@@ -292,14 +284,11 @@ function changeHandler(field, index) {
|
|
|
292
284
|
model.value.currentEventField = field;
|
|
293
285
|
emit('change', model.value);
|
|
294
286
|
}
|
|
295
|
-
function rolRouterClickHandler(field, rowData, rowindex) {
|
|
296
|
-
buttonClick(rowData, field);
|
|
297
|
-
}
|
|
298
287
|
|
|
299
288
|
function buttonClick(row, button) {
|
|
300
289
|
var submitData = {};
|
|
301
290
|
button.submitFormField.forEach((v) => {
|
|
302
|
-
submitData[v] = common.
|
|
291
|
+
submitData[v] = row[common.initialsToUpperCase(v)].code1;
|
|
303
292
|
});
|
|
304
293
|
model.value.currentRowIndex = model.value.source.rows.findIndex(v => v.$sourceIndex === row.$sourceIndex);
|
|
305
294
|
|
package/src/loader/src/Form.js
CHANGED
|
@@ -675,7 +675,9 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
675
675
|
source.buttons.forEach((v) => {
|
|
676
676
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
677
677
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
678
|
-
v.action
|
|
678
|
+
if (v.action) {
|
|
679
|
+
v.action = (appRootUrl || '') + v.action;
|
|
680
|
+
}
|
|
679
681
|
var button = Router(v);
|
|
680
682
|
button.is = "ct-button";
|
|
681
683
|
rtn._buttons.push(button);
|
|
@@ -696,7 +698,9 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
696
698
|
source.captionBarButtons.forEach((v) => {
|
|
697
699
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
698
700
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
699
|
-
v.action
|
|
701
|
+
if (v.action) {
|
|
702
|
+
v.action = (appRootUrl || '') + v.action;
|
|
703
|
+
}
|
|
700
704
|
var button = Router(v);
|
|
701
705
|
button.is = "ct-button";
|
|
702
706
|
rtn._captionBarButtons.push(button);
|
|
@@ -717,7 +721,9 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
717
721
|
source.links.forEach((v) => {
|
|
718
722
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
719
723
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
720
|
-
v.action
|
|
724
|
+
if (v.action) {
|
|
725
|
+
v.action = (appRootUrl || '') + v.action;
|
|
726
|
+
}
|
|
721
727
|
var button = Router(v);
|
|
722
728
|
button.is = "ct-button";
|
|
723
729
|
rtn._links.push(button);
|
|
@@ -738,7 +744,9 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
738
744
|
source.actionRouters.forEach((v) => {
|
|
739
745
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
740
746
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
741
|
-
v.action
|
|
747
|
+
if (v.action) {
|
|
748
|
+
v.action = (appRootUrl || '') + v.action;
|
|
749
|
+
}
|
|
742
750
|
var button = Router(v);
|
|
743
751
|
button.is = "ct-button";
|
|
744
752
|
rtn._actionRouters.push(button);
|
|
@@ -935,7 +943,9 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
935
943
|
}
|
|
936
944
|
},
|
|
937
945
|
getRtnRouter(v) {
|
|
938
|
-
v.action
|
|
946
|
+
if (v.action) {
|
|
947
|
+
v.action = (appRootUrl || '') + v.action;
|
|
948
|
+
}
|
|
939
949
|
var button = Router(v);
|
|
940
950
|
button.is = "ct-button";
|
|
941
951
|
return button;
|
package/src/main.js
CHANGED
|
@@ -21,7 +21,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
|
-
baseUrl: "
|
|
24
|
+
baseUrl: "http://10.88.22.66/IBS.Mvc/api/",
|
|
25
25
|
//baseUrl:"http://10.88.22.66:7080/ibs-api/",
|
|
26
26
|
//baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
|
|
27
27
|
//baseUrl: "http://10.88.22.13:6060/onecard-api/",
|
|
@@ -29,7 +29,7 @@ app.use(centaline, {
|
|
|
29
29
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
30
30
|
|
|
31
31
|
flagRouterSelf: true,
|
|
32
|
-
flagApp:
|
|
32
|
+
flagApp: true,//是否app端
|
|
33
33
|
zindex: 999,
|
|
34
34
|
showRequestSuccessMessage: true,
|
|
35
35
|
showRequestErrorMessage: true,
|
|
@@ -66,7 +66,7 @@ app.use(centaline, {
|
|
|
66
66
|
return {
|
|
67
67
|
|
|
68
68
|
//AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIyNTEyMTUxNzQyMTg5QzI4MTgwRDkxRTk0MDhEOTA0QSIsImxvZ2luX3VzZXJfa2V5IjoiN2MzYzNjNjAtNWVjMy00MzdkLWExMDYtOWYxZTMwYjU0Mjg2In0.daG9mS98Gg8KmHSUjYHktMcO2Jk7SVtCcqm2sRB0I8Y2N0TuonIrVUDcHdNdDiuD3v6qO_f010tQWlBsAQ1dqg',
|
|
69
|
-
authobject: '{
|
|
69
|
+
authobject: '{EmpID:"Token_eb197a2a-06d4-4258-af95-90a6d3541b12",MachineCode:"1d6b7fc9-90ff-4a68-9504-1174fa72db7b",SSO_Token:"SSOToken_eb197a2a-06d4-4258-af95-90a6d3541b12",Platform:"WEB"}',
|
|
70
70
|
//authobject: '{EmpID:"Token_946d56e1-7972-4382-9d10-4a72496aab39",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_946d56e1-7972-4382-9d10-4a72496aab39",Platform:"WEB"}',
|
|
71
71
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
72
72
|
//authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
package/src/views/Form.vue
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/PropertyTender/readDetail'" :apiParam="apiParam"></ct-form>
|
|
5
5
|
<ct-dialoglist></ct-dialoglist>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
<script lang="ts" setup>
|
|
9
|
-
const apiParam={"
|
|
9
|
+
const apiParam={"tenderID":"2013190230941741056","actionType":3}
|
|
10
10
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
<span @click="clickHandle">aa</span>
|
|
4
3
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/ccesmanage/AppUseSummaryList/getLayoutOfSearch'"
|
|
5
4
|
|
|
6
5
|
:searchDataApi="'/ccesmanage/AppUseSummaryList/getList'"></ct-searchlist> -->
|
|
@@ -8,9 +7,10 @@
|
|
|
8
7
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
|
|
9
8
|
|
|
10
9
|
:searchDataApi="'/propertyPublishList/getListOfSearchModel'" :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
|
|
11
|
-
<ct-searchlist :apiParam="apiParam"
|
|
10
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeAttendanceBillList/getLayoutOfSearchForMy'"
|
|
12
11
|
:searchDataApi="'/EmployeeAttendanceBillList/getListOfSearchModelForMy'"></ct-searchlist>
|
|
13
12
|
|
|
13
|
+
|
|
14
14
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
15
15
|
|
|
16
16
|
</div>
|
|
@@ -18,12 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
<script lang="ts" setup>
|
|
20
20
|
import { ref, nextTick } from 'vue'
|
|
21
|
-
|
|
22
21
|
const apiParam = {}
|
|
23
|
-
const reflist=ref()
|
|
24
|
-
function clickHandle(){
|
|
25
|
-
reflist.value.refScreen.model.formData.setValueByFieldName('b_date','code1','2026-05-20')
|
|
26
|
-
reflist.value.search()
|
|
27
|
-
}
|
|
28
22
|
|
|
29
23
|
</script>
|