eslint; 收入合同
This commit is contained in:
@@ -169,12 +169,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DetailList from "@/components/tools/DetailList";
|
||||
import SettingItem from "@/components/setting/SettingItem";
|
||||
import config from "@/defaultSettings";
|
||||
import { updateTheme, updateColorWeak, colorList } from "@/components/tools/setting";
|
||||
import { mixin, mixinDevice } from "@/utils/mixin.js";
|
||||
import { triggerWindowResizeEvent } from "@/utils/util";
|
||||
import DetailList from '@/components/tools/DetailList'
|
||||
import SettingItem from '@/components/setting/SettingItem'
|
||||
import config from '@/defaultSettings'
|
||||
import { updateTheme, updateColorWeak, colorList } from '@/components/tools/setting'
|
||||
import { mixin, mixinDevice } from '@/utils/mixin.js'
|
||||
import { triggerWindowResizeEvent } from '@/utils/util'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -187,71 +187,71 @@ export default {
|
||||
visible: false,
|
||||
colorList,
|
||||
dataFixSiderbar: false
|
||||
};
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 当主题色不是默认色时,才进行主题编译
|
||||
if (this.primaryColor !== config.primaryColor) {
|
||||
updateTheme(this.primaryColor);
|
||||
updateTheme(this.primaryColor)
|
||||
}
|
||||
if (this.colorWeak !== config.colorWeak) {
|
||||
updateColorWeak(this.colorWeak);
|
||||
updateColorWeak(this.colorWeak)
|
||||
}
|
||||
if (this.multipage !== config.multipage) {
|
||||
this.$store.dispatch("ToggleMultipage", this.multipage);
|
||||
this.$store.dispatch('ToggleMultipage', this.multipage)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showDrawer() {
|
||||
this.visible = true;
|
||||
this.visible = true
|
||||
},
|
||||
onClose() {
|
||||
this.visible = false;
|
||||
this.visible = false
|
||||
},
|
||||
toggle() {
|
||||
this.visible = !this.visible;
|
||||
this.visible = !this.visible
|
||||
},
|
||||
onColorWeak(checked) {
|
||||
this.$store.dispatch("ToggleWeak", checked);
|
||||
updateColorWeak(checked);
|
||||
this.$store.dispatch('ToggleWeak', checked)
|
||||
updateColorWeak(checked)
|
||||
},
|
||||
onMultipageWeak(checked) {
|
||||
this.$store.dispatch("ToggleMultipage", checked);
|
||||
this.$store.dispatch('ToggleMultipage', checked)
|
||||
},
|
||||
handleMenuTheme(theme) {
|
||||
this.$store.dispatch("ToggleTheme", theme);
|
||||
this.$store.dispatch('ToggleTheme', theme)
|
||||
},
|
||||
handleLayout(mode) {
|
||||
this.$store.dispatch("ToggleLayoutMode", mode);
|
||||
this.$store.dispatch('ToggleLayoutMode', mode)
|
||||
// 因为顶部菜单不能固定左侧菜单栏,所以强制关闭
|
||||
this.handleFixSiderbar(false);
|
||||
this.handleFixSiderbar(false)
|
||||
// 触发窗口resize事件
|
||||
triggerWindowResizeEvent();
|
||||
triggerWindowResizeEvent()
|
||||
},
|
||||
handleContentWidthChange(type) {
|
||||
this.$store.dispatch("ToggleContentWidth", type);
|
||||
this.$store.dispatch('ToggleContentWidth', type)
|
||||
},
|
||||
changeColor(color) {
|
||||
if (this.primaryColor !== color) {
|
||||
this.$store.dispatch("ToggleColor", color);
|
||||
updateTheme(color);
|
||||
this.$store.dispatch('ToggleColor', color)
|
||||
updateTheme(color)
|
||||
}
|
||||
},
|
||||
handleFixedHeader(fixed) {
|
||||
this.$store.dispatch("ToggleFixedHeader", fixed);
|
||||
this.$store.dispatch('ToggleFixedHeader', fixed)
|
||||
},
|
||||
handleFixedHeaderHidden(autoHidden) {
|
||||
this.$store.dispatch("ToggleFixedHeaderHidden", autoHidden);
|
||||
this.$store.dispatch('ToggleFixedHeaderHidden', autoHidden)
|
||||
},
|
||||
handleFixSiderbar(fixed) {
|
||||
if (this.layoutMode === "topmenu") {
|
||||
fixed = false;
|
||||
if (this.layoutMode === 'topmenu') {
|
||||
fixed = false
|
||||
}
|
||||
this.dataFixSiderbar = fixed;
|
||||
this.$store.dispatch("ToggleFixSiderbar", fixed);
|
||||
this.dataFixSiderbar = fixed
|
||||
this.$store.dispatch('ToggleFixSiderbar', fixed)
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "SettingItem",
|
||||
name: 'SettingItem',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user