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
提交
f0b8b344
提交
f0b8b344
编写于
10月 29, 2021
作者:
zhenqi.wan
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/jq' into 'release'
Feature/jq See merge request
!179
上级
42aea01b
0dc1b4c9
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
61 行增加
和
36 行删除
+61
-36
newScheduling.vue
src/views/IM/diagnosis-admin/modal/newScheduling.vue
+60
-35
vue.config.js
vue.config.js
+1
-1
未找到文件。
src/views/IM/diagnosis-admin/modal/newScheduling.vue
浏览文件 @
f0b8b344
...
@@ -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>
...
@@ -191,14 +191,20 @@
...
@@ -191,14 +191,20 @@
workingTicketVisible
:
false
,
// 工作表票详情页面
workingTicketVisible
:
false
,
// 工作表票详情页面
scrollerHeight
:
0
,
scrollerHeight
:
0
,
loading
:
false
,
loading
:
false
,
isDoIt
:
false
};
};
},
},
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
.
handleInitSearch
();
this
.
saveDoctoreScheduling
(
2
,
oldV
);
}
},
},
},
},
created
()
{
created
()
{
...
@@ -220,6 +226,7 @@
...
@@ -220,6 +226,7 @@
});
});
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
calendarOptions
.
events
,
'this.calendarOptions.events'
);
this
.
scrollerHeight
=
this
.
$refs
.
agment
.
clientHeight
+
'px'
;
this
.
scrollerHeight
=
this
.
$refs
.
agment
.
clientHeight
+
'px'
;
// console.log(this.$refs.agment.clientHeight, 'this.$refs.agment.offsetHeight;');
// console.log(this.$refs.agment.clientHeight, 'this.$refs.agment.offsetHeight;');
this
.
init
();
this
.
init
();
...
@@ -246,7 +253,8 @@
...
@@ -246,7 +253,8 @@
},
},
handleInitSearch
(
isReset
)
{
handleInitSearch
(
isReset
)
{
if
(
isReset
)
{
if
(
isReset
)
{
this
.
calendarOptions
.
events
=
[];
this
.
calendarOptions
.
events
=
this
.
calendarOptions
.
events
.
filter
((
v
)
=>
(
v
.
week
!==
this
.
week
));
console
.
log
(
this
.
calendarOptions
.
events
);
}
}
const
objParms
=
{};
const
objParms
=
{};
objParms
.
doctorId
=
this
.
doctorId
;
objParms
.
doctorId
=
this
.
doctorId
;
...
@@ -255,6 +263,7 @@
...
@@ -255,6 +263,7 @@
// this.currentIndex = this.schedulingTypeValue.level;
// this.currentIndex = this.schedulingTypeValue.level;
dutyRosterQuery
(
objParms
).
then
((
res
)
=>
{
dutyRosterQuery
(
objParms
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
this
.
calendarOptions
.
events
=
[];
this
.
handleInitData
(
res
.
data
);
this
.
handleInitData
(
res
.
data
);
}
else
{
}
else
{
this
.
$toast
(
res
.
message
);
this
.
$toast
(
res
.
message
);
...
@@ -265,12 +274,14 @@
...
@@ -265,12 +274,14 @@
var
newDate
=
null
;
var
newDate
=
null
;
if
(
this
.
schedulingType
!=
3
)
{
if
(
this
.
schedulingType
!=
3
)
{
newDate
=
[].
concat
(
data
.
noAcceptList
);
newDate
=
[].
concat
(
data
.
noAcceptList
);
console
.
log
(
newDate
,
'newDate'
);
}
else
{
}
else
{
var
acceptList
=
[];
var
acceptList
=
[];
data
.
acceptList
.
forEach
((
item
)
=>
{
data
.
acceptList
.
forEach
((
item
)
=>
{
item
.
type
=
88
;
item
.
type
=
88
;
acceptList
.
push
(
item
);
acceptList
.
push
(
item
);
});
});
console
.
log
(
data
.
acceptList
,
'data.acceptList'
);
newDate
=
[].
concat
(
acceptList
,
data
.
noAcceptList
);
newDate
=
[].
concat
(
acceptList
,
data
.
noAcceptList
);
}
}
// const keyAll = ['end', 'endStr', 'id', 'start', 'startStr'];
// const keyAll = ['end', 'endStr', 'id', 'start', 'startStr'];
...
@@ -337,7 +348,9 @@
...
@@ -337,7 +348,9 @@
.
then
((
_
)
=>
{
.
then
((
_
)
=>
{
console
.
log
(
_
);
console
.
log
(
_
);
const
index
=
this
.
getIdDeleteData
(
event
.
event
.
id
);
const
index
=
this
.
getIdDeleteData
(
event
.
event
.
id
);
return
this
.
calendarOptions
.
events
.
splice
(
index
,
1
);
this
.
isDoIt
=
true
;
this
.
calendarOptions
.
events
.
splice
(
index
,
1
);
console
.
log
(
this
.
calendarOptions
.
events
);
})
})
.
catch
((
_
)
=>
{
.
catch
((
_
)
=>
{
console
.
log
(
_
);
console
.
log
(
_
);
...
@@ -368,6 +381,7 @@
...
@@ -368,6 +381,7 @@
this
.
calendarOptions
.
events
.
push
(
dataObj
);
this
.
calendarOptions
.
events
.
push
(
dataObj
);
},
},
selectAllow
(
info
)
{
selectAllow
(
info
)
{
this
.
isDoIt
=
true
;
const
startDay
=
new
Date
(
info
.
start
).
getDay
();
const
startDay
=
new
Date
(
info
.
start
).
getDay
();
const
endDay
=
new
Date
(
info
.
end
).
getDay
();
const
endDay
=
new
Date
(
info
.
end
).
getDay
();
if
(
startDay
!=
endDay
)
{
if
(
startDay
!=
endDay
)
{
...
@@ -408,42 +422,53 @@
...
@@ -408,42 +422,53 @@
return
indexObj
;
return
indexObj
;
},
},
handlePriority
(
index
)
{
handlePriority
(
index
)
{
this
.
isDoIt
=
true
;
this
.
currentIndex
=
index
;
this
.
currentIndex
=
index
;
},
},
resetDoctoreScheduling
()
{
resetDoctoreScheduling
()
{
this
.
handleInitSearch
(
true
);
this
.
handleInitSearch
(
true
);
},
},
saveDoctoreScheduling
()
{
saveDoctoreScheduling
(
type
,
weekV
=
0
)
{
this
.
loading
=
true
;
if
(
this
.
isDoIt
)
{
const
objParms
=
{};
console
.
log
(
this
.
week
,
'this.week'
,
weekV
);
objParms
.
week
=
this
.
week
;
this
.
loading
=
true
;
objParms
.
workId
=
this
.
schedulingTypeValue
.
id
;
const
objParms
=
{};
objParms
.
level
=
this
.
currentIndex
;
objParms
.
week
=
weekV
?
weekV
:
this
.
week
;
objParms
.
list
=
[];
objParms
.
workId
=
this
.
schedulingTypeValue
.
id
;
const
data
=
this
.
calendarOptions
.
events
;
objParms
.
level
=
this
.
currentIndex
;
data
.
forEach
((
item
)
=>
{
objParms
.
list
=
[];
if
(
item
.
week
==
this
.
week
)
{
const
data
=
this
.
calendarOptions
.
events
;
const
obj
=
{};
console
.
log
(
data
,
'data'
);
obj
.
startTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
start
);
data
.
forEach
((
item
)
=>
{
obj
.
endTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
end
);
console
.
log
(
item
.
week
==
(
weekV
?
weekV
:
this
.
week
));
objParms
.
list
.
push
(
obj
);
if
(
item
.
week
==
(
weekV
?
weekV
:
this
.
week
))
{
}
console
.
log
(
item
.
week
,
this
.
week
,
weekV
,
'this.week'
);
});
const
obj
=
{};
saveDutyRoster
(
objParms
).
then
((
res
)
=>
{
obj
.
startTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
start
);
if
(
res
.
code
===
'000000'
)
{
obj
.
endTime
=
this
.
dateFormat
(
'YYYY-mm-dd HH:MM:SS'
,
item
.
end
);
// this.$toast(res.message);
console
.
log
(
obj
,
'obj'
);
// this.handleInitSearch(true);
objParms
.
list
.
push
(
obj
);
// this.$router.go(0);
}
this
.
loading
=
false
;
});
this
.
$message
({
saveDutyRoster
(
objParms
).
then
((
res
)
=>
{
message
:
'排班保存成功'
,
if
(
res
.
code
===
'000000'
)
{
type
:
'success'
// this.$toast(res.message);
});
// this.handleInitSearch(true);
}
else
{
// this.$router.go(0);
// this.$toast(res.message);
this
.
loading
=
false
;
this
.
$message
.
error
(
res
.
message
||
'排班保存失败'
);
if
(
type
==
1
)
{
}
this
.
$message
({
});
message
:
'排班保存成功'
,
type
:
'success'
});
}
this
.
isDoIt
=
false
;
}
else
{
// this.$toast(res.message);
this
.
$message
.
error
(
res
.
message
||
'排班保存失败'
);
}
});
}
},
},
dateFormat
(
fmt
,
date2
)
{
dateFormat
(
fmt
,
date2
)
{
const
date
=
new
Date
(
date2
);
const
date
=
new
Date
(
date2
);
...
...
vue.config.js
浏览文件 @
f0b8b344
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录