Commit f79b4c17 authored by 小费同学阿's avatar 小费同学阿 💬

Merge remote-tracking branch 'origin/master'

parents 456767e8 624aad7f
...@@ -22,6 +22,8 @@ import 'quill/dist/quill.core.css' ...@@ -22,6 +22,8 @@ import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css' import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css' import 'quill/dist/quill.bubble.css'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { MessageBox } from 'element-ui'
import store from '@/store'
export default { export default {
name: 'Editor', name: 'Editor',
...@@ -186,12 +188,34 @@ export default { ...@@ -186,12 +188,34 @@ export default {
const quill = this.Quill const quill = this.Quill
// 如果上传成功 // 如果上传成功
if (res) { if (res) {
// 获取光标所在位置 if (res.code === 401) {
const length = quill.getSelection().index if (!sessionStorage.getItem('isRelogin')) {
// 插入图片 res.url为服务器返回的图片地址 sessionStorage.setItem('isRelogin', 'true')
quill.insertEmbed(length, 'image', process.env.VUE_APP_TEST_API + res) MessageBox.confirm(
// 调整光标到最后 '登录状态已过期,您可以继续留在该页面,或者重新登录',
quill.setSelection(length + 1) '系统提示',
{
confirmButtonText: '重新登录',
cancelButtonText: '取消',
closeOnClickModal: false,
cancelButtonClass: 'resetBtn',
confirmButtonClass: 'queryBtn', type: 'warning' }).then(() => {
sessionStorage.setItem('isRelogin', '')
store.dispatch('LogOut').then(() => {
location.href = '/index'
})
}).catch(() => {
sessionStorage.setItem('isRelogin', '')
})
}
} else {
// 获取光标所在位置
const length = quill.getSelection().index
// 插入图片 res.url为服务器返回的图片地址
quill.insertEmbed(length, 'image', process.env.VUE_APP_TEST_API + res)
// 调整光标到最后
quill.setSelection(length + 1)
}
} else { } else {
this.$message.error('图片插入失败') this.$message.error('图片插入失败')
} }
......
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
</el-table-column> </el-table-column>
<el-table-column sortable label="联系人" align="left" min-width="80" prop="contactPerson" show-overflow-tooltip /> <el-table-column sortable label="联系人" align="left" min-width="80" prop="contactPerson" show-overflow-tooltip />
<el-table-column sortable label="联系人手机号" align="left" min-width="120" prop="phonenumber" /> <el-table-column sortable label="联系人手机号" align="left" min-width="120" prop="phonenumber" />
<el-table-column sortable label="医院地址" align="left" min-width="80" prop="hospitalAddress" show-overflow-tooltip> <el-table-column sortable label="医院地址" align="left" min-width="80" prop="hospitalAllAddress" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.hospitalAllAddress }}</span> <span>{{ scope.row.hospitalAllAddress }}</span>
</template> </template>
...@@ -517,7 +517,7 @@ export default { ...@@ -517,7 +517,7 @@ export default {
console.log('更换排序', column) console.log('更换排序', column)
// 查询字段是表格中字段名字 // 查询字段是表格中字段名字
if (column.prop === 'hospitalName' || if (column.prop === 'hospitalName' ||
column.prop === 'hospitalAddress' || column.prop === 'hospitalAllAddress' ||
column.prop === 'contactPerson') { column.prop === 'contactPerson') {
this.queryParams.orderByColumn = column.prop + 'Sort' this.queryParams.orderByColumn = column.prop + 'Sort'
} else { } else {
......
...@@ -852,7 +852,11 @@ export default { ...@@ -852,7 +852,11 @@ export default {
}, },
ownerSortChange(column) { ownerSortChange(column) {
console.log('更换排序', column) console.log('更换排序', column)
this.queryPetOwner.orderByColumn = column.prop// 查询字段是表格中字段名字 if (column.prop === 'name') {
this.queryPetOwner.orderByColumn = column.prop + 'Sort'// 查询字段是表格中字段名字
} else {
this.queryPetOwner.orderByColumn = column.prop// 查询字段是表格中字段名字
}
this.queryPetOwner.isAsc = column.order// 动态取值排序顺序 this.queryPetOwner.isAsc = column.order// 动态取值排序顺序
this.$refs.ownerList.clearSort() this.$refs.ownerList.clearSort()
this.getOwnerList() this.getOwnerList()
......
...@@ -1001,7 +1001,11 @@ export default { ...@@ -1001,7 +1001,11 @@ export default {
}, },
handleSortChangeForPlatform(column) { handleSortChangeForPlatform(column) {
console.log('更换排序', column) console.log('更换排序', column)
if (column.prop === 'checkItemsName') { if (column.prop === 'checkItemsName' ||
column.prop === 'deviceName' ||
column.prop === 'hospitalName' ||
column.prop === 'petNickname' ||
column.prop === 'nickname') {
this.queryOrder.orderByColumn = column.prop + 'Sort' // 查询字段是表格中字段名字 this.queryOrder.orderByColumn = column.prop + 'Sort' // 查询字段是表格中字段名字
} else { } else {
this.queryOrder.orderByColumn = column.prop// 查询字段是表格中字段名字 this.queryOrder.orderByColumn = column.prop// 查询字段是表格中字段名字
......
...@@ -2424,6 +2424,7 @@ export default { ...@@ -2424,6 +2424,7 @@ export default {
delHospital(row.id).then(res => { delHospital(row.id).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.getInHospitalList(this.$route.params.id) this.getInHospitalList(this.$route.params.id)
this.getPaymentList()
} }
}) })
}).catch(() => { }).catch(() => {
......
...@@ -396,7 +396,10 @@ export default { ...@@ -396,7 +396,10 @@ export default {
validateSort(item) { validateSort(item) {
return (rule, value, callback) => { return (rule, value, callback) => {
console.log('value', value) console.log('value', value)
if (value === 0 && item.itemType !== '2') { const userType = this.$store.state.user.userType
if (userType !== '00' && value === 0 && item.itemType !== '2') {
callback(new Error('权重不能为0'))
} else if (userType === '00' && value === 0) {
callback(new Error('权重不能为0')) callback(new Error('权重不能为0'))
} else { } else {
callback() callback()
......
...@@ -334,6 +334,7 @@ ...@@ -334,6 +334,7 @@
<!-- 添加或修改业务管理-检查管理对话框 --> <!-- 添加或修改业务管理-检查管理对话框 -->
<el-dialog <el-dialog
class="book-now-class"
title="立即预约" title="立即预约"
:visible.sync="open" :visible.sync="open"
min-width="820px" min-width="820px"
...@@ -432,6 +433,7 @@ ...@@ -432,6 +433,7 @@
class="el-button--success--solid--four" class="el-button--success--solid--four"
plain plain
@click="handleSubscribeDevice(scope.row)" @click="handleSubscribeDevice(scope.row)"
:disabled="accordingToTime(scope.row.checkTime)"
>立即预约 >立即预约
</el-button> </el-button>
</template> </template>
...@@ -620,7 +622,7 @@ export default { ...@@ -620,7 +622,7 @@ export default {
// 计算的时间 // 计算的时间
const startTime = checkTime.split('-')[0] const startTime = checkTime.split('-')[0]
// 当前时间 // 当前时间
const currentDay = new Date().getHours() + ':' + new Date().getMinutes() const currentDay = new Date().getHours() + ':' + String(new Date().getMinutes()).padStart(2, '0')
// 计算的时间小于当前时间就false // 计算的时间小于当前时间就false
if (startTime < currentDay) { if (startTime < currentDay) {
return true return true
...@@ -1047,15 +1049,20 @@ export default { ...@@ -1047,15 +1049,20 @@ export default {
.app-container { .app-container {
background-color: #FFFFFF; background-color: #FFFFFF;
.book-now-class {
.el-dialog__body {
padding: 0;
.dialog-class {
min-height: 140px;
max-height: 500px;
overflow-y: auto;
}
}
}
} }
::v-deep .el-dialog:not(.is-fullscreen) { ::v-deep .el-dialog:not(.is-fullscreen) {
margin-top: 9vh !important; margin-top: 9vh !important;
} }
.dialog-class {
min-height: 140px;
overflow-y: auto;
}
</style> </style>
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