centaline-data-driven 1.4.94 → 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.94",
3
+ "version": "1.4.96",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div id="app-Tree" style="height:100%;position: fixed;width:100%">
3
3
  <ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
4
- :searchConditionApi="'/system/menulist/getTreeLayoutOfSearch'"
5
- :searchDataApi="'/system/menulist/getTreeList'" @loaded="loaded"></ct-treelist>
4
+ :searchConditionApi="'/orgtree/getLayoutOfSearch'"
5
+ :searchDataApi="'/orgtree/getList'" @loaded="loaded"></ct-treelist>
6
6
  <ct-dialog-list></ct-dialog-list>
7
7
  </div>
8
8
  </template>
@@ -26,7 +26,6 @@ html {
26
26
  --centalineGray:#666666;
27
27
  --centalineMediumGray:#888888;
28
28
  --centalinePlaceholder:#AAAAAA;
29
-
30
29
  }
31
30
  .ct-so {
32
31
  font-size: 14px;
@@ -861,7 +860,51 @@ color: var(--centalinePlaceholder);
861
860
  .ml10{
862
861
  margin-left: 10px;
863
862
  }
864
- .searchlistTab .el-tabs__header{
865
- margin-bottom: 0px;
866
- }
867
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,6 +1,6 @@
1
1
 
2
2
  /* 查询搜索 */
3
- .max-search-btn{
3
+ .max-search-btn,.max-more-btn{
4
4
  height: 26px;
5
5
  background: var(--chinaRed) !important;
6
6
  border-color: var(--chinaRed) !important;
@@ -9,7 +9,7 @@
9
9
  color: #fff !important;
10
10
  }
11
11
  /* 重置按钮 更多按钮*/
12
- .max-reset-btn,.max-more-btn{
12
+ .max-reset-btn{
13
13
  height: 26px;
14
14
  background: #FFFFFF !important;
15
15
  border-color: var(--chinaRed) !important;
@@ -200,6 +200,7 @@
200
200
  .ct-so .ct-input_inner,.ct-text .showLabel input,.ct-text .showLabel label{
201
201
  color: var(--centalineBlue) !important;
202
202
  }
203
+ /* 多选框 */
203
204
  .cover-list-item .el-checkbox__input.is-checked + .el-checkbox__label,.cover-list-item .el-checkbox__input.is-checked .el-checkbox__inner{
204
205
  color: var(--centalineBlue) !important;
205
206
  }
@@ -214,7 +215,12 @@
214
215
  .cover-list-item .el-checkbox__input.is-focus .el-checkbox__inner,.cover-list-item .el-checkbox__inner:hover{
215
216
  border-color:var(--centalineBlue) !important;
216
217
  }
217
-
218
+ .cover-list-item .el-checkbox:hover .el-checkbox__inner{
219
+ border-color:var(--centalineBlue) !important;
220
+ }
221
+ .cover-list-item .el-checkbox:hover .el-checkbox__label{
222
+ color: var(--centalineBlue) !important;
223
+ }
218
224
  .st-serach-screen .el-input-group__append, .st-serach-screen .el-input-group__prepend{
219
225
  color: var(--centalineBlack)!important;
220
226
  }
@@ -253,12 +259,34 @@
253
259
  .hyperLinkList .el-button + .el-button{
254
260
  margin-left: 0!important;
255
261
  }
262
+ /* 弹窗 单选按钮鼠标移上 */
263
+ .field-top .ct-radios .el-radio__inner:hover{
264
+ border-color: var(--centalineBlue) !important;
265
+ }
266
+ .field-top .ct-radios .el-radio:hover .el-radio__input .el-radio__inner{
267
+ border-color: var(--centalineBlue) !important;
268
+ }
269
+ .field-top .ct-radios .el-radio:hover .el-radio__label{
270
+ color: var(--centalineBlue) !important;
271
+ }
272
+ .field-top .ct-radios .el-radio.is-disabled:hover .el-radio__label{
273
+ color: #c0c4cc !important;
274
+ }
275
+ .field-top .ct-radios .el-radio.is-disabled:hover .el-radio__input .el-radio__inner{
276
+ border-color: #d6d6d6 !important;
277
+ }
278
+ .field-top .ct-radios .el-radio.is-checked:hover .el-radio__label{
279
+ color: var(--centalineBlue) !important;
280
+ }
281
+ .field-top .ct-radios .el-radio.is-checked:hover .el-radio__input .el-radio__inner{
282
+ border-color: var(--centalineBlue) !important;
283
+ }
256
284
  .el-radio__input.is-checked .el-radio__inner {
257
- border-color: var(--centalineBlue);
258
- background: var(--centalineBlue);
285
+ border-color: var(--centalineBlue) !important;
286
+ background: var(--centalineBlue) !important;
259
287
  }
260
288
  .el-radio__input.is-checked + .el-radio__label {
261
- color: var(--centalineBlue);
289
+ color: var(--centalineBlue) !important;
262
290
  }
263
291
  .ct-table-content .ct-table .ct-tr .cell img{
264
292
  display: inherit;
@@ -318,3 +346,27 @@
318
346
  background-color: var(--chinaRed) !important;
319
347
  border-color: var(--chinaRed) !important;
320
348
  }
349
+ /* 弹窗多选框 */
350
+ .field-top .el-checkbox__input.is-focus .el-checkbox__inner,.field-top .el-checkbox__inner:hover{
351
+ border-color:var(--centalineBlue) !important;
352
+ }
353
+ .field-top .el-checkbox__input.is-checked .el-checkbox__inner {
354
+ background-color:var(--centalineBlue) !important;;
355
+ border-color: var(--centalineBlue) !important;;
356
+ }
357
+ .field-top .el-checkbox:hover .el-checkbox__inner{
358
+ border-color:var(--centalineBlue) !important;
359
+ }
360
+ .field-top .ct-checkbox .el-checkbox.is-disabled:hover .el-checkbox__label{
361
+ color: #c0c4cc !important;
362
+ }
363
+ .field-top .ct-checkbox .el-checkbox.is-disabled:hover .el-checkbox__input .el-checkbox__inner{
364
+ border-color: #d6d6d6 !important;
365
+ }
366
+ .field-top .ct-checkbox .el-checkbox.is-checked:hover .el-checkbox__label{
367
+ color: var(--centalineBlue) !important;
368
+ }
369
+ .field-top .ct-checkbox .el-checkbox.is-checked:hover .el-checkbox__input .el-checkbox__inner{
370
+ border-color: var(--centalineBlue) !important;
371
+ }
372
+
@@ -60,9 +60,9 @@
60
60
  @click="fieldClickHandler(model.actionRouters[2], $event)">
61
61
  </component>
62
62
  <img :class="{domDisabled:flagDisabledPrev,}" @click="clickPrevHandler"
63
- src="../../../assets/T.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 10px;cursor: pointer;"/>
63
+ src="../../../assets/T1.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 10px;cursor: pointer;"/>
64
64
  <img :class="{domDisabled:flagDisabledNext,}" @click="clickNextHandler"
65
- src="../../../assets/B.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 10px;margin-right: 13px;cursor: pointer;"/>
65
+ src="../../../assets/B1.png" alt="" style="width: 26px;height: 26px;vertical-align: bottom;margin-left: 10px;margin-right: 13px;cursor: pointer;"/>
66
66
  </div>
67
67
  </div>
68
68
  </div>
@@ -58,10 +58,10 @@
58
58
  @click="fieldClickHandler(model.actionRouters[2], $event)">
59
59
  </component>
60
60
  <img :class="{ domDisabled: flagDisabledPrev }" @click="clickPrevHandler"
61
- src="../../../assets/T.png" alt=""
61
+ src="../../../assets/T1.png" alt=""
62
62
  style=" width: 26px; height: 26px;vertical-align: bottom; margin-left: 10px;cursor: pointer;"/>
63
63
  <img :class="{ domDisabled: flagDisabledNext }" @click="clickNextHandler"
64
- src="../../../assets/B.png" alt=""
64
+ src="../../../assets/B1.png" alt=""
65
65
  style=" width: 26px; height: 26px;vertical-align: bottom; margin-left: 10px; margin-right: 13px; cursor: pointer;"/>
66
66
  </div>
67
67
  </div>
@@ -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>
@@ -144,9 +144,8 @@
144
144
 
145
145
  <!--可点击的列-->
146
146
  <template v-else-if="column.router">
147
- <div v-if="column.router.rightField && row[column.router.rightField] === 0"></div>
148
- <ct-tablecurrency v-else
149
- :ref="'router' + column.router.id + rowindex"
147
+ <div v-if="column.router.rightField && row[column.router.rightField] === 0" v-html="row[column.id]"></div>
148
+ <ct-tablecurrency v-else :ref="'router' + column.router.id + rowindex"
150
149
  :rowindex="rowindex" :align="column.attrs.align"
151
150
  :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'" :router="column.router"
152
151
  :colValue="row[column.id]" :rowData="row" @click="rolRouterClickHandler">
@@ -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,14 +50,14 @@ Vue.use(centaline, {
50
50
  getRequestHeaders: function () {
51
51
  return {
52
52
  oldToken: '0bbcf3e8-cf7e-42de-adef-af54e2158fe4',
53
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe_iOivZ2fVunC7xp-EQkSGOFCpEEgmEuDsgoKNnildMM--mlm2vWoUsrotswFtqgNhYcJQSeM3sMGnEEAb3AX7Ml4HEu66LAqR7Bko2gqt9AnS2DxQ7CZFVpcrlpFrDTW1qEYuVmvP6FpoMvsS2lPOuXP9x7rjOz-yUM-WxTCDUEBDxBJmYYETtBPUBpWR1fwAAAP__.nDlevz6dgoon0m0QNTtCCdty2vcy7c1FCRaTG8AyUGU',
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"}',
57
57
  estateId: '20210729104021C49F04B55C50F6AF58',
58
58
 
59
- authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"665b7cc4bcb0c902a054498fdf23fab7","token":"","random":"mnYxP9","time":1681872807128,"sign":"c18df776fbc6d82dec86c62be946634a"}',
60
- AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImQ3MGE2ZDJiLTliZDYtNDZmZS1hZDgzLTA1MzA4ZjUzOTBjOSJ9.ozfqV1P46pWUzyDSwnKnSqlV1L8PySL9NE51WYFCGx9xnutI4ip8Bw3yU7X2oPoA6BG7NPZ5S9sE57ZcYd-VRg',
59
+ authObject: '{"currentEstate":{"estateId":"20170524095458338E35F467429530B4","estateName":"A%E5%AE%89%E5%B3%A6%E5%85%AC%E9%A6%86"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"665b7cc4bcb0c902a054498fdf23fab7","token":"","random":"dMxZQ","time":1682069635547,"sign":"a0604f3d4aa249de11ba42a563698b72"}',
60
+ AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImUyMTkyOTJiLTFjZDQtNGRiOS04YjQ1LWFjMDA2Y2Q3ZWFjMSJ9.Ki5iSJ1hoVpdZ_K9NRScKe7IwXKk3JOGx-a02XWPPL1914jpPZQmS6S-DQ752zepOqKOTELTtznMHGjw4cUUcw',
61
61
  };
62
62
  },
63
63
  // 请求完成事件,可判断是否登录过期执行响应操作