centaline-data-driven 1.2.21 → 1.2.22
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 +4 -4
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +1020 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +3 -41
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +3 -3
- package/src/centaline/loader/src/ctl/Detail.js +4 -1
- package/src/centaline/loader/src/ctl/Router.js +4 -0
- package/src/centaline/loader/src/ctl/SearchTable.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -140,47 +140,7 @@
|
|
|
140
140
|
</div>
|
|
141
141
|
</div>
|
|
142
142
|
<div class="contacts-info base-box">
|
|
143
|
-
|
|
144
|
-
<div class="contacts-head">
|
|
145
|
-
<div class="title-l">联系人信息</div>
|
|
146
|
-
<button type="button" v-if="!codeOwner" @click="lookOwner" class="el-button contacts-but el-button--info el-button--mini max-info">查看业主</button>
|
|
147
|
-
<div class="contacts-tips" v-else>
|
|
148
|
-
<button class="el-button el-button--primary el-button--mini max-btn-add">新增联系人</button>
|
|
149
|
-
<button class="el-button el-button--primary el-button--mini max-btn-add">通话记录</button>
|
|
150
|
-
<button class="el-button el-button--primary el-button--mini max-btn-add">查看历史号码</button>
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
</div>
|
|
154
|
-
<!-- 表格 -->
|
|
155
|
-
<div class="contacts-table" v-show="codeOwner">
|
|
156
|
-
<el-table
|
|
157
|
-
:data="tableData"
|
|
158
|
-
stripe
|
|
159
|
-
fit
|
|
160
|
-
style="width: 100%"
|
|
161
|
-
:header-cell-style="{background:'#f3f3f3',color:'#333333'}">
|
|
162
|
-
<el-table-column
|
|
163
|
-
v-for="(item,index) in columnList"
|
|
164
|
-
:key="index"
|
|
165
|
-
:property="item.prop"
|
|
166
|
-
:label="item.label"
|
|
167
|
-
:min-width="item.width"
|
|
168
|
-
>
|
|
169
|
-
<template slot-scope="scope">
|
|
170
|
-
<span v-if="scope.column.property=='phone'">{{ scope.row.phone }}
|
|
171
|
-
|
|
172
|
-
</span>
|
|
173
|
-
<span v-else-if="scope.column.property=='tel'">
|
|
174
|
-
{{scope.row.tel}}
|
|
175
|
-
|
|
176
|
-
</span>
|
|
177
|
-
<span v-else>
|
|
178
|
-
{{scope.row[scope.column.property]}}
|
|
179
|
-
</span>
|
|
180
|
-
</template>
|
|
181
|
-
</el-table-column>
|
|
182
|
-
</el-table>
|
|
183
|
-
</div>
|
|
143
|
+
<ct-contactList v-if="model.searchConditionApiTags1" :key="model.searchlistKey" :apiParam="model.paramDataTags1" ></ct-contactList>
|
|
184
144
|
</div>
|
|
185
145
|
<div class="tablist-info base-box">
|
|
186
146
|
<div class="details-tabs-box">
|
|
@@ -346,11 +306,13 @@
|
|
|
346
306
|
<script>
|
|
347
307
|
import dynamicElement from '../../mixins/dynamicElement';
|
|
348
308
|
import dynamicSearchList from '../../dynamicSearchList/src/dynamicSearchList.vue';
|
|
309
|
+
import dynamicContactList from './dynamicContactList.vue';
|
|
349
310
|
export default {
|
|
350
311
|
name: 'ct-PropertyDetailRET',
|
|
351
312
|
mixins: [dynamicElement],
|
|
352
313
|
components: {
|
|
353
314
|
'ct-searchlist': dynamicSearchList,
|
|
315
|
+
'ct-contactList': dynamicContactList,
|
|
354
316
|
},
|
|
355
317
|
props: {
|
|
356
318
|
vmodel: Object,
|
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
},
|
|
720
720
|
on: {
|
|
721
721
|
submit(ev) {
|
|
722
|
-
if (!field.flagFreshCurrentRow) {
|
|
722
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
723
723
|
self.model.doAction(ev);
|
|
724
724
|
}
|
|
725
725
|
self.$forceUpdate();
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
self.operationLoading = true;
|
|
791
791
|
field.doAction(submitData, (data) => {
|
|
792
792
|
self.operationLoading = false;
|
|
793
|
-
if (!field.flagFreshCurrentRow) {
|
|
793
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
794
794
|
self.model.doAction({ responseData: data });
|
|
795
795
|
}
|
|
796
796
|
self.$forceUpdate();
|
|
@@ -867,7 +867,7 @@
|
|
|
867
867
|
},
|
|
868
868
|
updateCurrentRow(router,data) {
|
|
869
869
|
let self = this;
|
|
870
|
-
if (router.flagFreshCurrentRow) {
|
|
870
|
+
if (router.flagFreshCurrentRow || router.flagAddRowAfterAction) {
|
|
871
871
|
self.tableComplate = true;
|
|
872
872
|
self.model.getCurrentRowApiData(function () {
|
|
873
873
|
self.$forceUpdate();
|
|
@@ -295,7 +295,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
295
295
|
}
|
|
296
296
|
if(field.id=='Follow'
|
|
297
297
|
|| field.id=='Trust' || field.id=='TrustZJJ' || field.id=='TrustDJ' || field.id=='TrustPT'
|
|
298
|
-
|| field.id=='RealLook'
|
|
298
|
+
|| field.id=='RealLook' || field.id=='RealLookVR'
|
|
299
299
|
|| field.id=='StatusAdjust'
|
|
300
300
|
|| field.id=='OperationKey' || field.id=='OperationKeyCommon' || field.id=='OperationKeyPassword'
|
|
301
301
|
|| field.id=='Key'){
|
|
@@ -306,6 +306,9 @@ const Detail = function (source,para ,callBack) {
|
|
|
306
306
|
else if(field.id=='TrustZJJ' || field.id=='TrustDJ' || field.id=='TrustPT'){
|
|
307
307
|
id='Trust';
|
|
308
308
|
}
|
|
309
|
+
else if(field.id=='RealLookVR'){
|
|
310
|
+
id='RealLook';
|
|
311
|
+
}
|
|
309
312
|
var advIndex = rtn.tags1.findIndex((v) => {
|
|
310
313
|
return v.appID === id;
|
|
311
314
|
});
|
|
@@ -183,6 +183,10 @@ const Router = function (source) {
|
|
|
183
183
|
get flagFreshCurrentRow() {
|
|
184
184
|
return source.flagFreshCurrentRow;
|
|
185
185
|
},
|
|
186
|
+
//路由操作完成后是根据返回ID读取数据新增行
|
|
187
|
+
get flagAddRowAfterAction() {
|
|
188
|
+
return source.flagAddRowAfterAction;
|
|
189
|
+
},
|
|
186
190
|
get textColor() {
|
|
187
191
|
return source.textColor || '';
|
|
188
192
|
},
|
|
@@ -563,7 +563,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
563
563
|
groupName: self.primaryKey,
|
|
564
564
|
operation: 2,
|
|
565
565
|
searchDataType: 3,
|
|
566
|
-
searchValue1: router.
|
|
566
|
+
searchValue1: router.flagAddRowAfterAction? rtnData.responseData.content: rtn.listData[rtn.selectIndex][self.primaryKey],
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
569
|
Vue.prototype.$api.postHandler(common.globalUri(), {
|
|
@@ -577,7 +577,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
577
577
|
.then(function (response) {
|
|
578
578
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
579
579
|
if (response.content.rows.length > 0) {
|
|
580
|
-
if(router.
|
|
580
|
+
if(router.flagAddRowAfterAction){
|
|
581
581
|
rtn.setStyleRow(response.content.rows);
|
|
582
582
|
response.content.rows.forEach((nr) => {
|
|
583
583
|
rtn.listData.unshift(nr);
|