imatrix-ui 2.9.8-dw → 2.9.8-pv3

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": "imatrix-ui",
3
- "version": "2.9.8-dw",
3
+ "version": "2.9.8-pv3",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -50,20 +50,25 @@ const dynamicSourceSelectService = {
50
50
  }
51
51
 
52
52
  return new Promise((resolve, reject) => {
53
- this.$http.post(backendUrl + '/common/dynamic-data-source/' + dynamicSourceCode, params).then(result => {
54
- if (result.backendUrl) {
55
- // result.backendUrl表示需要使用动态数据源所属的系统路径重新获得一次数据
56
- this.$http.post(result.backendUrl + '/common/dynamic-data-source/' + dynamicSourceCode, params).then(finallyResult => {
57
- resolve(finallyResult)
58
- }).catch(error => {
59
- reject(error)
60
- })
61
- } else {
62
- resolve(result)
63
- }
64
- }).catch(error => {
65
- reject(error)
66
- })
53
+ // 页面设计不请求动态数据源
54
+ if (Vue.prototype.systemCode !== undefined && Vue.prototype.systemCode === 'iMatrix') {
55
+ resolve()
56
+ } else {
57
+ this.$http.post(backendUrl + '/common/dynamic-data-source/' + dynamicSourceCode, params).then(result => {
58
+ if (result.backendUrl) {
59
+ // result.backendUrl表示需要使用动态数据源所属的系统路径重新获得一次数据
60
+ this.$http.post(result.backendUrl + '/common/dynamic-data-source/' + dynamicSourceCode, params).then(finallyResult => {
61
+ resolve(finallyResult)
62
+ }).catch(error => {
63
+ reject(error)
64
+ })
65
+ } else {
66
+ resolve(result)
67
+ }
68
+ }).catch(error => {
69
+ reject(error)
70
+ })
71
+ }
67
72
  })
68
73
  }
69
74
  }
@@ -6,7 +6,7 @@ import {
6
6
  import nineGridStore from '../super-nine-grid/src/store'
7
7
  import {
8
8
  Message
9
- } from '@gcommon/gcommon-ui'
9
+ } from 'element-ui'
10
10
  import {
11
11
  packageEnumAndBeanColumnValueSets
12
12
  } from '../utils/value-set'
@@ -6,7 +6,7 @@ import {
6
6
  import nineGridStore from '../super-nine-grid/src/store'
7
7
  import {
8
8
  Message
9
- } from '@gcommon/gcommon-ui'
9
+ } from 'element-ui'
10
10
  import {
11
11
  packageEnumAndBeanColumnValueSets
12
12
  } from '../utils/value-set'
@@ -41,7 +41,7 @@
41
41
  type="yearRange"
42
42
  @change="setYearRangeValue(column.prop,$event)"
43
43
  />
44
- <el-g-date-picker
44
+ <el-date-picker
45
45
  v-else-if="column.componentType==='dateTimePicker'"
46
46
  :value="getFormItemValue(column.prop)"
47
47
  :default-time="getDefaultTime(column)"
@@ -27,15 +27,21 @@
27
27
  </el-col>
28
28
  <el-col v-for="(params,index) in gridData" :key="params.id" :span="6" :offset="1.5" class="col-content">
29
29
  <el-card :body-style="{ padding: '0px' }" shadow="hover">
30
- <div @mouseenter="enter(index)" @mouseleave="leave()" @click="clickContent(params)">
30
+ <!-- <div @mouseenter="enter(index)" @mouseleave="leave()" @click="clickContent(params)"> -->
31
+ <div @click="clickContent(params)">
31
32
  <transition name="fade">
32
- <div v-if="seen && index === current" class="popContainer">
33
- <div class="else-button">
33
+ <!-- <div v-if="seen && index === current" class="popContainer"> -->
34
+ <div class="popContainer">
35
+ <div class="else-button" style="background: rgba(0,0,0,0.5); min-height: 20%;">
36
+ <!-- <div class="else-button" style="min-height: 20%;"> -->
37
+ <slot :name="slotBefore" :params="params" />
34
38
  <template v-for="button in operations">
35
39
  <template v-if="isShowButton(params, button)">
36
40
  <el-tooltip v-if="button.icon" :key="button.name" v-permission="button.permission?button.permission:'true'" class="item" effect="dark" :content="button.name" placement="top">
41
+ <!-- <em style="color: black;" :class="button.icon +' icons'" @click.stop="buttonClick(button.event, params)" /> -->
37
42
  <em :class="button.icon +' icons'" @click.stop="buttonClick(button.event, params)" />
38
43
  </el-tooltip>
44
+ <!-- <em v-else :key="button.name" v-permission="button.permission?button.permission:'true'" style="color: black;" :class="button.name +' icons'" @click.stop="buttonClick(button.event, params)">{{ button.name }} </em> -->
39
45
  <em v-else :key="button.name" v-permission="button.permission?button.permission:'true'" :class="button.name +' icons'" @click.stop="buttonClick(button.event, params)">{{ button.name }} </em>
40
46
  </template>
41
47
  </template>
@@ -160,7 +166,7 @@
160
166
  width: 23.15%;
161
167
  display: block;
162
168
  height: 200px;
163
- background: rgba(0,0,0,0.5);
169
+ // background: rgba(0,0,0,0.5);
164
170
  text-align: right;
165
171
  }
166
172
  .fade-enter-active, .fade-leave-active {
@@ -280,7 +286,8 @@ export default {
280
286
  storeId,
281
287
  currentId: null, // 当前点击的记录id
282
288
  isShowRadio, // 单选时是否显示单选按钮
283
- titleStyle: null // 标题的样式对象,格式为:{ color: 'green', fontWeight: 'bold'}
289
+ titleStyle: null, // 标题的样式对象,格式为:{ color: 'green', fontWeight: 'bold'}
290
+ slotBefore: 'before'
284
291
  }
285
292
  },
286
293
  computed: {
@@ -314,7 +321,7 @@ export default {
314
321
  this.$watch('hasLoadData', function(newVal, oldVal) {
315
322
  if (newVal === true) {
316
323
  this.$nextTick(() => {
317
- this.rowDrop()
324
+ // this.rowDrop()
318
325
  const gridParams = store.get(this.storeId)
319
326
  if (isHasOptionFunction('gridComplete', this.storeId)) {
320
327
  gridParams.options.gridComplete.call(this, { gridData: this.gridData, columns: gridParams.columns, superGrid: this.$refs.superGrid })
package/src/i18n/i18n.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Vue from 'vue'
2
- import locale from '@gcommon/gcommon-ui/lib/locale'
2
+ import locale from 'element-ui/lib/locale'
3
3
  import VueI18n from 'vue-i18n'
4
4
  import en from './langs/en'
5
5
  import cn from './langs/cn'
@@ -1,4 +1,4 @@
1
- import zhLocale from '@gcommon/gcommon-ui/lib/locale/lang/zh-CN'
1
+ import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
2
2
  const cn = {
3
3
  imatrixUIPublicModel: {
4
4
  sure: '确定',
@@ -1,4 +1,4 @@
1
- import enLocale from '@gcommon/gcommon-ui/lib/locale/lang/en'
1
+ import enLocale from 'element-ui/lib/locale/lang/en'
2
2
  const en = {
3
3
  imatrixUIPublicModel: {
4
4
  sure: 'Sure',
package/src/permission.js CHANGED
@@ -4,7 +4,7 @@ import { getToken, setToken } from './utils/auth' // 验权
4
4
  import store from './store'
5
5
  import router, { errorRouterMap } from './router'
6
6
  NProgress.configure({ showSpinner: false })// NProgress Configuration
7
- import { Message } from '@gcommon/gcommon-ui'
7
+ import { Message } from 'element-ui'
8
8
  import Vue from 'vue'
9
9
 
10
10
  const whiteList = ['/login', '/update-password', '/forget-password', '/reset-password', '/redirect'] // 不重定向白名单
package/src/plugins.js CHANGED
@@ -3,9 +3,9 @@ import Vue from 'vue'
3
3
  import 'normalize.css/normalize.css' // A modern alternative to CSS resets
4
4
  import './styles/index.scss' // global css
5
5
 
6
- import ElementUI from '@gcommon/gcommon-ui'
7
- import '@gcommon/gcommon-ui/lib/theme-chalk/index.css'
8
- import locale from '@gcommon/gcommon-ui/lib/locale/lang/zh-CN' // lang i18n
6
+ import ElementUI from 'element-ui'
7
+ import 'element-ui/lib/theme-chalk/index.css'
8
+ import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
9
9
 
10
10
  import SuperUI from 'imatrix-ui'
11
11
  import 'imatrix-ui/lib/super-ui.css'
@@ -9,8 +9,8 @@
9
9
  @import './theme/blue2/sidebar.scss';
10
10
  @import './theme/gray/index.scss';
11
11
  @import './theme/gray/sidebar.scss';
12
- // @import './theme/dark-blue/index.scss';
13
- // @import './theme/dark-blue/sidebar.scss';
12
+ @import './theme/dark-blue/index.scss';
13
+ @import './theme/dark-blue/sidebar.scss';
14
14
  @import './display-layout.scss';
15
15
 
16
16
  body {
@@ -1,7 +1,7 @@
1
1
  import axios from 'axios'
2
2
  import {
3
3
  Message
4
- } from '@gcommon/gcommon-ui'
4
+ } from 'element-ui'
5
5
  import {
6
6
  getToken,
7
7
  removeToken
@@ -41,7 +41,7 @@
41
41
  </template>
42
42
 
43
43
  <script>
44
- import { Message } from '@gcommon/gcommon-ui'
44
+ import { Message } from 'element-ui'
45
45
  export default {
46
46
  name: 'Login',
47
47
  data() {