Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
adf8ef09
Commit
adf8ef09
authored
Aug 09, 2021
by
Mac
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
623b19b2
33da04d1
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
71 additions
and
71 deletions
+71
-71
class-form.vue
src/components/course/class-form.vue
+60
-52
allAddSC.vue
src/components/enterprise/material/allAddSC.vue
+1
-1
allmaterial.vue
src/components/enterprise/material/allmaterial.vue
+1
-1
audiomaterial.vue
src/components/enterprise/material/audiomaterial.vue
+2
-2
videomaterial.vue
src/components/enterprise/material/videomaterial.vue
+1
-1
selectMaterial.vue
src/components/enterprise/selectMaterial.vue
+1
-1
dict-select-emp.vue
src/components/system/dict-select-emp.vue
+3
-11
addWelcome.vue
src/pages/enterprise/addWelcome.vue
+1
-1
noticeSysSet.vue
src/pages/system/noticeSysSet.vue
+1
-1
No files found.
src/components/course/class-form.vue
View file @
adf8ef09
...
...
@@ -640,8 +640,8 @@
})
return
}
for
(
let
j
=
0
;
j
<
this
.
DefaultPlanTimeList
[
i
].
TimeList
.
length
;
j
++
)
{
if
(
this
.
DefaultPlanTimeList
[
i
].
TimeList
[
j
].
StartTime
==
''
)
{
for
(
let
j
=
0
;
j
<
this
.
DefaultPlanTimeList
[
i
].
TimeList
.
length
;
j
++
)
{
if
(
this
.
DefaultPlanTimeList
[
i
].
TimeList
[
j
].
StartTime
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
...
...
@@ -649,7 +649,7 @@
})
return
}
if
(
this
.
DefaultPlanTimeList
[
i
].
TimeList
[
j
].
EndTime
==
''
)
{
if
(
this
.
DefaultPlanTimeList
[
i
].
TimeList
[
j
].
EndTime
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
...
...
@@ -657,7 +657,7 @@
})
return
}
if
(
this
.
DefaultPlanTimeList
[
i
].
TimeList
[
j
].
TimeHour
==
''
)
{
if
(
this
.
DefaultPlanTimeList
[
i
].
TimeList
[
j
].
TimeHour
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
...
...
@@ -688,15 +688,37 @@
this
.
saveCourseLoading
=
true
;
saveClass
(
this
.
objOption
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
//有上课计划
if
(
res
.
Data
&&
res
.
Data
.
ClassPlanList
&&
res
.
Data
.
ClassPlanList
.
length
>
0
)
{
if
(
this
.
objOption
.
ClassDateList
.
length
<
2
)
{
var
newClassId
=
res
.
Data
.
ClassId
var
PlanList
=
res
.
Data
.
ClassPlanList
;
// //有上课计划
// if (res.Data && res.Data.ClassPlanList && res.Data.ClassPlanList.length > 0 && this.objOption
// .ClassDateList.length
<
2
)
{
// this.checkPlan(newClassId, PlanList)
// } else {
// this.refreshForm();
// }
this
.
refreshForm
();
}
else
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`操作失败!`
})
}
}).
catch
(()
=>
{
this
.
BtnStr
=
"立即提交"
this
.
saveCourseLoading
=
false
})
}
},
//检查上课计划是否冲突
checkPlan
(
ClassId
,
ClassPlanList
)
{
this
.
BtnStr
=
"正在检查排班是否存在冲突"
;
var
newMsg
=
{
ClassId
:
res
.
Data
.
ClassId
,
PlanList
:
res
.
Data
.
ClassPlanList
,
ClassId
:
ClassId
,
PlanList
:
ClassPlanList
,
}
var
NewClassId
=
res
.
Data
.
ClassId
;
var
NewClassId
=
ClassId
;
batchSaveClassPlan
(
newMsg
).
then
(
res
=>
{
this
.
saveCourseLoading
=
false
if
(
res
.
Code
==
1
)
{
...
...
@@ -710,20 +732,13 @@
})
this
.
$emit
(
'getClassFlict'
,
NewClassId
);
}
else
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
})
this
.
refreshForm
()
}
this
.
$emit
(
"success"
)
this
.
closeCourseForm
()
}
})
}
}
else
{
});
},
//刷新表单
refreshForm
()
{
this
.
saveCourseLoading
=
false
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
...
...
@@ -732,15 +747,8 @@
message
:
'数据保存成功!'
,
position
:
'top'
})
this
.
$emit
(
"success"
)
this
.
closeCourseForm
()
}
}
}).
catch
(()
=>
{
this
.
BtnStr
=
"立即提交"
this
.
saveCourseLoading
=
false
})
}
this
.
$emit
(
"success"
);
this
.
closeCourseForm
();
},
//获取课程
getCourseList
()
{
...
...
src/components/enterprise/material/allAddSC.vue
View file @
adf8ef09
...
...
@@ -545,7 +545,7 @@
if
(
this
.
type
==
5
)
{
//视频上传
// 文件类型进行判断
const
isLt10M
=
files
.
size
/
1024
/
1024
<
10
;
console
.
log
(
files
)
if
([
'video/mp4'
,
'video/ogg'
,
'video/flv'
,
'video/avi'
,
'video/wmv'
,
'video/rmvb'
].
indexOf
(
files
.
type
)
==
-
1
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
...
...
src/components/enterprise/material/allmaterial.vue
View file @
adf8ef09
...
...
@@ -121,7 +121,7 @@
}
},
created
()
{
console
.
log
(
'进去所有页面'
)
},
methods
:
{
changePage
(
e
){
...
...
src/components/enterprise/material/audiomaterial.vue
View file @
adf8ef09
...
...
@@ -91,7 +91,7 @@
const
isAudio
=
file
.
type
===
"audio/mp3"
||
file
.
type
===
"audio/mpeg"
;
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
;
const
isTime60S
=
this
.
getTimes
(
file
)
>=
60
?
true
:
false
;
console
.
log
(
isTime60S
)
// 获取时长
;
if
(
!
isAudio
)
{
...
...
@@ -118,7 +118,7 @@
UploadSelfFile
(
"course"
,
file
,
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
addMsg
.
img
=
res
.
FileUrl
;
console
.
log
(
res
.
FileUrl
)
}
});
}
...
...
src/components/enterprise/material/videomaterial.vue
View file @
adf8ef09
...
...
@@ -92,7 +92,7 @@
UploadSelfFile
(
"course"
,
file
,
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
addMsg
.
img
=
res
.
FileUrl
;
console
.
log
(
res
.
FileUrl
)
}
});
},
...
...
src/components/enterprise/selectMaterial.vue
View file @
adf8ef09
...
...
@@ -196,7 +196,7 @@
this
.
$emit
(
'close'
)
},
getList
(){
//获取数据
console
.
log
(
'获取数据'
)
},
resetSearch
(){
this
.
msg
.
pageIndex
=
1
;
...
...
src/components/system/dict-select-emp.vue
View file @
adf8ef09
...
...
@@ -34,15 +34,7 @@ export default {
msg
:
{}
}
},
// watch: {
// dict: {
// handler(val) {
// this.msg = val
// console.log(this.msg)
// },
// deep: true
// }
// },
created
()
{
try
{
if
(
!
this
.
multiple
)
{
...
...
@@ -56,9 +48,9 @@ export default {
}
this
.
msg
=
this
.
dict
console
.
log
(
this
.
msg
)
}
catch
(
error
)
{
console
.
log
(
'错误'
,
error
)
}
},
...
...
src/pages/enterprise/addWelcome.vue
View file @
adf8ef09
...
...
@@ -282,7 +282,7 @@
selectxcx
(){
//图文
this
.
isshowapplet
=
true
;
console
.
log
(
232323
)
if
(
this
.
$refs
.
popupproxy
){
this
.
$refs
.
popupproxy
.
hide
()
}
...
...
src/pages/system/noticeSysSet.vue
View file @
adf8ef09
...
...
@@ -124,7 +124,7 @@
},
changeStatus
(
x
){
x
.
EditorStatus
=!
x
.
EditorStatus
console
.
log
(
x
)
this
.
$forceUpdate
()
},
init
(){
...
...
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