centaline-data-driven 1.4.91 → 1.4.93
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/build/centaline/centaline.path.js +1 -0
- package/package.json +1 -1
- package/src/Form.vue +3 -2
- package/src/SearchList.vue +7 -5
- package/src/SearchListTab.vue +0 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +4 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +10 -6
- package/src/centaline/dynamicSearchListTab/index.js +11 -0
- package/src/centaline/{dynamicSearchList → dynamicSearchListTab}/src/dynamicSearchListTab.vue +63 -57
- package/src/centaline/loader/src/ctl/Form.js +1 -1
- package/src/centaline/loader/src/ctl/Tags.js +12 -2
- package/src/main.js +5 -5
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -21,6 +21,7 @@ const paths = {
|
|
|
21
21
|
"dynamicForm": "./src/centaline/dynamicForm/index.js", //表单组件
|
|
22
22
|
"dynamicDrop": "./src/centaline/dynamicDrop/index.js", //快捷下拉输入组件
|
|
23
23
|
"dynamicSearchList": "./src/centaline/dynamicSearchList/index.js", //查询表单组件
|
|
24
|
+
"dynamicSearchListTab": "./src/centaline/dynamicSearchListTab/index.js", //查询表单组件
|
|
24
25
|
"dynamicBtn": "./src/centaline/dynamicBtn/index.js", //按钮
|
|
25
26
|
"dynamicMo": "./src/centaline/dynamicMo/index.js", //多选下拉菜单
|
|
26
27
|
"dynamicSeg": "./src/centaline/dynamicSeg/index.js", //单选按钮
|
package/package.json
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="'/integratedmanage/PreReportData/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
|
|
15
|
+
actionType: 3,
|
|
16
|
+
jsonData: { preReportDataID: "4789be76-19df-44a5-a256-0f907060bcd9" },
|
|
16
17
|
},
|
|
17
18
|
topHeight:10,
|
|
18
19
|
}
|
package/src/SearchList.vue
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
<ct-searchlist :apiParam="para"
|
|
7
|
+
<!-- <ct-searchlist :apiParam="para"
|
|
8
8
|
:searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
|
|
9
9
|
:searchDataApi="'/api/third-dept-tran/tran-list'">
|
|
10
|
+
</ct-searchlist> -->
|
|
11
|
+
|
|
12
|
+
<ct-searchlist :apiParam="para"
|
|
13
|
+
:searchConditionApi="'/commissionquery/CustomerReferralTranListReport/getLayoutOfSearch'"
|
|
14
|
+
:searchDataApi="'/commissionquery/CustomerReferralTranListReport/getList'">
|
|
10
15
|
</ct-searchlist>
|
|
11
16
|
|
|
12
17
|
|
|
@@ -51,11 +56,8 @@
|
|
|
51
56
|
data() {
|
|
52
57
|
return {
|
|
53
58
|
para:{
|
|
54
|
-
|
|
59
|
+
|
|
55
60
|
},
|
|
56
|
-
// para: {searchFields: {fields: []}, pageAttribute: {pageIndex: 1}, flagSearch: true}
|
|
57
|
-
// para: {publishID: "1503900718229229568"}
|
|
58
|
-
// para: {paramKey: "PropertyStatusID", code: "002.001", name: "盘源状态", paramName: "盘源状态"}
|
|
59
61
|
}
|
|
60
62
|
},
|
|
61
63
|
mounted() {
|
package/src/SearchListTab.vue
CHANGED
|
@@ -207,6 +207,9 @@
|
|
|
207
207
|
row[k].value = data[k].value;
|
|
208
208
|
row[k].value1 = data[k].value1;
|
|
209
209
|
row[k].text = data[k].text;
|
|
210
|
+
if(data[k].type===27){
|
|
211
|
+
row[k].code1 = data[k].code1;
|
|
212
|
+
}
|
|
210
213
|
}
|
|
211
214
|
};
|
|
212
215
|
if (app.model.currentRow.isNew) {
|
|
@@ -218,7 +221,7 @@
|
|
|
218
221
|
app.model.currentRow.isSet = false;
|
|
219
222
|
app.itemKey = Math.random();
|
|
220
223
|
this.model.change = this.model.formListChange;
|
|
221
|
-
app.$emit('change');
|
|
224
|
+
app.$emit('change');
|
|
222
225
|
}
|
|
223
226
|
}
|
|
224
227
|
}
|
|
@@ -143,11 +143,15 @@
|
|
|
143
143
|
</ct-tablecurrency>
|
|
144
144
|
|
|
145
145
|
<!--可点击的列-->
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
<template v-else-if="column.router">
|
|
147
|
+
<div v-if="column.router.rightField && row[column.router.rightField] === 0"></div>
|
|
148
|
+
<ct-tablecurrency v-else
|
|
149
|
+
:ref="'router' + column.router.id + rowindex"
|
|
150
|
+
:rowindex="rowindex" :align="column.attrs.align"
|
|
151
|
+
:class="column.autoRowHeight ? 'lineFeedCell' : 'cell'" :router="column.router"
|
|
152
|
+
:colValue="row[column.id]" :rowData="row" @click="rolRouterClickHandler">
|
|
153
|
+
</ct-tablecurrency>
|
|
154
|
+
</template>
|
|
151
155
|
|
|
152
156
|
<!--正常的列-->
|
|
153
157
|
<div v-else-if="column.flagHtml" v-html="row[column.id]"
|
|
@@ -395,7 +399,7 @@ export default {
|
|
|
395
399
|
ev.currentTarget.isDown = true;
|
|
396
400
|
ev.currentTarget.oldX = ev.x;
|
|
397
401
|
ev.currentTarget.oldWidth = ev.currentTarget.offsetWidth;
|
|
398
|
-
|
|
402
|
+
self.currentTh = ev.currentTarget;
|
|
399
403
|
var MouseUpHandle = function () {
|
|
400
404
|
self.currentTh.isDown = false;
|
|
401
405
|
self.currentTh = null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import dynamicSearchListTab from './src/dynamicSearchListTab'
|
|
2
|
+
|
|
3
|
+
dynamicSearchListTab.install = function (Vue) {
|
|
4
|
+
Vue.component(dynamicSearchListTab.name, dynamicSearchListTab);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
8
|
+
window.Vue.use(dynamicSearchListTab);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default dynamicSearchListTab;
|
package/src/centaline/{dynamicSearchList → dynamicSearchListTab}/src/dynamicSearchListTab.vue
RENAMED
|
@@ -4,27 +4,25 @@
|
|
|
4
4
|
<div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
|
|
5
5
|
<span style="font-weight:bold">{{title}}</span>
|
|
6
6
|
</div>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<el-tab-pane v-for="(col, index) in model.tags2" :key="col.appID"
|
|
11
|
-
:index="index.toString()" :name="index.toString()" :label="col.appName">
|
|
7
|
+
<el-tabs v-if="categorySource" :value="activeIndex" @tab-click="handleClick">
|
|
8
|
+
<el-tab-pane v-for="(col, index) in categorySource.selectItems1" :key="col.code"
|
|
9
|
+
:index="index.toString()" :name="index.toString()" :label="col.name">
|
|
12
10
|
<div>
|
|
13
|
-
<ct-searchscreen ref="screen" :api="searchConditionApi" :key="reloadKeyScreen"
|
|
11
|
+
<ct-searchscreen :ref="'screen'+activeIndex" :api="searchConditionApi" :key="reloadKeyScreen"
|
|
14
12
|
@loaded="screenLoaded" :screenPara="screenPara"
|
|
15
13
|
:categoryLoaded="loaded.categoryLoaded" @search="search()" @saveShortcut="saveShortcut"
|
|
16
14
|
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
17
15
|
|
|
18
|
-
<ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" :isIframe="isIframe" :documentHeight="documentHeight"
|
|
16
|
+
<ct-searchtable :ref="'table'+activeIndex" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" :isIframe="isIframe" :documentHeight="documentHeight"
|
|
19
17
|
@loaded="tableLoaded" :documentWidth="documentWidth" :flagPopupSearchlist="flagPopupSearchlist" :screenTop="screenTop" :flagAppMode="flagAppMode"
|
|
20
18
|
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
|
|
21
19
|
@rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
|
|
22
20
|
@showTitle="showTitleHandler" @popupClickHandler="popupClickHandler"></ct-searchtable>
|
|
23
21
|
</div>
|
|
24
|
-
<div ref="sidebar" v-if="flagSideBar && flagSideBarOfData"
|
|
22
|
+
<div :ref="'sidebar'+activeIndex" v-if="flagSideBar && flagSideBarOfData"
|
|
25
23
|
:style="{'height': pageHeight? pageHeight:'100%','width':sideBarWidth+'px',right:sideBarRight+'px'}"
|
|
26
24
|
class="sidebar">
|
|
27
|
-
<ct-Detail ref="detail" :api="sideBarApi" :apiParam="sideBarApiParam" :pageType="sideBarPageType"
|
|
25
|
+
<ct-Detail :ref="'detail'+activeIndex" :api="sideBarApi" :apiParam="sideBarApiParam" :pageType="sideBarPageType"
|
|
28
26
|
:selectIndex="selectIndex" :rowCount="rowCount" :key="detailKey" :drowerClose="drowerClose"
|
|
29
27
|
@clickNextHandler="clickNextHandler" @clickPrevHandler="clickPrevHandler" @simpleRouterclickHandler="simpleRouterclickHandler"
|
|
30
28
|
@closeSideHandler="closeSideHandler"></ct-Detail>
|
|
@@ -38,10 +36,9 @@
|
|
|
38
36
|
</template>
|
|
39
37
|
<script>
|
|
40
38
|
import dynamicElement from '../../mixins/dynamicElement';
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import dynamicSearchSideMenu from './dynamicSearchSideMenu.vue';
|
|
39
|
+
import dynamicSearchScreen from '../../dynamicSearchList/src/dynamicSearchScreen.vue';
|
|
40
|
+
import dynamicSearchTable from '../../dynamicSearchList/src/dynamicSearchTable.vue';
|
|
41
|
+
import dynamicSearchSideMenu from '../../dynamicSearchList/src/dynamicSearchSideMenu.vue';
|
|
45
42
|
import progress from '../../progress/src/progress.vue';
|
|
46
43
|
export default {
|
|
47
44
|
name: 'ct-searchlistTab',
|
|
@@ -50,7 +47,6 @@
|
|
|
50
47
|
'ct-searchscreen': dynamicSearchScreen,
|
|
51
48
|
'ct-searchtable': dynamicSearchTable,
|
|
52
49
|
'ct-progress': progress,
|
|
53
|
-
'ct-searchcategory': dynamicSearchCategory,
|
|
54
50
|
'ct-SearchSideMenu': dynamicSearchSideMenu,
|
|
55
51
|
'ct-Detail': ()=>import('../../dynamicDetail/src/dynamicDetail.vue'),
|
|
56
52
|
},
|
|
@@ -83,11 +79,6 @@
|
|
|
83
79
|
default:false,
|
|
84
80
|
},
|
|
85
81
|
},
|
|
86
|
-
data() {
|
|
87
|
-
return {
|
|
88
|
-
drowerClose:'',
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
82
|
created() {
|
|
92
83
|
this.model = this.vmodel;
|
|
93
84
|
this.screenPara=this.apiParam;
|
|
@@ -97,6 +88,7 @@
|
|
|
97
88
|
if(this.apiParam && this.apiParam.isIframe && this.apiParam.isIframe=='true'){
|
|
98
89
|
this.isIframe=true;
|
|
99
90
|
}
|
|
91
|
+
this.categoryLoad();
|
|
100
92
|
},
|
|
101
93
|
activated() {
|
|
102
94
|
this.$nextTick(() => {
|
|
@@ -123,6 +115,9 @@
|
|
|
123
115
|
reloadKeyTable:'t0',
|
|
124
116
|
isReload:false,
|
|
125
117
|
pageDisabled:false,
|
|
118
|
+
drowerClose:'',
|
|
119
|
+
activeIndex:0,
|
|
120
|
+
categorySource:null,
|
|
126
121
|
|
|
127
122
|
flagSideBar:false,
|
|
128
123
|
flagSideBarOfData:true,
|
|
@@ -145,7 +140,7 @@
|
|
|
145
140
|
},
|
|
146
141
|
mounted(){
|
|
147
142
|
this.$nextTick(function () {
|
|
148
|
-
this.categoryLoad();
|
|
143
|
+
// this.categoryLoad();
|
|
149
144
|
});
|
|
150
145
|
},
|
|
151
146
|
methods: {
|
|
@@ -153,8 +148,12 @@
|
|
|
153
148
|
var self=this;
|
|
154
149
|
this.$api.postHandler(this.$common.globalUri(), { action: this.searchCategoryApi,para:{} }).then(
|
|
155
150
|
function (response) {
|
|
156
|
-
if (response.rtnCode ===
|
|
157
|
-
|
|
151
|
+
if (response.rtnCode === 200) {
|
|
152
|
+
self.categorySource=response.content.fields[0];
|
|
153
|
+
console.log(self.categorySource)
|
|
154
|
+
// let parm={};
|
|
155
|
+
// parm[self.categorySource.fieldName1]=self.categorySource.selectItems1[self.activeIndex].code;
|
|
156
|
+
// self.categoryLoaded(parm);
|
|
158
157
|
}
|
|
159
158
|
else{
|
|
160
159
|
self.categoryLoadedError();
|
|
@@ -162,23 +161,30 @@
|
|
|
162
161
|
}
|
|
163
162
|
);
|
|
164
163
|
},
|
|
164
|
+
handleClick(tab, event) {
|
|
165
|
+
let i = tab.index;
|
|
166
|
+
// if (this.model.tags2 && this.model.tags2[i]) {
|
|
167
|
+
// this.model.getTags2List(i);
|
|
168
|
+
// }
|
|
169
|
+
},
|
|
165
170
|
screenLoaded(defaultSearch) {
|
|
166
171
|
this.loaded.screenLoaded = true;
|
|
167
172
|
if(this.from && this.from=='detail'){
|
|
168
|
-
this.screenTop=this.$refs.
|
|
173
|
+
this.screenTop=this.$refs['screen'+this.activeIndex].$el.offsetTop;
|
|
169
174
|
}
|
|
170
|
-
this.$refs
|
|
175
|
+
this.$refs['table'+this.activeIndex].searchComplate(this.$refs['screen'+this.activeIndex].model, defaultSearch);
|
|
171
176
|
|
|
172
|
-
this.$emit('loaded', this.$refs
|
|
177
|
+
this.$emit('loaded', this.$refs['screen'+this.activeIndex].model);
|
|
173
178
|
},
|
|
174
179
|
categoryLoaded(param) {
|
|
175
180
|
this.loaded.categoryLoaded = true;
|
|
176
181
|
if(param)this.screenPara=param;
|
|
177
|
-
this.$refs
|
|
182
|
+
console.log(this.$refs['screen'+this.activeIndex])
|
|
183
|
+
this.$refs['screen'+this.activeIndex].searchComplate();
|
|
178
184
|
},
|
|
179
185
|
categoryLoadedError() {
|
|
180
|
-
this.$refs
|
|
181
|
-
this.$refs
|
|
186
|
+
this.$refs['screen'+this.activeIndex].isLoading=false;
|
|
187
|
+
this.$refs['table'+this.activeIndex].isLoading=false;
|
|
182
188
|
},
|
|
183
189
|
categorychange(param) {
|
|
184
190
|
if(param)this.screenPara=param;
|
|
@@ -188,17 +194,17 @@
|
|
|
188
194
|
},
|
|
189
195
|
search() {
|
|
190
196
|
this.selectIndex=-1;
|
|
191
|
-
if (this.$refs
|
|
197
|
+
if (this.$refs['table'+this.activeIndex].model) {
|
|
192
198
|
this.pageDisabled=true;
|
|
193
|
-
this.$refs
|
|
199
|
+
this.$refs['table'+this.activeIndex].getPage(1);
|
|
194
200
|
}
|
|
195
201
|
else {
|
|
196
|
-
this.$refs
|
|
202
|
+
this.$refs['table'+this.activeIndex].searchComplate(this.$refs['screen'+this.activeIndex].model,this.$refs['screen'+this.activeIndex].model.defaultSearch);
|
|
197
203
|
}
|
|
198
204
|
},
|
|
199
205
|
searchComplate(index) {
|
|
200
206
|
this.pageDisabled=false;
|
|
201
|
-
if(this.flagSideBar && this.$refs
|
|
207
|
+
if(this.flagSideBar && this.$refs['table'+this.activeIndex].model.listData.length>0){
|
|
202
208
|
if(!this.flagSideBarOfData || index===1){
|
|
203
209
|
this.flagSideBarOfData=true;
|
|
204
210
|
this.sideMenuClickHandler(this.sideBarStatus =='close'?'open':'close');
|
|
@@ -211,7 +217,7 @@
|
|
|
211
217
|
},
|
|
212
218
|
toolbarClickHandler(field, submitData) {
|
|
213
219
|
if (field.isExport) {
|
|
214
|
-
this.$refs
|
|
220
|
+
this.$refs['screen'+this.activeIndex].model.export(field, submitData);
|
|
215
221
|
}
|
|
216
222
|
else if (field.isRefreshParent) {
|
|
217
223
|
this.isRefreshParent();
|
|
@@ -221,8 +227,8 @@
|
|
|
221
227
|
this.$emit('refreshParent');
|
|
222
228
|
},
|
|
223
229
|
resize() {
|
|
224
|
-
if(this.$refs.
|
|
225
|
-
this.$refs
|
|
230
|
+
if(this.$refs['table'+this.activeIndex]){
|
|
231
|
+
this.$refs['table'+this.activeIndex].setTableHeight();
|
|
226
232
|
}
|
|
227
233
|
},
|
|
228
234
|
resizeSearchList() {
|
|
@@ -233,30 +239,30 @@
|
|
|
233
239
|
}
|
|
234
240
|
},
|
|
235
241
|
showTitleHandler() {
|
|
236
|
-
if (this.$refs
|
|
237
|
-
this.title=this.$refs
|
|
238
|
-
this.showTitle=this.$refs
|
|
242
|
+
if (this.$refs['table'+this.activeIndex].model && this.$refs['table'+this.activeIndex].model.flagShowTitle) {
|
|
243
|
+
this.title=this.$refs['table'+this.activeIndex].model.title;
|
|
244
|
+
this.showTitle=this.$refs['table'+this.activeIndex].model.flagShowTitle;
|
|
239
245
|
}
|
|
240
246
|
},
|
|
241
247
|
showTitleScreenHandler() {
|
|
242
|
-
if (this.$refs
|
|
243
|
-
this.title=this.$refs
|
|
244
|
-
this.showTitle=this.$refs
|
|
248
|
+
if (this.$refs['screen'+this.activeIndex].model && this.$refs['screen'+this.activeIndex].model.flagShowTitle) {
|
|
249
|
+
this.title=this.$refs['screen'+this.activeIndex].model.title;
|
|
250
|
+
this.showTitle=this.$refs['screen'+this.activeIndex].model.flagShowTitle;
|
|
245
251
|
}
|
|
246
252
|
},
|
|
247
253
|
tableLoaded() {
|
|
248
254
|
var self = this;
|
|
249
|
-
if (typeof this.$refs
|
|
250
|
-
this.$refs
|
|
255
|
+
if (typeof this.$refs['table'+this.activeIndex].model.cellLayout !== "undefined") {
|
|
256
|
+
this.$refs['screen'+this.activeIndex].LoadLayout();
|
|
251
257
|
}
|
|
252
|
-
if(this.$refs
|
|
258
|
+
if(this.$refs['table'+this.activeIndex].model.listData.length>0){
|
|
253
259
|
this.flagSideBarOfData=true;
|
|
254
|
-
this.flagSideBar=this.$refs
|
|
255
|
-
this.flagDefaultDisplaySideBar=this.$refs
|
|
260
|
+
this.flagSideBar=this.$refs['table'+this.activeIndex].model.flagSideBar;
|
|
261
|
+
this.flagDefaultDisplaySideBar=this.$refs['table'+this.activeIndex].model.flagDefaultDisplaySideBar;
|
|
256
262
|
|
|
257
|
-
if(this.$refs
|
|
258
|
-
this.sideBarApi=this.$refs
|
|
259
|
-
this.sideBarPageType=this.$refs
|
|
263
|
+
if(this.$refs['table'+this.activeIndex].model.rowSelectRouter){
|
|
264
|
+
this.sideBarApi=this.$refs['table'+this.activeIndex].model.rowSelectRouter.action;
|
|
265
|
+
this.sideBarPageType=this.$refs['table'+this.activeIndex].model.rowSelectRouter.actionSource;
|
|
260
266
|
}
|
|
261
267
|
else{
|
|
262
268
|
this.flagSideBar=false;
|
|
@@ -287,7 +293,7 @@
|
|
|
287
293
|
this.flagSideBarOfData=false;
|
|
288
294
|
this.searchWidth=0;
|
|
289
295
|
}
|
|
290
|
-
this.$emit('tableLoaded', this.$refs
|
|
296
|
+
this.$emit('tableLoaded', this.$refs['table'+this.activeIndex].model);
|
|
291
297
|
},
|
|
292
298
|
rowClickHandle() {
|
|
293
299
|
var self = this;
|
|
@@ -324,7 +330,7 @@
|
|
|
324
330
|
else if(v=='close'){
|
|
325
331
|
this.sideBarStatus ='open';
|
|
326
332
|
this.sideBarRight=0;
|
|
327
|
-
this.sideBarWidth=this.$refs
|
|
333
|
+
this.sideBarWidth=this.$refs['table'+this.activeIndex].model.sideBarWidth;
|
|
328
334
|
this.searchWidth=this.$refs.main.clientWidth-this.sideBarWidth;
|
|
329
335
|
this.sideBarMenuRight=this.sideBarWidth-2;
|
|
330
336
|
this.rowClickHandle();
|
|
@@ -337,30 +343,30 @@
|
|
|
337
343
|
}
|
|
338
344
|
}
|
|
339
345
|
}
|
|
340
|
-
this.$refs
|
|
346
|
+
this.$refs['table'+this.activeIndex].setTableHeight();
|
|
341
347
|
},
|
|
342
348
|
closeSideHandler() {
|
|
343
349
|
this.$refs.sideMenu.clickHandler();
|
|
344
350
|
},
|
|
345
351
|
clickNextHandler() {
|
|
346
|
-
this.$refs
|
|
352
|
+
this.$refs['table'+this.activeIndex].rowKeyDownHandle(null,1);
|
|
347
353
|
},
|
|
348
354
|
clickPrevHandler() {
|
|
349
|
-
this.$refs
|
|
355
|
+
this.$refs['table'+this.activeIndex].rowKeyDownHandle(null,-1);
|
|
350
356
|
},
|
|
351
357
|
simpleRouterclickHandler(field,data) {
|
|
352
|
-
this.$refs
|
|
358
|
+
this.$refs['table'+this.activeIndex].refreshFromSimple(field,data);
|
|
353
359
|
this.selectIndex=-1;
|
|
354
360
|
this.rowClickHandle();
|
|
355
361
|
},
|
|
356
362
|
saveShortcut(){
|
|
357
|
-
this.$refs
|
|
363
|
+
this.$refs['table'+this.activeIndex].getPage(1);
|
|
358
364
|
},
|
|
359
365
|
scrollHandle(scrollTop,scrollLeft){
|
|
360
366
|
this.$emit('scrollHandle',scrollTop,scrollLeft)
|
|
361
367
|
},
|
|
362
368
|
doClosePopoverHandle(){
|
|
363
|
-
this.$refs.
|
|
369
|
+
this.$refs['screen'+this.activeIndex].$refs.doClosePopover.click();
|
|
364
370
|
},
|
|
365
371
|
popupClickHandler(tempListData){
|
|
366
372
|
this.$emit('submit', tempListData);
|
|
@@ -224,7 +224,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
224
224
|
if (rtn1) {
|
|
225
225
|
if(attrKey=='code1' && rtn1.source.controlType===4
|
|
226
226
|
&& attrValue!=undefined && attrValue!=null && attrValue!=''){
|
|
227
|
-
if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null){
|
|
227
|
+
if(rtn1.source.decimals1 != undefined && rtn1.source.decimals1 != null && rtn1.source.decimals1>-1){
|
|
228
228
|
attrValue = Number(attrValue).toFixed(rtn1.source.decimals1)
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -25,7 +25,13 @@ const Tags = function (source, moreActionRouter) {
|
|
|
25
25
|
else {
|
|
26
26
|
this._value = [];
|
|
27
27
|
this.options.forEach((v) => {
|
|
28
|
-
|
|
28
|
+
if (v.flagDeleted !== 1) {
|
|
29
|
+
if(v.flagDeleted!=undefined && v.flagDeleted==true){
|
|
30
|
+
}
|
|
31
|
+
else{
|
|
32
|
+
this._value.push(v[this.optionAttrs.value]);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
29
35
|
});
|
|
30
36
|
return this._value;
|
|
31
37
|
}
|
|
@@ -84,7 +90,11 @@ const Tags = function (source, moreActionRouter) {
|
|
|
84
90
|
var rtnLabelValue = '';
|
|
85
91
|
JSON.parse(source.code1).forEach((op) => {
|
|
86
92
|
if (op.flagDeleted !== 1) {
|
|
87
|
-
|
|
93
|
+
if(op.flagDeleted!=undefined && op.flagDeleted==true){
|
|
94
|
+
}
|
|
95
|
+
else{
|
|
96
|
+
rtnLabelValue += op[rtn.optionAttrs.label] + ' ';
|
|
97
|
+
}
|
|
88
98
|
}
|
|
89
99
|
});
|
|
90
100
|
return rtnLabelValue;
|
package/src/main.js
CHANGED
|
@@ -14,9 +14,9 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
14
14
|
// 关闭生产模式下给出的提示
|
|
15
15
|
Vue.config.productionTip = false;
|
|
16
16
|
Vue.use(centaline, {
|
|
17
|
-
baseUrl: "http://10.88.22.46:7070/max-uplink-api/v1/form/router",
|
|
17
|
+
// baseUrl: "http://10.88.22.46:7070/max-uplink-api/v1/form/router",
|
|
18
18
|
// baseUrl: "http://10.6.1.162:17070/max-uplink-api/v1/form/router",
|
|
19
|
-
|
|
19
|
+
baseUrl: "http://10.25.10.67:9999/service-api/v1/form/router",
|
|
20
20
|
// baseUrl: "http://10.88.22.42:9999/v1/form/router",
|
|
21
21
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
22
22
|
// baseUrl: "http://10.88.22.40:8080/api/",
|
|
@@ -53,11 +53,11 @@ Vue.use(centaline, {
|
|
|
53
53
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgzAQBP_impNs7nz20YGxmzwCEeOCVFEAKVGUv4dIpEufKbYYrbT7VMt2Vo1CdtJGNhAseSA2FoRSgqCZBZNG7PtBDuBHfBnIBWnb6IB0x0DJRpA6JECxXU-xdX1kValyv6rGsDdeqNamUvO4HkI7_xHbUm6n8vjHucs677OZ0PM4WahN3suMAqMQwjTlcSqUsWSvXm8AAAD__w.kFBCAZ9jB8xw93_pkbsd_1r0CHHlvQNQSPdhEiPqfhQ',
|
|
54
54
|
|
|
55
55
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
56
|
-
EstateInfo: '{"estateId":"
|
|
56
|
+
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
57
57
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
58
58
|
|
|
59
|
-
authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"
|
|
60
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
59
|
+
authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"665b7cc4bcb0c902a054498fdf23fab7","token":"","random":"mnYxP9","time":1681872807128,"sign":"c18df776fbc6d82dec86c62be946634a"}',
|
|
60
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImQ3MGE2ZDJiLTliZDYtNDZmZS1hZDgzLTA1MzA4ZjUzOTBjOSJ9.ozfqV1P46pWUzyDSwnKnSqlV1L8PySL9NE51WYFCGx9xnutI4ip8Bw3yU7X2oPoA6BG7NPZ5S9sE57ZcYd-VRg',
|
|
61
61
|
};
|
|
62
62
|
},
|
|
63
63
|
// 请求完成事件,可判断是否登录过期执行响应操作
|