centaline-data-driven 1.3.63 → 1.3.66

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.63",
3
+ "version": "1.3.66",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -10,7 +10,7 @@
10
10
  <script>
11
11
  import Vue from 'vue'
12
12
  export default {
13
- name: 'Tree',
13
+ name: 'DataDrivenSearchTree',
14
14
  data() {
15
15
  return {
16
16
  isShowSearchlist: false,
@@ -340,6 +340,9 @@ const common = {
340
340
  }
341
341
  else if (parent.$options.name === 'DataDrivendetail') {
342
342
  return parent;
343
+ }
344
+ else if (parent.$options.name === 'DataDrivenSearchTree') {
345
+ return parent;
343
346
  }
344
347
  else {
345
348
  return this.getParentPane(parent);
@@ -481,7 +481,7 @@
481
481
  else {
482
482
  submitData = field.getActionPara(submitData).para;
483
483
  field.doAction(submitData, (data) => {
484
- if (data.rtnCode === 200) {
484
+ if (data.rtnCode === 200 || data.isSuccess) {
485
485
  if(field && field.changeCallBackFunName){
486
486
  self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
487
487
  }
@@ -703,49 +703,47 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
703
703
  },
704
704
  //处理必填关联组件
705
705
  requiredHandle(item, update, doMrf) {
706
- if (item.id) {
707
- let field = null;
708
- let value= rtn.getFieldValue(item);
709
- for (var i in rtn.source.fields) {
710
- if (rtn.source.fields[i].requiredRelationField === item.id) {
711
- field = rtn.source.fields[i];
712
- let f = rtn.fieldsDic[field.fieldName1];
713
-
714
- if (field) {
715
- let hiddenValueArr = field.requiredRelationFieldValue.split(',');
716
- if (hiddenValueArr.indexOf(value) > -1) {
717
- field.required = true;
718
- }
719
- else {
720
- field.required = false;
721
- }
722
-
723
- if (f && f.self && f.self.$forceUpdate) {
724
- f.self.$forceUpdate();
725
- }
726
-
727
- if (update && rtn.self) {
728
- rtn.self.$forceUpdate();
729
- }
730
- }
731
- }
732
- }
733
-
734
- if (doMrf !== false) {
735
- rtn.validMrf(item);
736
- }
737
- }
738
- },
739
-
740
- getFieldValue(field)
741
- {
742
- if(field.type==Enum.ControlType.Switch)
743
- {
744
- return field.value?'1':'0';
745
- }
746
- return field.value;
747
- },
706
+ if (item.id) {
707
+ let field = null;
708
+ let value= rtn.getFieldValue(item);
709
+ for (var i in rtn.source.fields) {
710
+ if (rtn.source.fields[i].requiredRelationField === item.id) {
711
+ field = rtn.source.fields[i];
712
+ let f = rtn.fieldsDic[field.fieldName1];
713
+
714
+ if (field) {
715
+ let hiddenValueArr = field.requiredRelationFieldValue.split(',');
716
+ if (hiddenValueArr.indexOf(value) > -1) {
717
+ field.required = true;
718
+ }
719
+ else {
720
+ field.required = false;
721
+ }
722
+
723
+ if (f && f.self && f.self.$forceUpdate) {
724
+ f.self.$forceUpdate();
725
+ }
748
726
 
727
+ if (update && rtn.self) {
728
+ rtn.self.$forceUpdate();
729
+ }
730
+ }
731
+ }
732
+ }
733
+
734
+ if (doMrf !== false) {
735
+ rtn.validMrf(item);
736
+ }
737
+ }
738
+ },
739
+ getFieldValue(field)
740
+ {
741
+ if(field.type==Enum.ControlType.Switch)
742
+ {
743
+ return field.value?'1':'0';
744
+ }
745
+ return field.value;
746
+ },
749
747
  //绑定联动参数组件
750
748
  getRefFieldPara(refFieldNameArr) {
751
749
  let submitData = {};
@@ -1,7 +1,6 @@
1
1
  import base from '../../index';
2
2
  import Base from './Base';
3
3
  import valid from '../../../validate/index';
4
- import Axios from 'axios';
5
4
  import common from '../../../common';
6
5
  import Vue from 'vue';
7
6
  import Enum from './lib/Enum';
@@ -37,12 +36,13 @@ const Tags = function (source, moreActionRouter) {
37
36
  get text() {
38
37
  return source.code1;
39
38
  },
40
- set text(v) {
41
-
39
+ set text(v) {
42
40
  //由于tags存的数据都是json对象 所以如果传进来的数据是string类型则 需要转成对象
43
- if(typeof v=="string")
44
- {
45
- v=JSON.parse(v);
41
+ if(typeof v=="string"){
42
+ v=[];
43
+ if(v.length > 0){
44
+ v=JSON.parse(v);
45
+ }
46
46
  }
47
47
 
48
48
  if (source.code1 !== '') {
@@ -104,8 +104,8 @@ export default {
104
104
  width: 16px;
105
105
  height: 20px;
106
106
  text-align: left;
107
- top: 4px;
108
- right: 6px;
107
+ top: 3px;
108
+ right: -4px;
109
109
  }
110
110
 
111
111
  .my-icon-more {
@@ -321,7 +321,7 @@ const valid = {
321
321
  }
322
322
 
323
323
  for (let x in tempValid) {
324
- rtnValidate[x].valid = rtnValidate[x].action(model, old1, old2);
324
+ rtnValidate[x].valid = rtnValidate[x].action(this, old1, old2);
325
325
  if (!rtnValidate[x].valid) {
326
326
  return rtnValidate[x];
327
327
  }
package/src/main.js CHANGED
@@ -12,7 +12,7 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- baseUrl: "http://10.88.22.13:7070/v1/form/router",
15
+ baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
16
  // baseUrl: "http://10.88.23.25:9999/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.40:8080/",
18
18
  // baseUrl: "http://tjcptest.centaline.com.cn/",
@@ -42,7 +42,7 @@ Vue.use(centaline, {
42
42
  getRequestHeaders: function () {
43
43
  return {
44
44
  oldToken: 'd3513834-dcd1-4056-b094-53c484d7057f',
45
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe8yNZPsLLOzO3S6YOMhCO5igpURSDTGu6sROnpf8YrX_P-EcT5BBX4BN7TS6gJuaKUlYvUkDe7UR2ThEgPFgJEl8qFuyrivoYD-foWKRCyJU-sLGLrpF4xX9w3z2N-O_eMf5y7T8JkVn3PSzmHuyox8JoOabULjWJMhqyEFeL0BAAD__w.47czHbw7UgnOOWKn9Y0hd1pyImZskX5vJM6iWUy5s20',
45
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVbyZ71rpyNOaDhEZCNHChUiiQRC3B0QSZeeKaaY5r0nTEuGGmQFd7TRhxXc0UavNQXR3OEhSERisuh19BiJIx3bzsamhQrK_Qq1ZjaOHHOoYEzzL5AL5huWqdxO5fGPc5d5_MxmMXpI5ozsDSMlozCwVSg5O5ZShqQyvN4AAAD__w.5BtoXWS_DQhRmNrD-HBaYtVay7pKWQLx5NrVBExANME',
46
46
  originalRequestURL: 'http://10.88.22.67:8080',
47
47
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
48
48
  estateId: '20210729104021C49F04B55C50F6AF58',