centaline-data-driven-v3 0.1.16 → 0.1.18

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.16",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -2,8 +2,8 @@
2
2
  <div class="ct-field">
3
3
  <div class="el-form-item el-form-item--small"
4
4
  :class="[!model.valid ? 'is-error' : '', 'label-' + model.labelPlacement]">
5
-
6
- <!-- 使用单一元素结构 -->
5
+
6
+ <!-- 使用单一元素结构 -->
7
7
  <template v-if="model.isList">
8
8
  <div class="el-form-item__label" v-if="model.showLabel && model.controlLabel">
9
9
  <slot name="ControlLabel">
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  </slot>
25
25
  </template>
26
- <div class="label-wrapper" v-else>
26
+ <div class="label-wrapper" v-else>
27
27
  <div class="el-form-item__label" v-if="model.showLabel && model.controlLabel">
28
28
  <slot name="ControlLabel">
29
29
  <div :class="[model.required ? 'requiredLabel' : '']"
@@ -67,7 +67,7 @@
67
67
  </div>
68
68
  </div>
69
69
  </template>
70
- <script lang="ts" setup>
70
+ <script lang="ts" setup>
71
71
  import Enum from '../../utils/Enum'
72
72
  const props = defineProps({
73
73
  vmodel: Object,
@@ -85,6 +85,11 @@ const model = props.vmodel
85
85
  display: flex;
86
86
  }
87
87
 
88
+ .el-form-item__label {
89
+ display: inline-flex;
90
+ justify-content: flex-end;
91
+ }
92
+
88
93
  .el-form-item.label-1 {
89
94
  flex-direction: column;
90
95
 
@@ -56,7 +56,7 @@ const Base = function (source, moreActionRouter, formLabelPlacement) {
56
56
  source.rows = v;
57
57
  },
58
58
  get labelPlacement() {
59
- return source.labelPlacement ?? formLabelPlacement ?? '0';
59
+ return source.labelPlacement || formLabelPlacement || '0';
60
60
  },
61
61
  //是否必填
62
62
  get required() {
package/src/main.js CHANGED
@@ -21,7 +21,7 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
21
21
  }
22
22
 
23
23
  app.use(centaline, {
24
- baseUrl: "http://10.88.22.13:7070/onecard-api/",
24
+ baseUrl: "https://kq-api.centaline.com.cn/onecard-api",
25
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/",
@@ -65,7 +65,7 @@ app.use(centaline, {
65
65
  //获取请求头
66
66
  getRequestHeaders: function () {
67
67
  return {
68
- authobject: '{token:"jiangzf-1967462051391684608",platform:"WEB"}',
68
+ authobject: '{token:"1647-1967489899997401088",platform:"WEB"}',
69
69
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
70
70
  //authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
71
71
  //authObject: '{token:"1-90f7df2c-fba7-4ea0-8874-aa7202034f06"}',
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="app-search" style="width:100%;height:100%;position: fixed;">
3
- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeClassAssignList/getLayoutOfSearch'"
4
- :searchDataApi="'/EmployeeClassAssignList/getListOfSearchModel'"></ct-searchlist>
3
+ <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeAttendanceBillList/getLayoutOfSearchForMy'"
4
+ :searchDataApi="'/EmployeeAttendanceBillList/getListOfSearchModelForMy'"></ct-searchlist>
5
5
 
6
6
  <!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
7
7
  :searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
@@ -15,6 +15,6 @@
15
15
 
16
16
  <script lang="ts" setup>
17
17
  import { ref, nextTick } from 'vue'
18
- const apiParam = {"rowGUID":"{7AE0A3FB-2D6C-4E51-8B10-71EAFA2D269A}","code":"KD01","name":"中原(中国)物业顾问有限公司","deptID":"{7AE0A3FB-2D6C-4E51-8B10-71EAFA2D269A}","path":"KD01","checkBillLeftHours":"1","rightEdit":"1"}
18
+ const apiParam = {}
19
19
 
20
20
  </script>