centaline-data-driven 1.3.88 → 1.3.89
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/src/SearchList.vue +6 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +23 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +24 -3
- package/src/centaline/dynamicFile/src/dynamicFile.vue +1 -15
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +7 -2
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +5 -4
- package/src/centaline/loader/src/ctl/Detail.js +35 -0
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +1 -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
package/package.json
CHANGED
package/src/SearchList.vue
CHANGED
|
@@ -12,10 +12,15 @@
|
|
|
12
12
|
</ct-searchlist> -->
|
|
13
13
|
|
|
14
14
|
<ct-searchlist
|
|
15
|
+
:searchConditionApi="'/customermanage/MyCustomerList/getLayoutOfSearch'"
|
|
16
|
+
:searchDataApi="'/customermanage/MyCustomerList/getList'">
|
|
17
|
+
</ct-searchlist>
|
|
18
|
+
|
|
19
|
+
<!-- <ct-searchlist
|
|
15
20
|
:searchCategoryApi="'/PropertyPublishList/getLayoutOfSearchCategory'"
|
|
16
21
|
:searchConditionApi="'/PropertyPublishList/getLayoutOfSearchForRET'"
|
|
17
22
|
:searchDataApi="'/PropertyPublishList/getListOfSearchModelForRET'">
|
|
18
|
-
</ct-searchlist>
|
|
23
|
+
</ct-searchlist> -->
|
|
19
24
|
|
|
20
25
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
21
26
|
:searchDataApi="'/PropertyRETList/getListOfSearchModel'"
|
|
@@ -75,7 +75,14 @@
|
|
|
75
75
|
</ct-albums>
|
|
76
76
|
</div>
|
|
77
77
|
<div class="hous-b">
|
|
78
|
-
<
|
|
78
|
+
<el-popover v-if="model.routerForQRCode !== null" placement="left-start" trigger="hover" @show="fieldClickHandler(model.routerForQRCode, $event)">
|
|
79
|
+
<div style="border-bottom:none">
|
|
80
|
+
<div style="text-align: center;margin-bottom:10px;">APP扫码</div>
|
|
81
|
+
<div style="width:200px; height:200px;"><img :src="model.QRCode" @click="fieldClickHandler(model.routerForQRCode, $event)" /></div>
|
|
82
|
+
<div style="text-align: center;margin-top:10px;">点击二维码刷新</div>
|
|
83
|
+
</div>
|
|
84
|
+
<img class="code-ewm" slot="reference" :src="model.fields1Dic.ewmUrl.value" />
|
|
85
|
+
</el-popover>
|
|
79
86
|
<div class="info-row mb20 mt5">
|
|
80
87
|
<div class="row-i">
|
|
81
88
|
<span>{{ model.fields1Dic.Price.label }}</span>
|
|
@@ -658,6 +665,9 @@ export default {
|
|
|
658
665
|
loadFavorite() {
|
|
659
666
|
this.model.loadFavorite();
|
|
660
667
|
},
|
|
668
|
+
loadqrCode() {
|
|
669
|
+
this.model.loadqrCode();
|
|
670
|
+
},
|
|
661
671
|
handleClick(tab, event) {
|
|
662
672
|
let i = tab.index;
|
|
663
673
|
if (this.model.tags2 && this.model.tags2[i]) {
|
|
@@ -728,6 +738,12 @@ export default {
|
|
|
728
738
|
router = this.model.actionRouterFavorite;
|
|
729
739
|
}
|
|
730
740
|
}
|
|
741
|
+
if (router == undefined && this.model.routerForQRCode) {
|
|
742
|
+
if (field.id === this.model.routerForQRCode.id) {
|
|
743
|
+
router = this.model.routerForQRCode;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
731
747
|
if (router) {
|
|
732
748
|
if (field.isSubmitDataFromSelf) {
|
|
733
749
|
router.submitFormField.forEach((v) => {
|
|
@@ -750,6 +766,9 @@ export default {
|
|
|
750
766
|
else if (router.id == "Favorite") {
|
|
751
767
|
callBack = "loadFavorite"
|
|
752
768
|
}
|
|
769
|
+
else if (router.id == "qrCode") {
|
|
770
|
+
callBack = "loadqrCode"
|
|
771
|
+
}
|
|
753
772
|
}
|
|
754
773
|
|
|
755
774
|
if (callBack) {
|
|
@@ -762,6 +781,9 @@ export default {
|
|
|
762
781
|
else if (callBack == 'loadFavorite') {
|
|
763
782
|
this.routerClickHandler(router, submitData, self.loadFavorite);
|
|
764
783
|
}
|
|
784
|
+
else if (callBack == 'loadqrCode') {
|
|
785
|
+
self.loadqrCode();
|
|
786
|
+
}
|
|
765
787
|
}
|
|
766
788
|
else {
|
|
767
789
|
this.routerClickHandler(router, submitData);
|
|
@@ -74,15 +74,22 @@
|
|
|
74
74
|
</ct-albums>
|
|
75
75
|
</div>
|
|
76
76
|
<div class="hous-b">
|
|
77
|
-
<
|
|
77
|
+
<el-popover v-if="model.routerForQRCode !== null" placement="left-start" trigger="hover" @show="fieldClickHandler(model.routerForQRCode, $event)">
|
|
78
|
+
<div style="border-bottom:none">
|
|
79
|
+
<div style="text-align: center;margin-bottom:10px;">APP扫码</div>
|
|
80
|
+
<div style="width:200px; height:200px;"><img :src="model.QRCode" @click="fieldClickHandler(model.routerForQRCode, $event)" /></div>
|
|
81
|
+
<div style="text-align: center;margin-top:10px;">点击二维码刷新</div>
|
|
82
|
+
</div>
|
|
83
|
+
<img class="code-ewm" slot="reference" :src="model.fields1Dic.ewmUrl.value" />
|
|
84
|
+
</el-popover>
|
|
78
85
|
<div class="info-row mb20 mt5">
|
|
79
86
|
<div class="row-i">
|
|
80
87
|
<span>{{ model.fields1Dic.Price.label }}</span>
|
|
81
88
|
<span class="base-clolr expand-f" v-html="model.fields1Dic.Price.value"></span>
|
|
82
89
|
<span class="base-clolr">{{ model.fields1Dic.Price.unitName}}</span>
|
|
83
90
|
<component v-if="model.actionRouterPrice" class="ml10" style="display: flex;"
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
:is="model.actionRouterPrice.is" :vmodel="model.actionRouterPrice" :api="model.optionApi"
|
|
92
|
+
@click="fieldClickHandler(model.actionRouterPrice, $event)">
|
|
86
93
|
</component>
|
|
87
94
|
</div>
|
|
88
95
|
<div class="row-i">
|
|
@@ -648,6 +655,9 @@ export default {
|
|
|
648
655
|
loadFavorite() {
|
|
649
656
|
this.model.loadFavorite();
|
|
650
657
|
},
|
|
658
|
+
loadqrCode() {
|
|
659
|
+
this.model.loadqrCode();
|
|
660
|
+
},
|
|
651
661
|
handleClick(tab, event) {
|
|
652
662
|
let i = tab.index;
|
|
653
663
|
if (this.model.tags2 && this.model.tags2[i]) {
|
|
@@ -720,6 +730,11 @@ export default {
|
|
|
720
730
|
router = this.model.actionRouterFavorite;
|
|
721
731
|
}
|
|
722
732
|
}
|
|
733
|
+
if (router == undefined && this.model.routerForQRCode) {
|
|
734
|
+
if (field.id === this.model.routerForQRCode.id) {
|
|
735
|
+
router = this.model.routerForQRCode;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
723
738
|
|
|
724
739
|
if (router) {
|
|
725
740
|
if (field.isSubmitDataFromSelf) {
|
|
@@ -743,6 +758,9 @@ export default {
|
|
|
743
758
|
else if (router.id == "Favorite") {
|
|
744
759
|
callBack = "loadFavorite"
|
|
745
760
|
}
|
|
761
|
+
else if (router.id == "qrCode") {
|
|
762
|
+
callBack = "loadqrCode"
|
|
763
|
+
}
|
|
746
764
|
}
|
|
747
765
|
|
|
748
766
|
if (callBack) {
|
|
@@ -755,6 +773,9 @@ export default {
|
|
|
755
773
|
else if (callBack == 'loadFavorite') {
|
|
756
774
|
this.routerClickHandler(router, submitData, self.loadFavorite);
|
|
757
775
|
}
|
|
776
|
+
else if (callBack == 'loadqrCode') {
|
|
777
|
+
self.loadqrCode();
|
|
778
|
+
}
|
|
758
779
|
}
|
|
759
780
|
else {
|
|
760
781
|
this.routerClickHandler(router, submitData);
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</el-dropdown>
|
|
60
60
|
</span>
|
|
61
61
|
</div>
|
|
62
|
-
<el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress" :width="96" :height="96" class="file-cirle"></el-progress>
|
|
62
|
+
<el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress" :width="96" :height="96" class="file-cirle"></el-progress>
|
|
63
63
|
</div>
|
|
64
64
|
</el-upload>
|
|
65
65
|
</div>
|
|
@@ -215,20 +215,6 @@
|
|
|
215
215
|
},
|
|
216
216
|
//上传之前的钩子
|
|
217
217
|
beforeUploadProcess(files) {
|
|
218
|
-
let that = this;
|
|
219
|
-
|
|
220
|
-
// if (this.model.max) {
|
|
221
|
-
// console.log('beforeUploadProcess')
|
|
222
|
-
// console.log(this.model.fileList)
|
|
223
|
-
// if (this.model.getfileListLength() >= this.model.max) {
|
|
224
|
-
// this.validMessage = "附件最多" + this.model.max + "个";
|
|
225
|
-
// this.valid = false;
|
|
226
|
-
// setTimeout(() => {
|
|
227
|
-
// that.valid = true;
|
|
228
|
-
// }, 3000)
|
|
229
|
-
// return false;
|
|
230
|
-
// }
|
|
231
|
-
// }
|
|
232
218
|
return true;
|
|
233
219
|
},
|
|
234
220
|
//文件上传时的钩子
|
|
@@ -278,8 +278,13 @@
|
|
|
278
278
|
self.model.searchModel = this.tempSearchModel;
|
|
279
279
|
}
|
|
280
280
|
//自动查询 调用合并列
|
|
281
|
-
if (self.model.
|
|
282
|
-
self.model.
|
|
281
|
+
if (self.model.listData.length > 0) {
|
|
282
|
+
if(self.model.rowMergedColumns.length > 0){
|
|
283
|
+
self.model.setRow(self.model.listData);
|
|
284
|
+
}
|
|
285
|
+
else{
|
|
286
|
+
self.model.setStyleRow(self.model.listData);
|
|
287
|
+
}
|
|
283
288
|
}
|
|
284
289
|
self.tableComplate = true;
|
|
285
290
|
self.setTableHeight();
|
|
@@ -35,10 +35,11 @@ export default {
|
|
|
35
35
|
},
|
|
36
36
|
methods: {
|
|
37
37
|
setTreeHeight() {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
let self = this;
|
|
39
|
+
self.$nextTick(() => {
|
|
40
|
+
if (self.$refs.treescreen) {
|
|
41
|
+
let searchHeight = self.$refs.treescreen.$el.offsetHeight;
|
|
42
|
+
self.treeHeight = self.searchtreeHeight - searchHeight;
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
},
|
|
@@ -21,6 +21,8 @@ const Detail = function (source, para, callBack) {
|
|
|
21
21
|
_commissionApiRouter: null,//查看角色
|
|
22
22
|
_actionRouterFavorite: null,//收藏动作行为
|
|
23
23
|
_matchCustomerApiRouter: null,//匹配客户
|
|
24
|
+
_routerForQRCode: null,//二维码
|
|
25
|
+
QRCode:"",
|
|
24
26
|
detailHeight: 750,
|
|
25
27
|
midlWidth: 1200,
|
|
26
28
|
activeIndex1: '0',
|
|
@@ -194,6 +196,20 @@ const Detail = function (source, para, callBack) {
|
|
|
194
196
|
return rtn._contactApiRouter;
|
|
195
197
|
}
|
|
196
198
|
},
|
|
199
|
+
get routerForQRCode() {
|
|
200
|
+
if (rtn._routerForQRCode !== null) {
|
|
201
|
+
return rtn._routerForQRCode;
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
if (data.routerForQRCode) {
|
|
205
|
+
var router = Router(data.routerForQRCode);
|
|
206
|
+
router.is = "ct-btn";
|
|
207
|
+
router.attrs = { size: "mini" }
|
|
208
|
+
rtn._routerForQRCode = router;
|
|
209
|
+
}
|
|
210
|
+
return rtn._routerForQRCode;
|
|
211
|
+
}
|
|
212
|
+
},
|
|
197
213
|
get matchCustomerApiRouter() {
|
|
198
214
|
if (rtn._matchCustomerApiRouter !== null) {
|
|
199
215
|
return rtn._matchCustomerApiRouter;
|
|
@@ -597,6 +613,25 @@ const Detail = function (source, para, callBack) {
|
|
|
597
613
|
}
|
|
598
614
|
);
|
|
599
615
|
},
|
|
616
|
+
loadqrCode() {
|
|
617
|
+
var action;
|
|
618
|
+
if (data.routerForQRCode) {
|
|
619
|
+
var router = Router(data.routerForQRCode);
|
|
620
|
+
if (router) {
|
|
621
|
+
action = router.action;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
Vue.prototype.$api.postHandler(common.globalUri(), { action: action, para: para }).then(
|
|
625
|
+
function (response) {
|
|
626
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
627
|
+
if (response.content) {
|
|
628
|
+
Vue.set(rtn._routerForQRCode, "imgUrl", response.content);
|
|
629
|
+
rtn.QRCode = response.content;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
);
|
|
634
|
+
},
|
|
600
635
|
};
|
|
601
636
|
return rtn;
|
|
602
637
|
}
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
</div>
|
|
29
29
|
<div v-else>
|
|
30
30
|
<img v-if="router.imgUrl && isShowImg" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="!isOperationalColumn?clickHandler($event):null"/>
|
|
31
|
-
<a v-else href="javascript:void(0);" class="ct-tablecurrencyItem"
|
|
32
|
-
{{label}}
|
|
31
|
+
<a v-else href="javascript:void(0);" class="ct-tablecurrencyItem" @click="!isOperationalColumn?clickHandler($event):null" v-html="label">
|
|
33
32
|
</a>
|
|
34
33
|
</div>
|
|
35
34
|
</div>
|
package/src/main.js
CHANGED
|
@@ -13,8 +13,8 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
15
|
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
-
// baseUrl: "http://10.
|
|
17
|
-
// baseUrl: "http://10.88.22.
|
|
16
|
+
// baseUrl: "http://10.25.10.67:9999/v1/form/router",
|
|
17
|
+
// baseUrl: "http://10.88.22.42:9999/v1/form/router",
|
|
18
18
|
// baseUrl: "http://10.88.22.40:8080/",
|
|
19
19
|
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
20
20
|
// flagRouterSelf: true,
|
|
@@ -43,14 +43,14 @@ Vue.use(centaline, {
|
|
|
43
43
|
getRequestHeaders: function () {
|
|
44
44
|
return {
|
|
45
45
|
oldToken: '42ccd644-040d-4e01-9521-1623f1884058',
|
|
46
|
-
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
46
|
+
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzrEOgkAQBNB_2ZpNWFh2Fzo9sPEjyJ0HCVZGINEY_12J0NH7iimmmXnBOAeoQFe4E5u2XOFObFoiLpWkwUOpDlk4RyNn6Fgcn-omd8caEugeN6hIFpSqJjD46VcUyrIU89jdz93zH-eu0_CdJTXvxQxjroJ8SQsMlgX0mUXTmPbSF_D-AAAA__8.sdQBmdkYKUL9c9NLyUbjFEl3_SQ-e2f51rR4llSHFPM',
|
|
47
47
|
|
|
48
48
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
49
49
|
EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
|
|
50
50
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
51
51
|
|
|
52
|
-
authObject: '{"currentEstate":{"estateId":"
|
|
53
|
-
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
52
|
+
authObject: '{"currentEstate":{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":""}',
|
|
53
|
+
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImVmNjc2YjhmLThhM2ItNGQzMy05NGMxLWYzNWUxM2Q1MTc2MyJ9.eaCMvEh4HzqQPy6YRd4DWZx6hEvqagHebzSj_yeMKZy-hPXYMA6EXXauhEMoRIkB2df4l2viZ5-BD8l-nCv65A',
|
|
54
54
|
};
|
|
55
55
|
},
|
|
56
56
|
// 请求完成事件,可判断是否登录过期执行响应操作
|