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
f57dae51
Commit
f57dae51
authored
Aug 11, 2021
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
7f0196be
34122328
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1279 additions
and
284 deletions
+1279
-284
applet-form.vue
src/components/enterprise/applet-form.vue
+103
-42
imagetext-form.vue
src/components/enterprise/imagetext-form.vue
+116
-44
selectMaterial.vue
src/components/enterprise/selectMaterial.vue
+154
-53
question-form.vue
src/components/exam/question-form.vue
+0
-1
questionbank-form.vue
src/components/exam/questionbank-form.vue
+140
-0
leave-form.vue
src/components/flow/leave-form.vue
+410
-0
addWelcome.vue
src/pages/enterprise/addWelcome.vue
+109
-20
welcomeList.vue
src/pages/enterprise/welcomeList.vue
+1
-1
examCreate.vue
src/pages/exam/examCreate.vue
+101
-0
examEdit.vue
src/pages/exam/examEdit.vue
+46
-51
examManagement.vue
src/pages/exam/examManagement.vue
+10
-6
processSet.vue
src/pages/system/processSet.vue
+84
-66
routes.js
src/router/routes.js
+5
-0
No files found.
src/components/enterprise/applet-form.vue
View file @
f57dae51
This diff is collapsed.
Click to expand it.
src/components/enterprise/imagetext-form.vue
View file @
f57dae51
This diff is collapsed.
Click to expand it.
src/components/enterprise/selectMaterial.vue
View file @
f57dae51
This diff is collapsed.
Click to expand it.
src/components/exam/question-form.vue
View file @
f57dae51
...
...
@@ -172,7 +172,6 @@
getQuestionList
()
{
this
.
loading
=
true
;
queryQuestionPageList
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
);
this
.
loading
=
false
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
...
...
src/components/exam/questionbank-form.vue
0 → 100644
View file @
f57dae51
<
template
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 850px;max-width:900px;"
>
<q-card-section>
<div
class=
"text-h6"
>
题库信息
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-12"
>
<q-input
@
input=
"research"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.BankName"
label=
"关键字"
@
clear=
"research"
maxlength=
"20"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"BankId"
selection=
"multiple"
:selected
.
sync=
"selectedQuestionBank"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
题库列表
</div>
<q-space
/>
</
template
>
<
template
v-slot:body-cell-Title=
"props"
>
<td
style=
"width:400px;"
>
<div
@
click=
"goDetail(props.row)"
v-html=
"props.row.Title"
class=
"quetion_Title"
>
</div>
</td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeSaveForm"
/>
<q-btn
label=
"确认选择"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"sureQuestionBank"
/>
</q-card-actions>
</q-card>
</q-dialog>
</template>
<
script
>
import
{
queryQuestionBankPage
,
}
from
'../../api/question/question'
;
export
default
{
data
()
{
return
{
persistent
:
true
,
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
BankName
:
''
},
pageCount
:
0
,
//总页数
loading
:
false
,
//表格加载进度条
columns
:
[{
name
:
'RowNum'
,
label
:
'编号'
,
field
:
'RowNum'
,
align
:
'left'
},
{
name
:
'BankNo'
,
label
:
'题库序号'
,
field
:
'BankNo'
,
align
:
'left'
,
},
{
name
:
'BankName'
,
label
:
'题库名称'
,
field
:
'BankName'
,
align
:
'left'
,
},
{
name
:
'CreateByName'
,
label
:
'创建人'
,
field
:
'CreateByName'
,
align
:
'left'
},
{
name
:
'QuestionCount'
,
label
:
'题量'
,
field
:
'QuestionCount'
,
align
:
'left'
},
],
dataList
:
[],
//数据列表
selectedQuestionBank
:
[],
//选择的题库
}
},
mounted
()
{
this
.
getQuestionBankPage
();
},
methods
:
{
//获取题库分页列表
getQuestionBankPage
()
{
queryQuestionBankPage
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}
})
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getQuestionBankPage
()
},
research
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getQuestionBankPage
();
},
//关闭弹窗
closeSaveForm
()
{
this
.
$emit
(
'close'
)
this
.
persistent
=
false
},
//确认选择
sureQuestionBank
()
{
this
.
persistent
=
false
;
var
tempArray
=
[];
if
(
this
.
selectedQuestionBank
&&
this
.
selectedQuestionBank
.
length
>
0
)
{
this
.
selectedQuestionBank
.
forEach
(
item
=>
{
tempArray
.
push
({
BankId
:
item
.
BankId
,
BankName
:
item
.
BankName
,
})
})
}
this
.
$emit
(
'success'
,
tempArray
);
},
},
}
</
script
>
src/components/flow/leave-form.vue
0 → 100644
View file @
f57dae51
This diff is collapsed.
Click to expand it.
src/pages/enterprise/addWelcome.vue
View file @
f57dae51
...
...
@@ -56,6 +56,37 @@
{{
addMsg
.
Content
}}
</div>
</div>
<div
style=
"display: flex;align-items: flex-start;margin-top: 15px;"
v-for=
"(item,index) in MediumModel"
:key=
"index"
>
<i
class=
"el-icon-user"
style=
"margin-right:20px;font-size: 40px;color: #1890ff;"
></i>
<div
v-if=
"item.Type==2"
style=
"width: 1px; flex:1;"
>
<q-img
:src=
"item.ImageModel.ImagePath"
style=
"width: 70%;"
>
</q-img>
</div>
<div
v-if=
"item.Type==3"
style=
"width: 1px; flex:1;padding: 10px 15px; border: 1px solid #eee; border-radius: 4px; background: #fff;"
>
<div>
{{
item
.
ImgTextModel
.
Title
}}
</div>
<div
style=
"display: flex;align-items: flex-start;justify-content: space-between;"
>
<div
style=
"width: 1px;flex:1"
>
{{
item
.
ImgTextModel
.
Description
}}
</div>
<q-img
:src=
"item.ImgTextModel.ImgPath"
style=
"width: 80px;height: 80px;margin-left: 10px;"
>
</q-img>
</div>
</div>
<div
v-if=
"item.Type==6"
style=
"width: 70%;padding: 10px 15px; border: 1px solid #eee; border-radius: 4px; background: #fff;"
>
<div>
{{
item
.
AppletModel
.
Title
}}
</div>
<q-img
:src=
"item.AppletModel.ImagePath"
style=
"width: 100%;"
>
</q-img>
</div>
</div>
</div>
</div>
<div
class=
"box_r"
>
...
...
@@ -87,11 +118,12 @@
<div
v-if=
"MediumModel.length>0"
>
<div
class=
"row items-center"
v-for=
"(x,y) in MediumModel"
:key=
"y"
>
<i
class=
"el-icon-link"
></i>
<span
style=
"margin-left: 10px;cursor: pointer;"
@
click=
"selectimg"
>
{{
Selectobj
.
name
}}
</span>
<i
style=
"margin-left: 10px;cursor: pointer"
class=
"el-icon-close"
@
click=
"Selectobj=
{}">
</i>
<span
style=
"margin-left: 10px;cursor: pointer;"
>
{{
getType
(
x
,
'title'
)
}}
</span>
<i
style=
"margin-left: 10px;cursor: pointer"
class=
"el-icon-close"
@
click=
"deleteModel(y)"
></i>
</div>
</div>
<q-btn
color=
"white"
text-color=
"black"
label=
"+添加图片/图文/小程序"
size=
'md'
>
<q-popup-proxy
ref=
'popupproxy'
>
<q-banner>
...
...
@@ -103,12 +135,13 @@
</q-banner>
</q-popup-proxy>
</q-btn>
</el-form-item>
</el-form>
<q-card-actions
align=
"left"
class=
"bg-white"
style=
"margin-top: 15px;"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"保存"
@
click=
"savemove()"
style=
"width: 100px;"
:loading=
"loading"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"保存"
@
click=
"savemove()"
style=
"width: 100px;"
:loading=
"loading"
/>
<q-btn
class=
"q-mr-md"
label=
"返回"
@
click=
"goblck()"
style=
"width: 60px;"
/>
</q-card-actions>
</div>
...
...
@@ -139,14 +172,13 @@
</div>
</el-dialog>
<!-- 图片 -->
<selectMaterial
v-if=
"isshowselectMaterial"
:materialType=
"materialType"
:
saveobj=
'Selectobj'
:
classifyList=
'classifyList'
<selectMaterial
v-if=
"isshowselectMaterial"
:materialType=
"materialType"
:classifyList=
'classifyList'
@
close=
"getclose()"
@
success=
'getsuccess'
>
</selectMaterial>
<!-- 图文 -->
<imagetextform
v-if=
"isshowimagetext"
:saveobj=
'Selectobj'
@
close=
"gettwclose()"
@
success=
'gettwsuccess'
>
</imagetextform>
<imagetextform
v-if=
"isshowimagetext"
@
close=
"gettwclose()"
@
success=
'gettwsuccess'
:classifyList=
'classifyList'
></imagetextform>
<!-- 小程序 -->
<appletform
v-if=
"isshowapplet"
:saveobj=
'Selectobj'
@
close=
"getxcxclose()"
@
success=
'getxcxsuccess
'
>
<appletform
v-if=
"isshowapplet"
@
close=
"getxcxclose()"
@
success=
'getxcxsuccess'
:classifyList=
'classifyList
'
>
</appletform>
</div>
</
template
>
...
...
@@ -179,7 +211,7 @@
outerVisible
:
false
,
//选择人员弹窗
filterText
:
''
,
//人员选择 帅选
memberList
:
[],
//
allmemberList
:[],
allmemberList
:
[],
showMember
:
[],
membertype
:
'1'
,
ryList
:
[],
...
...
@@ -198,9 +230,8 @@
isshowselectMaterial
:
false
,
isshowimagetext
:
false
,
isshowapplet
:
false
,
Selectobj
:
{},
//选中对象
MediumModel
:[],
classifyList
:[],
MediumModel
:
[],
//已选的添加内容
classifyList
:
[],
}
},
created
()
{
...
...
@@ -210,7 +241,7 @@
getWeChatMediumGroupList
()
{
getWeChatMediumGroupList
({}).
then
(
res
=>
{
this
.
classifyList
=
res
.
Data
})
},
getMember2
()
{
...
...
@@ -219,7 +250,7 @@
queryEmployee
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
memberList
=
res
.
Data
;
this
.
allmemberList
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
Data
))
;
this
.
allmemberList
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
Data
));
}
}).
catch
(()
=>
{
...
...
@@ -258,7 +289,7 @@
if
(
!
value
)
return
true
;
return
data
.
DepartmentName
.
indexOf
(
value
)
!==
-
1
;
},
getmemlist
(){
getmemlist
()
{
if
(
this
.
filterText
===
''
)
{
this
.
memberList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
allmemberList
))
}
else
{
...
...
@@ -285,9 +316,34 @@
},
getsuccess
(
data
)
{
//选择数据回来
this
.
Selectobj
=
data
this
.
ISidentical
(
data
)
this
.
isshowselectMaterial
=
false
},
ISidentical
(
data
){
//返回来的数据进行判断再添加
if
(
this
.
MediumModel
.
length
>
0
){
let
isyes
=
false
this
.
MediumModel
.
map
(
x
=>
{
if
(
x
.
Id
==
data
.
Id
){
isyes
=
true
;
return
}
})
if
(
isyes
==
false
){
this
.
MediumModel
.
push
(
data
)
}
else
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`重复选择、请您重新选择!`
,
position
:
'top'
})
return
}
}
else
{
this
.
MediumModel
=
[];
this
.
MediumModel
.
push
(
data
)
}
},
selecttextimg
()
{
//图文
this
.
isshowimagetext
=
true
;
...
...
@@ -299,7 +355,7 @@
this
.
isshowimagetext
=
false
;
},
gettwsuccess
(
data
)
{
//图文返回成功
this
.
Selectobj
=
data
this
.
ISidentical
(
data
)
this
.
isshowimagetext
=
false
},
...
...
@@ -314,8 +370,8 @@
getxcxclose
()
{
//小程序 关闭
this
.
isshowapplet
=
false
;
},
getxcxsuccess
()
{
//小程序 关闭
this
.
Selectobj
=
data
getxcxsuccess
(
data
)
{
//小程序 关闭
this
.
ISidentical
(
data
)
this
.
isshowapplet
=
false
},
savemove
()
{
//保存
...
...
@@ -336,6 +392,16 @@
return
}
}
this
.
addMsg
.
MediumIds
==
''
if
(
this
.
MediumModel
&&
this
.
MediumModel
.
length
>
0
){
let
ids
=
[]
this
.
MediumModel
.
forEach
(
x
=>
{
ids
.
push
(
x
.
Id
)
})
this
.
addMsg
.
MediumIds
=
ids
.
join
(
','
)
}
if
(
this
.
addMsg
.
MediumIds
==
''
)
{
this
.
addMsg
.
Type
=
1
;
if
(
this
.
addMsg
.
Content
==
''
)
{
...
...
@@ -367,6 +433,29 @@
goblck
()
{
//返回上一个页面
this
.
$router
.
go
(
-
1
);
//返回上一层
},
getType
(
row
,
name
)
{
let
title
=
''
let
content
=
''
if
(
row
.
Type
==
2
)
{
title
=
row
.
ImageModel
.
ImageName
content
=
row
.
ImageModel
.
ImagePath
}
else
if
(
row
.
Type
==
3
)
{
title
=
row
.
ImgTextModel
.
Title
content
=
row
.
ImgTextModel
.
ImgPath
}
else
if
(
row
.
Type
==
6
)
{
title
=
row
.
AppletModel
.
Title
content
=
row
.
AppletModel
.
ImagePath
}
if
(
name
==
'title'
)
{
return
title
}
else
if
(
name
==
'content'
)
{
return
content
}
},
deleteModel
(
index
){
this
.
MediumModel
.
splice
(
index
,
1
)
}
}
...
...
src/pages/enterprise/welcomeList.vue
View file @
f57dae51
...
...
@@ -161,7 +161,7 @@
getWeChatWelcomesPageList
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
Count
this
.
pageCount
=
res
.
Data
.
Page
Count
this
.
data
.
forEach
(
x
=>
{
x
.
UserIdName
=
''
x
.
UserIdList
.
map
((
j
,
i
)
=>
{
...
...
src/pages/exam/examCreate.vue
0 → 100644
View file @
f57dae51
<!--组卷-->
<
style
>
.examCreate
{
margin-left
:
100px
;
}
</
style
>
<
template
>
<div
class=
"examCreate"
>
<br
/>
组卷题库(*):
{{
ShowBankName
}}
<a
style=
"cursor:pointer;color:blue"
@
click=
"showQuestionBank"
>
选择题库
</a>
<br
/>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"postMsg.GenerateType==1"
class=
"q-mr-md"
label=
"智能组卷"
/>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"postMsg.GenerateType==2,setExamPaper"
class=
"q-mr-md"
label=
"手动组卷"
/>
<br
/>
<br
/>
<template
v-if=
"postMsg.GenerateType==1"
>
</
template
>
<
template
v-if=
"postMsg.GenerateType==2"
>
</
template
>
<questionbankForm
v-if=
"isShowQuestionBank"
@
close=
"closeQuestionBankForm"
@
success=
"getBankData"
>
</questionbankForm>
</div>
</template>
<
script
>
import
questionbankForm
from
'../../components/exam/questionbank-form'
import
{
queryQuestionTypeList
,
queryDifficultyType
,
queryQuestionCategory
,
queryQuestionLevelType
}
from
'../../api/question/question'
import
{
savePaperInfo
,
}
from
'../../api/teacher/index'
;
export
default
{
components
:
{
questionbankForm
},
meta
:
{
title
:
"组卷"
},
data
()
{
return
{
isShowQuestionBank
:
false
,
//是否显示题库列表
postMsg
:
{
PaperId
:
0
,
//试卷编号
PaperName
:
"新建试卷"
,
//试卷名称
QuestionBandIds
:
""
,
//题库编号【多个逗号分割】
DifficultyType
:
1
,
//难易程度
GenerateType
:
0
,
//组卷类型(1-智能组卷,2-手动组卷,3-智能导入)
},
ShowBankName
:
""
,
//显示题库名称
}
},
created
()
{
},
mounted
()
{
},
methods
:
{
//显示题库
showQuestionBank
()
{
this
.
isShowQuestionBank
=
true
;
},
//关闭题库
closeQuestionBankForm
()
{
this
.
isShowQuestionBank
=
false
;
},
//获取选择的题库
getBankData
(
bankArray
)
{
this
.
isShowQuestionBank
=
false
;
var
qBankIds
=
""
;
var
sBankName
=
""
;
if
(
bankArray
&&
bankArray
.
length
>
0
)
{
bankArray
.
forEach
(
item
=>
{
qBankIds
+=
","
+
item
.
BankId
;
sBankName
+=
","
+
item
.
BankName
;
});
}
if
(
qBankIds
.
substr
(
0
,
1
)
==
','
)
{
qBankIds
=
qBankIds
.
substr
(
1
);
}
if
(
sBankName
.
substr
(
0
,
1
)
==
','
)
{
sBankName
=
sBankName
.
substr
(
1
);
}
this
.
postMsg
.
QuestionBandIds
=
qBankIds
;
this
.
ShowBankName
=
sBankName
;
},
//保存试卷信息
setExamPaper
()
{
savePaperInfo
(
this
.
postMsg
).
then
(
res
=>
{
});
}
}
}
</
script
>
src/pages/exam/examEdit.vue
View file @
f57dae51
...
...
@@ -82,7 +82,7 @@
width
:
328px
;
}
.List-ul
li
{
.List-ul
li
{
display
:
block
;
padding-left
:
25px
;
line-height
:
33px
;
...
...
@@ -93,7 +93,7 @@
text-decoration
:
none
;
min-width
:
250px
;
overflow
:
hidden
;
padding-right
:
20px
;
padding-right
:
20px
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
}
...
...
@@ -119,42 +119,49 @@
justify-content
:
space-between
;
align-items
:
center
;
}
.List-bt
{
width
:
318px
;
height
:
27px
;
background
:
#fdfdfd
;
font-size
:
14px
;
line-height
:
27px
;
padding-left
:
10px
;
width
:
318px
;
height
:
27px
;
background
:
#fdfdfd
;
font-size
:
14px
;
line-height
:
27px
;
padding-left
:
10px
;
}
.List-ul
li
:hover
{
.List-ul
li
:hover
{
background
:
#a6a6a6
;
color
:
#333
;
}
.left-btn-list
{
padding
:
5px
10px
;
.left-btn-list
{
padding
:
5px
10px
;
display
:
inline-block
;
color
:
#555
;
border-radius
:
3px
;
font-size
:
14px
;
border
:
1px
solid
#999
;
margin-right
:
10px
;
font-size
:
14px
;
border
:
1px
solid
#999
;
margin-right
:
10px
;
cursor
:
pointer
;
}
#btn1
{
background
:
#26a69a
!important
;
#btn1
{
background
:
#26a69a
!important
;
}
.difficulty_Degree
{
.difficulty_Degree
{
display
:
inline-block
;
width
:
80px
;
width
:
80px
;
text-align
:
right
;
line-height
:
56px
;
}
.commonDalei
{
.commonDalei
{
display
:
flex
;
align-content
:
center
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
</
style
>
<
template
>
<div
class=
"examPaper"
>
...
...
@@ -164,8 +171,8 @@
<q-input
filled
label=
"标题"
v-model=
"DataObj.PaperName"
/>
</div>
<div
style=
"width:20%;"
>
<q-select
filled
option-value=
"Id"
option-label=
"Name"
:options=
"
easyList"
emit-value
map-options
label=
"难度"
use-input
clearable
v-model=
"DataObj.DifficultyType"
/>
<q-select
filled
option-value=
"Id"
option-label=
"Name"
:options=
"
questionDifficultyTypeList"
emit-value
map-options
label=
"难度"
use-input
clearable
v-model=
"DataObj.DifficultyType"
/>
</div>
</div>
<div
style=
"width:20%;text-align:right;"
>
...
...
@@ -200,13 +207,10 @@
</div>
<div
class=
"Exam-right f1"
>
<div
class=
"Left-btn"
>
<div>
<!-- <template v-for="(fItem,fIndex) in firstTypeList">
<span class="left-btn-list" :key="fIndex" @click="onItemClick(fItem)">{{fItem.Name}}</span>
</template> -->
<div>
<
template
v-for=
"(fItem,fIndex) in firstTypeList"
>
<q-btn
:key=
"fIndex"
color=
"accent"
:id=
"commonIndex==fIndex?'btn1':''"
size=
"sm"
:label=
"fItem.Name"
style=
"margin-left:5px;"
@
click=
"onItemClick(fItem,fIndex)"
/>
<q-btn
:key=
"fIndex"
color=
"accent"
:id=
"commonIndex==fIndex?'btn1':''"
size=
"sm"
:label=
"fItem.Name"
style=
"margin-left:5px;"
@
click=
"onItemClick(fItem,fIndex)"
/>
</
template
>
<q-btn-dropdown
color=
"accent"
size=
"sm"
label=
"更多"
style=
"margin-left:5px;"
>
<q-list>
...
...
@@ -219,9 +223,10 @@
</q-list>
</q-btn-dropdown>
</div>
<div>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"isShowQuestion=true"
class=
"q-mr-md"
label=
"题库选题"
/>
</div>
<div>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"isShowQuestion=true"
class=
"q-mr-md"
label=
"题库选题"
/>
</div>
</div>
<div
class=
"row wrap"
v-if=
"ChooseItem"
style=
"padding:20px;"
>
<div
class=
"edit_stem"
>
...
...
@@ -282,19 +287,19 @@
<div
class=
"col-12 commonDalei"
style=
"margin-top:20px;"
>
<span
class=
"difficulty_Degree"
>
难度:
</span>
<q-select
filled
option-value=
"Id"
size=
"sm"
style=
"display:inline-block;width:300px;"
option-label=
"Name"
v-model=
"ChooseItem.DifficultyType"
:options=
"questionDifficultyTypeList"
emit-value
map-options
/>
v-model=
"ChooseItem.DifficultyType"
:options=
"questionDifficultyTypeList"
emit-value
map-options
/>
</div>
<div
class=
"col-12 commonDalei"
>
<br
/>
<span
class=
"difficulty_Degree"
>
所属大类:
</span>
<q-select
filled
option-value=
"Id"
size=
"sm"
style=
"display:inline-block;width:300px;"
option-label=
"Name"
v-model=
"ChooseItem.Category"
:options=
"questionCategoryList"
emit-value
map-options
/>
v-model=
"ChooseItem.Category"
:options=
"questionCategoryList"
emit-value
map-options
/>
</div>
<div
class=
"col-12 commonDalei"
>
<br
/>
<span
class=
"difficulty_Degree"
>
考级程度:
</span>
<q-select
filled
option-value=
"Id"
size=
"sm"
style=
"display:inline-block;width:300px;"
option-label=
"Name"
v-model=
"ChooseItem.LevelType"
:options=
"questionLevalTypeList"
emit-value
map-options
/>
v-model=
"ChooseItem.LevelType"
:options=
"questionLevalTypeList"
emit-value
map-options
/>
</div>
<div
class=
"col-12"
>
<span
class=
"difficulty_Degree"
>
知识点:
</span>
...
...
@@ -328,7 +333,7 @@
import
cloze
from
'../../components/questiontype/cloze'
import
readingComprehensio
from
'../../components/questiontype/reading-comprehensio'
import
sharingChoose
from
'../../components/questiontype/sharing-choose'
import
questionForm
from
'../../components/exam/question-form'
import
questionForm
from
'../../components/exam/question-form'
import
{
GetPaper
,
savePaperInfo
,
...
...
@@ -365,16 +370,6 @@
initialFrameWidth
:
null
,
initialFrameHeight
:
80
,
},
easyList
:
[{
Id
:
1
,
Name
:
'难'
},
{
Id
:
2
,
Name
:
'中'
},
{
Id
:
3
,
Name
:
'易'
}],
msg
:
{
PaperId
:
0
},
...
...
@@ -388,8 +383,8 @@
choosePointArray
:
[],
//选择知识点
firstTypeList
:
[],
//第一类题型
secondTypeList
:
[],
//第二类题型
isShowQuestion
:
false
,
commonIndex
:
-
1
isShowQuestion
:
false
,
commonIndex
:
-
1
}
},
created
()
{
...
...
@@ -418,7 +413,7 @@
});
},
//题型点击
onItemClick
(
item
,
index
)
{
onItemClick
(
item
,
index
)
{
// this.AnswerList = [];
// this.questionObj = item;
// this.objOption.QuestionTypeId = item.QId;
...
...
@@ -428,7 +423,7 @@
// if (obj) {
// this.objOption.QuestionContent = JSON.stringify(obj);
// }
this
.
commonIndex
=
index
this
.
commonIndex
=
index
},
//获取问题大类
getQuestionCategory
()
{
...
...
@@ -470,10 +465,10 @@
console
.
log
(
"res"
,
res
);
})
},
closeQuestForm
(){
closeQuestForm
()
{
this
.
isShowQuestion
=
false
;
},
refreshPage
(){
refreshPage
()
{
}
}
...
...
src/pages/exam/examManagement.vue
View file @
f57dae51
...
...
@@ -30,10 +30,7 @@
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<!--
<div
class=
"col-3"
>
<q-select
@
input=
"getList"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.tikuName"
:options=
"tikuList"
emit-value
map-options
label=
"所属题库"
/>
</div>
-->
<div
class=
"col-3"
>
<q-input
@
change=
"getList"
clearable
filled
v-model=
"msg.PaperName"
@
clear=
"getList"
maxlength=
"20"
label=
"输入试卷名称、组卷人查找"
/>
...
...
@@ -47,7 +44,8 @@
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
试卷管理
</div>
<q-space
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"组卷"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"新增文件夹"
@
click=
"CreatePaper()"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"新增试卷"
@
click=
"CreatePaper()"
/>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
...
...
@@ -139,6 +137,11 @@
this
.
getList
();
},
methods
:
{
//创建试卷
CreatePaper
()
{
this
.
OpenNewUrl
(
'/exam/examCreate'
,
{
})
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
@@ -162,13 +165,14 @@
},
//点击编辑 跳转
goExameEdit
(
item
)
{
console
.
log
(
"item"
,
item
);
console
.
log
(
"item"
,
item
);
this
.
OpenNewUrl
(
'/exam/examEdit'
,
{
Id
:
item
.
PaperId
})
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
...
...
src/pages/system/processSet.vue
View file @
f57dae51
<
style
>
</
style
>
<
template
>
<div
class=
"page-body"
>
<q-tabs
style=
"margin-bottom:20px;"
v-model=
"tabCheck"
narrow-indicator
dense
align=
"left"
class=
"text-primary"
>
<q-tab
:ripple=
"false"
v-for=
"(qitem,qindex) in tabList"
:name=
"qitem.name"
:label=
"qitem.label"
:key=
"qindex"
/>
<q-tabs
style=
"margin-bottom: 20px"
v-model=
"tabCheck"
narrow-indicator
dense
align=
"left"
class=
"text-primary"
>
<q-tab
:ripple=
"false"
v-for=
"(qitem, qindex) in tabList"
:name=
"qitem.name"
:label=
"qitem.label"
:key=
"qindex"
/>
</q-tabs>
<div>
<template
v-if=
"tabCheck
==
'1'"
>
<template
v-if=
"tabCheck
==
'1'"
>
<!--退课流程-->
<backclassflow-form></backclassflow-form>
</
template
>
<
template
v-if=
"tabCheck
==
'2'"
>
<
template
v-if=
"tabCheck
==
'2'"
>
<!--调课流程-->
<changeclassflow-form></changeclassflow-form>
</
template
>
<
template
v-if=
"tabCheck==
'3'"
>
<
template
v-if=
"tabCheck ==
'3'"
>
<!--停课流程-->
<stopclassflow-form></stopclassflow-form>
</
template
>
<
template
v-if=
"tabCheck
==
'4'"
>
<
template
v-if=
"tabCheck
==
'4'"
>
<!-- 转班流程 -->
<transfer-form></transfer-form>
</
template
>
<
template
v-if=
"tabCheck
==
'5'"
>
<
template
v-if=
"tabCheck
==
'5'"
>
<!-- 临时上课邀请流程 -->
<temporaryClass-form></temporaryClass-form>
</
template
>
<
template
v-if=
"tabCheck
==
'6'"
>
<
template
v-if=
"tabCheck
==
'6'"
>
<!-- 分拆 -->
<separate-form></separate-form>
</
template
>
<
template
v-if=
"tabCheck == '7'"
>
<!-- 请假流程 -->
<leave-form></leave-form>
</
template
>
</div>
</div>
</template>
<
script
>
import
backclassflowForm
from
'../../components/flow/backclassflow-form'
;
import
changeclassflowForm
from
'../../components/flow/changeclassflow-form'
;
import
stopclassflowForm
from
'../../components/flow/stopclassflow-form'
;
import
transferForm
from
'../../components/flow/transfer-form'
;
import
temporaryClassForm
from
'../../components/flow/temporaryClass-form'
;
import
separateForm
from
'../../components/flow/separate-form'
export
default
{
meta
:
{
title
:
"流程设置"
},
components
:
{
backclassflowForm
,
changeclassflowForm
,
stopclassflowForm
,
transferForm
,
temporaryClassForm
,
separateForm
},
data
()
{
return
{
tabList
:
[{
name
:
"1"
,
label
:
"退课流程"
,
},
{
name
:
"2"
,
label
:
"调课流程"
,
},
{
name
:
"3"
,
label
:
"停课流程"
,
},
{
name
:
"4"
,
label
:
"转班流程"
},
{
name
:
"5"
,
label
:
"临时上课邀请流程"
},
{
name
:
"6"
,
label
:
"分拆"
}
],
tabCheck
:
'1'
,
}
},
created
()
{},
mounted
()
{
},
methods
:
{
}
}
import
backclassflowForm
from
"../../components/flow/backclassflow-form"
;
import
changeclassflowForm
from
"../../components/flow/changeclassflow-form"
;
import
stopclassflowForm
from
"../../components/flow/stopclassflow-form"
;
import
transferForm
from
"../../components/flow/transfer-form"
;
import
temporaryClassForm
from
"../../components/flow/temporaryClass-form"
;
import
separateForm
from
"../../components/flow/separate-form"
;
import
leaveForm
from
"../../components/flow/leave-form"
;
export
default
{
meta
:
{
title
:
"流程设置"
,
},
components
:
{
backclassflowForm
,
changeclassflowForm
,
stopclassflowForm
,
transferForm
,
temporaryClassForm
,
separateForm
,
leaveForm
,
},
data
()
{
return
{
tabList
:
[
{
name
:
"1"
,
label
:
"退课流程"
,
},
{
name
:
"2"
,
label
:
"调课流程"
,
},
{
name
:
"3"
,
label
:
"停课流程"
,
},
{
name
:
"4"
,
label
:
"转班流程"
,
},
{
name
:
"5"
,
label
:
"临时上课邀请流程"
,
},
{
name
:
"6"
,
label
:
"分拆"
,
},
// {
// name: "7",
// label: "请假流程",
// },
],
tabCheck
:
"1"
,
};
},
created
()
{},
mounted
()
{},
methods
:
{},
};
</
script
>
src/router/routes.js
View file @
f57dae51
...
...
@@ -1048,6 +1048,11 @@ const routes = [{
component
:
()
=>
import
(
"pages/exam/examEdit"
)
},
{
path
:
"/exam/examCreate"
,
//考试组卷
component
:
()
=>
import
(
"pages/exam/examCreate"
)
},
{
path
:
"/teacher/testdatabase"
,
//题库查询
component
:
()
=>
...
...
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