Commit 782f4b83 by xinla

--no commit message

1 parent 28f0b8e3
...@@ -172,6 +172,19 @@ export default { ...@@ -172,6 +172,19 @@ export default {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.angle {
content: '';
display: inline-block;
position: absolute;
top: 8px;
width: 8px;
height: 8px;
background: #fff;
transform: rotate(45deg);
border: 1px solid #e1edfc;
z-index: 888;
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
}
.message { .message {
max-width: 50%; max-width: 50%;
background-color: #fff; background-color: #fff;
...@@ -179,57 +192,28 @@ export default { ...@@ -179,57 +192,28 @@ export default {
padding: 10px; padding: 10px;
line-height: 14px; line-height: 14px;
border-radius: 5px; border-radius: 5px;
background: #fff;
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1); box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
border: 1px solid #e1edfc; border: 1px solid #e1edfc;
color: #333; color: #333;
display: inline-block; display: inline-block;
word-break: break-all; word-break: break-all;
}
.message {
margin-left: 10px; margin-left: 10px;
&::before { &::before {
content: ''; @extend .angle;
display: inline-block;
position: absolute;
left: -5px; left: -5px;
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1); border-width: 0 0 1px 1px;
border-width: 5px;
border-left: 0;
width: 0;
border-style: solid;
border-color: transparent;
border-right-color: #fff;
top: 8px;
z-index: 888;
} }
} }
.message-right { .message-right {
max-width: 50%; @extend .message;
position: relative;
background-color: #fff;
padding: 10px;
line-height: 14px;
border-radius: 5px;
// background: var(--color);
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1);
border: 1px solid #e1edfc;
color: #333;
display: inline-block;
word-break: break-all;
margin-right: 10px; margin-right: 10px;
&::before { &::before {
content: ''; @extend .angle;
display: inline-block;
position: absolute;
right: -5px; right: -5px;
box-shadow: 0px 2px 6px 0px rgba(60, 136, 240, 0.1); border-width: 1px 1px 0 0;
border-width: 5px;
border-right: 0;
width: 0;
border-style: solid;
border-color: transparent;
border-left-color: #fff;
top: 8px;
z-index: 888;
} }
} }
.msgtypefile { .msgtypefile {
......
...@@ -76,7 +76,7 @@ window.lwConfig = Object.assign(init, env, common, lwConfig, project) ...@@ -76,7 +76,7 @@ window.lwConfig = Object.assign(init, env, common, lwConfig, project)
// let target = e.target // let target = e.target
// let src = target.attributes.getNamedItem('src').value // let src = target.attributes.getNamedItem('src').value
// if (target.tagName.toUpperCase() === 'IMG' && src && !src.includes('http')) { // if (target.tagName.toUpperCase() === 'IMG' && src && !src.includes('http')) {
// target.src = window.window.lwConfig.BASE_API + src // target.src = window.lwConfig.BASE_API + src
// } // }
// }, // },
// true // true
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
} }
} }
.el-input.el-input--small { // .el-input.el-input--small {
line-height: 30px; // line-height: 30px;
} // }
.--card { .--card {
padding: 20px 20px; padding: 20px 20px;
...@@ -79,16 +79,16 @@ ...@@ -79,16 +79,16 @@
} }
} }
.status-col { // .status-col {
.cell { // .cell {
padding: 0 10px; // padding: 0 10px;
text-align: center; // text-align: center;
.el-tag { // .el-tag {
margin-right: 0px; // margin-right: 0px;
} // }
} // }
} // }
// .el-dialog:not(.is-fullscreen) { // .el-dialog:not(.is-fullscreen) {
// margin-top: 6vh !important; // margin-top: 6vh !important;
...@@ -123,51 +123,32 @@ ...@@ -123,51 +123,32 @@
box-sizing: content-box; box-sizing: content-box;
} }
.el-table {
font-size: 13px;
.el-table__header-wrapper,
.el-table__fixed-header-wrapper {
th {
word-break: break-word;
// background-color: #f8f8f9;
color: #515a6e;
height: 50px;
font-size: 14px;
}
}
.el-table__body-wrapper tr {
height: 55px;
}
}
.el-tree-node__content > .el-checkbox { .el-tree-node__content > .el-checkbox {
margin-right: 8px; margin-right: 8px;
} }
// 卡片
.el-card__header { .el-card__header {
padding: 14px 15px 7px; padding: 14px 15px 7px;
min-height: 40px; min-height: 40px;
} }
.el-card__body { .el-card__body {
padding: 15px 20px 20px 20px; padding: 15px 20px 20px 20px;
} }
/* button color */ /* 定义 type 为 cyan 的按钮 */
.el-button--cyan.is-active, .el-button--cyan.is-active,
.el-button--cyan:active { .el-button--cyan:active {
background: #20b2aa; background: #20b2aa;
border-color: #20b2aa; border-color: #20b2aa;
color: #ffffff; color: #ffffff;
} }
.el-button--cyan:focus, .el-button--cyan:focus,
.el-button--cyan:hover { .el-button--cyan:hover {
background: #48d1cc; background: #48d1cc;
border-color: #48d1cc; border-color: #48d1cc;
color: #ffffff; color: #ffffff;
} }
.el-button--cyan { .el-button--cyan {
background-color: #20b2aa; background-color: #20b2aa;
border-color: #20b2aa; border-color: #20b2aa;
...@@ -196,70 +177,70 @@ ...@@ -196,70 +177,70 @@
} }
} }
.app-main.page { // .app-main.page {
// .el-table { // .el-table {
// background-color: transparent; // background-color: transparent;
// &::before { // &::before {
// content: none; // content: none;
// } // }
// .el-table__header-wrapper th, // .el-table__header-wrapper th,
// .el-table__fixed-header-wrapper th, // .el-table__fixed-header-wrapper th,
// .el-table__header-wrapper tr { // .el-table__header-wrapper tr {
// background-color: transparent !important; // background-color: transparent !important;
// height: 40px; // height: 40px;
// } // }
// .el-table__body-wrapper, // .el-table__body-wrapper,
// .el-table__fixed-body-wrapper { // .el-table__fixed-body-wrapper {
// tr { // tr {
// box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35); // box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
// height: 50px; // height: 50px;
// } // }
// } // }
// // th.is-leaf, // // th.is-leaf,
// // td { // // td {
// // border-bottom: 0; // // border-bottom: 0;
// // } // // }
// tr td { // tr td {
// &:first-child { // &:first-child {
// border-radius: 4px 0 0 4px; // border-radius: 4px 0 0 4px;
// border-left: 1px solid #ddd; // border-left: 1px solid #ddd;
// } // }
// &:last-child { // &:last-child {
// border-radius: 0 4px 4px 0; // border-radius: 0 4px 4px 0;
// border-right: 1px solid #ddd; // border-right: 1px solid #ddd;
// } // }
// } // }
// .el-table__body { // .el-table__body {
// border-spacing: 0 10px; // border-spacing: 0 10px;
// } // }
// .el-table__fixed, // .el-table__fixed,
// .el-table__fixed-right { // .el-table__fixed-right {
// &::before { // &::before {
// content: none; // content: none;
// } // }
// } // }
// .el-table__fixed .el-table__fixed-body-wrapper { // .el-table__fixed .el-table__fixed-body-wrapper {
// tr td:last-child { // tr td:last-child {
// border-right: inherit; // border-right: inherit;
// } // }
// } // }
// .el-table__fixed-right .el-table__fixed-body-wrapper { // .el-table__fixed-right .el-table__fixed-body-wrapper {
// tr td:first-child { // tr td:first-child {
// border-left: inherit; // border-left: inherit;
// } // }
// } // }
// } // }
} // }
.el-form:not(.el-form--inline) { .el-form:not(.el-form--inline) {
.el-form-item { // .el-form-item {
// margin: 0 !important; // // margin: 0 !important;
// padding: 10px 0; // // padding: 10px 0;
transition: all 0.2s; // transition: all 0.2s;
&:last-child { // // &:last-child {
margin-bottom: 0; // // margin-bottom: 0;
} // // }
} // }
// 统一页面表单输入框宽度 el-form-item__content // 统一页面表单输入框宽度 el-form-item__content
.el-input, .el-input,
...@@ -275,7 +256,6 @@ ...@@ -275,7 +256,6 @@
width: 100%; width: 100%;
} }
} }
// 重置el-form-item hover样式 // 重置el-form-item hover样式
.no-hover-form .el-form-item { .no-hover-form .el-form-item {
margin-bottom: 20px !important; margin-bottom: 20px !important;
...@@ -285,10 +265,6 @@ ...@@ -285,10 +265,6 @@
border-radius: 0; border-radius: 0;
} }
} }
.el-input.is-disabled .el-input__inner,
.el-image__error {
background-color: #f5f7fa;
}
// 表单禁用详情数据展示 // 表单禁用详情数据展示
.form-detail { .form-detail {
.el-input.is-disabled .el-input__inner, .el-input.is-disabled .el-input__inner,
...@@ -327,6 +303,11 @@ ...@@ -327,6 +303,11 @@
display: none; display: none;
} }
} }
.el-input.is-disabled .el-input__inner,
.el-image__error {
background-color: #f5f7fa;
}
.el-tabs__nav-wrap { .el-tabs__nav-wrap {
overflow: initial; overflow: initial;
} }
...@@ -485,6 +466,7 @@ ...@@ -485,6 +466,7 @@
// border: 20px solid #fff; border-radius: 20px; background: #fff // border: 20px solid #fff; border-radius: 20px; background: #fff
// } // }
.el-table { .el-table {
font-size: 14px;
background-color: transparent; background-color: transparent;
&:not(:first-child) { &:not(:first-child) {
margin-top: 16px; margin-top: 16px;
...@@ -496,6 +478,8 @@ ...@@ -496,6 +478,8 @@
.el-table__header-wrapper th, .el-table__header-wrapper th,
.el-table__fixed-header-wrapper th, .el-table__fixed-header-wrapper th,
.el-table__header-wrapper tr { .el-table__header-wrapper tr {
word-break: break-word;
font-size: 14px;
background-color: #f5f7fa; background-color: #f5f7fa;
height: 40px; height: 40px;
color: var(--font-black); color: var(--font-black);
...@@ -567,6 +551,7 @@ ...@@ -567,6 +551,7 @@
background-color: #f8fafc; background-color: #f8fafc;
} }
// 滚动条宽度
.el-scrollbar__bar.is-vertical { .el-scrollbar__bar.is-vertical {
width: 5px; width: 5px;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* 通用js方法封装处理,挂载到 Vue.prototype * 通用js方法封装处理,挂载到 Vue.prototype
*/ */
const baseURL = window.lwConfig.services.system const baseURL = window.lwConfig.BASE_API
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import axios from 'axios' import axios from 'axios'
......
...@@ -2,14 +2,10 @@ ...@@ -2,14 +2,10 @@
<div> <div>
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" class="top-search"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" class="top-search">
<el-form-item label="菜单名称" prop="menuName"> <el-form-item label="菜单名称" prop="menuName">
<el-input <el-input v-model="queryParams.menuName" placeholder="请输入" clearable @keyup.enter.native="handleQuery" />
v-model="queryParams.menuName"
placeholder="请输入菜单名称"
clearable
@keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="status"> <el-form-item label="菜单状态" prop="status">
<el-select v-model="queryParams.status" placeholder="菜单状态" clearable> <el-select v-model="queryParams.status" placeholder="请选择" clearable>
<el-option <el-option
v-for="dict in statusOptions" v-for="dict in statusOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -35,11 +31,11 @@ ...@@ -35,11 +31,11 @@
row-key="menuId" row-key="menuId"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> :tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
<el-table-column prop="menuName" label="菜单名称" :show-overflow-tooltip="true" width="160"></el-table-column> <el-table-column prop="menuName" label="菜单名称" :show-overflow-tooltip="true" width="160"></el-table-column>
<el-table-column prop="icon" label="图标" align="center" width="100"> <!-- <el-table-column prop="icon" label="图标" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<svg-icon :icon-class="scope.row.icon" /> <svg-icon :icon-class="scope.row.icon" />
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column prop="orderNum" label="排序" width="60"></el-table-column> <el-table-column prop="orderNum" label="排序" width="60"></el-table-column>
<el-table-column prop="perms" label="权限标识" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="perms" label="权限标识" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true"></el-table-column>
...@@ -86,7 +82,13 @@ ...@@ -86,7 +82,13 @@
<el-form-item v-if="form.menuType != 'F'" label="菜单图标"> <el-form-item v-if="form.menuType != 'F'" label="菜单图标">
<el-popover placement="bottom-start" width="460" trigger="click" @show="$refs['iconSelect'].reset()"> <el-popover placement="bottom-start" width="460" trigger="click" @show="$refs['iconSelect'].reset()">
<IconSelect ref="iconSelect" @selected="selected" /> <IconSelect ref="iconSelect" @selected="selected" />
<el-input slot="reference" v-model="form.icon" placeholder="点击选择图标" readonly> <el-select
slot="reference"
v-model="form.icon"
remote
placeholder="点击选择图标"
clearable
@clear="form.icon = '#'">
<svg-icon <svg-icon
v-if="form.icon" v-if="form.icon"
slot="prefix" slot="prefix"
...@@ -94,7 +96,7 @@ ...@@ -94,7 +96,7 @@
class="el-input__icon" class="el-input__icon"
style="height: 32px; width: 16px" /> style="height: 32px; width: 16px" />
<i v-else slot="prefix" class="el-icon-search el-input__icon" /> <i v-else slot="prefix" class="el-icon-search el-input__icon" />
</el-input> </el-select>
</el-popover> </el-popover>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -300,7 +302,7 @@ export default { ...@@ -300,7 +302,7 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd(row) { handleAdd(row) {
this.reset() this.reset()
this.getTreeselect() // this.getTreeselect()
if (row != null && row.menuId) { if (row != null && row.menuId) {
this.form.parentId = row.menuId this.form.parentId = row.menuId
} else { } else {
...@@ -312,7 +314,7 @@ export default { ...@@ -312,7 +314,7 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset() this.reset()
this.getTreeselect() // this.getTreeselect()
getMenu(row.menuId).then((response) => { getMenu(row.menuId).then((response) => {
this.form = response.data this.form = response.data
this.open = true this.open = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!