Commit ce85ab93 by xinla

Merge branch 'xxj-v4.x-ui-2023.02.14' into develop

2 parents 15e7063b 879d233c
......@@ -570,8 +570,8 @@ export default {
border: 1px dashed #d9d9d9;
transition: all 0.3s;
&:hover {
border-color: $blue;
color: $blue;
border-color: var(--color);
color: var(--color);
}
}
.progress {
......
......@@ -118,7 +118,7 @@ export default {
margin-left: 10px;
}
.home {
color: $blue;
color: var(--color);
}
::v-deep .el-breadcrumb__separator {
margin: 0 5px;
......
// 显隐侧边栏按钮
<template>
<!-- <i class="el-icon-s-fold" :class="{ 'is-active': $store.state.app.sidebar.opened }" @click="toggleClick"></i> -->
<svg-icon
<!-- <i class="el-icon-s-fold" :class="{ 'open': $store.state.app.sidebar.opened }" @click="toggle"></i> -->
<!-- <svg-icon
iconClass="nested"
class="el-icon-s-fold"
:class="{ 'is-active': $store.state.app.sidebar.opened }"
@click="toggleClick"></svg-icon>
:class="{ 'open': $store.state.app.sidebar.opened }"
@click="toggle"></svg-icon> -->
<div class="toggle" :class="{ open: $store.state.app.sidebar.opened }" @click="toggle">
<div class="toggle-line"></div>
<div class="toggle-line line-middle"></div>
<div class="toggle-line"></div>
</div>
</template>
<script>
......@@ -20,7 +25,7 @@ export default {
// },
// },
methods: {
toggleClick() {
toggle() {
this.$store.dispatch('app/toggleSideBar')
},
},
......@@ -28,10 +33,37 @@ export default {
</script>
<style lang="scss" scoped>
.el-icon-s-fold {
font-size: 20px;
&.is-active {
transform: rotate(180deg);
// .el-icon-s-fold {
// font-size: 20px;
// &.open {
// transform: rotate(180deg);
// }
// }
.toggle {
position: relative;
cursor: pointer;
.toggle-line {
position: relative;
left: 0;
width: 18px;
height: 2px;
background: #4e5969;
border-radius: 8px;
transition: all 0.3s;
}
.line-middle {
position: relative;
margin: 4px 0;
left: -5px;
}
&.open {
.toggle-line {
// transform: rotateY(360deg);
left: 3px;
}
.line-middle {
left: 8px;
}
}
}
</style>
......@@ -120,7 +120,7 @@ export default {
}
// background-color: $subMenuBg !important;
&:hover {
color: $blue;
color: var(--color);
background-color: transparent !important;
}
}
......@@ -136,7 +136,7 @@ export default {
}
// 当前激活菜单
.el-menu-item.is-active {
background: linear-gradient(to right, $blue 0%, $light-blue 100%);
background: linear-gradient(to right, var(--color) 0%, $light-blue 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
border-radius: 8px;
color: #fff !important;
......@@ -145,7 +145,7 @@ export default {
// 当前激活菜单所属上级菜单标题目录
.is-active > .el-submenu__title {
color: $blue !important;
color: var(--color) !important;
}
}
......
......@@ -105,11 +105,11 @@ export default {
top: 0;
}
.top-wrap {
height: 64px;
height: var(--top-nav-heght);
}
.main-wrap {
height: calc(100vh - 64px);
height: calc(100vh - var(--top-nav-heght));
background: #edf2f9;
.main {
height: 100%;
......
......@@ -220,8 +220,8 @@
cursor: default;
}
&.is-checked .el-radio__inner {
background-color: $blue;
border-color: $blue;
background-color: var(--color);
border-color: var(--color);
cursor: default;
&::after {
......@@ -237,9 +237,9 @@
}
.diy-theme {
.el-date-table td.in-range div {
// background-color: #e6f8ef;
}
// .el-date-table td.in-range div {
// background-color: #e6f8ef;
// }
// .el-input__inner,
// .tag-input {
// background-color: transparent;
......@@ -247,6 +247,7 @@
// .tag-input {
// }
// 分页
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li {
......@@ -257,8 +258,8 @@
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: transparent;
border-color: $blue;
color: $blue;
border-color: var(--color);
color: var(--color);
}
// to fixed https://github.com/ElemeFE/element/issues/2461
// .el-dialog {
......@@ -268,6 +269,7 @@
// margin: 0 auto;
// }
// 弹窗
.el-dialog {
display: flex;
flex-direction: column;
......@@ -297,15 +299,83 @@
color: #86909c;
}
}
// 按钮
.el-button--default {
border-color: $blue;
color: $blue;
border-color: var(--color);
color: var(--color);
}
.el-button--default.el-button--primary {
color: #fff;
}
}
.el-button--small:not(.el-button--text) {
padding: 9px 19px;
border-radius: var(--border-radius-small);
.el-button--small:not(.el-button--text) {
padding: 9px 19px;
border-radius: var(--border-radius-small);
}
// 步骤条
.el-step__icon {
width: 40px;
height: 40px;
border: 0;
}
.el-step.is-center .el-step__main {
position: absolute;
top: 1px;
left: calc(50% + 30px);
}
.el-step.is-horizontal .el-step__line {
height: 1px;
top: 20px;
left: 120px;
right: 10px;
background: #e8e9ed;
}
.el-step.is-center .el-step__line {
top: 20px;
left: calc(50% + 30px + 80px);
right: calc(-50% + 30px);
}
.el-step__head.is-success .el-step__icon.is-text {
background: #c7eddb; // 图标背景
}
.el-step__title.is-process {
color: #86909c; // 标题颜色
}
.el-step__head.is-process {
color: #fff; // 数字颜色
.el-step__icon.is-text {
background: var(--color);
}
}
.el-step__head.is-wait {
color: #86909c;
.el-step__icon.is-text {
background: #e8e9ed;
}
}
// 抽屉
.el-drawer.rtl {
top: var(--top-nav-heght);
height: auto;
box-shadow: -4px 0px 40px 0px rgba(29, 33, 41, 0.1);
border-radius: 16px 0px 0px 0px;
}
// 标签页选中高亮线
.el-tabs__active-bar {
display: none;
}
.el-tabs__item.is-active::after {
content: '';
display: inline-block;
position: absolute;
width: 40px;
height: 2px;
bottom: 0;
left: calc(50% - 10px);
transform: translateX(-50%);
background: var(--color);
}
}
......@@ -4,7 +4,7 @@
**/
/* theme color */
$--color-primary: $blue;
$--color-primary: #07c160;
$--color-success: #07c160;
$--color-warning: #faad14;
$--color-danger: #eb5e12;
......
......@@ -59,7 +59,7 @@ a:hover {
}
a:hover {
// 提高hover权重,其他地方的ahover如需改变,也使用important
color: $blue !important;
color: var(--color) !important;
}
div:focus {
......@@ -363,7 +363,7 @@ aside {
margin-left: 5px;
}
.el-icon-edit-outline {
color: $blue;
color: var(--color);
}
.el-icon-circle-plus-outline {
color: $green;
......@@ -386,7 +386,7 @@ aside {
color: #333;
padding: 0 20px;
background: #fff;
border-radius: 4px 4px 0 0;
border-radius: var(--border-radius-big) var(--border-radius-big) 0 0;
.desc {
font-weight: 400;
margin-left: 5px;
......@@ -394,7 +394,7 @@ aside {
color: #999;
}
& + .g-card {
border-radius: 0 0 4px 4px;
border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
margin-top: 0;
}
}
......@@ -403,14 +403,14 @@ aside {
@extend .g-title;
font-size: 16px;
& + .g-card {
border-radius: 0 0 4px 4px;
border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
margin-top: 0;
}
}
// 卡片样式
&card {
margin-top: 10px;
margin-top: 16px;
border-radius: var(--border-radius-big);
background: #fff;
overflow: auto;
......
......@@ -8,9 +8,9 @@
--border-radius: 8px;
--border-radius-small: 4px;
--border-radius-big: 16px;
--top-nav-heght: 64px;
}
// base color
$blue: #07c160;
$light-blue: #90de45;
$red: #eb5e12;
$pink: #eb5e12;
......@@ -26,7 +26,7 @@ $sub-text-color: #999;
}
// sidebar
// $menuText: #333;
// $menuActiveText: $blue;
// $menuActiveText: var(--color);
// $subMenuActiveText: #333; // https://github.com/ElemeFE/element/issues/12951
// $menuBg: #fff;
......@@ -56,7 +56,7 @@ $border-radius: 4px;
}
.bglg {
background: linear-gradient(to left, $blue 0%, $light-blue 100%);
background: linear-gradient(to left, var(--color) 0%, $light-blue 100%);
box-shadow: 0px 13px 16px 0px rgba(7, 168, 85, 0.2);
}
.border-radius-small {
......
<template>
<div>
<div class="tab">
<el-steps style="margin-top:10px;" :active="active" align-center>
<div class="g-card g-pad20">
<el-steps :active="active" align-center>
<el-step title="活码设置"></el-step>
<el-step title="生成活码"></el-step>
</el-steps>
......@@ -18,86 +17,85 @@
</div>
<div class="ac">
<template v-if="active === 0">
<el-button @click="$router.back()"> 取消 </el-button>
<el-button type="primary" v-loading="loading" :disabled="loading" @click="handleGroupCode"> 下一步 </el-button>
<el-button @click="$router.back()">取消</el-button>
<el-button type="primary" v-loading="loading" :disabled="loading" @click="handleGroupCode">下一步</el-button>
</template>
<template v-else>
<!-- <el-button @click="prev"> 上一步 </el-button> -->
<el-button type="primary" @click="finished"> 完成 </el-button>
<el-button type="primary" @click="finished">完成</el-button>
</template>
</div>
</div>
</div>
</template>
<script>
import BaseInfo from './baseInfo'
import GroupCode from './groupCode'
import BaseInfo from './baseInfo'
import GroupCode from './groupCode'
export default {
components: {
BaseInfo,
GroupCode
},
data () {
return {
loading: false,
// 当前群活码ID
groupCodeId: null,
// 当前激活的步骤
active: 0,
baseInfo: {}
export default {
components: {
BaseInfo,
GroupCode,
},
data() {
return {
loading: false,
// 当前群活码ID
groupCodeId: null,
// 当前激活的步骤
active: 0,
baseInfo: {},
}
},
created() {
if (this.$route.query.groupCodeId) this.groupCodeId = this.$route.query.groupCodeId
},
methods: {
// 下一步
next(groupCodeId, info) {
this.loading = false
if (groupCodeId || info) {
if (groupCodeId) this.groupCodeId = groupCodeId
this.baseInfo = info
this.active += 1
if (this.active > 3) this.active = 1
}
},
created () {
if (this.$route.query.groupCodeId) this.groupCodeId = this.$route.query.groupCodeId
// 上一步
prev() {
this.active -= 1
if (this.active < 0) this.active = 0
},
methods: {
// 下一步
next (groupCodeId, info) {
this.loading = false
if (groupCodeId || info) {
if (groupCodeId) this.groupCodeId = groupCodeId
this.baseInfo = info
this.active += 1
if (this.active > 3) this.active = 1
}
},
// 上一步
prev () {
this.active -= 1
if (this.active < 0) this.active = 0
},
// 完成
finished () {
this.next()
this.$router.back()
},
// 新增或更新群活码
handleGroupCode () {
if (!this.$refs.baseInfo.handleValidateFn()) return
this.loading = true
this.$refs.baseInfo.submit()
},
// 管理实际群活码
handleRealCode () {
this.next()
}
}
}
// 完成
finished() {
this.next()
this.$router.back()
},
// 新增或更新群活码
handleGroupCode() {
if (!this.$refs.baseInfo.handleValidateFn()) return
this.loading = true
this.$refs.baseInfo.submit()
},
// 管理实际群活码
handleRealCode() {
this.next()
},
},
}
</script>
<style scoped lang="scss">
.tab {
height: 78px;
background: #fff;
border-top: 1px solid #f1f1f1;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.page-content {
padding-top: 50px;
padding-bottom: 20px;
}
.tab {
height: 78px;
background: #fff;
border-top: 1px solid #f1f1f1;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.page-content {
padding-top: 50px;
padding-bottom: 20px;
}
</style>
......@@ -197,7 +197,7 @@ export default {
<style lang="scss" scoped>
.el-icon-copy-document {
&:hover {
color: $blue;
color: var(--color);
}
}
</style>
......@@ -311,7 +311,7 @@ export default {
<style lang="scss" scoped>
.theme {
color: $blue;
color: var(--color);
}
.list-wrap {
display: flex;
......
......@@ -276,7 +276,7 @@ export default {
<style lang="scss" scoped>
.theme {
color: $blue;
color: var(--color);
}
::v-deep.detail-form {
.el-input.is-disabled .el-input__inner,
......@@ -300,8 +300,8 @@ export default {
cursor: default;
}
&.is-checked .el-radio__inner {
background-color: $blue;
border-color: $blue;
background-color: var(--color);
border-color: var(--color);
cursor: default;
&::after {
......
......@@ -198,7 +198,7 @@ export default {
<style lang="scss" scoped>
.theme {
color: $blue;
color: var(--color);
}
.list-wrap {
display: flex;
......
......@@ -9,16 +9,8 @@
<h3 class="title">{{ lwConfig.SYSTEM_NAME }}</h3>
<template v-if="loginType === 'account'">
<el-form-item prop="username">
<el-input
v-model="loginForm.username"
type="text"
auto-complete="off"
placeholder="账号">
<svg-icon
style="height: 33px"
slot="prefix"
icon-class="user"
class="el-input__icon input-icon" />
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
<svg-icon style="height: 33px" slot="prefix" icon-class="user" class="el-input__icon input-icon" />
</el-input>
</el-form-item>
<el-form-item prop="password">
......@@ -28,11 +20,7 @@
auto-complete="off"
placeholder="密码"
@keyup.enter.native="handleLogin">
<svg-icon
style="height: 33px"
slot="prefix"
icon-class="password"
class="el-input__icon input-icon" />
<svg-icon style="height: 33px" slot="prefix" icon-class="password" class="el-input__icon input-icon" />
</el-input>
</el-form-item>
<el-form-item prop="code">
......@@ -160,14 +148,10 @@ export default {
}
})
window.lwConfig.IS_PUBLISH_DIALOG &&
this.$alert(
'LinkWeChat V2.5 已正式发布,遇到使用上的问题欢迎提交 Issue,我们将光速修复。',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
},
)
this.$alert('LinkWeChat V2.5 已正式发布,遇到使用上的问题欢迎提交 Issue,我们将光速修复。', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
})
},
methods: {
changeLoginType(type) {
......@@ -346,7 +330,7 @@ export default {
z-index: 20;
}
.link {
color: $blue;
color: var(--color);
font-size: 14px;
float: right;
padding-right: 25px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!