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
提交
7bb386d2
提交
7bb386d2
编写于
10月 22, 2021
作者:
xiaoping.di
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/jq' into 'develop'
添加返回 See merge request
!156
上级
22a57c56
36ce3d37
变更
3
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
195 行增加
和
132 行删除
+195
-132
table-serviceSchedule.vue
src/components/list/table-serviceSchedule.vue
+45
-45
newScheduling.vue
src/views/IM/diagnosis-admin/modal/newScheduling.vue
+26
-2
serviceSchedule.vue
src/views/IM/diagnosis-admin/serviceSchedule.vue
+124
-85
未找到文件。
src/components/list/table-serviceSchedule.vue
浏览文件 @
7bb386d2
...
...
@@ -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>
...
...
@@ -150,7 +154,7 @@
<
script
>
export
default
{
components
:
{
// NewScheduling,
// NewScheduling,
},
props
:
{
tableData
:
{
...
...
@@ -184,32 +188,32 @@
},
data
()
{
return
{
workStatusList
:[
workStatusList
:
[
{
text
:
'已排班'
,
value
:
'已排班'
},
{
text
:
'未排班'
,
value
:
'未排班'
}
value
:
'已排班'
,
},
{
text
:
'未排班'
,
value
:
'未排班'
,
}
,
],
serviceOpenList
:[
{
value
:
1
,
text
:
'开通'
serviceOpenList
:
[
{
value
:
1
,
text
:
'开通'
,
},
{
value
:
2
,
text
:
'未开通'
{
value
:
2
,
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,27 +250,27 @@
sortfunc
(
data
)
{
this
.
$emit
(
'sortfunc'
,
data
);
},
}
}
,
};
</
script
>
<
style
lang=
"scss"
scoped
>
.table-serviceSchedule
{
.el-table
{
border-radius
:
8px
;
.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
;
cursor
:
pointer
;
margin-right
:
10px
;
}
.download-btn
{
color
:
#0d
9078
;
cursor
:
pointer
;
margin-right
:
10px
;
}
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/IM/diagnosis-admin/modal/newScheduling.vue
浏览文件 @
7bb386d2
<
template
>
<div>
新增排班
</div>
<div>
<span>
{{
schedulingTypeValue
}}
</span>
<span>
{{
schedulingType
}}
</span>
</div>
</
template
>
<
script
>
export
default
{};
export
default
{
props
:
{
schedulingTypeValue
:
{
type
:
Object
,
default
:
()
=>
{
return
{};
},
},
schedulingType
:
{
type
:
String
,
default
:
''
,
},
},
data
()
{
return
{};
},
watch
:
{},
created
()
{
console
.
log
(
this
.
schedulingTypeValue
,
this
.
schedulingType
);
},
methods
:
{},
};
</
script
>
<
style
></
style
>
src/views/IM/diagnosis-admin/serviceSchedule.vue
浏览文件 @
7bb386d2
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录