centaline-data-driven 1.6.71 → 1.6.72
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/package.json +1 -1
- package/release-log.md +7 -0
- package/src/Form.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +220 -99
- package/src/centaline/loader/src/ctl/Base.js +3 -0
- package/src/centaline/loader/src/ctl/FormList.js +9 -0
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +136 -6
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam" :topHeight="topHeight" :documentHeight="'600px'"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
"
|
|
15
|
+
"originalTraId":"1526444754463850498","columnName":"transactionNo","actionType":"1","pageStyle":"2","pageTitle":"成交报告","pageOnly":"true"
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
|
@@ -1,112 +1,227 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ct-form-list" v-focus="foucus">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<div id="listTable">
|
|
27
|
-
<el-row>
|
|
28
|
-
<el-col :span="24">
|
|
29
|
-
<el-table size="mini" class="max-table--border" :data="model.tableData" border
|
|
30
|
-
style="width: 100%" highlight-current-row :show-summary="model.showSummary" :summary-method="getSummaries">
|
|
31
|
-
<!--操作列-->
|
|
32
|
-
<template v-if="model.rowActionRoutersAlign === 1">
|
|
33
|
-
<el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
34
|
-
<template slot-scope="scope">
|
|
35
|
-
<template v-if="!model.tableDisabled">
|
|
36
|
-
<span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
|
|
37
|
-
{{scope.row.isSet?'保存':"修改"}}
|
|
38
|
-
</span>
|
|
39
|
-
<span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
|
|
40
|
-
删除
|
|
41
|
-
</span>
|
|
42
|
-
<span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
|
|
43
|
-
取消
|
|
44
|
-
</span>
|
|
45
|
-
<span v-for="(v,i) in model.buttons"
|
|
46
|
-
v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
|
|
47
|
-
class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
|
|
48
|
-
{{v.label}}
|
|
49
|
-
</span>
|
|
50
|
-
</template>
|
|
51
|
-
</template>
|
|
52
|
-
</el-table-column>
|
|
3
|
+
<el-collapse v-if="model.flagCollapse" v-model="activeName" :class="'el-collapse-saveLine'">
|
|
4
|
+
<el-collapse-item :key="collapseIndex" :title="model.title" :name="model.title"
|
|
5
|
+
:disabled="model.tableDisabled" :class="model.tableDisabled ? 'ct-collapse-item-title' : ''">
|
|
6
|
+
<template slot="title">
|
|
7
|
+
<i class="sign"></i>
|
|
8
|
+
<span>{{ model.title }}</span>
|
|
9
|
+
</template>
|
|
10
|
+
<el-row>
|
|
11
|
+
<div class="list-button">
|
|
12
|
+
<template v-if="!model.tableDisabled">
|
|
13
|
+
<ul>
|
|
14
|
+
<li v-for="(v,i) in model.toolButtonsShow" >
|
|
15
|
+
<component :is="v.is" :vmodel="v" :parentModel="model" @click="toolButtonsClick" @importComplete="importComplete" @change="toolButtonsChangeHandler(v,$event)"></component>
|
|
16
|
+
</li>
|
|
17
|
+
<li v-if="model.selectRouter!==null">
|
|
18
|
+
<component :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
|
|
19
|
+
</li>
|
|
20
|
+
<li v-if="model.create" >
|
|
21
|
+
<el-button :disabled="model.disabled" type="success" class="max-btn-add" style="width: auto;" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
|
|
22
|
+
{{model.createText}}
|
|
23
|
+
</el-button>
|
|
24
|
+
</li>
|
|
25
|
+
</ul>
|
|
53
26
|
</template>
|
|
27
|
+
</div>
|
|
54
28
|
|
|
55
|
-
|
|
56
|
-
<el-
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
29
|
+
<div id="listTable">
|
|
30
|
+
<el-row>
|
|
31
|
+
<el-col :span="24">
|
|
32
|
+
<el-table size="mini" class="max-table--border" :data="model.tableData" border
|
|
33
|
+
style="width: 100%" highlight-current-row :show-summary="model.showSummary" :summary-method="getSummaries">
|
|
34
|
+
<!--操作列-->
|
|
35
|
+
<template v-if="model.rowActionRoutersAlign === 1">
|
|
36
|
+
<el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
37
|
+
<template slot-scope="scope">
|
|
38
|
+
<template v-if="!model.tableDisabled">
|
|
39
|
+
<span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
|
|
40
|
+
{{scope.row.isSet?'保存':"修改"}}
|
|
41
|
+
</span>
|
|
42
|
+
<span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
|
|
43
|
+
删除
|
|
44
|
+
</span>
|
|
45
|
+
<span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
|
|
46
|
+
取消
|
|
47
|
+
</span>
|
|
48
|
+
<span v-for="(v,i) in model.buttons"
|
|
49
|
+
v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
|
|
50
|
+
class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
|
|
51
|
+
{{v.label}}
|
|
52
|
+
</span>
|
|
53
|
+
</template>
|
|
54
|
+
</template>
|
|
55
|
+
</el-table-column>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<!--数据列-->
|
|
59
|
+
<el-table-column v-for="(v,i) in model.rows[0].field" :key="i" :prop="v.id" :label="v.label" :width="v.width" :fixed="model.frozenColumns.includes(v.id)" v-if="v.show !== false && v.type!==13" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
60
|
+
<template slot="header" slot-scope="scope">
|
|
61
|
+
<div :class="[{'ct-table-required':v.required&&model.rows[0].edit&& model.rows[0].delete&&!model.tableDisabled},getHeadClass(v)]">
|
|
62
|
+
{{v.label}}
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
<template slot-scope="scope">
|
|
66
|
+
<span v-if="scope.row.isSet">
|
|
67
|
+
<component ref="Fields" :is="model.currentRow.data[v.id].locked || model.currentRow.data[v.id].is!==v.is?model.currentRow.data[v.id].is:v.is"
|
|
68
|
+
:vmodel="model.currentRow.data[v.id]" :api="model.OptApi" :key="model.currentRow.data[v.id].rowKey+itemKey"
|
|
69
|
+
@change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
|
|
70
|
+
@input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
|
|
71
|
+
</span>
|
|
72
|
+
<span v-else-if="v.is=='ct-sensitiveeye'">
|
|
73
|
+
<component ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi" :key="itemKey"></component>
|
|
74
|
+
</span>
|
|
75
|
+
<!--可点击的列-->
|
|
76
|
+
<span v-else-if="v.router" :class="'cell'" style="display: flex;">
|
|
77
|
+
<ct-tablecurrency :router="v.router" :colValue="scope.row[v.id].code1" :rowData="scope.row" @click="rolRouterClickHandler">
|
|
78
|
+
</ct-tablecurrency>
|
|
79
|
+
</span>
|
|
80
|
+
<ct-span v-else :vmodel="scope.row[v.id]" :rowNum="scope.row.$sourceIndex" :rowData="scope.row" :key="scope.row[v.id].rowKey+itemKey" ref="FieldsLabel"></ct-span>
|
|
81
|
+
</template>
|
|
82
|
+
</el-table-column>
|
|
83
|
+
|
|
84
|
+
<!--操作列-->
|
|
85
|
+
<template v-if="model.rowActionRoutersAlign !== 1">
|
|
86
|
+
<el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
87
|
+
<template slot-scope="scope">
|
|
88
|
+
<template v-if="!model.tableDisabled">
|
|
89
|
+
<span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
|
|
90
|
+
{{scope.row.isSet?'保存':"修改"}}
|
|
91
|
+
</span>
|
|
92
|
+
<span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
|
|
93
|
+
删除
|
|
94
|
+
</span>
|
|
95
|
+
<span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
|
|
96
|
+
取消
|
|
97
|
+
</span>
|
|
98
|
+
<span v-for="(v,i) in model.buttons"
|
|
99
|
+
v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
|
|
100
|
+
class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
|
|
101
|
+
{{v.label}}
|
|
102
|
+
</span>
|
|
103
|
+
</template>
|
|
104
|
+
</template>
|
|
105
|
+
</el-table-column>
|
|
106
|
+
</template>
|
|
107
|
+
</el-table>
|
|
108
|
+
</el-col>
|
|
109
|
+
</el-row>
|
|
110
|
+
</div>
|
|
111
|
+
|
|
112
|
+
<div v-if="model.description" v-html="model.description"></div>
|
|
113
|
+
</el-row>
|
|
114
|
+
</el-collapse-item>
|
|
115
|
+
</el-collapse>
|
|
116
|
+
|
|
117
|
+
<template v-else>
|
|
118
|
+
<div v-if="model.title" class="list-title">
|
|
119
|
+
<h5>{{model.title}}</h5>
|
|
120
|
+
</div>
|
|
121
|
+
<div v-else-if="model.create || (model.selectRouter && model.selectRouter.id) || model.toolButtonsShow.length>0" class="list-title"></div>
|
|
122
|
+
<div class="list-button">
|
|
123
|
+
<template v-if="!model.tableDisabled">
|
|
124
|
+
<ul>
|
|
125
|
+
<li v-for="(v,i) in model.toolButtonsShow" >
|
|
126
|
+
<component :is="v.is" :vmodel="v" :parentModel="model" @click="toolButtonsClick" @importComplete="importComplete" @change="toolButtonsChangeHandler(v,$event)"></component>
|
|
127
|
+
</li>
|
|
128
|
+
<li v-if="model.selectRouter!==null">
|
|
129
|
+
<component :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
|
|
130
|
+
</li>
|
|
131
|
+
<li v-if="model.create" >
|
|
132
|
+
<el-button :disabled="model.disabled" type="success" class="max-btn-add" style="width: auto;" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
|
|
133
|
+
{{model.createText}}
|
|
134
|
+
</el-button>
|
|
135
|
+
</li>
|
|
136
|
+
</ul>
|
|
137
|
+
</template>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<div id="listTable">
|
|
141
|
+
<el-row>
|
|
142
|
+
<el-col :span="24">
|
|
143
|
+
<el-table size="mini" class="max-table--border" :data="model.tableData" border
|
|
144
|
+
style="width: 100%" highlight-current-row :show-summary="model.showSummary" :summary-method="getSummaries">
|
|
145
|
+
<!--操作列-->
|
|
146
|
+
<template v-if="model.rowActionRoutersAlign === 1">
|
|
147
|
+
<el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
148
|
+
<template slot-scope="scope">
|
|
149
|
+
<template v-if="!model.tableDisabled">
|
|
150
|
+
<span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
|
|
151
|
+
{{scope.row.isSet?'保存':"修改"}}
|
|
152
|
+
</span>
|
|
153
|
+
<span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
|
|
154
|
+
删除
|
|
155
|
+
</span>
|
|
156
|
+
<span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
|
|
157
|
+
取消
|
|
158
|
+
</span>
|
|
159
|
+
<span v-for="(v,i) in model.buttons"
|
|
160
|
+
v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
|
|
161
|
+
class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
|
|
162
|
+
{{v.label}}
|
|
163
|
+
</span>
|
|
164
|
+
</template>
|
|
165
|
+
</template>
|
|
166
|
+
</el-table-column>
|
|
78
167
|
</template>
|
|
79
|
-
</el-table-column>
|
|
80
168
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
{{scope.row.isSet?'保存':"修改"}}
|
|
88
|
-
</span>
|
|
89
|
-
<span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
|
|
90
|
-
删除
|
|
91
|
-
</span>
|
|
92
|
-
<span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
|
|
93
|
-
取消
|
|
94
|
-
</span>
|
|
95
|
-
<span v-for="(v,i) in model.buttons"
|
|
96
|
-
v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
|
|
97
|
-
class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
|
|
98
|
-
{{v.label}}
|
|
99
|
-
</span>
|
|
169
|
+
<!--数据列-->
|
|
170
|
+
<el-table-column v-for="(v,i) in model.rows[0].field" :key="i" :prop="v.id" :label="v.label" :width="v.width" :fixed="model.frozenColumns.includes(v.id)" v-if="v.show !== false && v.type!==13" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
171
|
+
<template slot="header" slot-scope="scope">
|
|
172
|
+
<div :class="[{'ct-table-required':v.required&&model.rows[0].edit&& model.rows[0].delete&&!model.tableDisabled},getHeadClass(v)]">
|
|
173
|
+
{{v.label}}
|
|
174
|
+
</div>
|
|
100
175
|
</template>
|
|
176
|
+
<template slot-scope="scope">
|
|
177
|
+
<span v-if="scope.row.isSet">
|
|
178
|
+
<component ref="Fields" :is="model.currentRow.data[v.id].locked || model.currentRow.data[v.id].is!==v.is?model.currentRow.data[v.id].is:v.is"
|
|
179
|
+
:vmodel="model.currentRow.data[v.id]" :api="model.OptApi" :key="model.currentRow.data[v.id].rowKey+itemKey"
|
|
180
|
+
@change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
|
|
181
|
+
@input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
|
|
182
|
+
</span>
|
|
183
|
+
<span v-else-if="v.is=='ct-sensitiveeye'">
|
|
184
|
+
<component ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi" :key="itemKey"></component>
|
|
185
|
+
</span>
|
|
186
|
+
<!--可点击的列-->
|
|
187
|
+
<span v-else-if="v.router" :class="'cell'" style="display: flex;">
|
|
188
|
+
<ct-tablecurrency :router="v.router" :colValue="scope.row[v.id].code1" :rowData="scope.row" @click="rolRouterClickHandler">
|
|
189
|
+
</ct-tablecurrency>
|
|
190
|
+
</span>
|
|
191
|
+
<ct-span v-else :vmodel="scope.row[v.id]" :rowNum="scope.row.$sourceIndex" :rowData="scope.row" :key="scope.row[v.id].rowKey+itemKey" ref="FieldsLabel"></ct-span>
|
|
101
192
|
</template>
|
|
102
193
|
</el-table-column>
|
|
103
|
-
</template>
|
|
104
|
-
</el-table>
|
|
105
|
-
</el-col>
|
|
106
|
-
</el-row>
|
|
107
|
-
</div>
|
|
108
194
|
|
|
109
|
-
|
|
195
|
+
<!--操作列-->
|
|
196
|
+
<template v-if="model.rowActionRoutersAlign !== 1">
|
|
197
|
+
<el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
198
|
+
<template slot-scope="scope">
|
|
199
|
+
<template v-if="!model.tableDisabled">
|
|
200
|
+
<span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
|
|
201
|
+
{{scope.row.isSet?'保存':"修改"}}
|
|
202
|
+
</span>
|
|
203
|
+
<span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
|
|
204
|
+
删除
|
|
205
|
+
</span>
|
|
206
|
+
<span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
|
|
207
|
+
取消
|
|
208
|
+
</span>
|
|
209
|
+
<span v-for="(v,i) in model.buttons"
|
|
210
|
+
v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
|
|
211
|
+
class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
|
|
212
|
+
{{v.label}}
|
|
213
|
+
</span>
|
|
214
|
+
</template>
|
|
215
|
+
</template>
|
|
216
|
+
</el-table-column>
|
|
217
|
+
</template>
|
|
218
|
+
</el-table>
|
|
219
|
+
</el-col>
|
|
220
|
+
</el-row>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<div v-if="model.description" v-html="model.description"></div>
|
|
224
|
+
</template>
|
|
110
225
|
</div>
|
|
111
226
|
</template>
|
|
112
227
|
<script>
|
|
@@ -208,6 +323,8 @@
|
|
|
208
323
|
itemKey: Math.random(),
|
|
209
324
|
tableColumnWith: 0,
|
|
210
325
|
fixedButtons:false,
|
|
326
|
+
collapseIndex:0,
|
|
327
|
+
activeName:'',
|
|
211
328
|
}
|
|
212
329
|
},
|
|
213
330
|
created() {
|
|
@@ -215,6 +332,7 @@
|
|
|
215
332
|
this.model = this.vmodel;
|
|
216
333
|
this.model.OptApi = this.api;
|
|
217
334
|
this.model.$self=self;
|
|
335
|
+
if(this.model.groupExpand) this.activeName = this.model.title;
|
|
218
336
|
|
|
219
337
|
this.$nextTick(function () {
|
|
220
338
|
self.model.refField = this.$refs.Fields;
|
|
@@ -538,6 +656,9 @@
|
|
|
538
656
|
</script>
|
|
539
657
|
|
|
540
658
|
<style>
|
|
659
|
+
.el-collapse-saveLine .el-collapse-item__wrap {
|
|
660
|
+
border-bottom: none;
|
|
661
|
+
}
|
|
541
662
|
.el-table-add-row {
|
|
542
663
|
margin-top: 10px;
|
|
543
664
|
width: 100%;
|
|
@@ -41,6 +41,15 @@ const FormList = function (source, master) {
|
|
|
41
41
|
get title() {
|
|
42
42
|
return master.controlLabel || '';
|
|
43
43
|
},
|
|
44
|
+
set title(v) {
|
|
45
|
+
master.controlLabel = v;
|
|
46
|
+
},
|
|
47
|
+
get flagCollapse() {
|
|
48
|
+
return master.flagCollapse || false;
|
|
49
|
+
},
|
|
50
|
+
get groupExpand() {
|
|
51
|
+
return master.groupExpand === true;
|
|
52
|
+
},
|
|
44
53
|
get description() {
|
|
45
54
|
return master.description || '';
|
|
46
55
|
},
|
package/src/main.js
CHANGED
|
@@ -37,7 +37,7 @@ Vue.use(centaline, {
|
|
|
37
37
|
// baseUrl: "http://10.88.22.69:8080/",
|
|
38
38
|
// baseUrl: "http://10.1.245.111:38908/service-api/",
|
|
39
39
|
// baseUrl: "http://10.1.245.111:31574/service-api/",
|
|
40
|
-
|
|
40
|
+
baseUrl: "https://tjcptest.centaline.com.cn/",
|
|
41
41
|
// baseUrl: "https://shccai.centaline.com.cn/api/",
|
|
42
42
|
// baseUrl:"http://10.88.22.66/IBS.Mvc/api/",
|
|
43
43
|
flagRouterSelf: true,
|
|
@@ -71,7 +71,7 @@ Vue.use(centaline, {
|
|
|
71
71
|
// 获取请求头
|
|
72
72
|
getRequestHeaders: function (action) {
|
|
73
73
|
return {
|
|
74
|
-
|
|
74
|
+
oldToken: '6262d67a-8b42-43d5-8b8b-fd0a43f16244',
|
|
75
75
|
// token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksOwjAMBe-SdS05tuPE7PpJNhwCBWglWCHaSiDE3SniEGznjfTm5eb16HYuIUWltoc-sYKkYGDcF_ApGWYzjrE_CHOHKANQxAJSYgYTCYBoahaC0qAHJc6lbRW8bLuUbpNIBDS3QTJhZiHXuPFxczsfmXxCJG3cpS4_gMb6Bes83vfj8x9x1-Wy3eJ48seQJuCaziATTWDRIlSazCNrlerd-wMAAP__.93H7c7k4TLTqbKpozp0aTSU4U_WrQu3eS990iS-TCpw',
|
|
76
76
|
// authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe-yNZPssrM7s3TsAI2HICBjgpURSDTGu6tRO3tf8YvXvH8zyzaayjRcW5TOg7RlAGwoQN0RQxZmm0vymLlPH-DHfOmdw0QutlAnEsCIHtgJg2AU7JrWS25MYfRyMpUjDhgDWleYeVjfwlOyL7Etet7p9R_njuv8zPJklad9gqgxAo40AKMlUOt8qU4PA1pzfwAAAP__.AhTuiD7eEL6iMN4iqr9tazgm8v3ZR4ounA2g7IAWia8"}',
|
|
77
77
|
|
|
@@ -81,8 +81,8 @@ Vue.use(centaline, {
|
|
|
81
81
|
// appinfo:'{"appId":"7e4d0521-4e26-4beb-8627-e76977ad8aa5","appName":"CCAI-PLUS"}',
|
|
82
82
|
// authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjkzNDU5NjFkLWM2NmItNDU0ZS1hMTE4LTUzMWRkMjliZTdmYyJ9.ehMpxkFnyTFlJQ_43SbCTGZZTMFht3isTj3gUKmNoJBWCV5X8ez5Z2AgT7vMBwmmG1FdEHWZTnJhIj0ox86bCA',
|
|
83
83
|
|
|
84
|
-
AuthObject: '{"currentEstate":{},"platform":1,"osVersion":"","machineCode":"
|
|
85
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzI1NiJ9.
|
|
84
|
+
AuthObject: '{"currentEstate":{},"platform":1,"osVersion":"","machineCode":"79eb541af8cc7ae068b39635f67befc6","token":"","random":"rUISzW","time":"2026-09-02 09:50:49","timestamp":1788313849586,"sign":"","systemSource":"CCESU","empNo":"cspengjj","empId":"241113140414452B43969FA04D6781E7","clientVersion":"12.5","empName":"%E5%BD%AD%E4%BF%8A%E6%9D%B0","roleName":"%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E6%B7%B1%E5%9C%B3%E4%B8%AD%E5%8E%9F"}',
|
|
85
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzI1NiJ9.eyJsb2dpbl91c2VyX2tleSI6ImFhN2M4YmQwLWI5NjctNDAwZi1hOWRmLWY3MmI3NWY1Y2NjOSJ9.sM0sk7_eal69VkBYEiLVQNcyFyr_oeF5G_kjA4fYcUg',
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
88
|
// 请求完成事件,可判断是否登录过期执行响应操作
|