imatrix-ui 2.9.8-pv3 → 2.9.10-dw
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 +35 -5
- package/package.json +1 -1
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +14 -19
- package/packages/plugins/export-data-new.js +1 -1
- package/packages/plugins/export-data.js +1 -1
- package/packages/super-grid/src/apis.js +15 -0
- package/packages/super-grid/src/search-form-item.vue +1 -1
- package/packages/super-grid/src/super-grid.vue +4 -4
- package/packages/super-nine-grid/src/super-nine-grid.vue +6 -13
- 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/dsc-component/Sidebar/Item.vue +3 -3
- package/src/views/login/index.vue +1 -1
package/package.json
CHANGED
|
@@ -50,25 +50,20 @@ 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
|
-
|
|
67
|
-
}
|
|
68
|
-
}).catch(error => {
|
|
69
|
-
reject(error)
|
|
70
|
-
})
|
|
71
|
-
}
|
|
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
|
+
})
|
|
72
67
|
})
|
|
73
68
|
}
|
|
74
69
|
}
|
|
@@ -758,6 +758,21 @@ const apis = {
|
|
|
758
758
|
}
|
|
759
759
|
const gridParams = store.get(listCode)
|
|
760
760
|
return gridParams.pagination
|
|
761
|
+
},
|
|
762
|
+
// 获得该列表中,下拉选是选项组的字段信息,返回的key是属性名,value是选项集合
|
|
763
|
+
getOptionsValueSet(listCode) {
|
|
764
|
+
const result = {}
|
|
765
|
+
if (!listCode) {
|
|
766
|
+
listCode = store.get('_list_code')
|
|
767
|
+
}
|
|
768
|
+
const gridParams = store.get(listCode)
|
|
769
|
+
const columns = gridParams.columns
|
|
770
|
+
columns.forEach(col => {
|
|
771
|
+
if (col.valueSet && col.valueSet.length > 0) {
|
|
772
|
+
result[col.prop] = col.valueSet
|
|
773
|
+
}
|
|
774
|
+
})
|
|
775
|
+
return result
|
|
761
776
|
}
|
|
762
777
|
}
|
|
763
778
|
export default apis
|
|
@@ -1356,11 +1356,11 @@ export default {
|
|
|
1356
1356
|
// 子表无记录时不需要刷新子表记录。表示是新建或修改时子表无记录,且不需要刷新子表。
|
|
1357
1357
|
if (
|
|
1358
1358
|
this.isSubTableEmpty(gridParams)
|
|
1359
|
-
){
|
|
1359
|
+
) {
|
|
1360
1360
|
// 表示是新建表单时,子表记录集合是空数组
|
|
1361
1361
|
console.log('子表无记录----code=', this.code, gridParams)
|
|
1362
1362
|
const subTableData = []
|
|
1363
|
-
this.packageSubTableData(gridParams,subTableData)
|
|
1363
|
+
this.packageSubTableData(gridParams, subTableData)
|
|
1364
1364
|
}
|
|
1365
1365
|
this.hasLoadData = true
|
|
1366
1366
|
gridParams.loaded = true
|
|
@@ -1368,7 +1368,7 @@ export default {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
},
|
|
1371
|
-
isSubTableEmpty
|
|
1371
|
+
isSubTableEmpty(gridParams) {
|
|
1372
1372
|
return gridParams.options && gridParams.options.isFormSubTable &&
|
|
1373
1373
|
((gridParams.options.subTableData === undefined || gridParams.options.subTableData === null) ||
|
|
1374
1374
|
gridParams.options.subTableData.length === 0)
|
|
@@ -1416,7 +1416,7 @@ export default {
|
|
|
1416
1416
|
JSON.parse(JSON.stringify(this.gridData))
|
|
1417
1417
|
)
|
|
1418
1418
|
},
|
|
1419
|
-
canRefreshTableData
|
|
1419
|
+
canRefreshTableData(gridParams) {
|
|
1420
1420
|
let isCanRefreshTableData = false
|
|
1421
1421
|
if (gridParams.options && !gridParams.options.isFormSubTable) {
|
|
1422
1422
|
// 如果不是子表时
|
|
@@ -27,21 +27,15 @@
|
|
|
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
|
-
|
|
31
|
-
<div @click="clickContent(params)">
|
|
30
|
+
<div @mouseenter="enter(index)" @mouseleave="leave()" @click="clickContent(params)">
|
|
32
31
|
<transition name="fade">
|
|
33
|
-
|
|
34
|
-
|
|
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" />
|
|
32
|
+
<div v-if="seen && index === current" class="popContainer">
|
|
33
|
+
<div class="else-button">
|
|
38
34
|
<template v-for="button in operations">
|
|
39
35
|
<template v-if="isShowButton(params, button)">
|
|
40
36
|
<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)" /> -->
|
|
42
37
|
<em :class="button.icon +' icons'" @click.stop="buttonClick(button.event, params)" />
|
|
43
38
|
</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> -->
|
|
45
39
|
<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>
|
|
46
40
|
</template>
|
|
47
41
|
</template>
|
|
@@ -166,7 +160,7 @@
|
|
|
166
160
|
width: 23.15%;
|
|
167
161
|
display: block;
|
|
168
162
|
height: 200px;
|
|
169
|
-
|
|
163
|
+
background: rgba(0,0,0,0.5);
|
|
170
164
|
text-align: right;
|
|
171
165
|
}
|
|
172
166
|
.fade-enter-active, .fade-leave-active {
|
|
@@ -286,8 +280,7 @@ export default {
|
|
|
286
280
|
storeId,
|
|
287
281
|
currentId: null, // 当前点击的记录id
|
|
288
282
|
isShowRadio, // 单选时是否显示单选按钮
|
|
289
|
-
titleStyle: null
|
|
290
|
-
slotBefore: 'before'
|
|
283
|
+
titleStyle: null // 标题的样式对象,格式为:{ color: 'green', fontWeight: 'bold'}
|
|
291
284
|
}
|
|
292
285
|
},
|
|
293
286
|
computed: {
|
|
@@ -321,7 +314,7 @@ export default {
|
|
|
321
314
|
this.$watch('hasLoadData', function(newVal, oldVal) {
|
|
322
315
|
if (newVal === true) {
|
|
323
316
|
this.$nextTick(() => {
|
|
324
|
-
|
|
317
|
+
this.rowDrop()
|
|
325
318
|
const gridParams = store.get(this.storeId)
|
|
326
319
|
if (isHasOptionFunction('gridComplete', this.storeId)) {
|
|
327
320
|
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 '@gcommon/gcommon-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 '@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
|
|
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
|
-
@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 {
|
package/src/utils/request.js
CHANGED
|
@@ -27,15 +27,15 @@ export default {
|
|
|
27
27
|
|
|
28
28
|
if (icon) {
|
|
29
29
|
if (icon.indexOf('fa-') === 0) {
|
|
30
|
-
// 表示以“fa-”开头,使用font-awesome中的图标
|
|
30
|
+
// 表示以“fa-”开头,使用font-awesome中的图标 margin-right: 16px 是因为svg-icon有16px的间隔
|
|
31
31
|
icon = 'fa ' + icon
|
|
32
|
-
vnodes.push(<div style='display: inline-block;overflow:hidden;'><i class={icon}/></div>)
|
|
32
|
+
vnodes.push(<div style='display: inline-block;overflow:hidden;'><i class={icon} style='margin-right: 16px;'/></div>)
|
|
33
33
|
} else if (icon.indexOf('svg-') === 0) {
|
|
34
34
|
icon = icon.substring(icon.indexOf('svg-') + 4)
|
|
35
35
|
vnodes.push(<div style='display: inline-block;overflow:hidden;'><svg-icon icon-class={icon}/></div>)
|
|
36
36
|
} else {
|
|
37
37
|
icon += ' svg-icon'
|
|
38
|
-
vnodes.push(<div style='display: inline-block;overflow:hidden;'><i class={icon}/></div>)
|
|
38
|
+
vnodes.push(<div style='display: inline-block;overflow:hidden;'><i class={icon} style='margin-right: 16px;'/></div>)
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|