centaline-data-driven 1.2.13 → 1.2.14

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.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Detail.vue CHANGED
@@ -7,10 +7,10 @@
7
7
 
8
8
  <script>
9
9
  export default {
10
- name: 'App',
10
+ name: 'DataDrivendetail',
11
11
  data() {
12
12
  return {
13
- apiParam: {actionType: 1,chanceID: "1"} ,
13
+ apiParam: {actionType: 1,chanceID: "2"} ,
14
14
  }
15
15
  },
16
16
  mounted() {
package/src/Edit.vue CHANGED
@@ -1,71 +1,27 @@
1
1
  <template>
2
2
  <div id="app">
3
- <viewer :images="pics">
4
- <img v-for="src in pics" :src="src" :key="src">
5
- </viewer>
3
+ <formListTable></formListTable>
6
4
  </div>
7
5
 
8
6
  </template>
9
7
 
10
8
  <script>
11
9
  import formListTable from './centaline/dynamicForm/src/dynamicFormListTable'
12
- import Viewer from 'v-viewer'
13
- import 'viewerjs/dist/viewer.css'
14
- import Vue from 'vue'
15
- Vue.use(Viewer)
16
10
  export default {
17
11
  name: 'App',
18
12
  components: {
19
- 'formListTable': formListTable,
13
+ 'formListTable': formListTable
20
14
  },
21
15
  data() {
22
16
  return {
23
- template: "",
24
- pics:[
25
- 'https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943',
26
- 'https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943',
27
- 'https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943',
28
- ],
17
+ template: ""
29
18
  }
30
19
  },
31
20
  methods: {
32
21
  TestEdit() {
33
22
  this.$api.post('http://10.88.22.52:2828//api/values/edit', { content: this.template }, (data) => {
34
23
  });
35
- },
36
- copyField()
37
- {
38
- debugger;
39
- var self = this;
40
- var dialogOption = {
41
- title: "复制控件",
42
- content: [
43
- {
44
- component: "ct-form",
45
- attrs: {
46
- showTitle: false,
47
- api: "/forminfo/readTargetDetail",
48
- apiParam: {
49
- formId: "1ae27876-a938-4ea5-aeab-fb2a7b067a2f",
50
- actionType: 3,
51
- },
52
- width: "1300px",
53
- height: "650px",
54
- },
55
- on: {
56
- submit(ev) {
57
- self.$common.closeDialog(dialogOption.dialog);
58
- },
59
- closeDialog() {
60
-
61
- },
62
- },
63
- },
64
- ],
65
- };
66
- self.$common.openDialog(dialogOption);
67
-
68
- },
24
+ }
69
25
  },
70
26
  created() {
71
27
  //this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
package/src/Form.vue CHANGED
@@ -1,24 +1,40 @@
1
1
  <template>
2
2
  <div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <ct-form :api="'/roomtype/readDetail'" :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> -->
10
+ <!-- <ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
11
+ <ct-form :api="'PropertyRealLook/getLayoutOfNew'" :apiParam="para"></ct-form>
12
+ <!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
9
13
  <ct-dialog-list></ct-dialog-list>
10
14
  </div>
11
15
  </template>
12
16
 
13
17
  <script>
14
18
  export default {
15
- name: 'App',
19
+ name: 'DataDrivenForm',
16
20
  data() {
17
21
  return {
18
- apiParam: {
19
- actionType: 2,
20
- jsonData: {searchFields: {fields: []}}
21
- },
22
+ // apiParam: {originalTraId: "1481454808274235394", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
23
+ // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
24
+ // apiParam: {SN: "13557_132", UserID: "wuhan3"},
25
+ // apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
26
+ // apiParam: {chanceID: "1", actionType: 2} ,
27
+ // apiParam: {worklistID: "1494206747714392064", actionType: 2}
28
+ para: {chanceID: "1", actionType: 2}
29
+ // apiParam: {
30
+ // actionType: 2,
31
+ // agentId: "1450283160825425922",
32
+ // estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
33
+ // pageOnly: true,
34
+ // pageStyle: 2,
35
+ // propertyId: "14102015-0736-9265-205A-451687BF7062",
36
+ // relProId: "1475708315466829833",
37
+ // }
22
38
  }
23
39
  },
24
40
  methods: {
@@ -2,7 +2,7 @@
2
2
  <div id="app-search" style="height:100%;position: fixed;">
3
3
  <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'" :searchDataApi="'/api/third-dept-tran/tran-list'"></ct-searchlist> -->
4
4
 
5
- <ct-searchlist :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></ct-searchlist>
5
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
6
6
  <!-- <ct-searchlist :searchConditionApi="'/WorklistList/getLayoutOfSearch'" :searchDataApi="'/WorklistList/getListOfSearchModel'" :searchCategoryApi="'/WorklistList/getLayoutOfSearchCategory'"></ct-searchlist> -->
7
7
 
8
8
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
@@ -12,6 +12,7 @@
12
12
  ></ct-searchlist> -->
13
13
 
14
14
  <!--<ct-searchlist :searchConditionApi="'/api/invoice-info/search-condition'" :searchDataApi="'/api/invoice-info/list'" :searchDataStatisticsApi="'api/ContractList/GetLayoutOfStatisticsTool'" :apiParam="para"></ct-searchlist>-->
15
+ <ct-searchlist :searchConditionApi="'/PropertyStatusList/getLayoutOfSearch'" :searchDataApi="'/PropertyStatusList/getListOfSearchModel'" :apiParam="para"></ct-searchlist>
15
16
  <ct-dialog-list></ct-dialog-list>
16
17
  </div>
17
18
  </template>
@@ -23,7 +24,8 @@
23
24
  data() {
24
25
  return {
25
26
  //para: { agentId: "1424932685198864386", estateId: "L201402181627000007233", estateName: "271医院宿舍区", pageOnly: "true", pageTitle: "销控房源列表" }
26
- para: {}
27
+ // para: {}
28
+ para: {paramKey: "PropertyStatusID", code: "002.001", name: "盘源状态", paramName: "盘源状态"}
27
29
  }
28
30
  },
29
31
  mounted() {
@@ -765,4 +765,7 @@ html {
765
765
  /* 重置弹层引用列表样式居上高度 */
766
766
  .ct-dialog_content .ct-searchtable{
767
767
  margin-top: 0px!important;
768
+ }
769
+ .ct-table-content .checkbox-td .el-checkbox{
770
+ min-width: initial;
768
771
  }
@@ -8,4 +8,4 @@ if (typeof window !== 'undefined' && window.Vue) {
8
8
  window.Vue.use(dynamicHyperLink);
9
9
  }
10
10
 
11
- export default dynamicHyperLink
11
+ export default dynamicHyperLink
@@ -8,4 +8,4 @@ if (typeof window !== 'undefined' && window.Vue) {
8
8
  window.Vue.use(dynamicPlaceHolder);
9
9
  }
10
10
 
11
- export default dynamicPlaceHolder
11
+ export default dynamicPlaceHolder
@@ -270,15 +270,17 @@ const Detail = function (source,para ,callBack) {
270
270
  rtn._operationList=response.content;
271
271
  if(rtn._operationList && rtn._operationList.length>0){
272
272
  rtn._operationList.forEach((v,i) => {
273
- if (v.modelRouter) {
274
- var router = Router(v.modelRouter);
275
- router.is = "ct-btn";
276
- router.attrs = { size: "mini" }
277
- if(router.rightField){
278
- router.show=v[router.rightField];
279
- }
280
- rtn._operationList[i].router=router;
281
- rtn._operationRouters.push(router)
273
+ if (v.modelRouters) {
274
+ v.modelRouters.forEach((f,i2) => {
275
+ var router = Router(f);
276
+ router.is = "ct-btn";
277
+ router.attrs = { size: "mini" }
278
+ if(router.rightField){
279
+ router.show=v[router.rightField];
280
+ }
281
+ if(router.show)rtn._operationList[i].router=router;
282
+ rtn._operationRouters.push(router);
283
+ });
282
284
  }
283
285
  });
284
286
  }
@@ -296,9 +298,13 @@ const Detail = function (source,para ,callBack) {
296
298
  || field.id=='RealLook'
297
299
  || field.id=='StatusAdjust'
298
300
  || field.id=='OperationKey'
301
+ || field.id=='OperationKeyCommon'
302
+ || field.id=='OperationKeyPassword'
299
303
  || field.id=='Key'){
300
304
  let id=field.id;
301
- if(field.id=='OperationKey'){
305
+ if(field.id=='OperationKey'
306
+ || field.id=='OperationKeyCommon'
307
+ || field.id=='OperationKeyPassword'){
302
308
  id='Key';
303
309
  }
304
310
  var advIndex = rtn.tags1.findIndex((v) => {
@@ -1,5 +1,5 @@
1
1
  import base from '../../index';
2
- import Base from './Base';
2
+ import Base from './Base';
3
3
 
4
4
  const PlaceHolder = function (source) {
5
5
  var rtn = {
@@ -14,4 +14,4 @@ const PlaceHolder = function (source) {
14
14
  return rtn;
15
15
  };
16
16
 
17
- export default PlaceHolder;
17
+ export default PlaceHolder;
package/src/main.js CHANGED
@@ -8,12 +8,12 @@ import App from './App';
8
8
  import router from './router';
9
9
  import centaline from './centaline/index';
10
10
 
11
-
12
11
  Vue.use(ElementUI, { size: 'mini'});
13
12
  // 关闭生产模式下给出的提示
14
13
  Vue.config.productionTip = false;
15
14
  Vue.use(centaline, {
16
- baseUrl: 'http://10.88.22.67:9999/v1/form/router',
15
+ baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
+ // baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
17
17
  zindex: 999,
18
18
  showRequestErrorMessage: true,
19
19
  handler: {
@@ -21,6 +21,12 @@ Vue.use(centaline, {
21
21
  openTab: function (action) {
22
22
  alert("打开tab页:" + action)
23
23
  },
24
+ openDetail: function (action) {
25
+ alert("打开tab页:" + action)
26
+ },
27
+ openPropertyDetailRET: function (submitData, pageTitle, parentModel) {
28
+ alert("打开tab页:" + pageTitle)
29
+ },
24
30
  // 关闭当前tab
25
31
  closeTab: function () {
26
32
  alert("关闭当前tab")
@@ -28,9 +34,10 @@ Vue.use(centaline, {
28
34
  // 获取请求头
29
35
  getRequestHeaders: function () {
30
36
  return {
31
- Authorization: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJhMjA1MWJmLTM3MTQtNGQ2Yi1iMmMzLTM0YzBlOWE4ZjBiNSJ9.Aery7bMGAE_HTh1yX3vFFczELt0dB97ca5jwXXcp8hdhJ_2o8XTrQi314GVz4YoM2dfh8i9qFiU0FCr7TJgZyA',
32
- originalRequestURL: 'http://10.88.23.22:9999',
33
- EstateInfo: '{"estateId":"201509230915485D942241BBA30FF49F","estateName":"A-%E7%88%B1%E7%90%B4%E6%B5%B7B%E7%BB%84"}'
37
+ oldToken: '3007e478-86db-4d5a-8ce0-7253afb746b2',
38
+ estateId: '20210729104021C49F04B55C50F6AF58',
39
+ originalRequestURL: 'http://10.88.22.67:8080',
40
+ Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
34
41
  };
35
42
  },
36
43
  // 请求完成事件,可判断是否登录过期执行响应操作