centaline-data-driven 1.2.23 → 1.2.24
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/centaline/css/common.css +1 -1
- package/src/centaline/dynamicDetail/src/dynamicContactList.vue +13 -8
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +11 -11
- package/src/centaline/dynamicPhotoSelectList/src/dynamicPhotoSelectList.vue +2 -1
- package/src/centaline/loader/src/ctl/ContactList.js +58 -3
- 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
|
@@ -7,9 +7,14 @@
|
|
|
7
7
|
v-if="apiRouter!==null && !flagLook" :is="apiRouter.is" :vmodel="apiRouter"
|
|
8
8
|
@click="lookOwner(apiRouter,$event)"></component>
|
|
9
9
|
<div class="contacts-tips" v-else>
|
|
10
|
-
<button class="el-button el-button--primary el-button--mini max-btn-add">新增联系人</button>
|
|
10
|
+
<!-- <button class="el-button el-button--primary el-button--mini max-btn-add">新增联系人</button>
|
|
11
11
|
<button class="el-button el-button--primary el-button--mini max-btn-add">通话记录</button>
|
|
12
|
-
<button class="el-button el-button--primary el-button--mini max-btn-add">查看历史号码</button>
|
|
12
|
+
<button class="el-button el-button--primary el-button--mini max-btn-add">查看历史号码</button> -->
|
|
13
|
+
<component class="el-button el-button--primary el-button--mini max-btn-add"
|
|
14
|
+
v-if="model && model.buttons!==null && model.buttons.length>0"
|
|
15
|
+
v-for="(col, index) in model.buttons" :key="index"
|
|
16
|
+
:is="col.is" :vmodel="col"
|
|
17
|
+
@click="fieldClickHandler(col,$event)"></component>
|
|
13
18
|
</div>
|
|
14
19
|
</div>
|
|
15
20
|
<!-- 表格 -->
|
|
@@ -106,7 +111,7 @@
|
|
|
106
111
|
opening:'first',
|
|
107
112
|
}
|
|
108
113
|
},
|
|
109
|
-
mounted() {
|
|
114
|
+
mounted() {
|
|
110
115
|
},
|
|
111
116
|
activated() {
|
|
112
117
|
this.$nextTick(() => {
|
|
@@ -126,8 +131,8 @@
|
|
|
126
131
|
var self = this;
|
|
127
132
|
var submitData=router.getActionPara({}).para;
|
|
128
133
|
router.doAction(submitData, (res) => {
|
|
129
|
-
if (res.rtnCode ===
|
|
130
|
-
self.loaderObj.ContactList(res
|
|
134
|
+
if (res.rtnCode === 200) {
|
|
135
|
+
self.loaderObj.ContactList(res,null,self.load);
|
|
131
136
|
self.flagLook = true;
|
|
132
137
|
}
|
|
133
138
|
});
|
|
@@ -146,11 +151,11 @@
|
|
|
146
151
|
var self = this;
|
|
147
152
|
var callBack=null;
|
|
148
153
|
let submitData={};
|
|
149
|
-
var router = this.model.
|
|
154
|
+
var router = this.model.buttons.find((v) => {
|
|
150
155
|
return v.id === field.id;
|
|
151
156
|
});
|
|
152
|
-
if(router==undefined && this.model.
|
|
153
|
-
router = this.model.
|
|
157
|
+
if(router==undefined && this.model.actionRouter){
|
|
158
|
+
router = this.model.actionRouter.find((v) => {
|
|
154
159
|
return v.id === field.id;
|
|
155
160
|
});
|
|
156
161
|
}
|
|
@@ -189,6 +189,17 @@
|
|
|
189
189
|
<div>该房源共<span class="red-text">{{model.fields1Dic.LookCustomerCount.value}}</span>位客户看房</div>
|
|
190
190
|
<div>最近7天带看<span class="red-text">{{model.fields1Dic.CustomerLookCount7.value}}</span>次,总带看<span class="red-text">{{model.fields1Dic.CustomerLookCountAll.value}}</span>次。</div>
|
|
191
191
|
</div>
|
|
192
|
+
<div v-if="model.operationList!==null" :key="model.operationKey" class="operation-table base-box">
|
|
193
|
+
<div v-for="(col, index) in model.operationList" :key="index" class="table-box">
|
|
194
|
+
<div class="t-item">
|
|
195
|
+
<span class="i">{{col.operationName}}</span>
|
|
196
|
+
</div>
|
|
197
|
+
<div class="t-item"><span class="i" :class="'operation'+col.flagKey">{{col.desc}}</span></div>
|
|
198
|
+
<div class="t-item" style="height: 50px;">
|
|
199
|
+
<component class="el-button t-but el-button--info max-info" v-if="col.router && col.router.show" :is="col.router.is" :vmodel="col.router" :api="model.optionApi" @click="fieldClickHandler(col.router,$event)"></component>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
192
203
|
<div class="staff-info base-box">
|
|
193
204
|
<el-tabs :value="model.activeIndex2" @tab-click="handleClick">
|
|
194
205
|
<el-tab-pane v-for="(col, index) in model.tags2" :key="col.appID"
|
|
@@ -221,17 +232,6 @@
|
|
|
221
232
|
</el-tab-pane>
|
|
222
233
|
</el-tabs>
|
|
223
234
|
</div>
|
|
224
|
-
<div v-if="model.operationList!==null" :key="model.operationKey" class="operation-table base-box">
|
|
225
|
-
<div v-for="(col, index) in model.operationList" :key="index" class="table-box">
|
|
226
|
-
<div class="t-item">
|
|
227
|
-
<span class="i">{{col.operationName}}</span>
|
|
228
|
-
</div>
|
|
229
|
-
<div class="t-item"><span class="i" :class="'operation'+col.flagKey">{{col.desc}}</span></div>
|
|
230
|
-
<div class="t-item" style="height: 50px;">
|
|
231
|
-
<component class="el-button t-but el-button--info max-info" v-if="col.router && col.router.show" :is="col.router.is" :vmodel="col.router" :api="model.optionApi" @click="fieldClickHandler(col.router,$event)"></component>
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
235
|
<div class="customer">
|
|
236
236
|
<div class="customer-title">
|
|
237
237
|
匹配客户
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
});
|
|
108
108
|
self.FlagPhoto = true;
|
|
109
109
|
self.imageList = sourceRows;
|
|
110
|
+
//self.imageList=[{thumbnailUrl:'lmg.jj20.com/up/allimg/tp01/1ZZH250054149-0-lp.jpg',mediaUrl:'lmg.jj20.com/up/allimg/tp01/1ZZH250054149-0-lp.jpg'}];
|
|
110
111
|
} catch (e) {
|
|
111
112
|
self.$message.warning(e);
|
|
112
113
|
}
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
if (this.chooseList && this.chooseList.length > 0) {
|
|
140
141
|
this.$emit('handlePhoto', this.chooseList);
|
|
141
142
|
} else {
|
|
142
|
-
|
|
143
|
+
this.$message.warning("请选择至少一张图片");
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
},
|
|
@@ -7,8 +7,60 @@ import Vue from 'vue';
|
|
|
7
7
|
const ContactList = function (source,para ,callBack) {
|
|
8
8
|
var init = function (data) {
|
|
9
9
|
var rtn = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
$vue: null,
|
|
11
|
+
_buttons: null,
|
|
12
|
+
_actionRouter: null,
|
|
13
|
+
_rowRouter: null,
|
|
14
|
+
get buttons() {
|
|
15
|
+
if (rtn._buttons !== null) {
|
|
16
|
+
return rtn._buttons;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
if (source.content.toolButtons) {
|
|
20
|
+
rtn._buttons = [];
|
|
21
|
+
source.content.toolButtons.forEach((v) => {
|
|
22
|
+
var button = Router(v);
|
|
23
|
+
button.is = "ct-btn";
|
|
24
|
+
button.attrs = { size: "mini", class: 'max-btn-gray' }
|
|
25
|
+
rtn._buttons.push(button);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return rtn._buttons;
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
get actionRouter() {
|
|
32
|
+
if (rtn._actionRouter !== null) {
|
|
33
|
+
return rtn._actionRouter;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
rtn._actionRouter = [];
|
|
37
|
+
if (source.content.actionRouters) {
|
|
38
|
+
source.content.actionRouters.forEach((v) => {
|
|
39
|
+
var router = Router(v);
|
|
40
|
+
//router.is = "ct-btn";
|
|
41
|
+
//router.attrs = { size: "mini" }
|
|
42
|
+
rtn._actionRouter.push(router);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return rtn._actionRouter;
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
get rowRouter() {
|
|
49
|
+
if (rtn._rowRouter !== null) {
|
|
50
|
+
return rtn._rowRouter;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
rtn._rowRouter = [];
|
|
54
|
+
if (rtn.actionRouter) {
|
|
55
|
+
rtn.actionRouter.forEach((v) => {
|
|
56
|
+
if (v.show) {
|
|
57
|
+
rtn._rowRouter.push(v);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return rtn._rowRouter;
|
|
62
|
+
}
|
|
63
|
+
},
|
|
12
64
|
};
|
|
13
65
|
return rtn;
|
|
14
66
|
}
|
|
@@ -25,7 +77,10 @@ const ContactList = function (source,para ,callBack) {
|
|
|
25
77
|
);
|
|
26
78
|
}
|
|
27
79
|
else {
|
|
28
|
-
|
|
80
|
+
var rtn = init(source);
|
|
81
|
+
if (callBack) {
|
|
82
|
+
callBack(rtn);
|
|
83
|
+
}
|
|
29
84
|
}
|
|
30
85
|
}
|
|
31
86
|
export default ContactList;
|