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/lib/super-ui.css +1 -1
- package/lib/super-ui.umd.min.js +5 -35
- package/package.json +1 -1
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +19 -14
- package/packages/plugins/export-data-new.js +1 -1
- package/packages/plugins/export-data.js +1 -1
- package/packages/super-grid/src/search-form-item.vue +1 -1
- package/packages/super-nine-grid/src/super-nine-grid.vue +13 -6
- package/src/i18n/i18n.js +1 -1
- package/src/i18n/langs/cn.js +1 -1
- package/src/i18n/langs/en.js +1 -1
- package/src/permission.js +1 -1
- package/src/plugins.js +3 -3
- package/src/styles/index.scss +2 -2
- package/src/utils/request.js +1 -1
- package/src/views/login/index.vue +1 -1
package/package.json
CHANGED
|
@@ -50,20 +50,25 @@ const dynamicSourceSelectService = {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
return new Promise((resolve, reject) => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
}
|
|
@@ -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
|
-
|
|
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
package/src/i18n/langs/cn.js
CHANGED
package/src/i18n/langs/en.js
CHANGED
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 '
|
|
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 '
|
|
7
|
-
import '
|
|
8
|
-
import locale from '
|
|
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'
|
package/src/styles/index.scss
CHANGED
|
@@ -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
|
-
|
|
13
|
-
|
|
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 {
|
package/src/utils/request.js
CHANGED