|
|
@ -1,64 +1,44 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="project-add"> |
|
|
|
<div class="caseInputForm"> |
|
|
|
<el-container style="background-color: #eeeeee;"> |
|
|
|
<el-form :inline="true" :model="dataForm" :rules="dataRule" ref="dataForm" class="demo-form-inline" label-width="90px"> |
|
|
|
<!-- <el-header class="add-header" height="50px">--> |
|
|
|
<el-card class="box-card"> |
|
|
|
<!-- <div v-if="!isShowData">--> |
|
|
|
<div slot="header"> |
|
|
|
<!-- <el-page-header @back="goBackList" content="项目配置" style="float: left;">--> |
|
|
|
<span class="item-title-font"><i class="el-icon-minus icon-minus-rotated"></i>实训信息</span> |
|
|
|
<!-- </el-page-header>--> |
|
|
|
<el-button type="primary" style="float: right;" size="medium" @click="goBackList">返回</el-button> |
|
|
|
<!-- <el-button type="primary" @click="submitForm('dataForm')" style="float: right;" v-if="formAction !=2">{{formAction == 0 ? '创建' : '修改'}}</el-button>--> |
|
|
|
</div> |
|
|
|
<!-- </div>--> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<!-- <div v-else>--> |
|
|
|
<el-col :span="8"> |
|
|
|
<!-- <el-page-header @back="goBackAdd" content="添加案例数据" style="float: left;">--> |
|
|
|
<el-form-item label="实训名称" prop="name"> |
|
|
|
<!-- </el-page-header>--> |
|
|
|
<el-input v-model.trim="dataForm.name" :disabled="formAction==2" placeholder="实训名称" style="width: 280px;"></el-input> |
|
|
|
<!-- <div style="float: right;">--> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-button type="primary" @click="doAddCaseData()">确定</el-button>--> |
|
|
|
</el-col> |
|
|
|
<!-- <el-button type="primary" @click="cancelAddCaseData()">取消</el-button>--> |
|
|
|
<el-col :span="8"> |
|
|
|
<!-- </div>--> |
|
|
|
<el-form-item label="实训用途" prop="type"> |
|
|
|
<!-- </div>--> |
|
|
|
<el-select v-model="dataForm.type" placeholder="实训用途" :disabled="formAction==2"> |
|
|
|
<!-- </el-header>--> |
|
|
|
<el-option label="考核" value="1"></el-option> |
|
|
|
<el-main style="background-color: white;margin-top: 10px;padding: 0 0;"> |
|
|
|
<el-option label="练习" value="2"></el-option> |
|
|
|
<el-form :inline="true" :model="dataForm" :rules="dataRule" ref="dataForm" class="demo-form-inline" label-width="90px" v-if="!isShowData"> |
|
|
|
</el-select> |
|
|
|
<el-card class="box-card" style="margin-bottom: 10px;"> |
|
|
|
</el-form-item> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
</el-col> |
|
|
|
<span class="item-title-font"><i class="el-icon-minus icon-minus-rotated"></i>实训信息</span> |
|
|
|
</el-row> |
|
|
|
<el-button type="primary" style="float: right;" size="medium" @click="goBackList">返回</el-button> |
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
<el-card class="box-card"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<div slot="header"> |
|
|
|
<el-col :span="8"> |
|
|
|
<span class="item-title-font"><i class="el-icon-minus icon-minus-rotated"></i>判分设置</span> |
|
|
|
<el-form-item label="实训名称" prop="name"> |
|
|
|
</div> |
|
|
|
<el-input v-model.trim="dataForm.name" :disabled="formAction==2" placeholder="实训名称" style="width: 280px;"></el-input> |
|
|
|
<div> |
|
|
|
</el-form-item> |
|
|
|
<div><p>量化指标:</p> |
|
|
|
</el-col> |
|
|
|
<el-transfer |
|
|
|
<el-col :span="8"> |
|
|
|
filterable |
|
|
|
<el-form-item label="实训用途" prop="type"> |
|
|
|
:filter-method="filterMethod" |
|
|
|
<el-select v-model="dataForm.type" placeholder="实训用途" :disabled="formAction==2"> |
|
|
|
filter-placeholder="请输入指标名称" |
|
|
|
<el-option label="考核" value="1"></el-option> |
|
|
|
v-model="value" |
|
|
|
<el-option label="练习" value="2"></el-option> |
|
|
|
:data="data"> |
|
|
|
</el-select> |
|
|
|
</el-transfer> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</div> |
|
|
|
</el-row> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
</el-form> |
|
|
|
<el-card class="box-card" style="margin-bottom: 10px;"> |
|
|
|
|
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
|
|
|
|
<span class="item-title-font"><i class="el-icon-minus icon-minus-rotated"></i>判分设置</span> |
|
|
|
|
|
|
|
<span style="float: right;vertical-align: middle;line-height: 29px;">合计:{{dataForm.totalScore}} 分</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<div><p>量化指标:</p> |
|
|
|
|
|
|
|
<el-transfer |
|
|
|
|
|
|
|
filterable |
|
|
|
|
|
|
|
:filter-method="filterMethod" |
|
|
|
|
|
|
|
filter-placeholder="请输入指标名称" |
|
|
|
|
|
|
|
v-model="value" |
|
|
|
|
|
|
|
:data="data"> |
|
|
|
|
|
|
|
</el-transfer> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
</el-main> |
|
|
|
|
|
|
|
</el-container> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -124,33 +104,6 @@ |
|
|
|
selectedTradeItems: [], |
|
|
|
selectedTradeItems: [], |
|
|
|
delTradeItems: [], |
|
|
|
delTradeItems: [], |
|
|
|
tradeNotInIds: [], |
|
|
|
tradeNotInIds: [], |
|
|
|
imageViewerOptions: { |
|
|
|
|
|
|
|
"inline": false, |
|
|
|
|
|
|
|
"button": true, |
|
|
|
|
|
|
|
"navbar": false, |
|
|
|
|
|
|
|
"title": true, |
|
|
|
|
|
|
|
"toolbar": { |
|
|
|
|
|
|
|
zoomIn: true, |
|
|
|
|
|
|
|
zoomOut: true, |
|
|
|
|
|
|
|
oneToOne: true, |
|
|
|
|
|
|
|
reset: true, |
|
|
|
|
|
|
|
prev: false, |
|
|
|
|
|
|
|
play: true, |
|
|
|
|
|
|
|
next: false, |
|
|
|
|
|
|
|
rotateLeft: false, |
|
|
|
|
|
|
|
rotateRight: false, |
|
|
|
|
|
|
|
flipHorizontal: false, |
|
|
|
|
|
|
|
flipVertical: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"tooltip": true, |
|
|
|
|
|
|
|
"movable": true, |
|
|
|
|
|
|
|
"zoomable": true, |
|
|
|
|
|
|
|
"rotatable": true, |
|
|
|
|
|
|
|
"scalable": true, |
|
|
|
|
|
|
|
"transition": false, |
|
|
|
|
|
|
|
"fullscreen": true, |
|
|
|
|
|
|
|
"keyboard": false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
@ -411,71 +364,45 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss"> |
|
|
|
.clearfix:before, |
|
|
|
.caseInputForm{ |
|
|
|
.clearfix:after { |
|
|
|
.box-card { |
|
|
|
display: table; |
|
|
|
margin-bottom: 10px; |
|
|
|
content: ""; |
|
|
|
.el-card__header{ |
|
|
|
} |
|
|
|
border-bottom: 1px dashed #c9cacc; |
|
|
|
|
|
|
|
padding-bottom: 10px; |
|
|
|
.clearfix:after { |
|
|
|
padding-top: 10px; |
|
|
|
clear: both |
|
|
|
height: auto; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*.box-card { |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.project-add { |
|
|
|
|
|
|
|
.add-header { |
|
|
|
|
|
|
|
background-color: white; |
|
|
|
|
|
|
|
padding: 5px 20px; |
|
|
|
|
|
|
|
/deep/ .el-page-header__content { |
|
|
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.el-button--medium{ |
|
|
|
|
|
|
|
padding: 8px 20px; |
|
|
|
/deep/ .el-card__header { |
|
|
|
} |
|
|
|
border-bottom: 1px dashed #c9cacc; |
|
|
|
.el-form-item.is-required .el-form-item__label:after { |
|
|
|
padding-bottom: 10px; |
|
|
|
content: ''; |
|
|
|
padding-top: 10px; |
|
|
|
|
|
|
|
height: auto; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.content-item { |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
|
|
/deep/ .el-form-item__content { |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/deep/ .el-form-item.is-required .el-form-item__label:after { |
|
|
|
.score-input { |
|
|
|
content: ''; |
|
|
|
margin-bottom: 0px; |
|
|
|
} |
|
|
|
/deep/ .el-form-item__error { |
|
|
|
|
|
|
|
position: unset; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.icon-minus-rotated:before { |
|
|
|
|
|
|
|
-ms-transform: rotate(90deg); /* IE 9 */ |
|
|
|
|
|
|
|
-moz-transform: rotate(90deg); /* Firefox */ |
|
|
|
|
|
|
|
-webkit-transform: rotate(90deg); /* Safari 和 Chrome */ |
|
|
|
|
|
|
|
-o-transform: rotate(90deg); /* Opera */ |
|
|
|
|
|
|
|
transform: rotate(90deg); |
|
|
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
|
|
font-weight: bolder; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.score-input { |
|
|
|
.item-title-font { |
|
|
|
margin-bottom: 0px; |
|
|
|
font-weight: bold; |
|
|
|
/deep/ .el-form-item__error { |
|
|
|
font-size: 15px; |
|
|
|
position: unset; |
|
|
|
vertical-align: middle; |
|
|
|
|
|
|
|
line-height: 29px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.icon-minus-rotated:before { |
|
|
|
|
|
|
|
-ms-transform: rotate(90deg); /* IE 9 */ |
|
|
|
|
|
|
|
-moz-transform: rotate(90deg); /* Firefox */ |
|
|
|
|
|
|
|
-webkit-transform: rotate(90deg); /* Safari 和 Chrome */ |
|
|
|
|
|
|
|
-o-transform: rotate(90deg); /* Opera */ |
|
|
|
|
|
|
|
transform: rotate(90deg); |
|
|
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
|
|
font-weight: bolder; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.item-title-font { |
|
|
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
|
|
font-size: 15px; |
|
|
|
|
|
|
|
vertical-align: middle; |
|
|
|
|
|
|
|
line-height: 29px; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |