centaline-data-driven 1.3.65 → 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 +1 -1
- package/src/centaline/loader/src/ctl/Form.js +40 -42
- package/src/centaline/loader/src/ctl/Tags.js +6 -6
- package/src/centaline/quickInputSos/src/quickInput.vue +2 -2
- package/src/centaline/validate/index.js +1 -1
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -703,49 +703,47 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
703
703
|
},
|
|
704
704
|
//处理必填关联组件
|
|
705
705
|
requiredHandle(item, update, doMrf) {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
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
|
|
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 !== '') {
|
|
@@ -321,7 +321,7 @@ const valid = {
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
for (let x in tempValid) {
|
|
324
|
-
rtnValidate[x].valid = rtnValidate[x].action(
|
|
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.
|
|
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.
|
|
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',
|