vue2-client 1.17.0 → 1.17.2

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.
@@ -579,6 +579,7 @@ export default {
579
579
  this.$refs.xTable.init({
580
580
  formItems: res.formJson,
581
581
  queryParams: setQueryParams ? res : null,
582
+ realQueryParams: res,
582
583
  tableColumns: res.columnJson,
583
584
  buttonState: Object.assign(res.buttonState, this.buttonState),
584
585
  title: this.title || res.title,
@@ -145,6 +145,17 @@
145
145
  <a-tooltip title="列展示/排序" placement="bottom">
146
146
  <table-setting v-if="columnSelectLoaded" v-model="tableColumns"/>
147
147
  </a-tooltip>
148
+ <a-popover title="开发者调试信息" placement="bottomRight" v-if="!isDebugUser()">
149
+ <template slot="content">
150
+ <p>租户:{{ realQueryParams.$globalProp.tenantAlias }}</p>
151
+ <p>命名空间:{{ realQueryParams.$globalProp.namespaceName }} - {{ realQueryParams.$globalProp.module }}</p>
152
+ <p>配置名称:{{ queryParamsName }}</p>
153
+ <p>版本号:{{ realQueryParams.$globalProp.version }}</p>
154
+ </template>
155
+ <a-button>
156
+ <a-icon :style="iconStyle" type="bug"/>
157
+ </a-button>
158
+ </a-popover>
148
159
  </a-button-group>
149
160
  </span>
150
161
  </a-col>
@@ -296,6 +307,7 @@ import ExportExcel from '@vue2-client/base-client/components/common/XTable/Expor
296
307
  import g2Charts from '@vue2-client/components/g2Charts/index.vue'
297
308
  import moment from 'moment/moment'
298
309
  import XTableWrapper from './XTableWrapper.vue'
310
+ import { isDebugUser } from '@vue2-client/utils/common'
299
311
 
300
312
  export default {
301
313
  name: 'XTable',
@@ -456,6 +468,7 @@ export default {
456
468
  // crud打印模板配置
457
469
  printTemplate: false,
458
470
  queryParams: {},
471
+ realQueryParams: {},
459
472
  // 定义总行数
460
473
  totalCount: 0,
461
474
  user: {},
@@ -595,6 +608,7 @@ export default {
595
608
  window.removeEventListener('resize', this.handleResize)
596
609
  },
597
610
  methods: {
611
+ isDebugUser,
598
612
  showTempData () {
599
613
  this.selectedRowModalVisible = true
600
614
  this.$nextTick(() => {
@@ -729,6 +743,7 @@ export default {
729
743
  const {
730
744
  // 查询参数对象, 用于没有对应查询配置文件名时
731
745
  queryParams,
746
+ realQueryParams,
732
747
  tableColumns,
733
748
  attachGrid,
734
749
  expandedGrid,
@@ -799,6 +814,7 @@ export default {
799
814
  this.sortSummaryData()
800
815
  }
801
816
  this.queryParams = queryParams
817
+ this.realQueryParams = realQueryParams
802
818
  this.tableColumns = JSON.parse(JSON.stringify(tableColumns))
803
819
  if (this.tableColumns.length === 0) {
804
820
  return