centaline-data-driven 1.4.77 → 1.4.79

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.77",
3
+ "version": "1.4.79",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
3
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
4
- <ct-form :api="'/PropertyPublish/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
4
+ <ct-form :api="'/system/menuright/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
5
5
  <ct-dialog-list></ct-dialog-list>
6
6
  </div>
7
7
  </template>
@@ -12,7 +12,7 @@
12
12
  data() {
13
13
  return {
14
14
  apiParam:{
15
- publishID: "1637690032707997696", actionType: 3
15
+ "menuRightId":"1642779661559795712","actionType":3
16
16
  },
17
17
  topHeight:10,
18
18
  }
@@ -177,7 +177,7 @@
177
177
  <div class="contacts-info base-box">
178
178
  <ct-contactList v-if="model.contactApiRouter !== null" :apiRouter="model.contactApiRouter" :key="'contact' + refershKey"></ct-contactList>
179
179
  </div>
180
- <div class="tablist-info base-box">
180
+ <div class="tablist-info base-box" style="padding-bottom: 0px;">
181
181
  <div class="details-tabs-box">
182
182
  <!--计算占用宽度-->
183
183
  <div style="position: relative">
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
  </div>
224
224
  <ct-searchlist v-if="model.searchConditionApiTags1" :key="'list' + listKey.toString() + refershKey"
225
- style="min-height: 420px" :apiParam="model.paramDataTags1" :flagFocus="false"
225
+ :pageHeight="'450px'" :from="'detail'" :apiParam="model.paramDataTags1" :flagFocus="false"
226
226
  :searchConditionApi="model.searchConditionApiTags1" :searchDataApi="model.searchDataApiTags1">
227
227
  </ct-searchlist>
228
228
  </div>
@@ -178,7 +178,7 @@
178
178
  <div class="contacts-info base-box">
179
179
  <ct-contactList v-if="model.contactApiRouter !== null" :apiRouter="model.contactApiRouter" :key="'contact' + refershKey"></ct-contactList>
180
180
  </div>
181
- <div class="tablist-info base-box">
181
+ <div class="tablist-info base-box" style="padding-bottom: 0px;">
182
182
  <div class="details-tabs-box">
183
183
  <!--计算占用宽度-->
184
184
  <div style="position: relative">
@@ -224,8 +224,9 @@
224
224
  </el-dropdown>
225
225
  </div>
226
226
  </div>
227
- <ct-searchlist v-if="model.searchConditionApiTags1" :key="'list' + listKey.toString() + refershKey" style="min-height: 420px"
228
- :apiParam="model.paramDataTags1" :flagFocus="false" :searchConditionApi="model.searchConditionApiTags1" :searchDataApi="model.searchDataApiTags1">
227
+ <ct-searchlist v-if="model.searchConditionApiTags1" :key="'list' + listKey.toString() + refershKey"
228
+ :pageHeight="'450px'" :from="'detail'" :apiParam="model.paramDataTags1" :flagFocus="false"
229
+ :searchConditionApi="model.searchConditionApiTags1" :searchDataApi="model.searchDataApiTags1">
229
230
  </ct-searchlist>
230
231
  </div>
231
232
  </div>
@@ -1,8 +1,9 @@
1
1
  <template>
2
2
  <div class="ct-form-list" v-focus="foucus" :class="{'tableDisabled':model.tableDisabled}">
3
- <div v-if="model.create || (model.selectRouter && model.selectRouter.id)" class="list-title">
3
+ <div v-if="model.title" class="list-title">
4
4
  <h5>{{model.title}}</h5>
5
5
  </div>
6
+ <div v-else-if="model.create || (model.selectRouter && model.selectRouter.id)" class="list-title"></div>
6
7
  <div class="list-button">
7
8
  <component v-if="model.selectRouter!==null" :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
8
9
  <el-button v-if="model.create" :disabled="model.disabled" type="success" class="max-btn-add" style="width: auto;" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
@@ -129,7 +130,7 @@
129
130
  this.model = this.vmodel;
130
131
  this.model.OptApi = this.api;
131
132
  this.model.$self=self;
132
-
133
+
133
134
  this.$nextTick(function () {
134
135
  self.model.refField = this.$refs.Fields;
135
136
  self.model.refFieldsLabel = this.$refs.FieldsLabel;
@@ -13,7 +13,7 @@
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" :flagPopupSearchlist="flagPopupSearchlist"
16
+ @loaded="tableLoaded" :documentWidth="documentWidth" :flagPopupSearchlist="flagPopupSearchlist" :screenTop="screenTop"
17
17
  @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
18
18
  @rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
19
19
  @showTitle="showTitleHandler" @popupClickHandler="popupClickHandler"></ct-searchtable>
@@ -107,6 +107,7 @@
107
107
  title:'',
108
108
  showTitle:false,
109
109
  screenPara:null,
110
+ screenTop:0,
110
111
  reloadKey:0,
111
112
  reloadKeyScreen:'s0',
112
113
  reloadKeyTable:'t0',
@@ -133,6 +134,9 @@
133
134
  methods: {
134
135
  screenLoaded(defaultSearch) {
135
136
  this.loaded.screenLoaded = true;
137
+ if(this.from && this.from=='detail'){
138
+ this.screenTop=this.$refs.screen.$el.offsetTop;
139
+ }
136
140
  this.$refs.table.searchComplate(this.$refs.screen.model, defaultSearch);
137
141
 
138
142
  this.$emit('loaded', this.$refs.screen.model);
@@ -217,6 +217,10 @@ export default {
217
217
  Boolean,
218
218
  default: false,
219
219
  },
220
+ screenTop: {
221
+ Number,
222
+ default: 0,
223
+ },
220
224
  },
221
225
  computed: {},
222
226
  data() {
@@ -625,6 +629,9 @@ export default {
625
629
  this.$refs.searchTable.parentElement && !self.isLayout) {
626
630
  var h1 = this.$refs.searchTable.parentElement.offsetHeight | 0;
627
631
  var h2 = this.$refs.searchTable.offsetTop | 0;
632
+ if(this.from && this.from=='detail'){
633
+ h2=h2-this.screenTop-22;
634
+ }
628
635
  var h3 = this.$refs.toolbar.$el.offsetHeight | 0;
629
636
  var h4 = this.$refs.footer.$el.offsetHeight | 0;
630
637
  var h5 = this.$refs.listHeader ? (this.$refs.listHeader.$el.offsetHeight + 8) | 0 : 0;
@@ -566,15 +566,7 @@ const FormList = function (source, master) {
566
566
  })
567
567
  if(countKey===rtn.primaryKeys.length){
568
568
  flagAdd=false;
569
- if(iRow.deleted){
570
- if(rtn.disabled){
571
- Vue.prototype.$message({
572
- message: '已超过最大数量,不能新增!',
573
- type: 'error',
574
- showClose:true,
575
- });
576
- return;
577
- }
569
+ if(iRow.deleted){
578
570
  rtn.tableData.forEach((d,index) => {
579
571
  if(d.$sourceIndex===r.$sourceIndex){
580
572
  rtn.tableData.splice(index, 1);
@@ -606,6 +598,14 @@ const FormList = function (source, master) {
606
598
  rtn.tableData.splice(tableDataIndex, 1,rowData);
607
599
  }
608
600
  else{
601
+ if(rtn.disabled){
602
+ Vue.prototype.$message({
603
+ message: '已超过最大数量,不能新增!',
604
+ type: 'error',
605
+ showClose:true,
606
+ });
607
+ return;
608
+ }
609
609
  rtn.tableData.push(rowData);
610
610
  }
611
611
  }
package/src/main.js CHANGED
@@ -48,14 +48,14 @@ Vue.use(centaline, {
48
48
  getRequestHeaders: function () {
49
49
  return {
50
50
  oldToken: '3ba3f510-93fd-4103-9249-73c13f3f6fc2',
51
- token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEzjsOwjAQRdG9uM5I4_l5TOfEScMiUAJBggoRkECIvRPEImhPcd97heU-hU3IlMxFGLq-ZZBaErQWETrLRYsXslZ3NmglSgk4DQ5dRAaiUgG9poErZ0u4q5KL01paaS1R7MFbLkAqLjyo5KShCfPjEjbRHInEEZtwGm8_iOzyhfsyX7fz8x_nzrfTOjuKHYx0AjdGENQMeZoc9nhUjhzjqBjeHwAAAP__.IhtJ2XWmn0L1rSDetKc8BClKlOEBZl6GWM0s2TfbR1k',
51
+ token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksKwjAURfeScR8kL3mfdJY27cRFlGoj6EhsC4q4dyMuwunhcs59mXU_mtZEFNYQPPRD5yHkJNCxs9BzTJQ0IXc08UgZUQS8jAq9sx4QUwarWUaffWSxUw4xKVZTRdWEbgDtfAKkoMGPFKKQaUx53EzrWC0LIWNjLvP2A6SqX7Cv5X4oz3-cu26XmuX5jEqzgBW0EBYVUJ4Zllh3XIo7cTHvDwAAAP__.4lx6u0EiJkrxVVQIfeqtEHEFeZFzgJEr_ixHVXLr_jM',
52
52
 
53
53
  originalRequestURL: 'http://10.88.22.67:8080',
54
54
  EstateInfo: '{"estateId":"FAF029E8-EC28-4297-83CF-B8FFD826DB91","estateName":"AABBCC"}',
55
55
  estateId: '20210729104021C49F04B55C50F6AF58',
56
56
 
57
- authObject: '{"currentEstate":{"estateId":"20170524095458338E35F467429530B4","estateName":"A%E5%AE%89%E5%B3%A6%E5%85%AC%E9%A6%86"},"platform":1,"OSVersion":"","clientVersion":"","machineCode":"bb71c2cdc14b4e186f76e41cb67881c4","token":"","random":"tZ45b9","time":1676355606718,"sign":"0509bb7ae0184c9262ff50ff40f03cfd"}',
58
- Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImY5NmZkZTBiLTQyYWEtNGJhZS04YWUwLWQ5OTBkM2Q2NTQ3OSJ9.0Nq41IzMfnDrYNaW85csIB7ra35DqsUBuHtqVTr5Wcwg1bNm_td-KO-_g2geYm8MuERiQhDq3uC-fOB95vUPrQ',
57
+ authObject: '{"currentEstate":{"estateId":"2209201708108B8F50AB530A49EAA858","estateName":"U%E7%89%88%E6%B5%8B%E8%AF%95%E6%A5%BC%E7%9B%98%E7%82%B9%E4%BD%8D"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"eda28bfc7834adab4b7727a1b6b18de1","token":"","random":"Ysx7Qd","time":1680570830491,"sign":"a06775af9aa7d46367edee9fa8ae1901"}',
58
+ AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjgzMmUxYTdjLWRlNjctNGFhYS05Y2QzLTliNTFhOTExN2I0ZCJ9.MDyjc6gRDJOOSJP-yfINobpg2sSev1W3eNFUJ8HuIurya_OpKIi4mBJWb8dQEHhLvQYrPl1fgJ6oTa9XIY9bwg',
59
59
  };
60
60
  },
61
61
  // 请求完成事件,可判断是否登录过期执行响应操作