Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
f79b4c17
Commit
f79b4c17
authored
Sep 06, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
456767e8
624aad7f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
17 deletions
+60
-17
index.vue
src/components/Editor/index.vue
+30
-6
hospital-data-statistics.vue
...ics/hospital-data-statistics/hospital-data-statistics.vue
+2
-2
pet-data-statistics.vue
...ta-statistics/pet-data-statistics/pet-data-statistics.vue
+5
-1
service-statistics.vue
...data-statistics/service-statistics/service-statistics.vue
+5
-1
medical-edit.vue
src/views/medical-record-management/medical-edit.vue
+1
-0
check-item.vue
...rvice-management/medical-record-management/check-item.vue
+4
-1
medical-record-management.vue
...t/medical-record-management/medical-record-management.vue
+13
-6
No files found.
src/components/Editor/index.vue
View file @
f79b4c17
...
@@ -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
)
{
if
(
!
sessionStorage
.
getItem
(
'isRelogin'
))
{
sessionStorage
.
setItem
(
'isRelogin'
,
'true'
)
MessageBox
.
confirm
(
'登录状态已过期,您可以继续留在该页面,或者重新登录'
,
'系统提示'
,
{
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
const
length
=
quill
.
getSelection
().
index
// 插入图片 res.url为服务器返回的图片地址
// 插入图片 res.url为服务器返回的图片地址
quill
.
insertEmbed
(
length
,
'image'
,
process
.
env
.
VUE_APP_TEST_API
+
res
)
quill
.
insertEmbed
(
length
,
'image'
,
process
.
env
.
VUE_APP_TEST_API
+
res
)
// 调整光标到最后
// 调整光标到最后
quill
.
setSelection
(
length
+
1
)
quill
.
setSelection
(
length
+
1
)
}
}
else
{
}
else
{
this
.
$message
.
error
(
'图片插入失败'
)
this
.
$message
.
error
(
'图片插入失败'
)
}
}
...
...
src/views/data-statistics/hospital-data-statistics/hospital-data-statistics.vue
View file @
f79b4c17
...
@@ -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=
"hospitalA
llA
ddress"
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
===
'hospitalA
llA
ddress'
||
column
.
prop
===
'contactPerson'
)
{
column
.
prop
===
'contactPerson'
)
{
this
.
queryParams
.
orderByColumn
=
column
.
prop
+
'Sort'
this
.
queryParams
.
orderByColumn
=
column
.
prop
+
'Sort'
}
else
{
}
else
{
...
...
src/views/data-statistics/pet-data-statistics/pet-data-statistics.vue
View file @
f79b4c17
...
@@ -852,7 +852,11 @@ export default {
...
@@ -852,7 +852,11 @@ export default {
},
},
ownerSortChange
(
column
)
{
ownerSortChange
(
column
)
{
console
.
log
(
'更换排序'
,
column
)
console
.
log
(
'更换排序'
,
column
)
if
(
column
.
prop
===
'name'
)
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
+
'Sort'
// 查询字段是表格中字段名字
}
else
{
this
.
queryPetOwner
.
orderByColumn
=
column
.
prop
// 查询字段是表格中字段名字
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
()
...
...
src/views/data-statistics/service-statistics/service-statistics.vue
View file @
f79b4c17
...
@@ -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
// 查询字段是表格中字段名字
...
...
src/views/medical-record-management/medical-edit.vue
View file @
f79b4c17
...
@@ -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
(()
=>
{
...
...
src/views/service-management/medical-record-management/check-item.vue
View file @
f79b4c17
...
@@ -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
()
...
...
src/views/service-management/medical-record-management/medical-record-management.vue
View file @
f79b4c17
...
@@ -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
:
140
px
;
max
-
height
:
500
px
;
overflow
-
y
:
auto
;
}
}
}
}
}
::
v
-
deep
.
el
-
dialog
:
not
(.
is
-
fullscreen
)
{
::
v
-
deep
.
el
-
dialog
:
not
(.
is
-
fullscreen
)
{
margin
-
top
:
9
vh
!
important
;
margin
-
top
:
9
vh
!
important
;
}
}
.
dialog
-
class
{
min
-
height
:
140
px
;
overflow
-
y
:
auto
;
}
<
/style
>
<
/style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment