centaline-data-driven 1.3.18 → 1.3.19

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.18",
3
+ "version": "1.3.19",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -10,7 +10,7 @@
10
10
  name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1"} ,
13
+ apiParam: {actionType: 1,chanceID: "1524555083688316928"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
package/src/Form.vue CHANGED
@@ -2,7 +2,7 @@
2
2
  <div id="app-form" 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/finance/collection-money/detail'" :apiParam="apiParam"></ct-form>
5
+ <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form>
6
6
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
7
7
  <ct-dialog-list></ct-dialog-list>
8
8
  </div>
@@ -14,7 +14,7 @@
14
14
  data() {
15
15
  return {
16
16
  apiParam:{
17
- actionType: 2, originalTraId: "1542328321501380609", pageStyle: 2, pageTitle: "新增代收款", pageOnly: true
17
+ originalTraId: "1542431606998347777", actionType: 3, pageStyle: 2, pageTitle: "成交报告", pageOnly: true
18
18
  }
19
19
  }
20
20
  },
@@ -733,7 +733,18 @@ const common = {
733
733
  */
734
734
  numToFloat(value, num) {
735
735
  if (value && num && num > 0) {
736
- value = parseFloat(value).toFixed(num);
736
+ let ls=value.toString().split('.');
737
+ let l1=0;
738
+ value=ls[0]+'.';
739
+ if(ls.length>1){
740
+ value=value+ls[1];
741
+ l1=ls[1].length;
742
+ }
743
+ if(num>l1){
744
+ for(var i=0;i<num-l1;i++){
745
+ value=value+'0';
746
+ }
747
+ }
737
748
  }
738
749
  return value.toString();
739
750
  },
@@ -360,7 +360,10 @@ html {
360
360
  color: #303133;
361
361
  line-height: 1.769230769230769;
362
362
  }
363
-
363
+ .el-collapse-item__content [class*=el-col-] {
364
+ float: none;
365
+ display: inline-block;
366
+ }
364
367
  .ct-text .ct-text-label-div {
365
368
  display: flex;
366
369
  justify-content: left;
@@ -377,8 +380,14 @@ html {
377
380
 
378
381
  .ct-flex-div .ct-flex-div-input {
379
382
  flex: 1;
383
+
380
384
  }
381
-
385
+ .el-textarea .el-input__count {
386
+ /* right: 24px; */
387
+ }
388
+ .ct-flex-div-input input.el-input__inner {
389
+ /* width: 100%; */
390
+ }
382
391
  .ct-flex-div .ct-flex-div-span {
383
392
  display: flex;
384
393
  justify-content: left;
@@ -170,6 +170,14 @@
170
170
  if(data.content.imgUrl)this.tellImgUrl=data.content.imgUrl;
171
171
  }
172
172
  },
173
+ closeCallTel(){
174
+ if(this.model.isCallTel){
175
+ if(this.visible){
176
+ this.visible=false;
177
+ this.tellImgUrl='';
178
+ }
179
+ }
180
+ },
173
181
  }
174
182
  }
175
183
  </script>
@@ -418,6 +418,10 @@
418
418
  self.$forceUpdate();
419
419
  }
420
420
  else if(field.actionType===19){
421
+ if(self.model.currentCallTel){
422
+ self.$refs[self.model.currentCallTel][0].closeCallTel()
423
+ }
424
+ self.model.currentCallTel='router'+field.id+field.rowindex;
421
425
  self.$refs['router'+field.id+field.rowindex][0].callTelClick(data);
422
426
  }
423
427
  })
@@ -170,21 +170,8 @@
170
170
  </div>
171
171
  </div>
172
172
  </div>
173
- <div
174
- ref="detail"
175
- class="details-mid y-auto"
176
- @scroll="scrollHandle($event)"
177
- :style="{
178
- height: model.detailHeight ? model.detailHeight + 'px' : '780px',
179
- }"
180
- >
181
- <div
182
- ref="midl"
183
- class="mid-l"
184
- :style="{
185
- width: model.midlWidth ? model.midlWidth + 'px' : '1200px',
186
- }"
187
- >
173
+ <div ref="detail" class="details-mid y-auto" @scroll="scrollHandle($event)" :style="{height: model.detailHeight ? model.detailHeight + 'px' : '780px',}">
174
+ <div ref="midl" class="mid-l" :style="{ width: model.midlWidth ? model.midlWidth + 'px' : '1200px',}">
188
175
  <!-- 图片内容部分 -->
189
176
  <div class="hous-info base-box">
190
177
  <div class="info-conten">
@@ -10,9 +10,9 @@
10
10
  <!--头部元素-->
11
11
  <el-row v-if="collapseFieldsRow.length > 0">
12
12
  <el-col v-for="(col, index) in collapseFieldsRow[0]" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
13
- <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
13
+ <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
14
14
  @click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
15
- @input="inputHandler(col,$event)"
15
+ @input="inputHandler(col,$event)" @importComplete="importComplete"
16
16
  @popupSearchList="popupSearchListHandler"
17
17
  @tableButtonClick="clickHandler"></component>
18
18
  </el-col>
@@ -24,7 +24,7 @@
24
24
  v-for="(item, index) in collapse" v-if="item.show !== false" :key="index">
25
25
  <el-row>
26
26
  <el-col v-for="(col, index) in collapseFieldsRow[index + 1]" :key="index" :span="col.colspan" v-if="col.show !== false" style="padding:5px">
27
- <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)"
27
+ <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
28
28
  @click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)" @enter="enterHandler(col,$event)"
29
29
  @input="inputHandler(col,$event)" @importComplete="importComplete"
30
30
  @popupSearchList="popupSearchListHandler"
@@ -56,9 +56,9 @@
56
56
  <!--尾部元素-->
57
57
  <el-row v-if="independentItem.length > 0" style="margin-top: 20px;">
58
58
  <el-col v-for="(col, index) in independentItem" :key="index" v-if="col.show !== false" :span="col.colspan" style="padding:5px">
59
- <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" v-bind="col.bindPara" :fileData="getFileData(col)"
59
+ <component ref="Fields" :is="col.is" :vmodel="col" :api="model.optionApi" :parentModel="model" v-bind="col.bindPara" :fileData="getFileData(col)" :from="'form'"
60
60
  @click="fieldClickHandler(col,$event)" @change="changeHandler(col,$event)"
61
- @input="inputHandler(col,$event)"
61
+ @input="inputHandler(col,$event)" @importComplete="importComplete"
62
62
  @popupSearchList="popupSearchListHandler"
63
63
  @tableButtonClick="clickHandler"></component>
64
64
  </el-col>
@@ -595,7 +595,17 @@
595
595
  self.$message.error(f.validMessage);
596
596
  }
597
597
  else{
598
- self.$message.error('【'+f.model.label+'】不能为空!');
598
+ if(f.validMessage){
599
+ if(f.validMessage=='必填'){
600
+ self.$message.error('【'+f.model.label+'】'+f.validMessage);
601
+ }
602
+ else{
603
+ self.$message.error(f.validMessage);
604
+ }
605
+ }
606
+ else{
607
+ self.$message.error('【'+f.model.label+'】不能为空!');
608
+ }
599
609
  }
600
610
  }
601
611
  i++;
@@ -2,7 +2,7 @@
2
2
  * @Author: linchunmei 179466780@qq.com~
3
3
  * @Date: 2022-06-21 11:29:34
4
4
  * @LastEditors: linchunmei 179466780@qq.com
5
- * @LastEditTime: 2022-06-28 17:53:38
5
+ * @LastEditTime: 2022-07-01 11:12:13
6
6
  * @FilePath: \js-sdk-v3\src\centaline\quickInputSos\src\quickInput.vue
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  -->
@@ -103,7 +103,7 @@ export default {
103
103
  mounted() {},
104
104
  };
105
105
  </script>
106
- <style>
106
+ <style scoped>
107
107
  .ct-quickInput .el-icon-more:hover {
108
108
  cursor: pointer;
109
109
  color: #409eff;
@@ -127,7 +127,8 @@ export default {
127
127
  margin-left: 5px;
128
128
  cursor: pointer;
129
129
  }
130
- .ct-flex-div .ct-flex-div-input {
131
- padding-right: 12px;
130
+
131
+ .ct-quickInput.ct-flex-div-span {
132
+ width: 12px;
132
133
  }
133
134
  </style>
package/src/main.js CHANGED
@@ -12,11 +12,13 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- // baseUrl: "http://10.88.22.46:7070/v1/form/router",
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://10.88.22.69:8080/",
18
- flagRouterSelf: true,
17
+ // baseUrl: "http://10.88.22.69:8080/",
18
+ // baseUrl: "http://tjcptest.centaline.com.cn/",
19
+ // flagRouterSelf: true,
19
20
  zindex: 999,
21
+ showRequestSuccessMessage: true,
20
22
  showRequestErrorMessage: true,
21
23
  handler: {
22
24
  // 打开tab页
@@ -39,7 +41,7 @@ Vue.use(centaline, {
39
41
  // 获取请求头
40
42
  getRequestHeaders: function () {
41
43
  return {
42
- oldToken: 'f38e4a69-23f7-4c8e-b191-4028d08612d7',
44
+ oldToken: 'a9e42494-1e0b-4c46-834e-eea096ba2564',
43
45
  originalRequestURL: 'http://10.88.22.67:8080',
44
46
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
45
47
  Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImVjODhjOTI1LTU3OTktNDVmNy1iNDI3LWI3M2QwNGVkNWM2NSJ9.fyndFOEg4ThBHv4N2pi3pmPaWWlcD1CVPsYu0G5BKAB1hAgkL_GpOMpCZB5xdjMJLbBVomdoUjnRY7T6JSZb-g',