centaline-data-driven 1.4.95 → 1.4.96

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.4.95",
3
+ "version": "1.4.96",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -860,7 +860,51 @@ color: var(--centalinePlaceholder);
860
860
  .ml10{
861
861
  margin-left: 10px;
862
862
  }
863
- .searchlistTab .el-tabs__header{
864
- margin-bottom: 0px;
865
- }
866
863
 
864
+ .ct-searchcategory {
865
+ margin-bottom: 10px !important;
866
+ line-height: 30px;
867
+ }
868
+ .ct-searchcategory .el-input-group__prepend{
869
+ text-align: left;
870
+ padding-left: 0px!important;
871
+ color: var(--chinaRed) !important;
872
+ font-weight: Bold;
873
+ text-shadow: 0 2px 2px rgb(121 0 4 / 10%);
874
+ font-size: 16px;
875
+ vertical-align: middle;
876
+ }
877
+ .ct-searchcategory .ct-radios {
878
+ color: #606266;
879
+ border-radius: 4px;
880
+ /*border: 1px solid #dcdfe6;*/
881
+ line-height: 30px;
882
+ padding-left: 15px;
883
+ text-align: right;
884
+ }
885
+ .ct-searchcategory .ct-radios:hover {
886
+ border-color: #c0c4cc;
887
+ }
888
+ .ct-searchcategory .ct-radios .el-radio {
889
+ margin-left: 0px;
890
+ margin-right: 10px;
891
+ }
892
+ .ct-searchcategory .ct-radios .ct-Seg-label {
893
+ margin-right: 15px;
894
+ }
895
+ .ct-searchcategory .el-radio-button__orig-radio:checked+.el-radio-button__inner {
896
+ color: #FFF;
897
+ background-color: var(--chinaRed);
898
+ border-color: var(--chinaRed);
899
+ -webkit-box-shadow: -1px 0 0 0 var(--chinaRed);
900
+ box-shadow: -1px 0 0 0 var(--chinaRed);
901
+ font-weight: 700;
902
+ font-size: 14px;
903
+ }
904
+ .ct-searchcategory .el-radio-button__inner{
905
+ font-size: 14px;
906
+ color: var(--centalineBlack);
907
+ }
908
+ .ct-searchcategory .el-radio-button__inner:hover {
909
+ color: var(--chinaRed);
910
+ }
@@ -1,16 +1,14 @@
1
1
  <template>
2
- <div style="width:100%;display:flex" v-if="model !== null" class="ct-searchcategory" :class="[model.attrs.size?'ct-searchcategory-'+model.attrs.size:''
3
- ]">
2
+ <div style="width:100%;display:flex" v-if="model !== null" class="ct-searchcategory" :class="[model.attrs.size?'ct-searchcategory-'+model.attrs.size:'']">
4
3
  <div style="flex:1;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
5
4
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend" :class="[model.labelClass]">
6
- <img v-if="model.preLabel" :src="model.preLabel" style="width: 1.3em;height: 1.3em;fill: currentColor;
7
- overflow: hidden;vertical-align: middle;"/>
5
+ <img v-if="model.preLabel" :src="model.preLabel" style="width: 1.3em;height: 1.3em;fill: currentColor;overflow: hidden;vertical-align: middle;"/>
8
6
  {{model.label}}
9
7
  </div>
10
8
  <div class="ct-radios" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'']">
11
9
  <el-radio-group v-model="model.value" @change="changeHandler1($event)">
12
10
  <el-radio-button v-bind="model.attrs" v-for="(value, index) in model.segmentValue" :key="index" v-model="model.value"
13
- :label="value[model.optionAttrs.value]" :displayLabel="value[model.optionAttrs.displayLabel]" :disabled="model.lock">
11
+ :label="value[model.optionAttrs.value]" :displayLabel="value[model.optionAttrs.displayLabel]" :disabled="model.lock">
14
12
  {{value[model.optionAttrs.label]}}
15
13
  </el-radio-button >
16
14
  </el-radio-group>
@@ -85,51 +83,4 @@
85
83
  }
86
84
  </script>
87
85
  <style>
88
- .ct-searchcategory {
89
- margin-bottom: 10px;
90
- line-height: 30px;
91
- }
92
- .ct-searchcategory .el-input-group__prepend{
93
- text-align: left;
94
- padding-left: 0px!important;
95
- color: var(--chinaRed) !important;
96
- font-weight: Bold;
97
- text-shadow: 0 2px 2px rgb(121 0 4 / 10%);
98
- font-size: 16px;
99
- vertical-align: middle;
100
- }
101
- .ct-searchcategory .ct-radios {
102
- color: #606266;
103
- border-radius: 4px;
104
- /*border: 1px solid #dcdfe6;*/
105
- line-height: 30px;
106
- padding-left: 15px;
107
- text-align: right;
108
- }
109
- .ct-searchcategory .ct-radios:hover {
110
- border-color: #c0c4cc;
111
- }
112
- .ct-searchcategory .ct-radios .el-radio {
113
- margin-left: 0px;
114
- margin-right: 10px;
115
- }
116
- .ct-searchcategory .ct-radios .ct-Seg-label {
117
- margin-right: 15px;
118
- }
119
- .ct-searchcategory .el-radio-button__orig-radio:checked+.el-radio-button__inner {
120
- color: #FFF;
121
- background-color: var(--chinaRed);
122
- border-color: var(--chinaRed);
123
- -webkit-box-shadow: -1px 0 0 0 var(--chinaRed);
124
- box-shadow: -1px 0 0 0 var(--chinaRed);
125
- font-weight: 700;
126
- font-size: 14px;
127
- }
128
- .ct-searchcategory .el-radio-button__inner{
129
- font-size: 14px;
130
- color: var(--centalineBlack);
131
- }
132
- .ct-searchcategory .el-radio-button__inner:hover {
133
- color: var(--chinaRed);
134
- }
135
86
  </style>
@@ -31,7 +31,7 @@
31
31
  import dynamicSearchSideMenu from '../../dynamicSearchList/src/dynamicSearchSideMenu.vue';
32
32
  import progress from '../../progress/src/progress.vue';
33
33
  export default {
34
- name: 'ct-searchlist',
34
+ name: 'ct-searchlistOne',
35
35
  mixins: [dynamicElement],
36
36
  components: {
37
37
  'ct-searchscreen': dynamicSearchScreen,
@@ -4,16 +4,28 @@
4
4
  <div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
5
5
  <span style="font-weight:bold">{{title}}</span>
6
6
  </div>
7
- <el-tabs v-if="categorySource" :value="activeIndex" @tab-click="handleClick" class="searchlistTab">
8
- <el-tab-pane v-for="(col, index) in categorySource.selectItems1" :key="col.code"
9
- :index="index.toString()" :name="index.toString()" :label="col.name">
10
- <div>
11
- <ct-searchlistOne :ref="'searchlist'+index" :searchConditionApi="searchConditionApi" :pageHeight="listHeight"
12
- :searchStatsApi="searchStatsApi" :searchDataApi="searchDataApi" :apiParam="apiParam" @tableLoaded="tableLoaded">
13
- </ct-searchlistOne>
7
+ <div v-if="categorySource" class="el-tabs__header ct-searchcategory" style="width:100%;display:flex">
8
+ <div style="flex:1;" class="el-input-group">
9
+ <div v-if="showLabel && label" class="el-input-group__prepend">
10
+ <img v-if="categorySource.preLabel1" :src="categorySource.preLabel1" style="width: 1.3em;height: 1.3em;fill: currentColor;overflow: hidden;vertical-align: middle;"/>
11
+ {{label}}
14
12
  </div>
15
- </el-tab-pane>
16
- </el-tabs>
13
+ <div class="ct-radios">
14
+ <el-radio-group v-model="activeIndex" @change="categorychangeHandler($event)">
15
+ <el-radio-button v-bind="{class:'ct-font-size-mini'}" v-for="(col, index) in categorySource.selectItems1" :key="index" v-model="col.code" :label="index">
16
+ {{col.name}}
17
+ </el-radio-button >
18
+ </el-radio-group>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ <div v-if="categorySource" class="el-tabs__content">
23
+ <div v-for="(col, index) in categorySource.selectItems1" v-show="activeIndex===index" v-loading="isLoading" :key="index" :index="index" class="el-tab-pane" role="tabpanel" aria-hidden="true">
24
+ <ct-searchlistOne :ref="'searchlist'+index" :searchConditionApi="searchConditionApi" :pageHeight="listHeight"
25
+ :searchStatsApi="searchStatsApi" :searchDataApi="searchDataApi" :apiParam="apiParam" @tableLoaded="tableLoaded">
26
+ </ct-searchlistOne>
27
+ </div>
28
+ </div>
17
29
  </div>
18
30
  </div>
19
31
  </template>
@@ -84,6 +96,10 @@
84
96
  isIframe: false,
85
97
  searchWidth:0,
86
98
  listHeight:'',
99
+ isLoading:true,
100
+
101
+ showLabel:true,
102
+ label:'',
87
103
  }
88
104
  },
89
105
  computed: {
@@ -100,9 +116,10 @@
100
116
  function (response) {
101
117
  if (response.rtnCode === 200) {
102
118
  self.categorySource=response.content.fields[0];
103
- console.log(self.categorySource)
119
+ console.log('categorySource',self.categorySource)
104
120
  let parm={};
105
121
  parm[self.categorySource.fieldName1]=self.categorySource.selectItems1[self.activeIndex].code;
122
+ self.label=self.categorySource.selectItems1[self.activeIndex].displayName;
106
123
  self.$nextTick(function () {
107
124
  self.categoryLoaded(parm);
108
125
  });
@@ -113,25 +130,28 @@
113
130
  }
114
131
  );
115
132
  },
116
- handleClick(tab, event) {
117
- let i = tab.index;
133
+ categorychangeHandler() {
134
+ console.log('activeIndex',this.activeIndex)
135
+ let i = this.activeIndex;
118
136
  let parm={};
119
137
  parm[this.categorySource.fieldName1]=this.categorySource.selectItems1[i].code;
138
+ this.label=this.categorySource.selectItems1[i].displayName;
120
139
  this.$nextTick(function () {
121
140
  if(!this.$refs['searchlist'+i][0].loaded.categoryTabLoaded){
141
+ this.isLoading=true;
122
142
  this.$refs['searchlist'+i][0].categoryLoaded(parm);
123
143
  }
124
144
  });
125
145
  },
126
146
  categoryLoaded(param) {
127
- this.listHeight=(this.$refs.main.offsetHeight-40)+'px';
147
+ this.listHeight=(this.$refs.main.offsetHeight-42)+'px';
128
148
  this.$refs['searchlist'+this.activeIndex][0].categoryLoaded(param);
129
149
  },
130
150
  categoryLoadedError() {
131
151
  this.$refs['searchlist'+this.activeIndex][0].categoryLoadedError();
132
152
  },
133
153
  tableLoaded(){
134
- this.iisLoading=false;
154
+ this.isLoading=false;
135
155
  },
136
156
  refreshParentHandler() {
137
157
  this.$emit('refreshParent');
package/src/main.js CHANGED
@@ -50,7 +50,7 @@ Vue.use(centaline, {
50
50
  getRequestHeaders: function () {
51
51
  return {
52
52
  oldToken: '0bbcf3e8-cf7e-42de-adef-af54e2158fe4',
53
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe-yNZPs7Ay7M3bsAo2HIAhLgpURSDTGu6tRO3tf8YvXvH8zy3YwO1NLZTm1BKlxJXAdSqjaIBCTiI0uEEfp9AP8mC8dImtA30ClIQF7JhBMAol94rZuKMXaFCZfTmaHXhxZG0gLM_frWzhkeoltyed9vv7j3HGdn1lHOrCzCmR1BCbM0FslQJ36kQWnHAZzfwAAAP__.-drHT8BOA8s5JAVSiKV9_NdkJ8clUTrkXDRh9hF_o6I',
53
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOivZ2fXamy7xp-EQURJShAqRRAIh7o4R0NEzxRRPI725q3UfVaOQnbSJDQRLHoiNBaGcIWhmwawRY-zlE_hR3_TkgrRtckC6Y6BsE0gdMqDYLlJqXUysKjVfz6ox7GvUxciVWobtDWoj-gX2db4c5ts_zp22pWjJyIQDGhgJy5iMBz9pB3z02pGjchXV4wkAAP__.UJfbXztMu3Mir8CBo48y20zouMa8jMar9OMNWQtQBbA',
54
54
 
55
55
  originalRequestURL: 'http://10.88.22.67:8080',
56
56
  EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',