centaline-data-driven-v3 0.1.46 → 0.1.47

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-v3",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -5,6 +5,11 @@
5
5
  v-html="model.controlLabel">
6
6
 
7
7
  </span>
8
+ <div style="display: flex;justify-items: center;height: 100%;" v-else-if="model.isCheckbox">
9
+ <van-checkbox v-model="model.code1" shape="square" @change="clickHandle">
10
+ {{ model.controlLabel }}
11
+ </van-checkbox>
12
+ </div>
8
13
  <van-button v-else type="primary" v-bind="model.attrs" @click="clickHandle"
9
14
  :style="{ color: model.textColor ? model.textColor : '#ffffff', backgroundColor: model.bgColor ? model.bgColor : '#fa5252', borderColor: model.borderColor ? model.borderColor : '#fa5252' }"
10
15
  :disabled="model.disabled || model.locked" :size="size">
@@ -34,7 +34,6 @@ const props = defineProps({
34
34
  source: Object,
35
35
  })
36
36
  const model = initData(props, CheckBoxList)
37
-
38
37
  function change() {
39
38
  model.value.setcode()
40
39
  changeHandler(model.value, emit);
@@ -23,34 +23,28 @@ const Label = function (source) {
23
23
  let rtn = {
24
24
  flagJson: false,
25
25
  get value() {
26
- if (source.name1) {
27
- return source.name1;
28
- }
29
- else {
30
- if (source.code1) {
31
- try {
32
- let _value = []
33
- var obj = JSON.parse(source.code1)
34
- if (typeof obj == 'object' && obj) {
35
- obj.forEach((v) => {
36
- if (!v.flagDeleted) {
37
- _value.push(v.name);
38
- }
39
- });
40
- rtn.flagJson = true;
41
- return _value;
42
- }
26
+ if (source.code1) {
27
+ try {
28
+ let _value = []
29
+ var obj = JSON.parse(source.code1)
30
+ if (typeof obj == 'object' && obj) {
31
+ obj.forEach((v) => {
32
+ if (!v.flagDeleted) {
33
+ _value.push(v.name);
34
+ }
35
+ });
36
+ rtn.flagJson = true;
37
+ return _value;
38
+ }
43
39
 
44
- } catch (e) {
40
+ } catch (e) {
45
41
 
46
- }
47
42
  }
48
- let _value = [];
49
- var joinChar = source.joinChar == undefined ? '' : source.joinChar;
50
- _value = getFileNameVal(source);
51
- return _value.join(joinChar);
52
43
  }
53
-
44
+ let _value = [];
45
+ var joinChar = source.joinChar == undefined ? '' : source.joinChar;
46
+ _value = getFileNameVal(source);
47
+ return _value.join(joinChar);
54
48
  }
55
49
  };
56
50
  rtn = base.copy(source, rtn);
package/src/main.js CHANGED
@@ -22,7 +22,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
22
22
 
23
23
  app.use(centaline, {
24
24
  //baseUrl: "http://10.88.22.13:7080/ibs-api/",
25
- baseUrl:"http://10.88.22.13:7070/onecard-api/",
25
+ baseUrl:"https://kq-api.centaline.com.cn/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/IBS.Mvc/api/",
@@ -67,7 +67,7 @@ app.use(centaline, {
67
67
  return {
68
68
 
69
69
  //AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIyNTEyMTUxNzQyMTg5QzI4MTgwRDkxRTk0MDhEOTA0QSIsImxvZ2luX3VzZXJfa2V5IjoiN2MzYzNjNjAtNWVjMy00MzdkLWExMDYtOWYxZTMwYjU0Mjg2In0.daG9mS98Gg8KmHSUjYHktMcO2Jk7SVtCcqm2sRB0I8Y2N0TuonIrVUDcHdNdDiuD3v6qO_f010tQWlBsAQ1dqg',
70
- authobject: '{token:"wufw-2008030035520409600",platform:"WEB"}',
70
+ authobject: '{token:"16-2010520424416464896",platform:"WEB"}',
71
71
  //authobject: '{EmpID:"Token_946d56e1-7972-4382-9d10-4a72496aab39",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_946d56e1-7972-4382-9d10-4a72496aab39",Platform:"WEB"}',
72
72
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
73
73
  //authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <ct-form :api="'/employee/getLayoutOfPwd'" :apiParam="apiParam"></ct-form>
3
+ <ct-form :api="'/EmployeeAttendanceBillApply/getLayoutOfBrowse'" :apiParam="apiParam"></ct-form>
4
4
  <!-- <ct-textbox :source="source"></ct-textbox> -->
5
5
  <ct-dialoglist ref="dialogList"></ct-dialoglist>
6
6
  </div>
7
7
  </template>
8
8
  <script lang="ts" setup>
9
- const apiParam={actionType: 3,empId: "260104160031E4FF8D4434FD4400BAC9"}
9
+ const apiParam={"rowID":"2010516964648341504","actionType":0}
10
10
  </script>