调整页面的高度,改为自适应(优化)
This commit is contained in:
@@ -52,12 +52,14 @@
|
|||||||
import {addSystemConfig,editSystemConfig,checkSystemConfig } from '@/api/api'
|
import {addSystemConfig,editSystemConfig,checkSystemConfig } from '@/api/api'
|
||||||
import {autoJumpNextInput} from "@/utils/util"
|
import {autoJumpNextInput} from "@/utils/util"
|
||||||
import {getAction } from '@/api/manage'
|
import {getAction } from '@/api/manage'
|
||||||
|
import {mixinDevice} from '@/utils/mixin.js'
|
||||||
export default {
|
export default {
|
||||||
name: "SystemConfigList",
|
name: "SystemConfigList",
|
||||||
|
mixins: [mixinDevice],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
title:"操作",
|
title:"操作",
|
||||||
cardStyle: 'height:' + (document.documentElement.clientHeight-125) + 'px',
|
cardStyle: '',
|
||||||
visible: true,
|
visible: true,
|
||||||
model: {},
|
model: {},
|
||||||
depotFlagSwitch: false, //仓库权限状态
|
depotFlagSwitch: false, //仓库权限状态
|
||||||
@@ -86,6 +88,9 @@
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.init()
|
this.init()
|
||||||
|
if(this.isDesktop()) {
|
||||||
|
this.cardStyle = 'height:' + (document.documentElement.clientHeight-125) + 'px'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onDepotChange(checked) {
|
onDepotChange(checked) {
|
||||||
|
|||||||
Reference in New Issue
Block a user