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
e0020a25
Commit
e0020a25
authored
Jun 19, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
94456b54
bcc13ba0
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
737 additions
and
111 deletions
+737
-111
mdeicalRecord.js
src/api/business/mdeicalRecord.js
+77
-0
main.js
src/main.js
+2
-1
getters.js
src/store/getters.js
+1
-0
user.js
src/store/modules/user.js
+6
-1
medical-edit.vue
src/views/medical-record-management/medical-edit.vue
+651
-109
No files found.
src/api/business/mdeicalRecord.js
0 → 100644
View file @
e0020a25
import
request
from
'@/utils/request'
// 查询病例详情
export
function
getRecord
(
id
)
{
return
request
({
url
:
'/business/record/'
+
id
,
method
:
'get'
})
}
// 根据检查类型查询检查项目
export
function
listByType
(
params
)
{
return
request
({
url
:
'/business/item/listByType'
,
method
:
'get'
,
params
})
}
// 根据宠物id查询检查信息列表
export
function
checkList
(
params
)
{
return
request
({
url
:
'/business/check/list'
,
method
:
'get'
,
params
})
}
// 查询治疗项目
export
function
getTreatOptions
(
params
)
{
return
request
({
url
:
'/business/item/list'
,
method
:
'get'
,
params
})
}
export
function
deleteCheck
(
id
)
{
return
request
({
url
:
'/business/check/'
+
id
,
method
:
'delete'
})
}
// 新增检查
export
function
addCheck
(
data
)
{
return
request
({
url
:
'/business/check'
,
method
:
'post'
,
data
})
}
// 编辑检查
export
function
updateCheck
(
data
)
{
return
request
({
url
:
'/business/check'
,
method
:
'put'
,
data
})
}
// 新增治疗
export
function
addTreat
(
data
)
{
return
request
({
url
:
'/business/treat'
,
method
:
'post'
,
data
})
}
// 编辑治疗
export
function
updateTreat
(
data
)
{
return
request
({
url
:
'/business/treat'
,
method
:
'put'
,
data
})
}
export
function
deleteTreat
(
id
)
{
return
request
({
url
:
'/business/treat/'
+
id
,
method
:
'delete'
})
}
src/main.js
View file @
e0020a25
...
...
@@ -90,8 +90,9 @@ function render(props = {}) {
store
.
commit
(
'SET_TOKEN'
,
temp
.
token
)
store
.
commit
(
'SET_ROLES'
,
temp
.
roles
)
store
.
commit
(
'SET_PERMISSIONS'
,
temp
.
permissions
)
store
.
commit
(
'SET_NAME'
,
temp
.
userN
ame
)
store
.
commit
(
'SET_NAME'
,
temp
.
n
ame
)
store
.
commit
(
'SET_AVATAR'
,
temp
.
avatar
)
store
.
commit
(
'SET_DEPTID'
,
temp
.
deptId
)
}
instance
=
new
Vue
({
...
...
src/store/getters.js
View file @
e0020a25
...
...
@@ -8,6 +8,7 @@ const getters = {
token
:
state
=>
state
.
user
.
token
,
avatar
:
state
=>
state
.
user
.
avatar
,
name
:
state
=>
state
.
user
.
name
,
deptId
:
state
=>
state
.
user
.
deptId
,
introduction
:
state
=>
state
.
user
.
introduction
,
roles
:
state
=>
state
.
user
.
roles
,
permissions
:
state
=>
state
.
user
.
permissions
,
...
...
src/store/modules/user.js
View file @
e0020a25
...
...
@@ -7,7 +7,8 @@ const user = {
name
:
''
,
avatar
:
''
,
roles
:
[],
permissions
:
[]
permissions
:
[],
deptId
:
''
},
mutations
:
{
...
...
@@ -25,6 +26,9 @@ const user = {
},
SET_PERMISSIONS
:
(
state
,
permissions
)
=>
{
state
.
permissions
=
permissions
},
SET_DEPTID
:
(
state
,
deptId
)
=>
{
state
.
deptId
=
deptId
}
},
...
...
@@ -59,6 +63,7 @@ const user = {
commit
(
'SET_ROLES'
,
[
'ROLE_DEFAULT'
])
}
commit
(
'SET_NAME'
,
user
.
userName
)
commit
(
'SET_DEPTID'
,
user
.
deptId
)
commit
(
'SET_AVATAR'
,
avatar
)
resolve
(
res
)
}).
catch
(
error
=>
{
...
...
src/views/medical-record-management/medical-edit.vue
View file @
e0020a25
This diff is collapsed.
Click to expand it.
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