Commit 5fdc7f26 authored by 王飞龙's avatar 王飞龙

Merge remote-tracking branch 'origin/master'

parents d6a40082 1691b4c8
...@@ -14,18 +14,12 @@ ...@@ -14,18 +14,12 @@
.el-upload__input { .el-upload__input {
display: none; display: none;
} }
/** 下拉框选中样式*/ /** 下拉框选中样式*/
.el-select .el-input.is-focus .el-input__inner{ .el-select .el-input.is-focus .el-input__inner {
border: 1px solid #5FB54B; border: 1px solid #5FB54B;
} }
.el-select-dropdown__item.selected{
background: #F6FCF5;
border-radius: 4px 4px 0px 0px;
font-size: 14px;
font-family: Microsoft YaHei-Bold, Microsoft YaHei;
font-weight: bold;
color: #5FB54B;
}
/** 级联选择 边框选中样式*/ /** 级联选择 边框选中样式*/
.el-cascader .el-input.is-focus .el-input__inner { .el-cascader .el-input.is-focus .el-input__inner {
border: 1px solid #5FB54B; border: 1px solid #5FB54B;
...@@ -37,31 +31,46 @@ ...@@ -37,31 +31,46 @@
color: #5FB54B; color: #5FB54B;
} }
} }
.el-input--small .el-input__icon{
.el-select-dropdown__item.selected {
background: #F6FCF5;
border-radius: 4px 4px 0px 0px;
font-size: 14px;
font-family: Microsoft YaHei-Bold, Microsoft YaHei;
font-weight: bold;
color: #5FB54B;
}
.el-input--small .el-input__icon {
color: #AFAFAF; color: #AFAFAF;
} }
.el-form-item__label{
.el-form-item__label {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #707070; color: #707070;
} }
.el-form-item.is-error .el-input__inner{
.el-form-item.is-error .el-input__inner {
border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px;
opacity: 1; opacity: 1;
border: 1px solid #DB4747!important; border: 1px solid #DB4747 !important;
} }
.el-form-item__error{
.el-form-item__error {
font-size: 12px; font-size: 12px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #DB4747; color: #DB4747;
} }
.el-month-table td .cell{
.el-month-table td .cell {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
&:hover { &:hover {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Bold, Microsoft YaHei; font-family: Microsoft YaHei-Bold, Microsoft YaHei;
...@@ -69,11 +78,13 @@ ...@@ -69,11 +78,13 @@
color: #5FB54B; color: #5FB54B;
} }
} }
.el-date-picker__header-label{
.el-date-picker__header-label {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
&:hover { &:hover {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Bold, Microsoft YaHei; font-family: Microsoft YaHei-Bold, Microsoft YaHei;
...@@ -81,41 +92,50 @@ ...@@ -81,41 +92,50 @@
color: #5FB54B; color: #5FB54B;
} }
} }
.el-picker-panel__icon-btn{
.el-picker-panel__icon-btn {
color: #AFAFAF; color: #AFAFAF;
&:hover { &:hover {
color: #5FB54B; color: #5FB54B;
} }
} }
.el-month-table td.current:not(.disabled) .cell{
.el-month-table td.current:not(.disabled) .cell {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Bold, Microsoft YaHei; font-family: Microsoft YaHei-Bold, Microsoft YaHei;
font-weight: bold; font-weight: bold;
color: #5FB54B; color: #5FB54B;
} }
.el-month-table td.today .cell{
.el-month-table td.today .cell {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Bold, Microsoft YaHei; font-family: Microsoft YaHei-Bold, Microsoft YaHei;
font-weight: bold; font-weight: bold;
color: #5FB54B; color: #5FB54B;
} }
.el-form-item--small.el-form-item{
margin-right: 20px!important; .el-form-item--small.el-form-item {
margin-right: 20px !important;
} }
.el-input--small{
width: 220px!important; .el-input--small {
width: 220px !important;
} }
input::-webkit-input-placeholder { input::-webkit-input-placeholder {
font-size: 14px!important; font-size: 14px !important;
font-family: Microsoft YaHei-Regular, Microsoft YaHei!important; font-family: Microsoft YaHei-Regular, Microsoft YaHei !important;
font-weight: 400!important; font-weight: 400 !important;
color: #AFAFAF!important; color: #AFAFAF !important;
} }
.el-select-dropdown__item{
.el-select-dropdown__item {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
&:hover { &:hover {
background: #F6FCF5; background: #F6FCF5;
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
...@@ -125,13 +145,16 @@ input::-webkit-input-placeholder { ...@@ -125,13 +145,16 @@ input::-webkit-input-placeholder {
color: #5FB54B; color: #5FB54B;
} }
} }
.el-select .el-input__inner:focus{
border: 1px solid #5FB54B!important; .el-select .el-input__inner:focus {
border: 1px solid #5FB54B !important;
} }
.el-input__inner:focus{
border: 1px solid #5FB54B!important; .el-input__inner:focus {
border: 1px solid #5FB54B !important;
} }
.el-input--small .el-input__inner{
.el-input--small .el-input__inner {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
...@@ -141,7 +164,8 @@ input::-webkit-input-placeholder { ...@@ -141,7 +164,8 @@ input::-webkit-input-placeholder {
opacity: 1; opacity: 1;
border: 1px solid #E5E5E5; border: 1px solid #E5E5E5;
} }
.el-input--medium .el-input__inner{
.el-input--medium .el-input__inner {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
...@@ -151,75 +175,90 @@ input::-webkit-input-placeholder { ...@@ -151,75 +175,90 @@ input::-webkit-input-placeholder {
opacity: 1; opacity: 1;
border: 1px solid #E5E5E5; border: 1px solid #E5E5E5;
} }
.el-select .el-input .el-select__caret{
.el-select .el-input .el-select__caret {
color: #AFAFAF; color: #AFAFAF;
} }
/** 删除弹出层*/ /** 删除弹出层*/
.el-message-box{ .el-message-box {
width: 399px; width: 399px;
min-height: 195px; min-height: 195px;
border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px;
border: none; border: none;
padding-bottom: 0!important; padding-bottom: 0 !important;
.el-message-box__header{
.el-message-box__header {
background: #5FB54B; background: #5FB54B;
height: 44px; height: 44px;
.el-message-box__title{
.el-message-box__title {
font-size: 16px; font-size: 16px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
} }
} }
.el-message-box__content{
.el-message-box__content {
padding: 37px 20px; padding: 37px 20px;
} }
.el-message-box__close{
.el-message-box__close {
color: #FFFFFF; color: #FFFFFF;
font-size: 14px; font-size: 14px;
} }
.el-message-box__status.el-icon-warning{
.el-message-box__status.el-icon-warning {
color: #FF9D4E; color: #FF9D4E;
font-size: 18px!important; font-size: 18px !important;
} }
.el-message-box__message{
padding-left: 30px!important; .el-message-box__message {
padding-left: 30px !important;
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
} }
.el-message-box__btns{
.el-message-box__btns {
padding: 0 20px 20px 0; padding: 0 20px 20px 0;
} }
} }
/** dialog*/ /** dialog*/
.el-dialog{ .el-dialog {
border-radius: 4px 4px 4px 4px!important; border-radius: 4px 4px 4px 4px !important;
.el-dialog__header{
.el-dialog__header {
height: 44px; height: 44px;
padding: 12px 20px; padding: 12px 20px;
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
background: #5FB54B; background: #5FB54B;
.el-dialog__title{
.el-dialog__title {
font-size: 16px; font-size: 16px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
line-height: 20px; line-height: 20px;
} }
.el-dialog__headerbtn .el-dialog__close{
.el-dialog__headerbtn .el-dialog__close {
color: #FFFFFF; color: #FFFFFF;
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
} }
.el-dialog__headerbtn{
top: 14px!important; .el-dialog__headerbtn {
top: 14px !important;
} }
} }
.el-dialog__body{
.el-dialog__body {
//padding: 30px 25px 20px 25px; //padding: 30px 25px 20px 25px;
.dialog-footer{ .dialog-footer {
//padding-right: 20px; //padding-right: 20px;
padding-top: 30px; padding-top: 30px;
display: flex; display: flex;
...@@ -227,6 +266,7 @@ input::-webkit-input-placeholder { ...@@ -227,6 +266,7 @@ input::-webkit-input-placeholder {
} }
} }
} }
.cell { .cell {
.el-tag { .el-tag {
margin-right: 0px; margin-right: 0px;
...@@ -302,62 +342,77 @@ input::-webkit-input-placeholder { ...@@ -302,62 +342,77 @@ input::-webkit-input-placeholder {
.el-submenu__icon-arrow { .el-submenu__icon-arrow {
display: none; display: none;
} }
// 日期选择器的样式 // 日期选择器的样式
.el-range-editor.el-input__inner{ .el-range-editor.el-input__inner {
width: 220px; width: 220px;
height: 32px; height: 32px;
background: #ffffff; background: #ffffff;
border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px;
} }
.el-range-editor.is-active{
.el-range-editor.is-active {
border-color: #5FB54B; border-color: #5FB54B;
&:hover{
&:hover {
border-color: #5FB54B; border-color: #5FB54B;
} }
} }
.el-date-table td.start-date span, .el-date-table td.end-date span{
.el-date-table td.start-date span, .el-date-table td.end-date span {
background-color: #5FB54B !important; background-color: #5FB54B !important;
&:focus { &:focus {
color: #ffffff; color: #ffffff;
} }
&:hover{
&:hover {
color: #ffffff; color: #ffffff;
} }
} }
.el-date-table td.today span{
.el-date-table td.today span {
color: #5FB54B; color: #5FB54B;
} }
.el-date-table td div{
&:hover{ .el-date-table td div {
color:#5FB54B; &:hover {
color: #5FB54B;
} }
} }
.el-date-table td span { .el-date-table td span {
&:focus { &:focus {
color: #5FB54B; color: #5FB54B;
} }
&:hover{
&:hover {
color: #5FB54B; color: #5FB54B;
} }
} }
// 日期选择器的背景 // 日期选择器的背景
.el-date-table td.in-range div, .el-date-table td.in-range div,
.el-date-table td.in-range div:hover, .el-date-table td.in-range div:hover,
.el-date-table.is-week-mode .el-date-table__row.current div, .el-date-table.is-week-mode .el-date-table__row.current div,
.el-date-table.is-week-mode .el-date-table__row:hover di{ .el-date-table.is-week-mode .el-date-table__row:hover di {
background-color: #F6FCF5; background-color: #F6FCF5;
} }
// 列表前的多选框的样式 // 列表前的多选框的样式
.el-checkbox__input.is-checked .el-checkbox__inner{ .el-checkbox__input.is-checked .el-checkbox__inner {
background-color: #5FB54B; background-color: #5FB54B;
border-color: #5FB54B; border-color: #5FB54B;
} }
.el-checkbox__inner:hover{
.el-checkbox__inner:hover {
border-color: #5FB54B; border-color: #5FB54B;
} }
.el-checkbox__input.is-focus .el-checkbox__inner { .el-checkbox__input.is-focus .el-checkbox__inner {
border-color: #5FB54B; border-color: #5FB54B;
} }
.el-checkbox__input.is-indeterminate .el-checkbox__inner { .el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: #5FB54B; background-color: #5FB54B;
border-color: #5FB54B; border-color: #5FB54B;
...@@ -371,31 +426,21 @@ input::-webkit-input-placeholder { ...@@ -371,31 +426,21 @@ input::-webkit-input-placeholder {
// 分頁 // 分頁
.el-pagination.is-background .el-pager li:not(.disabled).active { .el-pagination.is-background .el-pager li:not(.disabled).active {
background: #F2F9F0; background-color: #5FB54B;
opacity: 1; color: #FFFFFF;
border: 1px solid #5FB54B;
color: #5FB54B;
}
.el-pagination.is-background .btn-prev, .el-pagination.is-background .btn-next, .el-pagination.is-background .el-pager li{
font-size: 13px;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #666666;
background: #F4F4F4;
border-radius: 4px 4px 4px 4px;
}
.el-pagination.is-background .btn-prev:hover, .el-pagination.is-background .btn-next:hover, .el-pagination.is-background .el-pager li:not(.disabled):hover{
color: #5FB54B;
} }
.el-pagination__sizes .el-input .el-input__inner:hover { .el-pagination__sizes .el-input .el-input__inner:hover {
border-color: #5FB54B; border-color: #5FB54B;
} }
//.el-pagination.is-background .el-pager li:not(.disabled):hover { //.el-pagination.is-background .el-pager li:not(.disabled):hover {
// color: #5FB54B; // color: #5FB54B;
//} //}
.el-checkbox__input.is-checked + .el-checkbox__label { .el-checkbox__input.is-checked + .el-checkbox__label {
color: #5FB54B; color: #5FB54B;
} }
.el-textarea__inner:focus { .el-textarea__inner:focus {
outline: none; outline: none;
border-color: #5FB54B; border-color: #5FB54B;
...@@ -427,64 +472,29 @@ input::-webkit-input-placeholder { ...@@ -427,64 +472,29 @@ input::-webkit-input-placeholder {
border-color: #5bb647 !important; border-color: #5bb647 !important;
} }
.el-input-number__decrease:hover{ .el-input-number__decrease:hover {
color: #5bb647; color: #5bb647;
} }
.el-input-number__increase:hover { .el-input-number__increase:hover {
color: #5bb647; color: #5bb647;
} }
// 下拉选多选 // 下拉选多选
.el-select .el-select__tags > span{ .el-select .el-select__tags > span {
display: flex; display: flex;
width: 148px; width: 148px;
} }
.el-textarea__inner:focus {
outline: none;
border-color: #5FB54B;
}
.el-tabs__active-bar {
background-color: #5FB54B;
}
.el-tabs__item.is-active {
color: #5FB54B;
}
.el-tabs__item:hover {
color: #5FB54B;
cursor: pointer;
}
.el-input-number .el-input input {
text-align: left;
}
.el-cascader{
color: #5FB54B;
}.el-checkbox__inner{
height: 14px;
width: 14px;
}
// 调整复选框样式 // 调整复选框样式
.el-table .disabledCheck .cell .el-checkbox__inner { .el-table .disabledCheck .cell .el-checkbox__inner {
margin-right: 3px; margin-right: 3px;
} }
// 弹出框x按钮大小修改
.el-message-box .el-message-box__close {
font-size: 16px;
}
.el-message-box__headerbtn:focus .el-message-box__close, .el-message-box__headerbtn:hover .el-message-box__close {
color: #fff;
}
// 超时退出 .el-input-number .el-input input {
.el-button--primary:hover, .el-button--primary:focus { text-align: left;
background: #5FB54B;
border-color: #5FB54B;
color: #FFFFFF;
} }
// 超时退出
.el-button--primary { .el-tooltip__popper {
background: #5FB54B; max-width: 50%
border-color: #5FB54B;
color: #FFFFFF;
} }
...@@ -149,7 +149,7 @@ export const constantRoutes = [ ...@@ -149,7 +149,7 @@ export const constantRoutes = [
meta: { title: '使用管理', icon: 'table' } meta: { title: '使用管理', icon: 'table' }
}, },
{ {
path: 'use-details/:id', path: 'use-details',
props: true, props: true,
component: () => import('@/views/equipment-management/use-management/use-details'), component: () => import('@/views/equipment-management/use-management/use-details'),
name: 'UseDetails', name: 'UseDetails',
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div class="pet-owner-detail"> <div class="pet-owner-detail">
<el-card class="box-card"> <el-card class="box-card">
<!-- 头部标题--> <!-- 头部标题-->
<div style="padding-top:20px;text-align: center;"> <div style="padding-top:32px;text-align: center;">
<span <span
class="top-title-style" class="top-title-style"
>详情</span> >详情</span>
</div> </div>
<div style="padding: 20px;"> <div style="padding: 32px 20px 20px 20px;">
<div style="display: flex"> <div style="display: flex">
<!-- 文章信息 --> <!-- 文章信息 -->
<div class="tip-green" /> <div class="tip-green" />
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div class="pet-owner-detail"> <div class="pet-owner-detail">
<el-card class="box-card"> <el-card class="box-card">
<!-- 头部标题--> <!-- 头部标题-->
<div style="padding-top:20px;text-align: center;"> <div style="padding-top:32px;text-align: center;">
<span <span
class="top-title-style" class="top-title-style"
>编辑</span> >编辑</span>
</div> </div>
<div style="padding: 20px;"> <div style="padding: 32px 20px 20px 20px;">
<div style="display: flex"> <div style="display: flex">
<!-- 0-- 文章信息--标签头 --> <!-- 0-- 文章信息--标签头 -->
<div class="tip-green" /> <div class="tip-green" />
...@@ -154,6 +154,9 @@ export default { ...@@ -154,6 +154,9 @@ export default {
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout',
cancelButtonClass: 'resetBtn',
confirmButtonClass: 'queryBtn',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
updateArticle(this.form).then(response => { updateArticle(this.form).then(response => {
...@@ -288,7 +291,9 @@ export default { ...@@ -288,7 +291,9 @@ export default {
background-color: #F6FCF5 !important; background-color: #F6FCF5 !important;
} }
} }
::v-deep .el-card__body {
padding: unset !important;
}
//富文本宽设置 //富文本宽设置
::v-deep .el-form-item__content { ::v-deep .el-form-item__content {
width: 700px; width: 700px;
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div class="pet-owner-detail"> <div class="pet-owner-detail">
<el-card class="box-card"> <el-card class="box-card">
<!-- 头部标题--> <!-- 头部标题-->
<div style="padding-top:20px;text-align: center;"> <div style="padding-top:32px;text-align: center;">
<span <span
class="top-title-style" class="top-title-style"
>新增</span> >新增</span>
</div> </div>
<div style="padding: 20px;"> <div style="padding: 32px 20px 20px 20px;">
<div style="display: flex"> <div style="display: flex">
<!-- 0-- 文章信息--标签头 --> <!-- 0-- 文章信息--标签头 -->
<div class="tip-green" /> <div class="tip-green" />
...@@ -256,6 +256,9 @@ export default { ...@@ -256,6 +256,9 @@ export default {
display: flex; display: flex;
text-align: left; text-align: left;
} }
::v-deep .el-card__body {
padding: unset !important;
}
//小标题样式 //小标题样式
.title-font-style { .title-font-style {
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" min-width="60" prop="articleStatus" show-overflow-tooltip> <el-table-column label="状态" min-width="60" prop="articleStatus" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.article_status" :value="scope.row.articleStatus" /> <span :style="showStatus(scope.row.articleStatus) === '• 已上架' ? 'color: #67C23A' : 'color: #F56C6C'">{{ showStatus(scope.row.articleStatus) || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column class-name="small-padding fixed-width" label="操作" min-width="100"> <el-table-column class-name="small-padding fixed-width" label="操作" min-width="100">
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
articleTitle: null, articleTitle: null,
articleCreateTime: null, articleCreateTime: null,
articleStatus: null, articleStatus: null,
...@@ -330,6 +330,16 @@ export default { ...@@ -330,6 +330,16 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
// 上架状态 value 和label 的转换
showStatus(date) {
if (date === null) {
return null
} else if (date === '0') {
return '• 已上架'
} else if (date === '1') {
return '• 已下架'
}
},
cellClass(row) { cellClass(row) {
if (row.columnIndex === 0) { if (row.columnIndex === 0) {
return 'disabledCheck' return 'disabledCheck'
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
console.log('隐私协议', this.privacyPolicy) console.log('隐私协议', this.privacyPolicy)
// 内容为空不能 // 内容为空不能
if (this.privacyPolicy.content === null || this.privacyPolicy.content === '' || this.privacyPolicy.content === '<p><br></p>') { if (this.privacyPolicy.content === null || this.privacyPolicy.content === '' || this.privacyPolicy.content === '<p><br></p>') {
this.$modal.msgWarning('内容不能为空') this.$modal.msgError('内容不能为空')
return return
} }
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
console.log('隐私协议', this.privacyPolicy) console.log('隐私协议', this.privacyPolicy)
// 内容为空不能 // 内容为空不能
if (this.privacyPolicy.content === null || this.privacyPolicy.content === '' || this.privacyPolicy.content === '<p><br></p>') { if (this.privacyPolicy.content === null || this.privacyPolicy.content === '' || this.privacyPolicy.content === '<p><br></p>') {
this.$modal.msgWarning('内容不能为空') this.$modal.msgError('内容不能为空')
return return
} }
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
console.log('隐私协议', this.privacyPolicy) console.log('隐私协议', this.privacyPolicy)
// 内容为空不能 // 内容为空不能
if (this.privacyPolicy.content === null || this.privacyPolicy.content === '' || this.privacyPolicy.content === '<p><br></p>') { if (this.privacyPolicy.content === null || this.privacyPolicy.content === '' || this.privacyPolicy.content === '<p><br></p>') {
this.$modal.msgWarning('内容不能为空') this.$modal.msgError('内容不能为空')
return return
} }
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
......
<template> <template>
<div> <div>
<div style="background-color: #fff;height: 100%;margin-top: 20px;"> <div style="background-color: #fff;height: 100%;margin-top: 20px;">
<div style=" text-align: center;padding-top: 30px;height: 100px;"> <div style=" text-align: center;padding-top: 35px;height: 100px;">
<span style="font-size: 24px;font-weight: bold; color: #333333;line-height: 20px;">详情</span> <span style="font-size: 24px;font-weight: bold; color: #333333;line-height: 20px;">详情</span>
</div> </div>
<div style="display: flex; padding-left: 20px;padding-top: 10px;padding-bottom: 10px;"> <div style="display: flex; padding-left: 20px;padding-bottom: 10px;">
<div class="tip1" /> <div class="tip1" />
<div style="padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;">设备信息</div> <div style="padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;">设备信息</div>
</div> </div>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="status"> <el-form-item prop="status">
<el-select v-model="queryParams.insureList" placeholder="宠物保险" multiple collapse-tags clearable> <el-select v-model="queryParams.insureList" placeholder="宠物保险" collapse-tags clearable>
<el-option <el-option
v-for="dict in insureList" v-for="dict in insureList"
:key="dict.value" :key="dict.value"
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-date-picker <el-date-picker
v-model="daterangeCreateTime" v-model="queryParams.reportTime"
type="date" type="date"
style="width: 240px" style="width: 240px"
placeholder="选择检查日期" placeholder="选择检查日期"
...@@ -245,8 +245,8 @@ export default { ...@@ -245,8 +245,8 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
isAsc: '', isAsc: 'desc',
orderByColumn: '', orderByColumn: 'c.report_time',
searchText: '', searchText: '',
insureList: '', insureList: '',
checkItemsIdList: '', checkItemsIdList: '',
...@@ -297,8 +297,8 @@ export default { ...@@ -297,8 +297,8 @@ export default {
this.queryParams = { this.queryParams = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
isAsc: '', isAsc: 'desc',
orderByColumn: '', orderByColumn: 'c.report_time',
searchText: '', searchText: '',
insureList: '', insureList: '',
checkItemsIdList: '', checkItemsIdList: '',
...@@ -307,12 +307,28 @@ export default { ...@@ -307,12 +307,28 @@ export default {
} }
this.getUseList() this.getUseList()
}, },
// 导出格式化
exportFormatTime(date) {
// 获取年月日
var year = date.getFullYear()
var month = date.getMonth() + 1 // 月份从0开始,需要加1
var day = date.getDate()
// 将年月日格式化为字符串
if (month < 10) {
month = '0' + month
}
if (day < 10) {
day = '0' + day
}
const formattedDate = year.toString() + month.toString() + day.toString()
return formattedDate
},
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
if (this.ids.length !== 0) { if (this.ids.length !== 0) {
const exportTable = {} const exportTable = {}
exportTable.useIds = this.ids exportTable.useIds = this.ids
this.download('business/check/exportUse', exportTable, `use_${new Date().getTime()}.xlsx`).then(res => { this.download('business/check/exportUse', exportTable, `使用管理_${this.exportFormatTime(new Date())}.xlsx`).then(res => {
this.$refs.table.clearSelection() this.$refs.table.clearSelection()
}) })
} else { } else {
...@@ -328,10 +344,10 @@ export default { ...@@ -328,10 +344,10 @@ export default {
}, },
// 获取列表数据 // 获取列表数据
getUseList() { getUseList() {
if (this.daterangeCreateTime !== '') { // if (this.daterangeCreateTime !== '') {
this.queryParams.beginCheckTime = this.daterangeCreateTime + ' 00:00:00' // this.queryParams.beginCheckTime = this.daterangeCreateTime + ' 00:00:00'
this.queryParams.endCheckTime = this.daterangeCreateTime + ' 23:59:59' // this.queryParams.endCheckTime = this.daterangeCreateTime + ' 23:59:59'
} // }
listUseManagement(this.queryParams).then(res => { listUseManagement(this.queryParams).then(res => {
this.total = res.total this.total = res.total
this.userList = res.rows this.userList = res.rows
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="hospitalName"> <el-form-item v-if="!checkRole(['pt-admin'])" prop="hospitalName">
<el-select v-model="queryParams.hospitalName" clearable placeholder="所属医院"> <el-select v-model="queryParams.hospitalName" clearable placeholder="所属医院">
<el-option <el-option
v-for="item in HospitalList" v-for="item in HospitalList"
...@@ -216,6 +216,8 @@ ...@@ -216,6 +216,8 @@
<script> <script>
import { listRecord } from '@/api/business/record' import { listRecord } from '@/api/business/record'
import { getDepartment, getDoctorment, getHospital } from '@/api/business/register' import { getDepartment, getDoctorment, getHospital } from '@/api/business/register'
import { checkRole } from '@/utils/permission'
import { getInfo } from '@/api/login'
export default { export default {
name: 'MedicalRecordManagement', name: 'MedicalRecordManagement',
...@@ -299,16 +301,20 @@ export default { ...@@ -299,16 +301,20 @@ export default {
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
rules: {} rules: {},
user: {}
} }
}, },
created() { async created() {
const { user } = await getInfo()
this.user = user
this.getList() this.getList()
this.getDoctorList() this.getDoctorList()
this.getDeptList() this.getDeptList()
this.getHospitalList() this.getHospitalList()
}, },
methods: { methods: {
checkRole,
/** 查询科室下拉*/ /** 查询科室下拉*/
getDeptList() { getDeptList() {
getDepartment().then(res => { getDepartment().then(res => {
...@@ -324,8 +330,9 @@ export default { ...@@ -324,8 +330,9 @@ export default {
}, },
/** 查询医生名字下拉*/ /** 查询医生名字下拉*/
getHospitalList() { getHospitalList() {
getHospital().then(res => { getHospital().then(({ data }) => {
this.HospitalList = res.data data = data.filter(({ deptId: hospitalDept }) => hospitalDept === this.user.deptId)
this.HospitalList = data
console.log('这是我要的医院下拉框:', this.HospitalList) console.log('这是我要的医院下拉框:', this.HospitalList)
}) })
}, },
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
>详情</span> >详情</span>
<span style="font-size: 16px;position: absolute;right: 160px;padding-top: 5px;">{{ checkDetail.medicalRecordNo }}</span> <span style="font-size: 16px;position: absolute;right: 160px;padding-top: 5px;">{{ checkDetail.medicalRecordNo }}</span>
</div> </div>
<el-form ref="form" :model="checkDetail" label-width="100px"> <el-form ref="form" :model="checkDetail" label-width="70px">
<div class="title-paragraph"> <div class="title-paragraph">
<span class="title-text" style="font-size: 16px;font-weight: bold;">宠物信息</span> <span class="title-text" style="font-size: 16px;font-weight: bold;">宠物信息</span>
</div> </div>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
color: #333333;" color: #333333;"
>检查项目</span> >检查项目</span>
</div> </div>
<el-form ref="form" label-width="110px" :model="form" :rules="rules"> <el-form ref="form" label-width="90px" :model="form" :rules="rules">
<!-- 检查项目可以添加n个,所以for循环 --> <!-- 检查项目可以添加n个,所以for循环 -->
<div <div
v-for="(item, index) in form.settingList" v-for="(item, index) in form.settingList"
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
font-family: Microsoft YaHei-Bold, Microsoft YaHei,serif; font-family: Microsoft YaHei-Bold, Microsoft YaHei,serif;
font-weight: bold; font-weight: bold;
color: #333333;" color: #333333;"
>立即预约</span> >立即预约</span>·
</div> </div>
<el-form ref="form" :model="checkDetail" label-width="100px"> <el-form ref="form" :model="checkDetail" label-width="70px">
<div class="title-paragraph"> <div class="title-paragraph">
<span class="title-text" style="font-size: 16px;font-weight: bold;">宠物信息</span> <span class="title-text" style="font-size: 16px;font-weight: bold;">宠物信息</span>
</div> </div>
......
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
v-loading="loading" v-loading="loading"
:data="manageList" :data="manageList"
:row-key="getRowKeys" :row-key="getRowKeys"
:header-cell-class-name="cellClass"
:header-cell-style="{background:'#E8E9E8'}" :header-cell-style="{background:'#E8E9E8'}"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
...@@ -285,8 +286,8 @@ ...@@ -285,8 +286,8 @@
<el-table-column align="left" label="操作"> <el-table-column align="left" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
class="fourWordsBtn" style="color: #5FB54B"
size="mini" type="text"
@click="handleSubscribeDevice(scope.row)" @click="handleSubscribeDevice(scope.row)"
>立即预约 >立即预约
</el-button> </el-button>
...@@ -440,6 +441,12 @@ export default { ...@@ -440,6 +441,12 @@ export default {
this.loading = false this.loading = false
}) })
}, },
/** 表单选择框对齐 */
cellClass(row) {
if (row.columnIndex === 0) {
return 'disabledCheck'
}
},
// 表格 // 表格
getRowKeys(row) { getRowKeys(row) {
return row.id return row.id
...@@ -615,6 +622,7 @@ export default { ...@@ -615,6 +622,7 @@ export default {
} }
}) })
this.open = false this.open = false
this.getList()
}) })
}, },
/** 获取设备列表 */ /** 获取设备列表 */
......
...@@ -289,7 +289,8 @@ export default { ...@@ -289,7 +289,8 @@ export default {
payStatus: '0', payStatus: '0',
// 给传个null // 给传个null
petPicture: null, petPicture: null,
// 医院地址
hosAddress: this.singleDoctor.hosAddress,
doctorSignatureUrl: this.singleDoctor.doctorSignatureUrl, doctorSignatureUrl: this.singleDoctor.doctorSignatureUrl,
visitLocation: this.singleDoctor.visitLocation, visitLocation: this.singleDoctor.visitLocation,
doctorTitleLabel: this.singleDoctor.doctorTitleValue doctorTitleLabel: this.singleDoctor.doctorTitleValue
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
>详情</span> >详情</span>
<span style="font-size: 16px;position: absolute;right: 160px;padding-top: 5px;">{{ checkDetail.medicalRecordNo }}</span> <span style="font-size: 16px;position: absolute;right: 160px;padding-top: 5px;">{{ checkDetail.medicalRecordNo }}</span>
</div> </div>
<el-form ref="form" :model="checkDetail" label-width="100px"> <el-form ref="form" :model="checkDetail" label-width="70px">
<div class="title-paragraph"> <div class="title-paragraph">
<span class="title-text" style="font-size: 16px;font-weight: bold;">宠物信息</span> <span class="title-text" style="font-size: 16px;font-weight: bold;">宠物信息</span>
</div> </div>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
color: #333333;" color: #333333;"
>治疗项目</span> >治疗项目</span>
</div> </div>
<el-form ref="form" label-width="110px" :model="form" :rules="rules"> <el-form ref="form" label-width="90px" :model="form" :rules="rules">
<!-- 检查项目可以添加n个,所以for循环 --> <!-- 检查项目可以添加n个,所以for循环 -->
<div <div
v-for="(item, index) in form.settingList" v-for="(item, index) in form.settingList"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment