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
f6834aa9
Commit
f6834aa9
authored
Jun 28, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码规范修复
parent
97a9bd1c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
13 deletions
+35
-13
article-detail.vue
src/views/article-management/article-detail.vue
+2
-2
article-edit.vue
src/views/article-management/article-edit.vue
+5
-3
article-insert.vue
src/views/article-management/article-insert.vue
+5
-2
article-management.vue
src/views/article-management/article-management.vue
+11
-1
medical-record-management.vue
...s/medical-record-management/medical-record-management.vue
+12
-5
No files found.
src/views/article-management/article-detail.vue
View file @
f6834aa9
...
@@ -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:
20
px;text-align: center;"
>
<div
style=
"padding-top:
32
px;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"
/>
...
...
src/views/article-management/article-edit.vue
View file @
f6834aa9
...
@@ -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:
20
px;text-align: center;"
>
<div
style=
"padding-top:
32
px;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"
/>
...
@@ -291,7 +291,9 @@ export default {
...
@@ -291,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
;
...
...
src/views/article-management/article-insert.vue
View file @
f6834aa9
...
@@ -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:
20
px;text-align: center;"
>
<div
style=
"padding-top:
32
px;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
{
...
...
src/views/article-management/article-management.vue
View file @
f6834aa9
...
@@ -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"
>
...
@@ -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'
...
...
src/views/medical-record-management/medical-record-management.vue
View file @
f6834aa9
...
@@ -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
)
}
)
}
)
}
,
}
,
...
...
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