centaline-data-driven 1.1.38 → 1.1.39

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.1.38",
3
+ "version": "1.1.39",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -1,11 +1,12 @@
1
1
  <template>
2
2
  <div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form>
3
+ <!-- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :apiParam="apiParam"></ct-form> -->
4
4
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
5
5
  <!--:api="'FormSample/formdata'"-->
6
6
  <!--<ct-form :source="formdata.content"></ct-form>-->
7
7
  <!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
8
8
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
9
+ <ct-form :api="'/forminfo/readDetail'" :apiParam="apiParam"></ct-form>
9
10
  <ct-dialog-list></ct-dialog-list>
10
11
  </div>
11
12
  </template>
@@ -15,9 +16,10 @@
15
16
  name: 'App',
16
17
  data() {
17
18
  return {
18
- apiParam: {originalTraId: "1481454808274235394", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
19
+ // apiParam: {originalTraId: "1481454808274235394", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
19
20
  // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
20
21
  // apiParam: {SN: "13557_132", UserID: "wuhan3"},
22
+ apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
21
23
  }
22
24
  },
23
25
  methods: {
@@ -7,9 +7,7 @@ const box = function (source, callBack) {
7
7
  var self = this;
8
8
  var init = function (data) {
9
9
  var rtn = {
10
-
11
- get clearable() {
12
-
10
+ get clearable() {
13
11
  if (typeof source.clear === 'undefined'&&!source.locked) {
14
12
  return true;
15
13
  }
@@ -22,11 +20,24 @@ const box = function (source, callBack) {
22
20
  },
23
21
  set clearable(v) {
24
22
  source.clear = v;
25
- },
26
-
23
+ },
27
24
  get decimals() {
28
25
  return data.decimals1;
29
- }
26
+ },
27
+ get value() {
28
+ if(source.code1){
29
+ if (rtn.decimals == undefined || rtn.decimals == "" || rtn.decimals === "0"){
30
+ return parseInt(source.code1);
31
+ }
32
+ else{
33
+ return parseFloat(source.code1).toFixed(rtn.decimals);
34
+ }
35
+ }
36
+ return source.code1;
37
+ },
38
+ set value(v) {
39
+ source.code1 = v;
40
+ },
30
41
  };
31
42
  rtn = base.copy(Base(data), rtn);
32
43
  rtn = base.copy(rtn, valid.Init(rtn));
@@ -16,8 +16,30 @@ const Iti = function (source) {
16
16
  },
17
17
  set clearable(v) {
18
18
  source.clear = v;
19
- },
19
+ },
20
+ get value() {
21
+ if(source.code1){
22
+ if (rtn.decimals == undefined || rtn.decimals == "" || rtn.decimals === "0"){
23
+ return parseInt(source.code1);
24
+ }
25
+ else{
26
+ return parseFloat(source.code1).toFixed(rtn.decimals);
27
+ }
28
+ }
29
+ return source.code1;
30
+ },
31
+ set value(v) {
32
+ source.code1 = v;
33
+ },
20
34
  get value1() {
35
+ if(source.code2){
36
+ if (rtn.decimals == undefined || rtn.decimals == "" || rtn.decimals === "0"){
37
+ return parseInt(source.code2);
38
+ }
39
+ else{
40
+ return parseFloat(source.code2).toFixed(rtn.decimals);
41
+ }
42
+ }
21
43
  return source.code2||'';
22
44
  },
23
45
  set value1(v) {
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: process.env.BASE_API,
15
+ baseUrl: "http://10.88.22.67:8080/v1/form/router",
16
16
  zindex: 999,
17
17
  showRequestErrorMessage: true,
18
18
  handler: {
@@ -35,6 +35,8 @@ Vue.use(centaline, {
35
35
  return {
36
36
  oldToken: '2db49cf6-0026-428b-9167-4273376a076f',
37
37
  estateId: '20210729104021C49F04B55C50F6AF58',
38
+ originalRequestURL: 'http://10.88.22.67:8080',
39
+ Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
38
40
  };
39
41
  },
40
42
  // 请求完成事件,可判断是否登录过期执行响应操作