centaline-data-driven 1.3.87 → 1.3.88

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.3.87",
3
+ "version": "1.3.88",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -5,4 +5,7 @@
5
5
  .ccai.button-absolute{
6
6
  bottom: 26px;
7
7
  width: calc(100% - 47px);
8
+ }
9
+ .ccai.ct-tags .ct-tags-mini{
10
+ font-size: 12px !important;
8
11
  }
@@ -728,7 +728,7 @@
728
728
  return;
729
729
  }
730
730
  if(router.id.indexOf('_')===0){
731
- // flagSearchlist=true;
731
+ flagSearchlist=true;
732
732
  }
733
733
 
734
734
  submitData = router.getActionPara(submitData).para;
@@ -747,6 +747,7 @@
747
747
  height: (router.dialogHeight || 500) + 'px',
748
748
  documentHeight:self.documentHeight,
749
749
  documentWidth:self.documentWidth,
750
+ flagPopupSearchlist:flagSearchlist,
750
751
  },
751
752
  on: {
752
753
  submit(option) {
@@ -13,10 +13,10 @@
13
13
  @showTitle="showTitleScreenHandler"></ct-searchscreen>
14
14
 
15
15
  <ct-searchtable ref="table" :api="searchDataApi" :searchStatsApi="searchStatsApi" :from="from" :isIframe="isIframe" :documentHeight="documentHeight"
16
- @loaded="tableLoaded" :documentWidth="documentWidth"
16
+ @loaded="tableLoaded" :documentWidth="documentWidth" :flagPopupSearchlist="flagPopupSearchlist"
17
17
  @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
18
18
  @rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
19
- @showTitle="showTitleHandler"></ct-searchtable>
19
+ @showTitle="showTitleHandler" @popupClickHandler="popupClickHandler"></ct-searchtable>
20
20
  </div>
21
21
  <div ref="sidebar" v-if="flagSideBar && flagSideBarOfData"
22
22
  :style="{'height': pageHeight? pageHeight:'100%','width':sideBarWidth+'px',right:sideBarRight+'px'}"
@@ -71,6 +71,10 @@
71
71
  String,
72
72
  default: 'auto',
73
73
  },
74
+ flagPopupSearchlist:{
75
+ Boolean,
76
+ default:false,
77
+ },
74
78
  },
75
79
  created() {
76
80
  this.model = this.vmodel;
@@ -307,6 +311,10 @@
307
311
  doClosePopoverHandle(){
308
312
  this.$refs.screen.$refs.doClosePopover.click();
309
313
  },
314
+ popupClickHandler(tempListData){
315
+ this.$emit('submit', tempListData);
316
+ this.$common.closeDialog(this);
317
+ },
310
318
  },
311
319
  beforeDestroy() {
312
320
  async function destroyDeep(vnode) {
@@ -151,7 +151,10 @@
151
151
  </div>
152
152
 
153
153
  <ct-tabletip ref="listFooter" class="ct-search-table-list-footer" :tip="model.listFooter" v-if="!isLoading && !isLayout && model"></ct-tabletip>
154
- <ct-tabletip ref="footer" class="ct-search-table-footer" :tip="model.footer" v-if="!isLoading && !isLayout && model"></ct-tabletip>
154
+ <ct-tabletip ref="footer" class="ct-search-table-footer" :tip="model.footer" v-if="!isLoading && !isLayout && model"></ct-tabletip>
155
+ <div ref="popupButton" v-if="flagPopupSearchlist" style="margin-top: 10px;width: 100%;display: inline-block;height: 30px;margin-bottom: 10px;">
156
+ <el-button size="mini" @click="popupClickHandler()" class="max-search-btn" style="float:right;" type="primary">确认</el-button>
157
+ </div>
155
158
  <div v-if="isLoading && searchLoading" v-loading="isLoading" style="top: 30px"></div>
156
159
  </div>
157
160
  </template>
@@ -194,6 +197,10 @@
194
197
  String,
195
198
  default: 'auto',
196
199
  },
200
+ flagPopupSearchlist:{
201
+ Boolean,
202
+ default:false,
203
+ },
197
204
  },
198
205
  computed: {},
199
206
  data() {
@@ -595,7 +602,8 @@
595
602
  var h5 = this.$refs.listHeader.$el.offsetHeight | 0;
596
603
  var h6 = this.$refs.listFooter.$el.offsetHeight | 0;
597
604
  var h7 = this.$refs.tableStats ? (this.$refs.tableStats.$el.offsetHeight + 7) | 0 : 0;
598
- let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - 22;
605
+ var h8 = this.$refs.popupButton?this.$refs.popupButton.offsetHeight+21 : 0;
606
+ let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 -h8 - 22;
599
607
  this.model.tableHeight = tableHeight < 40 ? 350 : tableHeight;
600
608
  this.$nextTick(() => {
601
609
  self.getScrollAttr();
@@ -1567,6 +1575,15 @@
1567
1575
  self.updateCurrentRow(field, data);
1568
1576
  }
1569
1577
  },
1578
+ popupClickHandler() {
1579
+ var tempListData = this.model.getSelectRowData({isMulti:this.model.isMulti});
1580
+ if (tempListData != null && tempListData.length>0) {
1581
+ this.$emit('popupClickHandler', tempListData);
1582
+ }
1583
+ else {
1584
+ this.$message.error("请先选择数据");
1585
+ }
1586
+ },
1570
1587
  },
1571
1588
  };
1572
1589
  </script>
@@ -113,7 +113,14 @@
113
113
  var self = this;
114
114
  self.showDrop=false;
115
115
  self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, (optionArr) => {
116
- self.selectOptionArr(optionArr);
116
+ optionArr.forEach(row => {
117
+ if(self.model.type===3){
118
+ self.model.value=self.model.value+row[self.model.optionAttrs.label];
119
+ }
120
+ else {
121
+ self.model.value=row[self.model.optionAttrs.label];
122
+ }
123
+ });
117
124
  });
118
125
  },
119
126
  },
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="field-top">
3
- <div class="ct-tags" style="width:100%;display:flex">
3
+ <div class="ccai ct-tags" style="width:100%;display:flex">
4
4
  <div style="flex:1;display:flex;margin-right: 5px;" :class="[(focus || showDrop)?'isfocus':'',model.attrs.size?'ct-tags-'+model.attrs.size:''
5
5
  ]" @mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
6
6
  <div style="flex:1;position: relative;" :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']">
@@ -265,10 +265,12 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
265
265
  return ro.$select === true;
266
266
  });
267
267
  return rtnData;
268
- } else {
268
+ }
269
+ else {
269
270
  return [rtn.listData[rtn.selectIndex]];
270
271
  }
271
- } else {
272
+ }
273
+ else {
272
274
  return [rtn.listData[rtn.selectIndex]];
273
275
  }
274
276
  },
@@ -3,6 +3,15 @@ import Base from './Base';
3
3
  import valid from '../../../validate/index';
4
4
  const T = function (source, inputType, readonly, isPassword,moreActionRouter) {
5
5
  var rtn = {
6
+ optionAttrs: {
7
+ rowid: 'rowID',
8
+ value: 'code',
9
+ label: 'name',
10
+ displayLabel:'displayName',
11
+ actionType: 'actionType',
12
+ flagDeleted: 'flagDeleted',
13
+ locked: 'locked'
14
+ },
6
15
  get clearable() {
7
16
  if (typeof source.clear === 'undefined'&&!readonly&&!source.locked) {
8
17
  return true;