@ -1,18 +1,37 @@
< template >
< template >
< div class = "code-wrap flex" >
< div class = "code-wrap flex" >
< div class = "left" >
< div class = "left" >
< codemirror v-model ="codeVal" :options="cmOption" class="code-mirror" @ready="ready" ref="codemirror" >
< codemirror v -model = " codeVal "
< / codemirror >
: options = "cmOption"
< div v-if ="isSubmit" class="code-mask" > < / div >
class = "code-mirror"
@ ready = "ready"
ref = "codemirror" > < / codemirror >
< div v -if = " isSubmit "
class = "code-mask" > < / div >
< div class = "btns" >
< div class = "btns" >
< template v-if ="!pid" >
< template v-if ="!pid" >
< span class = "el-icon-delete del" @click ="clearCode" > < / span >
< span class = "el-icon-delete del"
< el -button v-if ="isPrac" class="btn" type="danger" @click="myCode" > 我的代码 < / el -button >
@ click = "clearCode" > < / span >
< el -button v-if ="modelIsShow" class="btn" type="warning" @click="importModel" > 导入模型 < / el -button >
< el -button v -if = " isPrac "
< el -button class = "run btn" type = "primary" @click ="runCode(false)" :disabled ="runEnable" > 运行 < / e l - b u t t o n >
class = "btn"
type = "danger"
@ click = "myCode" > 我的代码 < / e l - b u t t o n >
< el -button v -if = " modelIsShow "
class = "btn"
type = "warning"
@ click = "importModel" > 导入模型 < / e l - b u t t o n >
< el -button class = "run btn"
type = "primary"
@ click = "runCode(false)"
: disabled = "runEnable" > 运行 < / e l - b u t t o n >
< / template >
< / template >
< el -popconfirm v -else title = "确定终止运行本次代码?" @confirm ="stopRunCode" >
< el -popconfirm v -else
< el -button slot = "reference" class = "run" type = "danger" :disabled ="runEnable" > 终止运行 < / e l - b u t t o n >
title = "确定终止运行本次代码?"
@ confirm = "stopRunCode" >
< el -button slot = "reference"
class = "run"
type = "danger"
: disabled = "runEnable" > 终止运行 < / e l - b u t t o n >
< / e l - p o p c o n f i r m >
< / e l - p o p c o n f i r m >
< / div >
< / div >
@ -20,28 +39,50 @@
< div class = "line" > < / div >
< div class = "line" > < / div >
< div class = "code-right answer" >
< div class = "code-right answer" >
< p : class = "['text-wrapper', 'pic-num' + picSrcList.length]" > { { runResult } } < / p >
< p : class = "['text-wrapper', 'pic-num' + picSrcList.length]" > { { runResult } } < / p >
< div : class = "['pic-wrap', { wrong: isError === 0 }]" v-if ="picSrcList.length" >
< div : class = "['pic-wrap', {wrong: isError === 0}]"
< div class = "pic-item" v-for ="(img, i) in picSrcList" :key ="i" >
v - if = "picSrcList.length" >
< div class = "pic-item"
v - for = "(img, i) in picSrcList"
: key = "i" >
< div class = "pic-inner" >
< div class = "pic-inner" >
< el -image class = "pic" :src ="img" :preview-src-list ="picSrcList" >
< el -image class = "pic"
: src = "img"
: preview - src - list = "picSrcList" >
< / e l - i m a g e >
< / e l - i m a g e >
< / div >
< / div >
< el -button class = "download-btn btn" type = "primary" size = "mini" @click ="downloadPic(i)" > 下载图片 < / el -button >
< el -button class = "download-btn btn"
< a : ref = "'picLink' + i" style = "display: none;" download = "运行结果.png" :href ="img" > 下载图片 < / a >
type = "primary"
size = "mini"
@ click = "downloadPic(i)" > 下载图片 < / e l - b u t t o n >
< a : ref = "'picLink' + i"
style = "display: none;"
download = "运行结果.png"
: href = "img" > 下载图片 < / a >
< / div >
< / div >
< / div >
< / div >
< div class = "result-right t-color" v-show ="isError" >
< div class = "result-right t-color"
< img :src ="require(`@/assets/images/system/${$themeId}/yes.png`)" alt / > 运行成功
v - show = "isError" >
< el -button class = "tips-btn" @click ="exportResult" > 导出结果 < / el -button >
< img :src ="require(`@/assets/images/system/${$themeId}/yes.png`)"
alt / > 运行成功
< el -button class = "tips-btn"
@ click = "exportResult" > 导出结果 < / e l - b u t t o n >
< / div >
< / div >
< div class = "result-wrong" v-show ="isError === 0" >
< div class = "result-wrong"
< img src = "@/assets/images/error.png" alt / >
v - show = "isError === 0" >
第 { { errLine } } 行出现错误
< img src = "@/assets/images/error.png"
< el -button class = "tips-btn" @click ="getTips" v-show ="isPrac" > 提示 < / el -button >
alt / >
< el -dialog title = "答案提示" center :close-on-click-modal ="false" :visible.sync ="tipsVisible" >
第 { { errLine } } 行出现错误
< el -button class = "tips-btn"
@ click = "getTips"
v - show = "isPrac" > 提示 < / e l - b u t t o n >
< el -dialog title = "答案提示"
center
: close - on - click - modal = "false"
: visible . sync = "tipsVisible" >
< el -tabs >
< el -tabs >
< el -tab -pane label = "参考答案" >
< el -tab -pane label = "参考答案" >
< div : class = "['answer-wrap', { client: !fromManager }]" v-html ="correctAnswer" > < / div >
< div : class = "['answer-wrap', {client: !fromManager}]"
v - html = "correctAnswer" > < / div >
< / e l - t a b - p a n e >
< / e l - t a b - p a n e >
< / e l - t a b s >
< / e l - t a b s >
< / e l - d i a l o g >
< / e l - d i a l o g >
@ -49,10 +90,18 @@
< / div >
< / div >
<!-- 导入模型 -- >
<!-- 导入模型 -- >
< el -dialog title = "请选择要导入的模型" :visible.sync ="modelVisible" width = "400px" :close-on-click-modal ="false"
< el -dialog title = "请选择要导入的模型"
custom - class = "model-dia" >
: visible . sync = "modelVisible"
< el -select class = "w-100" v-model ="modelType" size="mini" >
width = "400px"
< el -option v-for ="item in modelOp" :key="item.id" :label="item.name" :value="item.id" >
: close - on - click - modal = "false"
custom - class = "model-dia" >
< el -select class = "w-100"
v - model = "modelType"
size = "mini" >
< el -option v -for = " item in modelOp "
: key = "item.id"
: label = "item.name"
: value = "item.id" >
< / e l - o p t i o n >
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - s e l e c t >
<!-- < el -radio -group v -model = " modelType "
<!-- < el -radio -group v -model = " modelType "
@ -66,80 +115,161 @@
< / e l - r a d i o - g r o u p > - - >
< / e l - r a d i o - g r o u p > - - >
<!-- < el -divider > < / e l - d i v i d e r > - - >
<!-- < el -divider > < / e l - d i v i d e r > - - >
< div class = "model-wrap" >
< div class = "model-wrap" >
< el -tree v -if = " ! modelType " :data ="schoolModel" ref = "tree" default -expand -all @check-change ="treeCheckChange"
< el -tree v -if = " ! modelType "
show - checkbox : check - strictly = "true" node - key = "id"
: data = "schoolModel"
: props = "{ children: 'children', label: 'categoryName', isLeaf: 'leaf' }" v - loading = "modelLoading" >
ref = "tree"
default - expand - all
@ check - change = "treeCheckChange"
show - checkbox
: check - strictly = "true"
node - key = "id"
: props = "{children: 'children', label: 'categoryName', isLeaf: 'leaf'}"
v - loading = "modelLoading" >
< / e l - t r e e >
< / e l - t r e e >
< el -tree v -if = " modelType " :data ="systemModel" ref = "tree" default -expand -all @check-change ="treeCheckChange"
< el -tree v -if = " modelType "
show - checkbox : check - strictly = "true" node - key = "id"
: data = "systemModel"
: props = "{ children: 'children', label: 'categoryName', isLeaf: 'leaf' }" v - loading = "modelLoading" >
ref = "tree"
default - expand - all
@ check - change = "treeCheckChange"
show - checkbox
: check - strictly = "true"
node - key = "id"
: props = "{children: 'children', label: 'categoryName', isLeaf: 'leaf'}"
v - loading = "modelLoading" >
< / e l - t r e e >
< / e l - t r e e >
< / div >
< / div >
< span slot = "footer" class = "dialog-footer" >
< span slot = "footer"
< el -button size = "small" @ click = "modelVisible = false" > 取消 < / e l - b u t t o n >
class = "dialog-footer" >
< el -button size = "small" type = "primary" @click ="submit" > 导入 < / el -button >
< el -button size = "small"
@ click = "modelVisible = false" > 取消 < / e l - b u t t o n >
< el -button size = "small"
type = "primary"
@ click = "submit" > 导入 < / e l - b u t t o n >
< / span >
< / span >
< / e l - d i a l o g >
< / e l - d i a l o g >
< el -dialog title = "我的代码" :visible.sync ="codeVisible" width = "1200px" :close-on-click-modal ="false"
< el -dialog title = "我的代码"
custom - class = "code-dia" >
: visible . sync = "codeVisible"
< el -tooltip class = "item" content = "列表中展示当前课程已提交的实验代码" placement = "right" >
width = "1200px"
< i class = "info el-icon-warning" style = "margin-right: 10px" > < / i >
: close - on - click - modal = "false"
custom - class = "code-dia" >
< el -tooltip class = "item"
content = "列表中展示当前课程已提交的实验代码"
placement = "right" >
< i class = "info el-icon-warning"
style = "margin-right: 10px" > < / i >
< / e l - t o o l t i p >
< / e l - t o o l t i p >
< div class = "tool" >
< div class = "tool" >
< el -input style = "width: 250px" placeholder = "请输入项目名称、判分点名称" v -model = " keyword " suffix -icon = " el -icon -search "
< el -input style = "width: 250px"
clearable size = "small" > < / e l - i n p u t >
placeholder = "请输入项目名称、判分点名称"
v - model = "keyword"
suffix - icon = "el-icon-search"
clearable
size = "small" > < / e l - i n p u t >
< div class = "action" >
< div class = "action" >
< el -button class = "cus-btn" type = "primary" size = "small" @click ="delAll" > 批量删除 < / el -button >
< el -button class = "cus-btn"
type = "primary"
size = "small"
@ click = "delAll" > 批量删除 < / e l - b u t t o n >
< / div >
< / div >
< / div >
< / div >
< el -table :data ="codeList" class = "cus-table" ref = "table" stripe max -height = " 400 " header -align = " center "
< el -table :data ="codeList"
@ selection - change = "handleSelectionChange" >
class = "cus-table"
< el -table -column type = "selection" width = "60" align = "center" > < / e l - t a b l e - c o l u m n >
ref = "table"
< el -table -column type = "index" label = "序号" width = "55" align = "center" > < / e l - t a b l e - c o l u m n >
stripe
< el -table -column prop = "judgmentName" label = "判分点" min -width = " 250 " align = "center"
max - height = "400"
show - overflow - tooltip > < / e l - t a b l e - c o l u m n >
header - align = "center"
< el -table -column prop = "projectName" label = "项目名称" min -width = " 250 " align = "center"
@ selection - change = "handleSelectionChange" >
show - overflow - tooltip > < / e l - t a b l e - c o l u m n >
< el -table -column type = "selection"
< el -table -column prop = "submitTime" label = "提交时间" width = "140" align = "center" > < / e l - t a b l e - c o l u m n >
width = "60"
< el -table -column prop = "score" label = "是否得分" width = "80" align = "center" > < / e l - t a b l e - c o l u m n >
align = "center" > < / e l - t a b l e - c o l u m n >
< el -table -column width = "190" label = "操作" align = "center" >
< el -table -column type = "index"
label = "序号"
width = "55"
align = "center" > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "judgmentName"
label = "判分点"
min - width = "250"
align = "center"
show - overflow - tooltip > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "projectName"
label = "项目名称"
min - width = "250"
align = "center"
show - overflow - tooltip > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "submitTime"
label = "提交时间"
width = "140"
align = "center" > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "score"
label = "是否得分"
width = "80"
align = "center" > < / e l - t a b l e - c o l u m n >
< el -table -column width = "190"
label = "操作"
align = "center" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< el -button type = "text" @click ="showCode(scope.row)" > 查看代码 < / el -button >
< el -button type = "text"
< el -button type = "text" @click ="importCode(scope.row)" > 插入代码 < / el -button >
@ click = "showCode(scope.row)" > 查看代码 < / e l - b u t t o n >
< el -button type = "text" @click ="del(scope.row)" > 删除 < / el -button >
< el -button type = "text"
@ click = "importCode(scope.row)" > 插入代码 < / e l - b u t t o n >
< el -button type = "text"
@ click = "del(scope.row)" > 删除 < / e l - b u t t o n >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e >
< / e l - t a b l e >
< div class = "pagination" >
< div class = "pagination" >
< el -pagination background layout = "total,prev, pager, next" :current-page ="page"
< el -pagination background
@ current - change = "handleCurrentChange" : total = "total" > < / e l - p a g i n a t i o n >
layout = "total,prev, pager, next"
: current - page = "page"
@ current - change = "handleCurrentChange"
: total = "total" > < / e l - p a g i n a t i o n >
< / div >
< / div >
< span slot = "footer" class = "dialog-footer" >
< span slot = "footer"
< el -button size = "small" type = "primary" @ click = "codeVisible = false" > 关闭 < / e l - b u t t o n >
class = "dialog-footer" >
< el -button size = "small"
type = "primary"
@ click = "codeVisible = false" > 关闭 < / e l - b u t t o n >
< / span >
< / span >
< / e l - d i a l o g >
< / e l - d i a l o g >
< el -dialog :title ="curRow.judgmentName" :visible.sync ="showVisible" width = "700px" :close-on-click-modal ="false"
< el -dialog :title ="curRow.judgmentName"
custom - class = "code-dia" >
: visible . sync = "showVisible"
< el -tabs class = "code-tab" v-model ="showActive" >
width = "700px"
< el -tab -pane label = "代码" name = "code" >
: close - on - click - modal = "false"
< codemirror class = "code" v-model ="curCode" :options ="cmOptionDia" > < / codemirror >
custom - class = "code-dia" >
< el -tabs class = "code-tab"
v - model = "showActive" >
< el -tab -pane label = "代码"
name = "code" >
< codemirror class = "code"
v - model = "curCode"
: options = "cmOptionDia" > < / codemirror >
< / e l - t a b - p a n e >
< / e l - t a b - p a n e >
< el -tab -pane label = "结果" name = "result" >
< el -tab -pane label = "结果"
name = "result" >
< div style = "position: relative" >
< div style = "position: relative" >
< div class = "result" v-html ="curRow.runResults" > < / div >
< div class = "result"
< div v-if ="curPhotoUrl.length" class="pics" >
v - html = "curRow.runResults" > < / div >
< div class = "pic-item" v-for ="(img, i) in curPhotoUrl" :key ="i" >
< div v -if = " curPhotoUrl.length "
< el -image class = "pic" :src ="img" :preview-src-list ="curPhotoUrl" >
class = "pics" >
< div class = "pic-item"
v - for = "(img, i) in curPhotoUrl"
: key = "i" >
< el -image class = "pic"
: src = "img"
: preview - src - list = "curPhotoUrl" >
< / e l - i m a g e >
< / e l - i m a g e >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / e l - t a b - p a n e >
< / e l - t a b - p a n e >
< / e l - t a b s >
< / e l - t a b s >
< span slot = "footer" class = "dialog-footer" >
< span slot = "footer"
< el -button size = "small" type = "primary" @click ="showSubmit" > 插入代码 < / el -button >
class = "dialog-footer" >
< el -button size = "small"
type = "primary"
@ click = "showSubmit" > 插入代码 < / e l - b u t t o n >
< / span >
< / span >
< / e l - d i a l o g >
< / e l - d i a l o g >
< / div >
< / div >
@ -461,11 +591,8 @@ export default {
/ / 终 止 运 行
/ / 终 止 运 行
async stopRunCode ( ) {
async stopRunCode ( ) {
this . isStopRunCode = 1
this . isStopRunCode = 1
if ( this . pid ) {
if ( this . pid ) await this . $post ( ` ${ this . api . endRunningProcess } ?pid= ${ this . pid } ` )
const { pid } = this
this . pid = ''
this . pid = ''
await this . $post ( ` ${ this . api . endRunningProcess } ?pid= ${ pid } ` )
}
if ( this . loadIns ) this . loadIns . close ( )
if ( this . loadIns ) this . loadIns . close ( )
} ,
} ,
inputRunCode ( data ) {
inputRunCode ( data ) {
@ -522,7 +649,7 @@ export default {
bcId : this . judgmentId ,
bcId : this . judgmentId ,
cid : this . courseId ,
cid : this . courseId ,
projectId : this . projectId ,
projectId : this . projectId ,
type : Cookie . get ( 'admin-language' ) ,
type : 0 ,
sort : this . index
sort : this . index
} , {
} , {
headers : {
headers : {
@ -574,6 +701,7 @@ export default {
if ( data ) {
if ( data ) {
const photo = data . photoUrl
const photo = data . photoUrl
const result = data . runResult || ''
const result = data . runResult || ''
/ / t h i s . $ e m i t ( ' c a c h e ' ) / / 每 次 运 行 代 码 都 要 把 代 码 传 给 后 端 做 缓 存
if ( this . loadIns ) this . loadIns . close ( )
if ( this . loadIns ) this . loadIns . close ( )
this . picSrcList = [ ]
this . picSrcList = [ ]
this . $emit ( 'update:photoUrl' , '' )
this . $emit ( 'update:photoUrl' , '' )
@ -652,7 +780,7 @@ export default {
bcId ,
bcId ,
cid ,
cid ,
projectId ,
projectId ,
type : Cookie . get ( 'admin-language' ) ,
type : 0 ,
sort : this . index
sort : this . index
} ) . then ( res => {
} ) . then ( res => {
this . $emit ( 'update:finalCode' , code )
this . $emit ( 'update:finalCode' , code )
@ -680,7 +808,7 @@ export default {
bcId ,
bcId ,
cid ,
cid ,
projectId ,
projectId ,
type : Cookie . get ( 'admin-language' ) ,
type : 0 ,
sort : this . index
sort : this . index
} ) . then ( res => {
} ) . then ( res => {
this . $emit ( 'update:finalCode' , code )
this . $emit ( 'update:finalCode' , code )
@ -838,20 +966,16 @@ export default {
. code - wrap {
. code - wrap {
position : relative ;
position : relative ;
}
}
. left {
. left {
position : relative ;
position : relative ;
width : 60 % ;
width : 60 % ;
}
}
. text - wrapper {
. text - wrapper {
white - space : pre - wrap ;
white - space : pre - wrap ;
}
}
/deep/ . CodeMirror - code {
/deep/ . CodeMirror - code {
font - family : 'Microsoft Yahei' ;
font - family : 'Microsoft Yahei' ;
}
}
/deep/ . answer {
/deep/ . answer {
. el - tab - pane {
. el - tab - pane {
padding : 0 10 px ;
padding : 0 10 px ;
@ -860,48 +984,38 @@ export default {
overflow - y : auto ;
overflow - y : auto ;
white - space : pre - wrap ;
white - space : pre - wrap ;
}
}
. el - dialog -- center {
. el - dialog -- center {
width : 500 px ;
width : 500 px ;
height : 500 px ;
height : 500 px ;
}
}
. el - dialog _ _title {
. el - dialog _ _title {
font - size : 22 px ;
font - size : 22 px ;
font - weight : 500 ;
font - weight : 500 ;
}
}
. el - tabs _ _nav - wrap : : after {
. el - tabs _ _nav - wrap : : after {
background - color : # 333 ;
background - color : # 333 ;
}
}
. el - tabs _ _active - bar {
. el - tabs _ _active - bar {
height : 0 ;
height : 0 ;
background - color : # fff ;
background - color : # fff ;
}
}
. el - tabs _ _header {
. el - tabs _ _header {
background - color : # 333 ;
background - color : # 333 ;
}
}
. el - dialog -- center . el - dialog _ _body {
. el - dialog -- center . el - dialog _ _body {
padding : 0 ;
padding : 0 ;
}
}
. el - tabs _ _item {
. el - tabs _ _item {
width : 80 px ;
width : 80 px ;
color : # fff ;
color : # fff ;
}
}
. el - tabs -- top . el - tabs _ _item . is - top : nth - child ( 2 ) {
. el - tabs -- top . el - tabs _ _item . is - top : nth - child ( 2 ) {
padding - left : 20 px ;
padding - left : 20 px ;
}
}
. el - tabs _ _item . is - active {
. el - tabs _ _item . is - active {
color : # fff ! important ;
color : # fff ! important ;
background - color : # 333 ! important ;
background - color : # 333 ! important ;
}
}
. tips - btn {
. tips - btn {
margin - top : 10 px ;
margin - top : 10 px ;
height : 40 px ;
height : 40 px ;
@ -911,7 +1025,6 @@ export default {
right : 0 ;
right : 0 ;
background : rgba ( 255 , 49 , 49 , 1 ) ;
background : rgba ( 255 , 49 , 49 , 1 ) ;
color : rgba ( 255 , 255 , 255 , 1 ) ;
color : rgba ( 255 , 255 , 255 , 1 ) ;
& : hover ,
& : hover ,
& : focus ,
& : focus ,
& : active {
& : active {
@ -920,7 +1033,6 @@ export default {
}
}
}
}
}
}
. del {
. del {
width : 40 px ;
width : 40 px ;
margin : 0 10 px ;
margin : 0 10 px ;
@ -930,21 +1042,17 @@ export default {
border - radius : 50 % ;
border - radius : 50 % ;
background - color : # f00 ;
background - color : # f00 ;
cursor : pointer ;
cursor : pointer ;
& : hover {
& : hover {
opacity : 0.9 ;
opacity : 0.9 ;
}
}
}
}
. result - right {
. result - right {
background - color : rgba ( 43 , 40 , 22 , 1 ) ;
background - color : rgba ( 43 , 40 , 22 , 1 ) ;
}
}
. result - wrong {
. result - wrong {
background - color : rgba ( 43 , 22 , 22 , 1 ) ;
background - color : rgba ( 43 , 22 , 22 , 1 ) ;
color : # f00 ;
color : # f00 ;
}
}
. result - wrong ,
. result - wrong ,
. result - right {
. result - right {
position : absolute ;
position : absolute ;
@ -953,7 +1061,6 @@ export default {
display : flex ;
display : flex ;
bottom : 10 px ;
bottom : 10 px ;
padding : 0 10 px ;
padding : 0 10 px ;
img {
img {
width : 40 px ;
width : 40 px ;
height : 40 px ;
height : 40 px ;
@ -961,7 +1068,6 @@ export default {
margin - right : 10 px ;
margin - right : 10 px ;
}
}
}
}
. line {
. line {
z - index : 2 ;
z - index : 2 ;
position : absolute ;
position : absolute ;
@ -971,7 +1077,6 @@ export default {
height : 100 % ;
height : 100 % ;
cursor : e - resize ;
cursor : e - resize ;
}
}
. code - right {
. code - right {
width : 40 % ;
width : 40 % ;
color : # fff ;
color : # fff ;
@ -979,7 +1084,6 @@ export default {
display : inline - block ;
display : inline - block ;
position : relative ;
position : relative ;
overflow - x : auto ;
overflow - x : auto ;
p {
p {
font - size : 18 px ;
font - size : 18 px ;
margin : 10 px ;
margin : 10 px ;
@ -988,16 +1092,13 @@ export default {
height : calc ( 100 vh - 387 px ) ;
height : calc ( 100 vh - 387 px ) ;
overflow : auto ;
overflow : auto ;
}
}
. pic - num0 {
. pic - num0 {
height : calc ( 100 vh - 247 px ) ;
height : calc ( 100 vh - 247 px ) ;
}
}
. pic - num1 {
. pic - num1 {
height : calc ( 100 vh - 520 px ) ;
height : calc ( 100 vh - 520 px ) ;
}
}
}
}
. pic - wrap {
. pic - wrap {
position : absolute ;
position : absolute ;
left : 0 ;
left : 0 ;
@ -1008,30 +1109,24 @@ export default {
margin : 0 auto ;
margin : 0 auto ;
text - align : center ;
text - align : center ;
overflow : auto ;
overflow : auto ;
& . wrong {
& . wrong {
bottom : 60 px ;
bottom : 60 px ;
}
}
. pic - item {
. pic - item {
margin : 0 5 px 5 px ;
margin : 0 5 px 5 px ;
. pic - inner {
. pic - inner {
height : 100 px ;
height : 100 px ;
}
}
& : only - child {
& : only - child {
. pic - inner {
. pic - inner {
height : auto ;
height : auto ;
}
}
. pic {
. pic {
width : 50 % ;
width : 50 % ;
max - height : none ;
max - height : none ;
}
}
}
}
}
}
. pic {
. pic {
display : block ;
display : block ;
width : 100 px ;
width : 100 px ;
@ -1040,7 +1135,6 @@ export default {
margin : 0 auto 10 px ;
margin : 0 auto 10 px ;
}
}
}
}
. code - mask {
. code - mask {
z - index : 2 ;
z - index : 2 ;
position : absolute ;
position : absolute ;
@ -1049,7 +1143,6 @@ export default {
bottom : 0 ;
bottom : 0 ;
right : 0 ;
right : 0 ;
}
}
. btns {
. btns {
z - index : 99 ;
z - index : 99 ;
position : absolute ;
position : absolute ;
@ -1057,78 +1150,63 @@ export default {
bottom : 15 px ;
bottom : 15 px ;
display : flex ;
display : flex ;
}
}
. run {
. run {
width : 100 px ;
width : 100 px ;
color : # fff ;
color : # fff ;
}
}
. download - btn {
. download - btn {
color : # fff ;
color : # fff ;
}
}
/deep/ . answer - wrap {
/deep/ . answer - wrap {
& . client {
& . client {
user - select : none ;
user - select : none ;
}
}
pre {
pre {
width : 100 % ;
width : 100 % ;
white - space : pre - wrap ;
white - space : pre - wrap ;
}
}
img {
img {
max - width : 100 % ;
max - width : 100 % ;
}
}
}
}
/deep/ . model - dia {
/deep/ . model - dia {
. el - dialog _ _body {
. el - dialog _ _body {
padding : 0 20 px ;
padding : 0 20 px ;
}
}
. el - divider -- horizontal {
. el - divider -- horizontal {
margin : 15 px 0 ;
margin : 15 px 0 ;
}
}
}
}
. model - wrap {
. model - wrap {
max - height : 400 px ;
max - height : 400 px ;
overflow : auto ;
overflow : auto ;
}
}
/deep/ . code - dia {
/deep/ . code - dia {
. el - dialog _ _header {
. el - dialog _ _header {
padding : 0 40 px 0 20 px ;
padding : 0 40 px 0 20 px ;
}
}
. el - dialog _ _body {
. el - dialog _ _body {
padding : 0 20 px ;
padding : 0 20 px ;
}
}
. info {
. info {
position : absolute ;
position : absolute ;
top : 18 px ;
top : 18 px ;
left : 100 px ;
left : 100 px ;
color : # 88 aef5 ;
color : # 88 aef5 ;
}
}
. code - tab {
. code - tab {
. el - tabs _ _item . is - active {
. el - tabs _ _item . is - active {
color : # 333 ! important ;
color : # 333 ! important ;
background - color : transparent ;
background - color : transparent ;
}
}
}
}
. tool {
. tool {
display : flex ;
display : flex ;
justify - content : space - between ;
justify - content : space - between ;
}
}
. code {
. code {
margin - top : 10 px ;
margin - top : 10 px ;
}
}
. result {
. result {
max - height : 300 px ;
max - height : 300 px ;
font - size : 18 px ;
font - size : 18 px ;
@ -1137,15 +1215,12 @@ export default {
color : # 333 ;
color : # 333 ;
overflow : auto ;
overflow : auto ;
}
}
. pics {
. pics {
display : flex ;
display : flex ;
margin - top : 20 px ;
margin - top : 20 px ;
overflow : auto ;
overflow : auto ;
. pic - item {
. pic - item {
margin : 0 5 px 5 px ;
margin : 0 5 px 5 px ;
& : only - child {
& : only - child {
. pic {
. pic {
width : 50 % ;
width : 50 % ;
@ -1153,7 +1228,6 @@ export default {
}
}
}
}
}
}
. pic {
. pic {
display : block ;
display : block ;
width : 100 px ;
width : 100 px ;