centaline-data-driven-v3 0.1.15 → 0.1.16

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.
@@ -1,6 +1,6 @@
1
1
  import Enum from '../../utils/Enum';
2
2
  import common from '../../utils/common';
3
- const Base = function (source, moreActionRouter) {
3
+ const Base = function (source, moreActionRouter, formLabelPlacement) {
4
4
  let rtn = {
5
5
  //Field
6
6
  //分组名
@@ -55,6 +55,9 @@ const Base = function (source, moreActionRouter) {
55
55
  set rows(v) {
56
56
  source.rows = v;
57
57
  },
58
+ get labelPlacement() {
59
+ return source.labelPlacement ?? formLabelPlacement ?? '0';
60
+ },
58
61
  //是否必填
59
62
  get required() {
60
63
  if (!source.required) {
@@ -791,6 +794,12 @@ const Base = function (source, moreActionRouter) {
791
794
  get size() {
792
795
  return "small";
793
796
  },
797
+ get maxSize() {
798
+ if (source.code2) {
799
+ return source.code2 * 1024 * 1024;
800
+ }
801
+ return null;
802
+ },
794
803
  set class(v) {
795
804
  source.className = v
796
805
  },
@@ -80,7 +80,7 @@ const LibFunction = {
80
80
  moreActionRouter = LibFunction.getRouter(source.actionRouters, field.moreActionRouterKey);
81
81
  }
82
82
 
83
- item = Field(field, moreActionRouter);
83
+ item = Field(field, moreActionRouter,source.labelPlacement);
84
84
  item.isList = isList;
85
85
  switch (field.controlType) {
86
86
  case Enum.ControlType.Group:
@@ -3,6 +3,7 @@ import LibFunction from './LibFunction';
3
3
  import Enum from '../../utils/Enum';
4
4
  import common from '../../utils/common';
5
5
  import request from '../../utils/request';
6
+ import Router from './Router';
6
7
 
7
8
  function loadSearchScreenApi(action, callBack, screenPara, prevParam, failCallBack) {
8
9
  if (action) {
@@ -665,6 +666,31 @@ function loadSearchScreenModel(source, prevParam) {
665
666
  });
666
667
  return rtn;
667
668
  },
669
+ _actionRouters: null,
670
+ get actionRouters() {
671
+ if (rtn._actionRouters !== null) {
672
+ return rtn._actionRouters;
673
+ }
674
+ else {
675
+ rtn._actionRouters = [];
676
+ if (source.actionRouters) {
677
+ source.actionRouters.forEach((v) => {
678
+ var button = Router(v);
679
+ button.is = "ct-btn";
680
+ rtn._actionRouters.push(button);
681
+ });
682
+ }
683
+ else if (source.content.actionRouters) {
684
+ source.content.actionRouters.forEach((v) => {
685
+ v.actionType = 2;
686
+ var button = Router(v);
687
+ button.is = "ct-btn";
688
+ rtn._actionRouters.push(button);
689
+ });
690
+ }
691
+ return rtn._actionRouters;
692
+ }
693
+ },
668
694
  //绑定联动参数组件
669
695
  getRefFieldPara(refFieldNameArr) {
670
696
  let submitData = {};
package/src/main.js CHANGED
@@ -21,8 +21,8 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
21
21
  }
22
22
 
23
23
  app.use(centaline, {
24
- //baseUrl:"https://uplink.centaline.com.cn/xian/",
25
- baseUrl:"http://10.88.22.13:7070/onecard-api/",
24
+ baseUrl: "http://10.88.22.13:7070/onecard-api/",
25
+ //baseUrl:"http://10.88.22.13:7070/onecard-api/",
26
26
  //baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
27
27
  //baseUrl: "http://10.88.22.13:6060/onecard-api/",
28
28
  //baseUrl: "http://10.88.22.66:6060/xian/",
@@ -65,9 +65,9 @@ app.use(centaline, {
65
65
  //获取请求头
66
66
  getRequestHeaders: function () {
67
67
  return {
68
- //authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
68
+ authobject: '{token:"jiangzf-1967462051391684608",platform:"WEB"}',
69
69
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
70
- authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
70
+ //authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
71
71
  //authObject: '{token:"1-90f7df2c-fba7-4ea0-8874-aa7202034f06"}',
72
72
  };
73
73
  },
@@ -1,14 +1,14 @@
1
1
  <template>
2
- <div class="data-driven" id="app-form" >
3
-
4
- <ct-form :api="'/EmployeeMaternity/readDetail'" :apiParam="apiParam" :flagNavbar="true"></ct-form>
5
- <!-- <ct-form :api="'/api/third-dept-tran/tran-comm-adjust/task'" :apiParam="apiParam"></ct-form> -->
6
- <!-- <ct-form :api="'/PropertyTranToActive/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
2
+ <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
+ <ct-form :api="'/EmployeeAttendanceBillApply/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
7
4
  <!-- <ct-textbox :source="source"></ct-textbox> -->
8
- <ct-dialoglist></ct-dialoglist>
5
+
9
6
  </div>
10
7
  </template>
11
8
  <script lang="ts" setup>
12
- //const apiParam={"originalTraId":"1739561435204980737","actionType":1,"pageStyle":2,"pageTitle":"成交报告","pageOnly":true}
13
- const apiParam={"actionType":"2"}
9
+ const apiParam={
10
+ "actionType": 2,
11
+ "empID": "{90A76197-49CC-4D81-A08E-048557757B57}"
12
+ }
13
+ const source={"controlType":2,"showLabel":true,"controlLabel":"制度标识","groupExpand":false,"singleLine":false,"rows":1,"required":true,"spanCols":1,"locked":false,"autoFill":false,"searchDataType":1,"searchOperation":1,"displayLabelAfterSelected":true,"autoSearch":false,"mediaViewPageType":1,"fieldName1":"WorkSystemID","code1":"CD","name1":"","decimals1":-1,"maxValue1":"50","preLabel1":"","sufLabel1":"","fieldName2":"","code2":"","name2":"","decimals2":-1,"decimals3":0,"decimals4":-1,"width":200,"applyNew":1,"applyEdit":1,"applyBrowse":1}
14
14
  </script>
@@ -1,11 +1,10 @@
1
1
  <template>
2
2
  <div id="app-search" style="width:100%;height:100%;position: fixed;">
3
- <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyPublishList/getLayoutOfSearch'"
4
- :searchDataApi="'/propertyPublishList/getListOfSearchModel'"
5
- :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
3
+ <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeClassAssignList/getLayoutOfSearch'"
4
+ :searchDataApi="'/EmployeeClassAssignList/getListOfSearchModel'"></ct-searchlist>
6
5
 
7
- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
8
- :searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist>
6
+ <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
7
+ :searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
9
8
 
10
9
  <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'"
11
10
  :searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
@@ -16,6 +15,6 @@
16
15
 
17
16
  <script lang="ts" setup>
18
17
  import { ref, nextTick } from 'vue'
19
- const apiParam = {}
18
+ const apiParam = {"rowGUID":"{7AE0A3FB-2D6C-4E51-8B10-71EAFA2D269A}","code":"KD01","name":"中原(中国)物业顾问有限公司","deptID":"{7AE0A3FB-2D6C-4E51-8B10-71EAFA2D269A}","path":"KD01","checkBillLeftHours":"1","rightEdit":"1"}
20
19
 
21
20
  </script>