centaline-data-driven 1.2.48 → 1.2.49

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.48",
3
+ "version": "1.2.49",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
Binary file
@@ -800,4 +800,7 @@ html {
800
800
  }
801
801
  .el-input-group{
802
802
  line-height: 26px;
803
- }
803
+ }
804
+
805
+
806
+
@@ -108,6 +108,9 @@
108
108
  min-height: 26px;
109
109
  line-height: 25px;
110
110
  }
111
+ .ct-checkbox .lableNaN{
112
+ padding-left: 3px!important;
113
+ }
111
114
  .cover-list-item .el-checkbox{
112
115
  margin-right: 10px!important;
113
116
  }
@@ -5,7 +5,7 @@
5
5
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
6
6
  {{model.label}}
7
7
  </div>
8
- <div class="ct-checkbox-mian cover-list-item" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'']">
8
+ <div class="ct-checkbox-mian cover-list-item" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'',model.label?'':'lableNaN']">
9
9
  <el-checkbox-group v-model="model.checkedItemArr" @change="changeHandler1">
10
10
  <el-checkbox :disabled="model.lock" v-for="item in model.options" :label="item[model.optionAttrs.value]" :key="item[model.optionAttrs.value]">{{item[model.optionAttrs.label]}}</el-checkbox>
11
11
  <span v-if="!model.lock" class="cover-list-item-span max-cover-list-item">
@@ -1,23 +1,38 @@
1
1
  <template>
2
- <div ref="main" class="main" v-if="model!==null">
3
- 1111111111111111111111
2
+ <div ref="main" class="main">
3
+ <div style="height:36px;margin-top: 10px;display: flex;">
4
+ <img src="../../../assets/ewmA.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left:22px">
5
+ <span :style="{'width':computedTopWidth}"></span>
6
+ <img src="../../../assets/T.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-right:11px">
7
+ <img src="../../../assets/B.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-right:8px">
8
+ <div class="el-icon-close"></div>
9
+ </div>
10
+ <div v-if="model!==null">
11
+ 11111111111111111111111
12
+ </div>
4
13
  </div>
5
14
  </template>
6
15
 
7
16
  <script>
8
17
  import dynamicElement from '../../mixins/dynamicElement';
9
- import dynamicContactList from './dynamicContactList.vue';
10
18
  export default {
11
19
  name: 'ct-PropertySimpleDetailRET',
12
20
  mixins: [dynamicElement],
13
21
  components: {
14
- 'ct-contactList': dynamicContactList,
15
22
  },
16
23
  props: {
17
24
  vmodel: Object,
18
25
  api: String,
19
26
  apiParam: Object,
20
27
  },
28
+ computed: {
29
+ computedTopWidth(){
30
+ // debugger
31
+ // let w=this.$refs.main.clientWidth;
32
+ // let wt=w-140;
33
+ return 300+'px';
34
+ }
35
+ },
21
36
  data() {
22
37
  return {
23
38
 
@@ -32,7 +47,7 @@
32
47
  else if (typeof self.source !== 'undefined') {
33
48
  self.loaderObj.Detail(self.source,null,self.load);
34
49
  }
35
- else if (typeof self.api !== 'undefined') {
50
+ else if (typeof self.api !== 'undefined' && self.apiParam) {
36
51
  self.loaderObj.Detail(self.api,self.apiParam, self.load);
37
52
  }
38
53
  });
@@ -171,7 +171,14 @@
171
171
  if(this.$refs.table.model.listData.length>0){
172
172
  this.flagSideBar=this.$refs.table.model.flagSideBar;
173
173
  this.flagDefaultDisplaySideBar=this.$refs.table.model.flagDefaultDisplaySideBar;
174
- if(!this.$refs.table.model.rowSelectRouter)this.flagSideBar=false;
174
+
175
+ if(this.$refs.table.model.rowSelectRouter){
176
+ this.sideBarApi=this.$refs.table.model.rowSelectRouter.action;
177
+ this.sideBarPageType=this.$refs.table.model.rowSelectRouter.actionSource;
178
+ }
179
+ else{
180
+ this.flagSideBar=false;
181
+ }
175
182
 
176
183
  if(this.flagSideBar){
177
184
  if(this.flagDefaultDisplaySideBar && !this.sideBarStatus){
@@ -25,7 +25,14 @@ const Base = function (source) {
25
25
  source.fieldName2 = v;
26
26
  },
27
27
  get label() {
28
- return source.controlLabel + this.labelDelimiter || '';
28
+ let l='';
29
+ if(source.controlLabel){
30
+ l=source.controlLabel;
31
+ }
32
+ if(source.labelDelimiter){
33
+ l=l+source.labelDelimiter;
34
+ }
35
+ return l;
29
36
  },
30
37
  set label(v) {
31
38
  source.controlLabel = v;
@@ -23,6 +23,9 @@ const Router = function (source) {
23
23
  get actionForSearch() {
24
24
  return source.actionForSearch;
25
25
  },
26
+ get actionSource() {
27
+ return source.actionSource;
28
+ },
26
29
  get onClick() {
27
30
  return source.onChanged;
28
31
  },