Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
25646a28
提交
25646a28
编写于
10月 22, 2021
作者:
xiaoping.di
浏览文件
操作
浏览文件
下载
差异文件
问诊台日期排班
上级
d1424303
7bb386d2
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
111 行增加
和
71 行删除
+111
-71
table-serviceSchedule.vue
src/components/list/table-serviceSchedule.vue
+45
-45
newScheduling.vue
src/views/IM/diagnosis-admin/modal/newScheduling.vue
+12
-0
serviceSchedule.vue
src/views/IM/diagnosis-admin/serviceSchedule.vue
+54
-26
未找到文件。
src/components/list/table-serviceSchedule.vue
浏览文件 @
25646a28
...
...
@@ -30,7 +30,9 @@
:filter-method=
"getServiceOpen"
>
<template
slot-scope=
"scope"
>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
serviceOpen
===
'1'
?
'开通'
:
'未开通'
}}
</span>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
serviceOpen
===
'1'
?
'开通'
:
'未开通'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -67,7 +69,9 @@
:filter-method=
"getWorkStatus"
>
<
template
slot-scope=
"scope"
>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
workStatus
===
'2'
?
'未排班'
:
'已排班'
}}
</span>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
workStatus
===
'2'
?
'未排班'
:
'已排班'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -84,15 +88,15 @@
align=
"center"
/>
<el-table-column
prop
erty=
"delivery
"
prop
=
"switchStatus
"
align=
"center"
label=
"接单开关"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.
delivery
"
v-model=
"scope.row.
switchStatus
"
active-color=
"#0D9078"
@
change=
"changeSwitch(scope.$index,scope.row)"
@
change=
"changeSwitch(scope.$index,
scope.row)"
/>
</
template
>
</el-table-column>
...
...
@@ -105,25 +109,25 @@
<
template
slot-scope=
"scope"
>
<div
class=
"scope-work"
style=
"display:flex"
style=
"display:
flex"
>
<div
v-if=
"
scope.row.workStatus === '2'"
v-if=
"scope.row.workStatus === '2'"
class=
"download-btn"
@
click=
"addSchedule(scope.row,1)"
@
click=
"addSchedule(scope.row,
1)"
>
新增排班
</div>
<div
v-else
class=
"download-btn"
@
click=
"addSchedule(scope.row,2)"
@
click=
"addSchedule(scope.row,
2)"
>
编辑排班
</div>
<div
class=
"download-btn"
@
click=
"addSchedule(scope.row,2)"
@
click=
"addSchedule(scope.row,
2)"
>
查看
</div>
...
...
@@ -184,32 +188,32 @@
},
data
()
{
return
{
workStatusList
:[
workStatusList
:
[
{
text
:
'已排班'
,
value
:
'已排班'
value
:
'已排班'
,
},
{
text
:
'未排班'
,
value
:
'未排班'
}
value
:
'未排班'
,
}
,
],
serviceOpenList
:[
serviceOpenList
:
[
{
value
:
1
,
text
:
'开通'
text
:
'开通'
,
},
{
value
:
2
,
text
:
'未开通'
text
:
'未开通'
,
},
],
};
},
computed
:
{},
mounted
()
{},
methods
:{
methods
:
{
changeSwitch
(
value
,
val
)
{
console
.
log
(
value
,
val
,
'123'
);
this
.
$emit
(
'changeSwitch'
,
value
,
val
);
},
// handleFilterChange(value) {
...
...
@@ -222,22 +226,18 @@
return
row
.
level
===
String
(
value
);
},
getWorkStatus
(
value
,
row
)
{
console
.
log
(
value
,
row
);
let
newValue
=
''
;
if
(
value
===
'未排班'
)
{
newValue
=
'2'
;
}
else
{
}
else
{
newValue
=
'1'
;
}
return
row
.
workStatus
===
String
(
newValue
);
},
showworkStatus
()
{
console
.
log
(
11111
);
this
.
isworkStatus
=
!
this
.
isworkStatus
;
console
.
log
(
this
.
isworkStatus
);
},
addSchedule
(
value
,
val
)
{
console
.
log
(
value
,
val
,
'123212321'
);
this
.
$emit
(
'addSchedule'
,
value
,
val
);
},
// 分页
...
...
@@ -250,23 +250,23 @@
sortfunc
(
data
)
{
this
.
$emit
(
'sortfunc'
,
data
);
},
}
}
,
};
</
script
>
<
style
lang=
"scss"
scoped
>
.table-serviceSchedule
{
.table-serviceSchedule
{
.el-table
{
border-radius
:
8px
;
// 深度选择器
/
deep
/
.highlight
{
color
:
#0
D
9078
!
important
;
/
deep
/
.highlight
{
color
:
#0
d
9078
!
important
;
}
.scope-work
{
.scope-work
{
display
:
flex
;
justify-content
:
center
;
.download-btn
{
color
:
#0D
9078
;
.download-btn
{
color
:
#0d
9078
;
cursor
:
pointer
;
margin-right
:
10px
;
}
...
...
src/views/IM/diagnosis-admin/modal/newScheduling.vue
浏览文件 @
25646a28
...
...
@@ -86,6 +86,18 @@
components
:
{
FullCalendar
,
},
props
:
{
schedulingTypeValue
:
{
type
:
Object
,
default
:
()
=>
{
return
{};
},
},
schedulingType
:
{
type
:
String
,
default
:
''
,
},
},
data
()
{
return
{
listDate
:
[],
...
...
src/views/IM/diagnosis-admin/serviceSchedule.vue
浏览文件 @
25646a28
...
...
@@ -7,7 +7,7 @@
<div
class=
"header"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item>
首页
</el-breadcrumb-item>
<el-breadcrumb-item>
服务排班表
</el-breadcrumb-item>
<el-breadcrumb-item>
服务排班表
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"serviceSchedule-container"
>
...
...
@@ -95,11 +95,18 @@
>
同步信息
</el-button>
<el-tooltip
class=
"serviceSchedule-tooltip"
effect=
"light"
content=
"点击按钮可同步最新的专家入驻信息"
placement=
"top-start"
>
<img
class=
"el-icon-s-question"
src=
"../../../assets/image/question.png"
alt
>
</el-tooltip>
</div>
</div>
<div
class=
"serviceSchedule-table"
>
...
...
@@ -128,13 +135,21 @@
<div
class=
"header"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item>
首页
</el-breadcrumb-item>
<el-breadcrumb-item>
服务排班表
</el-breadcrumb-item>
<el-breadcrumb-item
class=
"breadcrumb-serviceSchedule"
>
<span
class=
"breadcrumb-back"
@
click=
"goBack"
>
服务排班表
</span>
</el-breadcrumb-item>
<el-breadcrumb-item>
新增排班
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"serviceSchedule-container"
>
<div
class=
"serviceSchedule-containerInfo"
>
<NewScheduling
/>
<NewScheduling
:scheduling-type-value=
"schedulingTypeValue"
:scheduling-type=
"schedulingType"
/>
</div>
</div>
</div>
...
...
@@ -176,7 +191,7 @@
endRangeTime
:
''
,
serviceOpen
:
''
,
pageSize
:
15
,
pageNo
:
1
,
pageNo
:
0
,
sort
:
''
,
createRangeTime
:
[],
},
...
...
@@ -213,7 +228,8 @@
tableData
:
[],
loading
:
false
,
newCreateList
:
[],
// newCreateObj:{}
schedulingTypeValue
:
{},
schedulingType
:
''
,
};
},
watch
:
{},
...
...
@@ -227,7 +243,6 @@
handleItemChange
(
val
)
{
const
value
=
val
[
0
];
childLabelList
({
parentId
:
value
,
publish
:
1
}).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
code
===
'000000'
)
{
const
interfaceArr
=
res
.
data
||
[];
this
.
interfaceOptions
.
filter
((
item
)
=>
{
...
...
@@ -242,12 +257,10 @@
getFirstLevelLable
()
{
getFirstLevelLable
().
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
console
.
log
(
res
);
this
.
interfaceOptions
=
res
.
data
||
[];
this
.
interfaceOptions
.
forEach
((
item
,
index
)
=>
{
// 添加属性
this
.
$set
(
this
.
interfaceOptions
[
index
],
'interface'
,
[]);
console
.
log
(
this
.
interface
);
});
}
else
{
this
.
$message
({
...
...
@@ -259,9 +272,7 @@
},
// 获取选择的值
selectApi
(
e
,
value
)
{
console
.
log
(
value
,
'value'
);
this
.
searchParam
.
departmentId
=
value
[
1
];
console
.
log
(
this
.
searchParam
);
},
search
()
{
this
.
loading
=
true
;
...
...
@@ -286,29 +297,35 @@
workQuery
(
params
).
then
((
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
code
===
'000000'
)
{
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
tableData
=
(
res
.
data
.
list
||
[]).
map
((
item
)
=>
{
if
(
item
.
switchStatus
===
'1'
)
{
return
{
...
item
,
switchStatus
:
true
,
};
}
else
{
return
{
...
item
,
switchStatus
:
false
,
};
}
});
this
.
searchParam
.
totalRows
=
res
.
data
.
count
;
}
});
},
getServiceOpen
(
value
)
{
console
.
log
(
value
,
'22222'
);
this
.
searchParam
.
serviceOpen
=
value
;
console
.
log
(
this
.
searchParam
);
},
getWorkStatus
(
value
)
{
console
.
log
(
value
,
'22223333'
);
this
.
searchParam
.
ScheduleStatus
=
value
;
console
.
log
(
this
.
searchParam
);
},
changeSwitch
(
value
,
val
)
{
console
.
log
(
value
,
val
,
'12321'
);
switchOpen
({
id
:
val
.
id
,
switchOpen
:
val
.
delivery
?
'1'
:
'2'
,
switchOpen
:
val
.
switchStatus
?
'1'
:
'2'
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
console
.
log
(
res
);
this
.
search
();
}
});
...
...
@@ -331,7 +348,6 @@
getLevel
()
{
getLevel
().
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
console
.
log
(
res
,
'getLevel'
);
this
.
createList
=
res
.
data
||
[];
this
.
createList
.
forEach
((
item
)
=>
{
const
newCreateObj
=
{
...
...
@@ -342,12 +358,10 @@
newCreateObj
.
text
=
item
;
this
.
newCreateList
.
push
(
newCreateObj
);
});
console
.
log
(
this
.
newCreateList
,
'this.newCreateList'
);
}
});
},
sortfunc
(
data
)
{
console
.
log
(
data
,
'data'
);
if
(
data
.
prop
===
'"modifiedTime"'
&&
data
.
order
===
'descending'
)
{
this
.
searchParam
.
sort
=
'1'
;
}
else
{
...
...
@@ -356,8 +370,12 @@
this
.
search
();
},
addSchedule
(
value
,
val
)
{
console
.
log
(
value
,
val
,
'value,val'
);
this
.
ScheduleListShow
=
false
;
this
.
schedulingTypeValue
=
value
;
this
.
schedulingType
=
val
;
},
goBack
()
{
this
.
ScheduleListShow
=
true
;
},
},
};
...
...
@@ -449,6 +467,16 @@
.header
{
padding
:
30px
;
width
:
100%
;
.el-breadcrumb
{
.breadcrumb-serviceSchedule
{
/
deep
/
.breadcrumb-back
{
font-weight
:
400
!
important
;
color
:
#606266
;
cursor
:
text
;
cursor
:
pointer
;
}
}
}
}
.serviceSchedule-container
{
height
:
100%
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录