centaline-data-driven 1.3.44 → 1.3.45

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.3.44",
3
+ "version": "1.3.45",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -2,7 +2,7 @@
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
3
  <!-- <ct-form :api="'/PropertyRET/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
4
4
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
5
- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
+ <ct-form :api="'/PropertyTrust/getLayoutOfNew'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
6
6
  <!-- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form> -->
7
7
  <ct-dialog-list></ct-dialog-list>
8
8
  </div>
@@ -14,11 +14,7 @@
14
14
  data() {
15
15
  return {
16
16
  apiParam:{
17
- actionType: 3,
18
- originalTraId: "1554357607799558146",
19
- pageOnly: true,
20
- pageStyle: 2,
21
- pageTitle: "成交报告",
17
+ chanceID: "1508323251514904576", actionType: 2
22
18
  },
23
19
  topHeight:10,
24
20
  }
@@ -8,15 +8,15 @@
8
8
  :searchCategoryApi="'/ProfileWorklistList/getLayoutOfSearchCategory'"
9
9
  :searchDataApi="'/ProfileWorklistList/getListOfSearchModel'" :apiParam="para"></ct-searchlist> -->
10
10
 
11
- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
11
+ <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'"
12
12
  :searchDataApi="'/api/third-dept-tran/tran-list'">
13
- </ct-searchlist>
13
+ </ct-searchlist> -->
14
14
 
15
- <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
15
+ <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
16
16
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
17
17
  :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"
18
18
  :searchStatsApi="'/exampleList/getListStats'">
19
- </ct-searchlist> -->
19
+ </ct-searchlist>
20
20
 
21
21
  <ct-dialog-list></ct-dialog-list>
22
22
  </div>
@@ -153,6 +153,7 @@
153
153
  }
154
154
  },
155
155
  callTelClick(data){
156
+ var self=this;
156
157
  this.message='';
157
158
  this.qrCode='';
158
159
  this.tellImgUrl='';
@@ -169,6 +170,16 @@
169
170
  if(data.content.height)this.height=data.content.height;
170
171
  if(data.content.imgUrl)this.tellImgUrl=data.content.imgUrl;
171
172
  }
173
+ else if(data.content.actionType=='提示确认'){
174
+ this.$common.confirm(data.content.message, data.content.actionType, {
175
+ confirmButtonText: '确定',
176
+ cancelButtonText: '取消',
177
+ center: true
178
+ }).then(() => {
179
+ self.$emit('click',self.model,self.rowData,self.rowindex,true);
180
+ }).catch(() => {
181
+ });
182
+ }
172
183
  },
173
184
  closeCallTel(){
174
185
  if(this.model.isCallTel){
@@ -24,7 +24,7 @@
24
24
  <div ref="routers" style="margin-right: 5px;" id="routersWidth">
25
25
  <component v-for="(router, index) in model.rowRouter" :key="index" :ref="'router' + router.id"
26
26
  v-if="!router.rightField || model.listData[model.value][router.rightField] == 1" :is="router.is"
27
- :vmodel="router" :api="model.optionApi" @click="fieldClickHandler(router)">
27
+ :vmodel="router" :api="model.optionApi" @click="fieldClickHandler">
28
28
  </component>
29
29
  </div>
30
30
  </div>
@@ -97,7 +97,6 @@ export default {
97
97
  });
98
98
 
99
99
  },
100
-
101
100
  focusHandle: function () {
102
101
  this.$refs['ct-input'].focus();
103
102
  this.$set(this, 'focus', true);
@@ -150,7 +149,7 @@ export default {
150
149
  this.changeHandler(self.model.value);
151
150
  if (this.model.autoSearch) this.$emit('click');
152
151
  },
153
- fieldClickHandler(field) {
152
+ fieldClickHandler(field, rowData,rowindex,flagHaveAlert) {
154
153
  var self = this;
155
154
  let submitData = {};
156
155
  var router = this.model.buttons.find((v) => {
@@ -185,6 +184,9 @@ export default {
185
184
  });
186
185
  }
187
186
  }
187
+ if(field.isCallTel){
188
+ submitData.flagHaveAlert=flagHaveAlert||false;
189
+ }
188
190
 
189
191
  this.routerClickHandler(router, submitData);
190
192
  },
@@ -278,10 +280,10 @@ export default {
278
280
  if (callBack) {
279
281
  callBack();
280
282
  }
281
- if (field.actionType === 10) {
283
+ if(field.isRefersh){
282
284
  self.loaderObj.Contact(data, null, self.load);
283
285
  }
284
- else if (field.actionType === 19) {
286
+ else if (field.isCallTel){
285
287
  self.$refs['router' + field.id][0].callTelClick(data);
286
288
  }
287
289
  })
@@ -268,12 +268,15 @@
268
268
 
269
269
  return true;
270
270
  },
271
- rolRouterClickHandler(field, rowData,rowindex) {
271
+ rolRouterClickHandler(field, rowData,rowindex,flagHaveAlert) {
272
272
  field.rowindex=rowindex;
273
273
  var submitData = {};
274
274
  field.submitListField.forEach((k) => {
275
275
  submitData[k] = rowData[k];
276
276
  });
277
+ if(field.isCallTel){
278
+ submitData.flagHaveAlert=flagHaveAlert||false;
279
+ }
277
280
  this.routerClickHandler(field, submitData, null);
278
281
  },
279
282
  fieldClickHandler(field) {
@@ -407,23 +410,26 @@
407
410
  }
408
411
  else{
409
412
  field.doAction(submitData, (data) => {
410
- self.model.doAction(data,field);
411
413
  if(callBack){
412
414
  callBack();
413
415
  }
414
- if(field.actionType===10){
416
+ if(field.isRefersh){
415
417
  data.apiRouter=self.model.apiRouter;
416
418
  data.rowMergedColumns=self.model.rowMergedColumns;
417
419
  self.loaderObj.ContactList(data,null,self.load);
418
420
  self.$forceUpdate();
419
421
  }
420
- else if(field.actionType===19){
422
+ else if (field.isCallTel) {
423
+ self.model.doAction(data, field);
421
424
  if(self.model.currentCallTel){
422
425
  self.$refs[self.model.currentCallTel][0].closeCallTel()
423
426
  }
424
427
  self.model.currentCallTel='router'+field.id+field.rowindex;
425
428
  self.$refs['router'+field.id+field.rowindex][0].callTelClick(data);
426
429
  }
430
+ else{
431
+ self.model.doAction(data, field);
432
+ }
427
433
  })
428
434
  }
429
435
  }
@@ -100,6 +100,7 @@ export default {
100
100
  methods: {
101
101
  load(data) {
102
102
  this.model = data;
103
+ this.classifyClickHandle()
103
104
  },
104
105
  handleExceed() {
105
106
  this.validMessage = "附件数量最多" + this.model.max + "张";
@@ -70,7 +70,7 @@
70
70
  </el-row>
71
71
  <el-row v-if="model.buttons.findIndex((v)=>{return v.show}) > -1" :class="isScroll?'ccai button-absolute':'button-initial'"
72
72
  :style="{'max-width':pageWidth?(pageWidth-20)+'px':'100%'}">
73
- <el-col :span="24" style="text-align:center">
73
+ <el-col :span="24" style="text-align:center;padding-bottom: 1px;">
74
74
  <component v-for="(btn, index) in model.buttons" :key="index" :is="btn.is" :vmodel="btn" @click="clickHandler" v-if="btn.show"></component>
75
75
  </el-col>
76
76
  </el-row>
@@ -837,7 +837,9 @@
837
837
  }
838
838
  .button-absolute{
839
839
  z-index: 100;
840
- bottom: 6px;
840
+ /* bottom: 6px; */
841
+ bottom: 0;
842
+ border-radius: 0 0 4px 4px;
841
843
  position: absolute;
842
844
  line-height: 34px;
843
845
  background-color: #fff;
@@ -157,7 +157,6 @@
157
157
  }
158
158
  }
159
159
  },
160
-
161
160
  xmlToJson(xml) {
162
161
  var self = this;
163
162
  // Create the return object
@@ -218,13 +217,11 @@
218
217
  }
219
218
  return obj;
220
219
  },
221
- clickHandler(routerKey, rowindex, forname, forrowindex) {
222
- this.$emit('click', routerKey, rowindex, forname, forrowindex);
220
+ clickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
221
+ this.$emit('click', routerKey, rowindex, forname, forrowindex,flagHaveAlert);
223
222
  },
224
-
225
223
  },
226
224
  mounted() {
227
-
228
225
  },
229
226
  beforeDestroy() {
230
227
  this.Layout = [];
@@ -25,7 +25,6 @@
25
25
  rowindex: Number,
26
26
  forname: String,
27
27
  forrowindex: String,
28
-
29
28
  },
30
29
  data() {
31
30
  return {
@@ -36,8 +35,8 @@
36
35
  this.model = this.loaderObj.CellLayout(this.vmodel);
37
36
  },
38
37
  methods: {
39
- clickHandler(routerKey, rowindex, forname, forrowindex) {
40
- this.$emit('click', routerKey, rowindex, forname, forrowindex);
38
+ clickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
39
+ this.$emit('click', routerKey, rowindex, forname, forrowindex,flagHaveAlert);
41
40
  }
42
41
  },
43
42
  mounted() {
@@ -27,8 +27,8 @@
27
27
  this.model = this.loaderObj.CellLayout(this.vmodel);
28
28
  },
29
29
  methods: {
30
- clickHandler(routerKey, rowindex, forname, forrowindex) {
31
- this.$emit('click', routerKey, rowindex, forname, forrowindex);
30
+ clickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
31
+ this.$emit('click', routerKey, rowindex, forname, forrowindex,flagHaveAlert);
32
32
  }
33
33
  },
34
34
  mounted() {
@@ -51,8 +51,7 @@
51
51
  if (typeof this.vmodel !== 'undefined') {
52
52
  this.model = this.loaderObj.CellLayout(this.vmodel, this.actionRouter, this.rowdata, this.forname, this.forrowindex);
53
53
  }
54
- },
55
-
54
+ },
56
55
  methods: {
57
56
  clickHandler(ev) {
58
57
  if (!this.visible) {
@@ -61,10 +60,10 @@
61
60
  else {
62
61
  this.visible = false;
63
62
  this.tellImgUrl = '';
64
- }
65
-
63
+ }
66
64
  },
67
65
  callTelClick(data) {
66
+ var self=this;
68
67
  this.message = '';
69
68
  this.qrCode = '';
70
69
  this.tellImgUrl = '';
@@ -81,6 +80,16 @@
81
80
  if (data.content.height) this.height = data.content.height;
82
81
  if (data.content.imgUrl) this.tellImgUrl = data.content.imgUrl;
83
82
  }
83
+ else if(data.content.actionType=='提示确认'){
84
+ this.$common.confirm(data.content.message, data.content.actionType, {
85
+ confirmButtonText: '确定',
86
+ cancelButtonText: '取消',
87
+ center: true
88
+ }).then(() => {
89
+ self.$emit('click',self.model.routerKey,self.rowindex,self.forname,self.forrowindex,true);
90
+ }).catch(() => {
91
+ });
92
+ }
84
93
  },
85
94
  closeCallTel() {
86
95
  if (this.visible) {
@@ -129,13 +129,11 @@
129
129
  var self = this;
130
130
  this.model.input = field.input;//当前小组件事件作为大组件事件
131
131
  self.$emit('input');
132
-
133
132
  },
134
133
  }
135
134
  }
136
135
  </script>
137
- <style>
138
-
136
+ <style>
139
137
  .ct-form-repeat {
140
138
  display: table;
141
139
  background: aliceblue;
@@ -1116,7 +1116,7 @@ export default {
1116
1116
  clickAcion();
1117
1117
  }
1118
1118
  },
1119
- rolRouterCellClickHandler(routerKey, rowindex, forname, forrowindex) {
1119
+ rolRouterCellClickHandler(routerKey, rowindex, forname, forrowindex,flagHaveAlert) {
1120
1120
  var self = this;
1121
1121
  var submitData = {};
1122
1122
  var rowData = self.model.listData[rowindex];
@@ -1128,33 +1128,23 @@ export default {
1128
1128
  field.submitListField.forEach((k) => {
1129
1129
  submitData[k] = rowData[forname][forrowindex][k];
1130
1130
  });
1131
- } else {
1131
+ }
1132
+ else {
1132
1133
  field.submitListField.forEach((k) => {
1133
1134
  submitData[k] = rowData[k];
1134
1135
  });
1135
1136
  }
1137
+ if(field.isCallTel){
1138
+ submitData.flagHaveAlert=flagHaveAlert||false;
1139
+ }
1136
1140
  let action = field.action;
1137
1141
  if (field.actionField) {
1138
1142
  action = rowData[field.actionField];
1139
1143
  }
1140
1144
  self.model.selectIndex = rowindex;
1141
- this.routerCellClickHandler(
1142
- field,
1143
- submitData,
1144
- action,
1145
- rowindex,
1146
- forname,
1147
- forrowindex
1148
- );
1145
+ this.routerCellClickHandler(field, submitData, action, rowindex, forname, forrowindex);
1149
1146
  },
1150
- routerCellClickHandler(
1151
- field,
1152
- submitData,
1153
- action,
1154
- rowindex,
1155
- forname,
1156
- forrowindex
1157
- ) {
1147
+ routerCellClickHandler( field, submitData, action,rowindex, forname, forrowindex) {
1158
1148
  let self = this;
1159
1149
  action = action || field.action;
1160
1150
 
@@ -1176,24 +1166,25 @@ export default {
1176
1166
  self.model,
1177
1167
  field.dialogWidth
1178
1168
  );
1179
- } else if (field.isSearchPageInTab) {
1180
- // 外部框架tab页打开
1169
+ }
1170
+ else if (field.isSearchPageInTab) {// 外部框架tab页打开
1181
1171
  submitData = field.getActionPara(submitData).para;
1182
1172
  self.$common
1183
1173
  .getDataDrivenOpts()
1184
1174
  .handler.openTabSearch(field, submitData);
1185
- } else if (field.isBrowserNewTab) {
1186
- // 浏览器打开
1175
+ }
1176
+ else if (field.isBrowserNewTab) {// 浏览器打开
1187
1177
  submitData = field.getActionPara(submitData).para;
1188
1178
  let query = self.$common.objectToQueryStr(submitData);
1189
1179
  window.open(action + query, "_blank");
1190
- } else if (field.isOpenUrlInBrowse) {
1191
- // 浏览器打开
1180
+ }
1181
+ else if (field.isOpenUrlInBrowse) {// 浏览器打开
1192
1182
  window.open(submitData[field.submitFormField], "_blank");
1193
- } else if (field.isSeeVoice) {
1194
- //看视频
1183
+ }
1184
+ else if (field.isSeeVoice) {//看视频
1195
1185
  self.$common.browseVideo(field, submitData);
1196
- } else {
1186
+ }
1187
+ else {
1197
1188
  //self.operationLoading = true;
1198
1189
 
1199
1190
  //Form
@@ -1286,24 +1277,17 @@ export default {
1286
1277
  ],
1287
1278
  };
1288
1279
  self.$common.openDialog(dialogOption);
1289
- } else {
1280
+ }
1281
+ else {
1290
1282
  field.doAction(submitData, (data) => {
1291
1283
  self.model.doAction(data, field);
1292
- if (field.actionType === 19) {
1284
+ if (field.isCallTel) {
1293
1285
  if (self.model.currentCallTellayout) {
1294
- self.closeCallTel(
1295
- self.$refs[self.model.currentCallTellayout][0]
1296
- );
1286
+ self.closeCallTel(self.$refs[self.model.currentCallTellayout][0]);
1297
1287
  }
1298
1288
  self.model.currentCallTellayout = "layout" + rowindex;
1299
- self.model.currentCallTelrouter =
1300
- "router" + forname + forrowindex;
1301
- self.callTelClick(
1302
- self.$refs["layout" + rowindex][0],
1303
- data,
1304
- forname,
1305
- forrowindex
1306
- );
1289
+ self.model.currentCallTelrouter = "router" + forname + forrowindex;
1290
+ self.callTelClick(self.$refs["layout" + rowindex][0], data, forname, forrowindex);
1307
1291
  }
1308
1292
  });
1309
1293
  }
@@ -1335,15 +1319,14 @@ export default {
1335
1319
  clickAcion();
1336
1320
  })
1337
1321
  .catch(() => {});
1338
- } else {
1322
+ }
1323
+ else {
1339
1324
  clickAcion();
1340
1325
  }
1341
1326
  },
1342
1327
  callTelClick(VueCom, data, forname, forrowindex) {
1343
1328
  var self = this;
1344
- if (
1345
- typeof VueCom.$refs["router" + forname + forrowindex] !== "undefined"
1346
- ) {
1329
+ if ( typeof VueCom.$refs["router" + forname + forrowindex] !== "undefined") {
1347
1330
  VueCom.callTelClick(data);
1348
1331
  return true;
1349
1332
  }
@@ -14,7 +14,8 @@ const Mo = function (source, moreActionRouter) {
14
14
  label: 'name',
15
15
  displayLabel:'displayName',
16
16
  actionType: 'actionType',
17
- flagDeleted: 'flagDeleted'
17
+ flagDeleted: 'flagDeleted',
18
+ toolTip: 'toolTip'
18
19
  },
19
20
  _value:null,
20
21
  get value() {
@@ -38,9 +38,6 @@ const Router = function (source) {
38
38
  get isDropdown() {
39
39
  return source.buttonType === Enum.ButtonType.Dropdown;
40
40
  },
41
- get isCallTel() {
42
- return source.actionType === Enum.ActionType.CallTel;
43
- },
44
41
  get alert() {
45
42
  return source.flagAlert === true;
46
43
  },
@@ -116,6 +113,9 @@ const Router = function (source) {
116
113
  get isRefersh() {
117
114
  return source.actionType === Enum.ActionType.Refersh;
118
115
  },
116
+ get isCallTel() {
117
+ return source.actionType === Enum.ActionType.CallTel;
118
+ },
119
119
  //打开页面(1Form,2SearchList(弹在tab),3Tab,4执行客户端脚本,5SearchList(弹出))
120
120
  get navToNewPage() {
121
121
  return source.navToNewPage;
@@ -41,7 +41,8 @@ const So = function (source, moreActionRouter) {
41
41
  label: 'name',
42
42
  displayLabel:'displayName',
43
43
  actionType: 'actionType',
44
- flagDeleted: 'flagDeleted'
44
+ flagDeleted: 'flagDeleted',
45
+ toolTip: 'toolTip'
45
46
  },
46
47
  attrs: {
47
48
  style: {
@@ -89,6 +90,8 @@ const So = function (source, moreActionRouter) {
89
90
  //});
90
91
  Vue.prototype.$api.postHandler(common.globalUri(), params).then((response) => {
91
92
  if (response.rtnCode === 200) {
93
+ response.content[0].toolTip="XXXXXXXXXXXXXXXXXXXX";
94
+ response.content[1].toolTip="CCCCCCCCCCCCCCCCCCCC";
92
95
  self.options = response.content;
93
96
  }
94
97
  });
@@ -3,7 +3,9 @@
3
3
  <ul>
4
4
  <li v-for="(op, index) in model.options" :key="index" :class="[getOptionSelect(op[model.optionAttrs.value])?'select':'']"
5
5
  @click="selectOption(op[model.optionAttrs.value],op[model.optionAttrs.label])">
6
- <div v-html="op[model.optionAttrs.displayLabel]||op[model.optionAttrs.label]"></div>
6
+ <el-tooltip :disabled="!op[model.optionAttrs.toolTip]" :content="op[model.optionAttrs.toolTip]" placement="right">
7
+ <div v-html="op[model.optionAttrs.displayLabel]||op[model.optionAttrs.label]"></div>
8
+ </el-tooltip>
7
9
  </li>
8
10
  </ul>
9
11
  </div>
package/src/main.js CHANGED
@@ -14,8 +14,8 @@ Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
15
  baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
16
  // baseUrl: "http://10.88.23.22:9999/v1/form/router",
17
- // baseUrl: "http://tjcptest.centaline.com.cn/",
18
17
  // baseUrl: "http://10.88.22.40:8080/",
18
+ // baseUrl: "http://tjcptest.centaline.com.cn/",
19
19
  // flagRouterSelf: true,
20
20
  zindex: 999,
21
21
  showRequestSuccessMessage: true,
@@ -41,7 +41,7 @@ Vue.use(centaline, {
41
41
  // 获取请求头
42
42
  getRequestHeaders: function () {
43
43
  return {
44
- oldToken: '688032ee-2caf-4a34-a1e6-bf7f5c8cca42',
44
+ oldToken: 'daed21af-8ae7-4bc0-8eb5-b6ae137c8e9c',
45
45
  originalRequestURL: 'http://10.88.22.67:8080',
46
46
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
47
47
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE2OGI1YThjLThiZTUtNDQyZi04NTA4LWMyODY4N2NkYmEzMSJ9.Rk26QdZSUzDVdjdRxGxDApOt5W6KYjmyjmsXpWeZb5E5NwZjpXnHYwhYkKjNxIeyg--OV2UrzFa2SxGzZ-Wneg',