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
提交
ca74b348
提交
ca74b348
编写于
10月 29, 2021
作者:
qian.jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
切换周保存数据
上级
a7a0b876
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
14 行删除
+22
-14
newScheduling.vue
src/views/IM/diagnosis-admin/modal/newScheduling.vue
+21
-13
vue.config.js
vue.config.js
+1
-1
未找到文件。
src/views/IM/diagnosis-admin/modal/newScheduling.vue
浏览文件 @
ca74b348
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
type=
"primary"
type=
"primary"
round
round
style=
"width: 110px"
style=
"width: 110px"
@
click=
"saveDoctoreScheduling"
@
click=
"saveDoctoreScheduling
(1)
"
>
>
保存
保存
</el-button>
</el-button>
...
@@ -194,11 +194,15 @@
...
@@ -194,11 +194,15 @@
};
};
},
},
watch
:
{
watch
:
{
week
(
newV
)
{
week
(
newV
,
oldV
)
{
console
.
log
(
newV
,
oldV
,
'newV, oldV'
);
if
(
this
.
haveWeek
.
indexOf
(
newV
)
==
-
1
)
{
if
(
this
.
haveWeek
.
indexOf
(
newV
)
==
-
1
)
{
this
.
haveWeek
.
push
(
newV
);
this
.
haveWeek
.
push
(
newV
);
this
.
handleInitSearch
();
this
.
handleInitSearch
();
}
}
if
(
newV
!==
oldV
)
{
this
.
saveDoctoreScheduling
(
2
);
}
},
},
},
},
created
()
{
created
()
{
...
@@ -413,7 +417,8 @@
...
@@ -413,7 +417,8 @@
resetDoctoreScheduling
()
{
resetDoctoreScheduling
()
{
this
.
handleInitSearch
(
true
);
this
.
handleInitSearch
(
true
);
},
},
saveDoctoreScheduling
()
{
saveDoctoreScheduling
(
type
)
{
console
.
log
(
this
.
week
,
'this.week'
);
this
.
loading
=
true
;
this
.
loading
=
true
;
const
objParms
=
{};
const
objParms
=
{};
objParms
.
week
=
this
.
week
;
objParms
.
week
=
this
.
week
;
...
@@ -422,12 +427,12 @@
...
@@ -422,12 +427,12 @@
objParms
.
list
=
[];
objParms
.
list
=
[];
const
data
=
this
.
calendarOptions
.
events
;
const
data
=
this
.
calendarOptions
.
events
;
data
.
forEach
((
item
)
=>
{
data
.
forEach
((
item
)
=>
{
if
(
item
.
week
==
this
.
week
)
{
//
if (item.week == this.week) {
const
obj
=
{};
const
obj
=
{};
obj
.
startTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
start
);
obj
.
startTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
start
);
obj
.
endTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
end
);
obj
.
endTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
end
);
objParms
.
list
.
push
(
obj
);
objParms
.
list
.
push
(
obj
);
}
//
}
});
});
saveDutyRoster
(
objParms
).
then
((
res
)
=>
{
saveDutyRoster
(
objParms
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
code
===
'000000'
)
{
...
@@ -435,10 +440,13 @@
...
@@ -435,10 +440,13 @@
// this.handleInitSearch(true);
// this.handleInitSearch(true);
// this.$router.go(0);
// this.$router.go(0);
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
type
==
1
)
{
this
.
$message
({
this
.
$message
({
message
:
'排班保存成功'
,
message
:
'排班保存成功'
,
type
:
'success'
type
:
'success'
});
});
}
}
else
{
}
else
{
// this.$toast(res.message);
// this.$toast(res.message);
this
.
$message
.
error
(
res
.
message
||
'排班保存失败'
);
this
.
$message
.
error
(
res
.
message
||
'排班保存失败'
);
...
...
vue.config.js
浏览文件 @
ca74b348
...
@@ -71,7 +71,7 @@ module.exports = {
...
@@ -71,7 +71,7 @@ module.exports = {
port
:
8080
,
port
:
8080
,
proxy
:
{
proxy
:
{
'/proxy'
:
{
'/proxy'
:
{
target
:
'https://
test1
-sc.yunqueyi.com/'
,
target
:
'https://
dev
-sc.yunqueyi.com/'
,
ws
:
false
,
ws
:
false
,
changeOrigin
:
true
,
changeOrigin
:
true
,
secure
:
true
,
secure
:
true
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录