|
|
@ -2,16 +2,16 @@ |
|
|
|
<!-- 编程类 --> |
|
|
|
<!-- 编程类 --> |
|
|
|
<div class="content"> |
|
|
|
<div class="content"> |
|
|
|
<div class="header flex"> |
|
|
|
<div class="header flex"> |
|
|
|
<i |
|
|
|
<i class="back el-icon-arrow-left" |
|
|
|
class="back el-icon-arrow-left" |
|
|
|
|
|
|
|
@click="Back()" |
|
|
|
@click="Back()" |
|
|
|
style="cursor: pointer" |
|
|
|
style="cursor: pointer"> |
|
|
|
> |
|
|
|
|
|
|
|
<span>Back</span> |
|
|
|
<span>Back</span> |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
|
|
|
|
|
|
|
|
<p>判分点设置</p> |
|
|
|
<p>判分点设置</p> |
|
|
|
<el-button class="btn" type="primary" @click="Savejump('ruleForm')">保存</el-button> |
|
|
|
<el-button class="btn" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="Savejump('ruleForm')">保存</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="footer"> |
|
|
|
<div class="footer"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
@ -20,48 +20,49 @@ |
|
|
|
<p>基本信息</p> |
|
|
|
<p>基本信息</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-form |
|
|
|
<el-form :model="ruleForm" |
|
|
|
:model="ruleForm" |
|
|
|
|
|
|
|
:rules="rules" |
|
|
|
:rules="rules" |
|
|
|
ref="ruleForm" |
|
|
|
ref="ruleForm" |
|
|
|
label-width="150px" |
|
|
|
label-width="150px"> |
|
|
|
> |
|
|
|
<el-form-item label="请输入判分点名称" |
|
|
|
<el-form-item label="请输入判分点名称" prop="judgmentPointsName"> |
|
|
|
prop="judgmentPointsName"> |
|
|
|
<el-input v-model="ruleForm.judgmentPointsName"></el-input> |
|
|
|
<el-input v-model="ruleForm.judgmentPointsName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="实验要求" prop="experimentalRequirements"> |
|
|
|
<el-form-item label="实验要求" |
|
|
|
<quill :border="true" v-model="ruleForm.experimentalRequirements" :minHeight="150" :height="150" /> |
|
|
|
prop="experimentalRequirements"> |
|
|
|
|
|
|
|
<quill :border="true" |
|
|
|
|
|
|
|
v-model="ruleForm.experimentalRequirements" |
|
|
|
|
|
|
|
:minHeight="150" |
|
|
|
|
|
|
|
:height="150" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex footer_b"> |
|
|
|
<div class="flex footer_b"> |
|
|
|
<div class="black"></div> |
|
|
|
<div class="black"></div> |
|
|
|
<p>判分规则</p> |
|
|
|
<p>判分规则</p> |
|
|
|
<el-button class="btn" type="primary" :disabled="isAdd" @click="AddListRow()" |
|
|
|
<el-button class="btn" |
|
|
|
>新增</el-button |
|
|
|
type="primary" |
|
|
|
> |
|
|
|
:disabled="isAdd" |
|
|
|
|
|
|
|
@click="AddListRow()">新增</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-card shadow="hover"> |
|
|
|
<el-card shadow="hover"> |
|
|
|
<el-table |
|
|
|
<el-table :data="tableData" |
|
|
|
:data="tableData" |
|
|
|
|
|
|
|
:stripe="true" |
|
|
|
:stripe="true" |
|
|
|
:cell-style="rowClass" |
|
|
|
:cell-style="rowClass" |
|
|
|
:header-cell-style="headClass" |
|
|
|
:header-cell-style="headClass" |
|
|
|
header-align="center" |
|
|
|
header-align="center" |
|
|
|
ref="editTable" |
|
|
|
ref="editTable"> |
|
|
|
> |
|
|
|
<el-table-column prop="decisionPointRule" |
|
|
|
<el-table-column |
|
|
|
|
|
|
|
prop="decisionPointRule" |
|
|
|
|
|
|
|
type="index" |
|
|
|
type="index" |
|
|
|
label="序号" |
|
|
|
label="序号" |
|
|
|
align="center" |
|
|
|
align="center" |
|
|
|
width="80" |
|
|
|
width="80"></el-table-column> |
|
|
|
></el-table-column> |
|
|
|
<el-table-column label="流程判分正确答案" |
|
|
|
<el-table-column label="流程判分正确答案" align="center"> |
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template v-if="scope.row.isInput"> |
|
|
|
<template v-if="scope.row.isInput"> |
|
|
|
<p class="p"> |
|
|
|
<p class="p"> |
|
|
@ -71,18 +72,14 @@ |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<span class="label">一级栏目</span> |
|
|
|
<span class="label">一级栏目</span> |
|
|
|
<div class="action"> |
|
|
|
<div class="action"> |
|
|
|
<el-select |
|
|
|
<el-select v-model="scope.row.levelOne" |
|
|
|
v-model="scope.row.levelOne" |
|
|
|
|
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
@change="getSubject(scope.row)" |
|
|
|
@change="getSubject(scope.row)"> |
|
|
|
> |
|
|
|
<el-option v-for="(item, index) in stepList" |
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="(item, index) in stepList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
:label="item.stepName" |
|
|
|
:label="item.stepName" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id"></el-option> |
|
|
|
></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -90,18 +87,13 @@ |
|
|
|
<span class="label">子级栏目</span> |
|
|
|
<span class="label">子级栏目</span> |
|
|
|
<div class="action steps"> |
|
|
|
<div class="action steps"> |
|
|
|
{{ scope.row.stepName }} |
|
|
|
{{ scope.row.stepName }} |
|
|
|
<el-radio-group |
|
|
|
<el-radio-group class="radio-wrap" |
|
|
|
class="radio-wrap" |
|
|
|
|
|
|
|
v-model="scope.row.levelTwo" |
|
|
|
v-model="scope.row.levelTwo" |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
@change="getOption(scope.row)" |
|
|
|
@change="getOption(scope.row)"> |
|
|
|
> |
|
|
|
<el-radio v-for="(item, index) in scope.row.subjectList" |
|
|
|
<el-radio |
|
|
|
|
|
|
|
v-for="(item, index) in scope.row.subjectList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
:label="item.id" |
|
|
|
:label="item.id">{{ item.kdSubjectName }}</el-radio> |
|
|
|
>{{ item.kdSubjectName }}</el-radio |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<!-- <div class="child"> |
|
|
|
<!-- <div class="child"> |
|
|
|
<el-radio :label="9">备选项</el-radio> |
|
|
|
<el-radio :label="9">备选项</el-radio> |
|
|
|
<el-radio :label="10">备选项</el-radio> |
|
|
|
<el-radio :label="10">备选项</el-radio> |
|
|
@ -113,29 +105,25 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" width="150"> |
|
|
|
<el-table-column align="center" |
|
|
|
|
|
|
|
width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
<el-button v-if="scope.row.isInput" |
|
|
|
v-if="scope.row.isInput" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:disabled="scope.row.isShow" |
|
|
|
:disabled="scope.row.isShow" |
|
|
|
style="cursor: pointer; border-radius: 50%" |
|
|
|
style="cursor: pointer; border-radius: 50%" |
|
|
|
circle |
|
|
|
circle |
|
|
|
@click="getPerhaps(scope.row)" |
|
|
|
@click="getPerhaps(scope.row)">{{ scope.row.operatorOne == 1 ? "且" : "或" }}</el-button> |
|
|
|
>{{ scope.row.operatorOne == 1 ? "且" : "或" }}</el-button |
|
|
|
<el-button v-else |
|
|
|
> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
v-else |
|
|
|
|
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:disabled="scope.row.isShow" |
|
|
|
:disabled="scope.row.isShow" |
|
|
|
style="cursor: pointer; border-radius: 50%" |
|
|
|
style="cursor: pointer; border-radius: 50%" |
|
|
|
circle |
|
|
|
circle |
|
|
|
@click="getPerhapsColumn(scope.row)" |
|
|
|
@click="getPerhapsColumn(scope.row)">{{ operatorTwo == 1 ? "且" : "或" }}</el-button> |
|
|
|
>{{ operatorTwo == 1 ? "且" : "或" }}</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="交易结果正确答案" align="center"> |
|
|
|
<el-table-column label="交易结果正确答案" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template v-if="scope.row.isInput"> |
|
|
|
<template v-if="scope.row.isInput"> |
|
|
|
<p class="p"> |
|
|
|
<p class="p"> |
|
|
@ -145,24 +133,21 @@ |
|
|
|
<template v-if="scope.row.levelTwo"> |
|
|
|
<template v-if="scope.row.levelTwo"> |
|
|
|
<template v-if="scope.row.type == 1 && scope.row.subjectName"> |
|
|
|
<template v-if="scope.row.type == 1 && scope.row.subjectName"> |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<span class="label" style="width: auto;text-align: left">{{scope.row.subjectName}}</span> |
|
|
|
<span class="label" |
|
|
|
|
|
|
|
style="width: auto;text-align: left">{{scope.row.subjectName}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<span class="label mini">正确答案</span> |
|
|
|
<span class="label mini">正确答案</span> |
|
|
|
<div class="action"> |
|
|
|
<div class="action"> |
|
|
|
<el-select |
|
|
|
<el-select multiple |
|
|
|
multiple |
|
|
|
|
|
|
|
v-model="scope.row.levelFour" |
|
|
|
v-model="scope.row.levelFour" |
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
style="width: 100%" |
|
|
|
style="width: 100%"> |
|
|
|
> |
|
|
|
<el-option v-for="(item, index) in scope.row.optionList" |
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="(item, index) in scope.row.optionList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
:label="item.itemDescription" |
|
|
|
:label="item.itemDescription" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id"></el-option> |
|
|
|
></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -172,29 +157,25 @@ |
|
|
|
<span class="label">交易指标区间</span> |
|
|
|
<span class="label">交易指标区间</span> |
|
|
|
<div class="action"> |
|
|
|
<div class="action"> |
|
|
|
<div class="inputs"> |
|
|
|
<div class="inputs"> |
|
|
|
<el-select |
|
|
|
<el-select v-model="scope.row.symbolInput1" |
|
|
|
v-model="scope.row.symbolInput1" |
|
|
|
|
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini"> |
|
|
|
> |
|
|
|
<el-option label="(" |
|
|
|
<el-option label="(" value="("></el-option> |
|
|
|
value="("></el-option> |
|
|
|
<el-option label="[" value="["></el-option> |
|
|
|
<el-option label="[" |
|
|
|
|
|
|
|
value="["></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<el-input |
|
|
|
<el-input v-model="scope.row.symbolInput2" |
|
|
|
v-model="scope.row.symbolInput2" |
|
|
|
size="mini"></el-input> |
|
|
|
size="mini" |
|
|
|
<el-input v-model="scope.row.symbolInput3" |
|
|
|
></el-input> |
|
|
|
size="mini"></el-input> |
|
|
|
<el-input |
|
|
|
<el-select v-model="scope.row.symbolInput4" |
|
|
|
v-model="scope.row.symbolInput3" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
></el-input> |
|
|
|
|
|
|
|
<el-select |
|
|
|
|
|
|
|
v-model="scope.row.symbolInput4" |
|
|
|
|
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini"> |
|
|
|
> |
|
|
|
<el-option label=")" |
|
|
|
<el-option label=")" value=")"></el-option> |
|
|
|
value=")"></el-option> |
|
|
|
<el-option label="]" value="]"></el-option> |
|
|
|
<el-option label="]" |
|
|
|
|
|
|
|
value="]"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -204,28 +185,21 @@ |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<span class="label"> |
|
|
|
<span class="label"> |
|
|
|
<el-checkbox v-model="scope.row.numOfWords">字数要求</el-checkbox> |
|
|
|
<el-checkbox v-model="scope.row.numOfWords">字数要求</el-checkbox> |
|
|
|
</span |
|
|
|
</span> |
|
|
|
> |
|
|
|
|
|
|
|
<div class="action a-line"> |
|
|
|
<div class="action a-line"> |
|
|
|
<el-select |
|
|
|
<el-select v-model="scope.row.symbol" |
|
|
|
v-model="scope.row.symbol" |
|
|
|
|
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini"> |
|
|
|
> |
|
|
|
<el-option v-for="(item, index) in symbolList" |
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="(item, index) in symbolList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
:label="item.name" |
|
|
|
:label="item.name" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id"></el-option> |
|
|
|
></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<el-input |
|
|
|
<el-input type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
min="0" |
|
|
|
min="0" |
|
|
|
style="margin-left: 5px" |
|
|
|
style="margin-left: 5px" |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
v-model="scope.row.numDes" |
|
|
|
v-model="scope.row.numDes"></el-input> |
|
|
|
></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
@ -233,13 +207,11 @@ |
|
|
|
<el-checkbox v-model="scope.row.fieldOfReq">字段要求</el-checkbox> |
|
|
|
<el-checkbox v-model="scope.row.fieldOfReq">字段要求</el-checkbox> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<div class="action"> |
|
|
|
<div class="action"> |
|
|
|
<el-input |
|
|
|
<el-input class="mini-textarea" |
|
|
|
class="mini-textarea" |
|
|
|
|
|
|
|
type="textarea" |
|
|
|
type="textarea" |
|
|
|
cols="3" |
|
|
|
cols="3" |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
v-model="scope.row.levelFour" |
|
|
|
v-model="scope.row.levelFour"></el-input> |
|
|
|
></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -247,17 +219,13 @@ |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<span class="label">选择指标</span> |
|
|
|
<span class="label">选择指标</span> |
|
|
|
<div class="action"> |
|
|
|
<div class="action"> |
|
|
|
<el-select |
|
|
|
<el-select v-model="scope.row.levelThree" |
|
|
|
v-model="scope.row.levelThree" |
|
|
|
|
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini"> |
|
|
|
> |
|
|
|
<el-option v-for="(item, index) in scope.row.optionList" |
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="(item, index) in scope.row.optionList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
:label="item.itemDescription" |
|
|
|
:label="item.itemDescription" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id"></el-option> |
|
|
|
></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -265,31 +233,27 @@ |
|
|
|
<span class="label">交易指标区间</span> |
|
|
|
<span class="label">交易指标区间</span> |
|
|
|
<div class="action"> |
|
|
|
<div class="action"> |
|
|
|
<div class="inputs"> |
|
|
|
<div class="inputs"> |
|
|
|
<el-select |
|
|
|
<el-select v-model="scope.row.symbolInput1" |
|
|
|
v-model="scope.row.symbolInput1" |
|
|
|
|
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini"> |
|
|
|
> |
|
|
|
<el-option label="(" |
|
|
|
<el-option label="(" value="("></el-option> |
|
|
|
value="("></el-option> |
|
|
|
<el-option label="[" value="["></el-option> |
|
|
|
<el-option label="[" |
|
|
|
|
|
|
|
value="["></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<el-input |
|
|
|
<el-input type="number" |
|
|
|
type="number" |
|
|
|
|
|
|
|
v-model="scope.row.symbolInput2" |
|
|
|
v-model="scope.row.symbolInput2" |
|
|
|
size="mini" |
|
|
|
size="mini"></el-input> |
|
|
|
></el-input> |
|
|
|
<el-input type="number" |
|
|
|
<el-input |
|
|
|
|
|
|
|
type="number" |
|
|
|
|
|
|
|
v-model="scope.row.symbolInput3" |
|
|
|
v-model="scope.row.symbolInput3" |
|
|
|
size="mini" |
|
|
|
size="mini"></el-input> |
|
|
|
></el-input> |
|
|
|
<el-select v-model="scope.row.symbolInput4" |
|
|
|
<el-select |
|
|
|
|
|
|
|
v-model="scope.row.symbolInput4" |
|
|
|
|
|
|
|
placeholder="请选择" |
|
|
|
placeholder="请选择" |
|
|
|
size="mini" |
|
|
|
size="mini"> |
|
|
|
> |
|
|
|
<el-option label=")" |
|
|
|
<el-option label=")" value=")"></el-option> |
|
|
|
value=")"></el-option> |
|
|
|
<el-option label="]" value="]"></el-option> |
|
|
|
<el-option label="]" |
|
|
|
|
|
|
|
value="]"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -300,41 +264,31 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" width="300"> |
|
|
|
<el-table-column label="操作" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="300"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template v-if="scope.row.isInput"> |
|
|
|
<template v-if="scope.row.isInput"> |
|
|
|
<el-link |
|
|
|
<el-link size="mini" |
|
|
|
size="mini" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:underline="false" |
|
|
|
:underline="false" |
|
|
|
v-show="scope.row.isShow" |
|
|
|
v-show="scope.row.isShow" |
|
|
|
@click="getHandleEdit(scope.row)" |
|
|
|
@click="getHandleEdit(scope.row)">编辑</el-link> |
|
|
|
>编辑</el-link |
|
|
|
<el-link type="primary" |
|
|
|
> |
|
|
|
|
|
|
|
<el-link |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
:underline="false" |
|
|
|
:underline="false" |
|
|
|
v-show="!scope.row.isShow" |
|
|
|
v-show="!scope.row.isShow" |
|
|
|
@click="getRule(scope.row)" |
|
|
|
@click="getRule(scope.row)">保存</el-link> |
|
|
|
>保存</el-link |
|
|
|
<el-link size="mini" |
|
|
|
> |
|
|
|
|
|
|
|
<el-link |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:underline="false" |
|
|
|
:underline="false" |
|
|
|
v-show="!scope.row.isShow && !scope.row.id" |
|
|
|
v-show="!scope.row.isShow && !scope.row.id" |
|
|
|
@click="dialogFormVisible(scope.$index, scope.row)" |
|
|
|
@click="dialogFormVisible(scope.$index, scope.row)">取消</el-link> |
|
|
|
>取消</el-link |
|
|
|
<el-link size="mini" |
|
|
|
> |
|
|
|
|
|
|
|
<el-link |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
:underline="false" |
|
|
|
:underline="false" |
|
|
|
v-show="!scope.row.isShow" |
|
|
|
v-show="!scope.row.isShow" |
|
|
|
@click="getRuleDelete(scope.$index, scope.row)" |
|
|
|
@click="getRuleDelete(scope.$index, scope.row)">删除</el-link> |
|
|
|
>删除</el-link |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
@ -349,7 +303,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import quill from '@/components/quill' |
|
|
|
import quill from '@/components/quill' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
ruleList: [], |
|
|
|
ruleList: [], |
|
|
|
ruleForm: { |
|
|
|
ruleForm: { |
|
|
@ -404,19 +358,23 @@ export default { |
|
|
|
pattern: this.$route.query.pattern |
|
|
|
pattern: this.$route.query.pattern |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: {quill}, |
|
|
|
components: { quill }, |
|
|
|
mounted() { |
|
|
|
mounted () { |
|
|
|
this.$route.query.token && this.$store.commit('setParam',{token: atob(decodeURI(this.$route.query.token)),referrer: atob(decodeURI(this.$route.query.referrer))}) |
|
|
|
const { token, referrer } = this.$route.query |
|
|
|
|
|
|
|
if (token) { |
|
|
|
|
|
|
|
localStorage.setItem('token', atob(decodeURI(token))) |
|
|
|
|
|
|
|
localStorage.setItem('referrer', atob(decodeURI(referrer))) |
|
|
|
|
|
|
|
} |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getPerhaps(a) { |
|
|
|
getPerhaps (a) { |
|
|
|
a.operatorOne = a.operatorOne == 1 ? 2 : 1 |
|
|
|
a.operatorOne = a.operatorOne == 1 ? 2 : 1 |
|
|
|
}, |
|
|
|
}, |
|
|
|
getPerhapsColumn() { |
|
|
|
getPerhapsColumn () { |
|
|
|
this.operatorTwo = this.operatorTwo == 1 ? 2 : 1 |
|
|
|
this.operatorTwo = this.operatorTwo == 1 ? 2 : 1 |
|
|
|
}, |
|
|
|
}, |
|
|
|
getMesg() { |
|
|
|
getMesg () { |
|
|
|
if (this.id) { |
|
|
|
if (this.id) { |
|
|
|
this.$get(this.api.queryDetailsTrading, { |
|
|
|
this.$get(this.api.queryDetailsTrading, { |
|
|
|
tradingJudgmentPointsId: this.id, |
|
|
|
tradingJudgmentPointsId: this.id, |
|
|
@ -429,8 +387,8 @@ export default { |
|
|
|
let ruleList = [] |
|
|
|
let ruleList = [] |
|
|
|
let len = rules.length |
|
|
|
let len = rules.length |
|
|
|
let result = [] |
|
|
|
let result = [] |
|
|
|
rules.map((e,i) => { |
|
|
|
rules.map((e, i) => { |
|
|
|
e.isInput= true |
|
|
|
e.isInput = true |
|
|
|
e.isShow = false |
|
|
|
e.isShow = false |
|
|
|
e.levelOne = Number(e.levelOne) |
|
|
|
e.levelOne = Number(e.levelOne) |
|
|
|
e.levelTwo = Number(e.levelTwo) |
|
|
|
e.levelTwo = Number(e.levelTwo) |
|
|
@ -457,50 +415,50 @@ export default { |
|
|
|
levelFour: e.levelFour |
|
|
|
levelFour: e.levelFour |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.getSubject(e) |
|
|
|
this.getSubject(e) |
|
|
|
if(e.type == 1){ |
|
|
|
if (e.type == 1) { |
|
|
|
let levelFour = e.levelFour.split(',') |
|
|
|
let levelFour = e.levelFour.split(',') |
|
|
|
levelFour = levelFour.map(n => Number(n)) |
|
|
|
levelFour = levelFour.map(n => Number(n)) |
|
|
|
this.$set(e,'levelFour',levelFour) |
|
|
|
this.$set(e, 'levelFour', levelFour) |
|
|
|
}else if(e.type == 2){ |
|
|
|
} else if (e.type == 2) { |
|
|
|
let levelThree = e.levelThree |
|
|
|
let levelThree = e.levelThree |
|
|
|
e.symbolInput1 = levelThree[0] |
|
|
|
e.symbolInput1 = levelThree[0] |
|
|
|
e.symbolInput2 = levelThree.substring(1,levelThree.indexOf('-')) |
|
|
|
e.symbolInput2 = levelThree.substring(1, levelThree.indexOf('-')) |
|
|
|
e.symbolInput3 = levelThree.substring(levelThree.indexOf('-') + 1,levelThree.length - 1) |
|
|
|
e.symbolInput3 = levelThree.substring(levelThree.indexOf('-') + 1, levelThree.length - 1) |
|
|
|
e.symbolInput4 = levelThree[levelThree.length - 1] |
|
|
|
e.symbolInput4 = levelThree[levelThree.length - 1] |
|
|
|
}else if(e.type == 3){ |
|
|
|
} else if (e.type == 3) { |
|
|
|
if(e.levelThree === ''){ |
|
|
|
if (e.levelThree === '') { |
|
|
|
e.numOfWords = false |
|
|
|
e.numOfWords = false |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
e.symbol = this.symbolList.find(n => n.name == e.levelThree.replace(/,\d+/g,'')).id |
|
|
|
e.symbol = this.symbolList.find(n => n.name == e.levelThree.replace(/,\d+/g, '')).id |
|
|
|
e.numDes = e.levelThree.replace(/\D+/g,'') |
|
|
|
e.numDes = e.levelThree.replace(/\D+/g, '') |
|
|
|
} |
|
|
|
} |
|
|
|
if(e.levelFour === '') e.fieldOfReq = false |
|
|
|
if (e.levelFour === '') e.fieldOfReq = false |
|
|
|
}else if(e.type == 4){ |
|
|
|
} else if (e.type == 4) { |
|
|
|
e.levelThree = Number(e.levelThree) |
|
|
|
e.levelThree = Number(e.levelThree) |
|
|
|
let levelFour = e.levelFour |
|
|
|
let levelFour = e.levelFour |
|
|
|
e.symbolInput1 = levelFour[0] |
|
|
|
e.symbolInput1 = levelFour[0] |
|
|
|
e.symbolInput2 = levelFour.substring(1,levelFour.indexOf('~')) |
|
|
|
e.symbolInput2 = levelFour.substring(1, levelFour.indexOf('~')) |
|
|
|
e.symbolInput3 = levelFour.substring(levelFour.indexOf('~') + 1,levelFour.length - 1) |
|
|
|
e.symbolInput3 = levelFour.substring(levelFour.indexOf('~') + 1, levelFour.length - 1) |
|
|
|
e.symbolInput4 = levelFour[levelFour.length - 1] |
|
|
|
e.symbolInput4 = levelFour[levelFour.length - 1] |
|
|
|
} |
|
|
|
} |
|
|
|
result.push(e) |
|
|
|
result.push(e) |
|
|
|
if(len > 1 && i != len - 1) result.push({}) |
|
|
|
if (len > 1 && i != len - 1) result.push({}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.operatorTwo = rules[0].operatorTwo |
|
|
|
this.operatorTwo = rules[0].operatorTwo |
|
|
|
this.ruleList = ruleList |
|
|
|
this.ruleList = ruleList |
|
|
|
this.tableData = result |
|
|
|
this.tableData = result |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
getData () { |
|
|
|
// pattern: 0基础,1挑战 |
|
|
|
// pattern: 0基础,1挑战 |
|
|
|
this.$post(`${this.api.queryPoint}?challenge=${this.pattern}`) |
|
|
|
this.$post(`${this.api.queryPoint}?challenge=${this.pattern}`) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
this.stepList = res.subject |
|
|
|
this.stepList = res.subject |
|
|
|
this.getMesg() |
|
|
|
this.getMesg() |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getSubject(row) { |
|
|
|
getSubject (row) { |
|
|
|
row.stepName = this.stepList.find((n) => n.id == row.levelOne).stepName |
|
|
|
row.stepName = this.stepList.find((n) => n.id == row.levelOne).stepName |
|
|
|
let data = row.levelOne; |
|
|
|
let data = row.levelOne; |
|
|
|
this.$post(this.api.querySubject, data) |
|
|
|
this.$post(this.api.querySubject, data) |
|
|
@ -509,15 +467,15 @@ export default { |
|
|
|
row.type = row.subjectList[0].isChallenge |
|
|
|
row.type = row.subjectList[0].isChallenge |
|
|
|
row.isFirst || (row.levelTwo = '') |
|
|
|
row.isFirst || (row.levelTwo = '') |
|
|
|
row.isFirst && row.id && this.getOption(row) |
|
|
|
row.isFirst && row.id && this.getOption(row) |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getOption(row) { |
|
|
|
getOption (row) { |
|
|
|
row.subjectName = row.subjectList.find((n) => n.id == row.levelTwo).kdSubjectDescipription |
|
|
|
row.subjectName = row.subjectList.find((n) => n.id == row.levelTwo).kdSubjectDescipription |
|
|
|
let data = row.levelTwo; |
|
|
|
let data = row.levelTwo; |
|
|
|
this.$post(this.api.queryItem, data) |
|
|
|
this.$post(this.api.queryItem, data) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
row.optionList = res.subject |
|
|
|
row.optionList = res.subject |
|
|
|
if(!row.isFirst){ |
|
|
|
if (!row.isFirst) { |
|
|
|
row.levelThree = '' |
|
|
|
row.levelThree = '' |
|
|
|
row.levelFour = '' |
|
|
|
row.levelFour = '' |
|
|
|
row.symbolInput1 = '' |
|
|
|
row.symbolInput1 = '' |
|
|
@ -531,9 +489,9 @@ export default { |
|
|
|
row.reqDes = '' |
|
|
|
row.reqDes = '' |
|
|
|
} |
|
|
|
} |
|
|
|
row.isFirst = false |
|
|
|
row.isFirst = false |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
Savejump(formName) { |
|
|
|
Savejump (formName) { |
|
|
|
if (this.ruleList.length && this.tableData.length) { |
|
|
|
if (this.ruleList.length && this.tableData.length) { |
|
|
|
this.$refs[formName].validate((valid) => { |
|
|
|
this.$refs[formName].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
@ -549,7 +507,7 @@ export default { |
|
|
|
this.$post(this.api.updateTrading, data) |
|
|
|
this.$post(this.api.updateTrading, data) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
this.$router.back() |
|
|
|
this.$router.back() |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
tradingJudgmentPoints: { |
|
|
|
tradingJudgmentPoints: { |
|
|
@ -564,7 +522,7 @@ export default { |
|
|
|
this.$post(this.api.addTrading, data) |
|
|
|
this.$post(this.api.addTrading, data) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
this.$router.back() |
|
|
|
this.$router.back() |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -575,7 +533,7 @@ export default { |
|
|
|
this.$message.error("错了哦,判分规则不能为空") |
|
|
|
this.$message.error("错了哦,判分规则不能为空") |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
getCookie(cookie_name) { |
|
|
|
getCookie (cookie_name) { |
|
|
|
//获取cookie中指定key的value |
|
|
|
//获取cookie中指定key的value |
|
|
|
var allcookies = document.cookie; //索引长度,开始索引的位置 |
|
|
|
var allcookies = document.cookie; //索引长度,开始索引的位置 |
|
|
|
var cookie_pos = allcookies.indexOf(cookie_name); // 如果找到了索引,就代表cookie存在,否则不存在 |
|
|
|
var cookie_pos = allcookies.indexOf(cookie_name); // 如果找到了索引,就代表cookie存在,否则不存在 |
|
|
@ -593,49 +551,49 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
}, |
|
|
|
}, |
|
|
|
Back() { |
|
|
|
Back () { |
|
|
|
this.$router.back(); |
|
|
|
this.$router.back(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
headClass() { |
|
|
|
headClass () { |
|
|
|
return "text-align: center;"; |
|
|
|
return "text-align: center;"; |
|
|
|
}, |
|
|
|
}, |
|
|
|
rowClass() { |
|
|
|
rowClass () { |
|
|
|
return "text-align: center;"; |
|
|
|
return "text-align: center;"; |
|
|
|
}, |
|
|
|
}, |
|
|
|
getRule(row) { |
|
|
|
getRule (row) { |
|
|
|
if(!row.levelOne) return this.$message.warning('一级栏目不能为空') |
|
|
|
if (!row.levelOne) return this.$message.warning('一级栏目不能为空') |
|
|
|
if(!row.levelTwo) return this.$message.warning('子级栏目不能为空') |
|
|
|
if (!row.levelTwo) return this.$message.warning('子级栏目不能为空') |
|
|
|
if(!row.levelFour.length && row.type == 1){ |
|
|
|
if (!row.levelFour.length && row.type == 1) { |
|
|
|
return this.$message.warning(`正确答案不能为空`) |
|
|
|
return this.$message.warning(`正确答案不能为空`) |
|
|
|
} |
|
|
|
} |
|
|
|
if(!row.levelThree && row.type == 4){ |
|
|
|
if (!row.levelThree && row.type == 4) { |
|
|
|
return this.$message.warning(`选择指标不能为空`) |
|
|
|
return this.$message.warning(`选择指标不能为空`) |
|
|
|
} |
|
|
|
} |
|
|
|
if(row.type == 3){ |
|
|
|
if (row.type == 3) { |
|
|
|
if(row.numOfWords && (!row.symbol || !row.numDes)) return this.$message.warning(`字数要求不能为空`) |
|
|
|
if (row.numOfWords && (!row.symbol || !row.numDes)) return this.$message.warning(`字数要求不能为空`) |
|
|
|
if(row.fieldOfReq && !row.fieldOfReq) return this.$message.warning(`字段要求不能为空`) |
|
|
|
if (row.fieldOfReq && !row.fieldOfReq) return this.$message.warning(`字段要求不能为空`) |
|
|
|
} |
|
|
|
} |
|
|
|
if((row.type == 2 || row.type == 4) && (!row.symbolInput1 || !row.symbolInput2 || !row.symbolInput3 || !row.symbolInput4)) return this.$message.warning('交易指标区间不能为空') |
|
|
|
if ((row.type == 2 || row.type == 4) && (!row.symbolInput1 || !row.symbolInput2 || !row.symbolInput3 || !row.symbolInput4)) return this.$message.warning('交易指标区间不能为空') |
|
|
|
|
|
|
|
|
|
|
|
let levelThree = row.levelThree |
|
|
|
let levelThree = row.levelThree |
|
|
|
if(row.type != 1) levelThree = levelThree + '' |
|
|
|
if (row.type != 1) levelThree = levelThree + '' |
|
|
|
let levelFour = row.levelFour |
|
|
|
let levelFour = row.levelFour |
|
|
|
if(row.type == 1){ |
|
|
|
if (row.type == 1) { |
|
|
|
levelThree = row.levelTwo |
|
|
|
levelThree = row.levelTwo |
|
|
|
levelFour = levelFour.join(',') |
|
|
|
levelFour = levelFour.join(',') |
|
|
|
}else if(row.type == 2){ |
|
|
|
} else if (row.type == 2) { |
|
|
|
levelThree = row.symbolInput1 + row.symbolInput2 + '-' + row.symbolInput3 + row.symbolInput4 |
|
|
|
levelThree = row.symbolInput1 + row.symbolInput2 + '-' + row.symbolInput3 + row.symbolInput4 |
|
|
|
}else if(row.type == 3){ |
|
|
|
} else if (row.type == 3) { |
|
|
|
if(row.numOfWords){ |
|
|
|
if (row.numOfWords) { |
|
|
|
if(row.numDes < 0) return this.$message.warning(`字数要求必须大于0`) |
|
|
|
if (row.numDes < 0) return this.$message.warning(`字数要求必须大于0`) |
|
|
|
levelThree = this.symbolList.find((n) => n.id == row.symbol).name + ',' + row.numDes |
|
|
|
levelThree = this.symbolList.find((n) => n.id == row.symbol).name + ',' + row.numDes |
|
|
|
if(row.symbol == 6) levelThree = '无限制' |
|
|
|
if (row.symbol == 6) levelThree = '无限制' |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
levelThree = '' |
|
|
|
levelThree = '' |
|
|
|
} |
|
|
|
} |
|
|
|
levelFour = row.fieldOfReq ? row.levelFour : '' |
|
|
|
levelFour = row.fieldOfReq ? row.levelFour : '' |
|
|
|
}else if(row.type == 4){ |
|
|
|
} else if (row.type == 4) { |
|
|
|
if(row.symbolInput2 >= row.symbolInput3) return this.$message.warning(`第一个指标必须小于第二个指标`) |
|
|
|
if (row.symbolInput2 >= row.symbolInput3) return this.$message.warning(`第一个指标必须小于第二个指标`) |
|
|
|
levelFour = row.symbolInput1 + row.symbolInput2 + '~' + row.symbolInput3 + row.symbolInput4 |
|
|
|
levelFour = row.symbolInput1 + row.symbolInput2 + '~' + row.symbolInput3 + row.symbolInput4 |
|
|
|
} |
|
|
|
} |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
@ -649,12 +607,12 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
if (row.id) { |
|
|
|
if (row.id) { |
|
|
|
data.id = row.id |
|
|
|
data.id = row.id |
|
|
|
this.$post(this.api.updateRuleTrading,data) |
|
|
|
this.$post(this.api.updateRuleTrading, data) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
this.isAdd = false |
|
|
|
this.isAdd = false |
|
|
|
row.isShow = true |
|
|
|
row.isShow = true |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
this.ruleList.push({ |
|
|
|
this.ruleList.push({ |
|
|
|
operatorOne: row.operatorOne, |
|
|
|
operatorOne: row.operatorOne, |
|
|
|
operatorTwo: this.operatorTwo, |
|
|
|
operatorTwo: this.operatorTwo, |
|
|
@ -664,28 +622,28 @@ export default { |
|
|
|
levelThree, |
|
|
|
levelThree, |
|
|
|
levelFour |
|
|
|
levelFour |
|
|
|
}) |
|
|
|
}) |
|
|
|
if(this.id){ |
|
|
|
if (this.id) { |
|
|
|
data.tradingJudgmentPointsId = this.id |
|
|
|
data.tradingJudgmentPointsId = this.id |
|
|
|
this.$post(this.api.addRule,data) |
|
|
|
this.$post(this.api.addRule, data) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
this.isAdd = false |
|
|
|
this.isAdd = false |
|
|
|
row.isShow = true |
|
|
|
row.isShow = true |
|
|
|
this.getMesg() |
|
|
|
this.getMesg() |
|
|
|
}).catch((err) => {}) |
|
|
|
}).catch((err) => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
this.isAdd = false; |
|
|
|
this.isAdd = false; |
|
|
|
row.isShow = true; |
|
|
|
row.isShow = true; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
dialogFormVisible(index, row) { |
|
|
|
dialogFormVisible (index, row) { |
|
|
|
this.isAdd = false |
|
|
|
this.isAdd = false |
|
|
|
row.isShow = true |
|
|
|
row.isShow = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
getHandleEdit(row) { |
|
|
|
getHandleEdit (row) { |
|
|
|
this.isAdd = true |
|
|
|
this.isAdd = true |
|
|
|
row.isShow = false |
|
|
|
row.isShow = false |
|
|
|
}, |
|
|
|
}, |
|
|
|
getRuleDelete(index, row) { |
|
|
|
getRuleDelete (index, row) { |
|
|
|
if (!row.id) { |
|
|
|
if (!row.id) { |
|
|
|
this.tableData.splice(index, 1) |
|
|
|
this.tableData.splice(index, 1) |
|
|
|
index ? this.tableData.splice(index - 1, 1) : this.tableData.splice(0, 1) |
|
|
|
index ? this.tableData.splice(index - 1, 1) : this.tableData.splice(0, 1) |
|
|
@ -710,12 +668,12 @@ export default { |
|
|
|
message: "删除成功!" |
|
|
|
message: "删除成功!" |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((err) => {}) |
|
|
|
.catch((err) => { }) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
AddListRow() { |
|
|
|
AddListRow () { |
|
|
|
this.isAdd = true; |
|
|
|
this.isAdd = true; |
|
|
|
this.tableData.length && this.tableData.push({}) |
|
|
|
this.tableData.length && this.tableData.push({}) |
|
|
|
this.tableData.push({ |
|
|
|
this.tableData.push({ |
|
|
@ -744,7 +702,7 @@ export default { |
|
|
|
this.scrollToTop(); |
|
|
|
this.scrollToTop(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
scrollToTop() { |
|
|
|
scrollToTop () { |
|
|
|
const c = document.documentElement.scrollHeight || document.body.scrollHeight; |
|
|
|
const c = document.documentElement.scrollHeight || document.body.scrollHeight; |
|
|
|
window.scrollTo(0, c); |
|
|
|
window.scrollTo(0, c); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -775,7 +733,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .el-input__inner { |
|
|
|
/deep/ .el-input__inner { |
|
|
|
border: 1px solid #9278ff; |
|
|
|
border: 1px solid #9278ff; |
|
|
|
&[type=number]{ |
|
|
|
&[type='number'] { |
|
|
|
padding-right: 0; |
|
|
|
padding-right: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -972,7 +930,7 @@ export default { |
|
|
|
margin-right: 10px; |
|
|
|
margin-right: 10px; |
|
|
|
text-align: right; |
|
|
|
text-align: right; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
&.mini{ |
|
|
|
&.mini { |
|
|
|
width: auto; |
|
|
|
width: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|