|
|
|
@ -1,17 +1,23 @@ |
|
|
|
|
<template> |
|
|
|
|
<!-- 交易类 --> |
|
|
|
|
<div class="content" v-loading="loading" |
|
|
|
|
<div class="content" |
|
|
|
|
v-loading="loading" |
|
|
|
|
element-loading-text="加载中" |
|
|
|
|
element-loading-spinner="el-icon-loading"> |
|
|
|
|
<div class="header"> |
|
|
|
|
<div> |
|
|
|
|
<i class="back el-icon-arrow-left" @click="Back()" style="cursor:pointer"> |
|
|
|
|
<i class="back el-icon-arrow-left" |
|
|
|
|
@click="Back()" |
|
|
|
|
style="cursor:pointer"> |
|
|
|
|
<span>Back</span> |
|
|
|
|
</i> |
|
|
|
|
<span class="title">判分点设置</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="saveAll">保存</el-button> |
|
|
|
|
<el-button v-if="!isView" |
|
|
|
|
type="primary" |
|
|
|
|
size="mini" |
|
|
|
|
@click="saveAll">保存</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -23,25 +29,21 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<div class="label">判分点</div> |
|
|
|
|
<el-input |
|
|
|
|
v-model.trim="formData.lcJudgmentPoint.name" |
|
|
|
|
<el-input v-model.trim="formData.lcJudgmentPoint.name" |
|
|
|
|
:readonly="isView" |
|
|
|
|
@blur="handleBlur" |
|
|
|
|
placeholder="请输入内容" |
|
|
|
|
clearable |
|
|
|
|
style="width: 400px" |
|
|
|
|
></el-input> |
|
|
|
|
style="width: 400px"></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<div class="label">实验要求</div> |
|
|
|
|
<quill |
|
|
|
|
class="quill" |
|
|
|
|
<quill class="quill" |
|
|
|
|
v-model="formData.lcJudgmentPoint.experimentalRequirements" |
|
|
|
|
:readonly="isView" |
|
|
|
|
:border="true" |
|
|
|
|
:minHeight="150" |
|
|
|
|
:height="150" |
|
|
|
|
/> |
|
|
|
|
:height="150" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -52,11 +54,14 @@ |
|
|
|
|
<div>判分规则</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<el-dialog :visible.sync="configVisible" width="25%" title="批量新增判分点" center :append-to-body="false"> |
|
|
|
|
<el-dialog :visible.sync="configVisible" |
|
|
|
|
width="25%" |
|
|
|
|
title="批量新增判分点" |
|
|
|
|
center |
|
|
|
|
:append-to-body="false"> |
|
|
|
|
<div class="flex-between mgb20"> |
|
|
|
|
<div style="width: 100%;height: 400px;overflow: auto;margin: auto;background: #F5F5F5"> |
|
|
|
|
<el-tree |
|
|
|
|
class="add-tree" |
|
|
|
|
<!-- <el-tree class="add-tree" |
|
|
|
|
style="background: #F5F5F5" |
|
|
|
|
:data="treeData" |
|
|
|
|
@check="currentChecked" |
|
|
|
@ -66,85 +71,112 @@ |
|
|
|
|
node-key="operationIds" |
|
|
|
|
:props="defaultProps" |
|
|
|
|
v-if="configVisible"> |
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
|
<span class="custom-tree-node" |
|
|
|
|
slot-scope="{ node, data }"> |
|
|
|
|
<span>{{ node.label }}</span> |
|
|
|
|
<em class="exist" v-if="data.exist">(已导入)</em> |
|
|
|
|
<em class="exist" |
|
|
|
|
v-if="data.exist">(已导入)</em> |
|
|
|
|
</span> |
|
|
|
|
</el-tree> |
|
|
|
|
</el-tree> --> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<span slot="footer" |
|
|
|
|
class="dialog-footer"> |
|
|
|
|
<el-button @click="configVisible = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="handleConfirm">确 定</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="handleConfirm">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" style="margin-bottom: 20px"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
style="margin-bottom: 20px"> |
|
|
|
|
<div class="business-wrap"> |
|
|
|
|
<div class="business"> |
|
|
|
|
<div class="label">业务</div> |
|
|
|
|
<el-select v-model="formData.lcJudgmentPoint.business" placeholder="请选择业务"> |
|
|
|
|
<el-option v-for="(item, i) in businessList" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
<div class="label">{{isSt ? '关卡' : '业务'}}</div> |
|
|
|
|
<el-select v-model="formData.lcJudgmentPoint.business" |
|
|
|
|
placeholder="请选择业务"> |
|
|
|
|
<el-option v-for="(item, i) in businessList" |
|
|
|
|
:key="i" |
|
|
|
|
:label="item.name" |
|
|
|
|
:value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="batchDel">批量删除</el-button> |
|
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="addRules">新增</el-button> |
|
|
|
|
<el-button v-if="!isView" |
|
|
|
|
type="primary" |
|
|
|
|
size="mini" |
|
|
|
|
@click="batchDel">批量删除</el-button> |
|
|
|
|
<el-button v-if="!isView" |
|
|
|
|
type="primary" |
|
|
|
|
size="mini" |
|
|
|
|
@click="addRules">新增</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover"> |
|
|
|
|
<el-table |
|
|
|
|
class="lc-table" |
|
|
|
|
<el-table class="lc-table" |
|
|
|
|
:data="tableData" |
|
|
|
|
:stripe="true" |
|
|
|
|
:key="itemkey" |
|
|
|
|
row-key="i" |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
> |
|
|
|
|
<el-table-column |
|
|
|
|
type="selection" |
|
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
width="55"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="indexNo" type="index" label="序号" width="80"> |
|
|
|
|
<el-table-column prop="indexNo" |
|
|
|
|
type="index" |
|
|
|
|
label="序号" |
|
|
|
|
width="80"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.isSubject && scope.row.index + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="流程类考核点"> |
|
|
|
|
<template slot-scope="scope" v-if="scope.row.isSubject"> |
|
|
|
|
<template slot-scope="scope" |
|
|
|
|
v-if="scope.row.isSubject"> |
|
|
|
|
<p class="p">操作一致性规则:用户完成的功能操作与下方设置的操作点一致</p> |
|
|
|
|
<div class="tree-con"> |
|
|
|
|
<div class="block1" :id="'divTree'+scope.$index"> |
|
|
|
|
<el-tree :data="scope.row.operationIData" :props="defaultProp" :default-expand-all="true"></el-tree> |
|
|
|
|
<div class="block1" |
|
|
|
|
:id="'divTree'+scope.$index"> |
|
|
|
|
<el-tree :data="scope.row.operationIData" |
|
|
|
|
:props="defaultProp" |
|
|
|
|
:default-expand-all="true"></el-tree> |
|
|
|
|
</div> |
|
|
|
|
<div v-show="scope.row.isDisabled" class="mask"></div> |
|
|
|
|
<div v-show="scope.row.isDisabled" |
|
|
|
|
class="mask"></div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label=" " width="150" align="center"> |
|
|
|
|
<el-table-column label=" " |
|
|
|
|
width="150" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button |
|
|
|
|
circle |
|
|
|
|
<el-button circle |
|
|
|
|
type="primary" |
|
|
|
|
v-if="scope.row.isSubject" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
@click="changeResult(scope.row)" |
|
|
|
|
> |
|
|
|
|
@click="changeResult(scope.row)"> |
|
|
|
|
{{ scope.row.resultOperation === 0 ? "且" : "或" }} |
|
|
|
|
</el-button> |
|
|
|
|
<el-button v-else type="primary" circle @click="changeRule(scope.row, scope.$index)"> |
|
|
|
|
<el-button v-else |
|
|
|
|
type="primary" |
|
|
|
|
circle |
|
|
|
|
@click="changeRule(scope.row, scope.$index)"> |
|
|
|
|
{{ scope.row.ruleOperation === 0 ? "且" : "或" }} |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="正确答案"> |
|
|
|
|
<template slot-scope="scope" v-if="scope.row.isSubject"> |
|
|
|
|
<p class="p" style="margin-top: 1px">交易结果一致性规则:用户交易结果需要与下面设置的交易结果指标要求一致</p> |
|
|
|
|
<template slot-scope="scope" |
|
|
|
|
v-if="scope.row.isSubject"> |
|
|
|
|
<p class="p" |
|
|
|
|
style="margin-top: 1px">交易结果一致性规则:用户交易结果需要与下面设置的交易结果指标要求一致</p> |
|
|
|
|
<div class="block"> |
|
|
|
|
<!-- type: 题目类型(1选择 2判断 3填空 4问答 5指标结果) --> |
|
|
|
|
<div v-if="scope.row.operationIds && scope.row.type == null" style="line-height: 65px;text-align: center">需点击</div> |
|
|
|
|
<div v-if="scope.row.operationIds && scope.row.type == null" |
|
|
|
|
style="line-height: 65px;text-align: center">需点击</div> |
|
|
|
|
<template v-if="scope.row.type == 1"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
@ -154,18 +186,15 @@ |
|
|
|
|
<span class="label mini">正确答案</span> |
|
|
|
|
<div class="action"> |
|
|
|
|
<!--multiple:多选--> |
|
|
|
|
<el-select |
|
|
|
|
v-model="scope.row.value1" |
|
|
|
|
<el-select v-model="scope.row.value1" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
style="width: 100%" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item, index) in scope.row.lcItems" |
|
|
|
|
:multiple="isSt" |
|
|
|
|
style="width: 100%"> |
|
|
|
|
<el-option v-for="(item, index) in isSt ? scope.row.stItems : scope.row.lcItems" |
|
|
|
|
:key="item.itemId" |
|
|
|
|
:label="item.options" |
|
|
|
|
:value="item.itemId" |
|
|
|
|
></el-option> |
|
|
|
|
:value="item.itemId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -180,18 +209,14 @@ |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="label mini">正确答案</span> |
|
|
|
|
<div class="action"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="scope.row.value1" |
|
|
|
|
<el-select v-model="scope.row.value1" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
style="width: 100%" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item, index) in scope.row.lcItems" |
|
|
|
|
style="width: 100%"> |
|
|
|
|
<el-option v-for="(item, index) in scope.row.lcItems" |
|
|
|
|
:key="item.subjectId" |
|
|
|
|
:label="item.options" |
|
|
|
|
:value="item.subjectId" |
|
|
|
|
></el-option> |
|
|
|
|
:value="item.subjectId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -200,21 +225,20 @@ |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 3"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line" style="min-height: 100%;"> |
|
|
|
|
<div class="line" |
|
|
|
|
style="min-height: 100%;"> |
|
|
|
|
<span class="label"> |
|
|
|
|
<!--<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox>--> |
|
|
|
|
字段要求 |
|
|
|
|
</span> |
|
|
|
|
<div class="action"> |
|
|
|
|
<el-input |
|
|
|
|
class="mini-textarea" |
|
|
|
|
<el-input class="mini-textarea" |
|
|
|
|
type="textarea" |
|
|
|
|
rows="6" |
|
|
|
|
size="mini" |
|
|
|
|
v-model.trim="scope.row.value1" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
placeholder="字段之间以逗号隔开" |
|
|
|
|
></el-input> |
|
|
|
|
placeholder="字段之间以逗号隔开"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -228,20 +252,23 @@ |
|
|
|
|
字数要求 |
|
|
|
|
</span> |
|
|
|
|
<div class="action a-line"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="scope.row.value1" |
|
|
|
|
<el-select v-model="scope.row.value1" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
> |
|
|
|
|
<el-option label=">" value=">"></el-option> |
|
|
|
|
<el-option label="<" value="<"></el-option> |
|
|
|
|
<el-option label="=" value="="></el-option> |
|
|
|
|
<el-option label=">=" value=">="></el-option> |
|
|
|
|
<el-option label="<=" value="<="></el-option> |
|
|
|
|
<el-option label="无限制" value="无限制"></el-option> |
|
|
|
|
size="mini"> |
|
|
|
|
<el-option label=">" |
|
|
|
|
value=">"></el-option> |
|
|
|
|
<el-option label="<" |
|
|
|
|
value="<"></el-option> |
|
|
|
|
<el-option label="=" |
|
|
|
|
value="="></el-option> |
|
|
|
|
<el-option label=">=" |
|
|
|
|
value=">="></el-option> |
|
|
|
|
<el-option label="<=" |
|
|
|
|
value="<="></el-option> |
|
|
|
|
<el-option label="无限制" |
|
|
|
|
value="无限制"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<el-input |
|
|
|
|
class="number-input" |
|
|
|
|
<el-input class="number-input" |
|
|
|
|
v-model.trim="scope.row.value2" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
onkeyup="value=this.value.replace(/\D+/g,'')" |
|
|
|
@ -249,8 +276,7 @@ |
|
|
|
|
type="number" |
|
|
|
|
min="1" |
|
|
|
|
size="mini" |
|
|
|
|
style="margin-left: 5px;" |
|
|
|
|
></el-input> |
|
|
|
|
style="margin-left: 5px;"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
@ -259,15 +285,13 @@ |
|
|
|
|
字段要求 |
|
|
|
|
</span> |
|
|
|
|
<div class="action"> |
|
|
|
|
<el-input |
|
|
|
|
class="mini-textarea" |
|
|
|
|
<el-input class="mini-textarea" |
|
|
|
|
type="textarea" |
|
|
|
|
rows="5" |
|
|
|
|
size="mini" |
|
|
|
|
v-model.trim="scope.row.value3" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
placeholder="字段之间以逗号隔开" |
|
|
|
|
></el-input> |
|
|
|
|
placeholder="字段之间以逗号隔开"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -300,35 +324,31 @@ |
|
|
|
|
<span class="label">交易指标区间</span> |
|
|
|
|
<div class="action"> |
|
|
|
|
<div class="inputs"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="scope.row.value2" |
|
|
|
|
<el-select v-model="scope.row.value2" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
> |
|
|
|
|
<el-option label="(" value="("></el-option> |
|
|
|
|
<el-option label="[" value="["></el-option> |
|
|
|
|
clearable> |
|
|
|
|
<el-option v-for="item in leftSymbols" |
|
|
|
|
:key="item" |
|
|
|
|
:value="item.name"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<el-input |
|
|
|
|
class="number-input" |
|
|
|
|
<el-input class="number-input" |
|
|
|
|
v-model.trim="scope.row.value3" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
></el-input> |
|
|
|
|
<el-input |
|
|
|
|
class="number-input" |
|
|
|
|
size="mini"></el-input> |
|
|
|
|
<el-input class="number-input" |
|
|
|
|
v-model.trim="scope.row.value4" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
></el-input> |
|
|
|
|
<el-select |
|
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
|
size="mini"></el-input> |
|
|
|
|
<el-select :disabled="isView || scope.row.isDisabled" |
|
|
|
|
v-model="scope.row.value5" |
|
|
|
|
size="mini" |
|
|
|
|
> |
|
|
|
|
<el-option label=")" value=")"></el-option> |
|
|
|
|
<el-option label="]" value="]"></el-option> |
|
|
|
|
clearable> |
|
|
|
|
<el-option v-for="item in rightSymbols" |
|
|
|
|
:key="item" |
|
|
|
|
:value="item.name"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -339,53 +359,121 @@ |
|
|
|
|
<template v-if="scope.row.type == 6"> |
|
|
|
|
<div class="box money-box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check1" :disabled="isView || scope.row.isDisabled">100元</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val1" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check1" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">100元</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val1" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check2" :disabled="isView || scope.row.isDisabled">50元</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val2" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check2" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">50元</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val2" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check3" :disabled="isView || scope.row.isDisabled">20元</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val3" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check3" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">20元</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val3" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check4" :disabled="isView || scope.row.isDisabled">10元</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val4" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check4" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">10元</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val4" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check5" :disabled="isView || scope.row.isDisabled">5元</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val5" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check5" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">5元</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val5" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check6" :disabled="isView || scope.row.isDisabled">1元</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val6" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check6" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">1元</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val6" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check7" :disabled="isView || scope.row.isDisabled">5角</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val7" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check7" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">5角</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val7" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check8" :disabled="isView || scope.row.isDisabled">1角</el-checkbox> |
|
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val8" :disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
<el-checkbox class="money-check" |
|
|
|
|
v-model="scope.row.check8" |
|
|
|
|
:disabled="isView || scope.row.isDisabled">1角</el-checkbox> |
|
|
|
|
<el-input class="money" |
|
|
|
|
placeholder="请输入数量" |
|
|
|
|
type="number" |
|
|
|
|
size="mini" |
|
|
|
|
v-model="scope.row.val8" |
|
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" width="300" v-if="!isView"> |
|
|
|
|
<template slot-scope="scope" v-if="scope.row.isSubject"> |
|
|
|
|
<el-button v-show="scope.row.isDisabled" size="mini" type="text" @click="handleEdit(scope.row)">编辑 |
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
width="300" |
|
|
|
|
v-if="!isView"> |
|
|
|
|
<template slot-scope="scope" |
|
|
|
|
v-if="scope.row.isSubject"> |
|
|
|
|
<el-button v-show="scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
type="text" |
|
|
|
|
@click="handleEdit(scope.row)">编辑 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button v-show="!scope.row.isDisabled" size="mini" type="text" |
|
|
|
|
<el-button v-show="!scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
type="text" |
|
|
|
|
@click="handleSave(scope.row, scope.$index)">保存 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button v-show="!scope.row.isDisabled" size="mini" type="text" |
|
|
|
|
<el-button v-show="!scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
type="text" |
|
|
|
|
@click="handleCancel(scope.row, scope.$index)">取消 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button v-show="scope.row.isDisabled" size="mini" type="text" |
|
|
|
|
<el-button v-show="scope.row.isDisabled" |
|
|
|
|
size="mini" |
|
|
|
|
type="text" |
|
|
|
|
@click="handleDelete(scope.row, scope.$index)">删除 |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
@ -408,6 +496,7 @@ export default { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
systemId: this.$route.query.systemId, |
|
|
|
|
isSt: this.$route.query.systemId == 19, |
|
|
|
|
count: 0, |
|
|
|
|
fromChange: -999, |
|
|
|
|
fromCountIndex: -999, |
|
|
|
@ -442,6 +531,22 @@ export default { |
|
|
|
|
}, |
|
|
|
|
lcJudgmentRuleList: [] |
|
|
|
|
}, // 表单参数 |
|
|
|
|
leftSymbols: [ |
|
|
|
|
{ |
|
|
|
|
name: '(' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '[' |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
rightSymbols: [ |
|
|
|
|
{ |
|
|
|
|
name: ')' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: ']' |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
tableData: [], // 规则表格数据 |
|
|
|
|
tableDataCopy: [], // 规则表格数据备份 |
|
|
|
|
isAddRule: false, // 是否禁用新增规则按钮 |
|
|
|
@ -463,6 +568,42 @@ export default { |
|
|
|
|
this.$route.query.token && this.$store.commit("setParam", { |
|
|
|
|
token: atob(decodeURI(this.$route.query.token)) |
|
|
|
|
}); |
|
|
|
|
if (this.isSt) { |
|
|
|
|
this.leftSymbols = [ |
|
|
|
|
{ |
|
|
|
|
name: '>=' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '<' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '>' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '==' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '<=' |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
this.rightSymbols = [ |
|
|
|
|
{ |
|
|
|
|
name: '>=' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '<' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '>' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '==' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '<=' |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
this.getBusiness() |
|
|
|
|
this.checkChange.push(false) |
|
|
|
|
this.getTreeData(); |
|
|
|
@ -473,7 +614,7 @@ export default { |
|
|
|
|
methods: { |
|
|
|
|
getInfoData (lcId) { // 获取判分点详细信息 |
|
|
|
|
this.counts = 0 |
|
|
|
|
this.$get(`${this.api.queryJudgmentPointDetails}?lcId=${lcId}`).then(res => { |
|
|
|
|
this.$get(`${this.api[this.isSt ? 'queryJudgmentPointDetailsSt' : 'queryJudgmentPointDetails']}?lcId=${lcId}`).then(res => { |
|
|
|
|
if (res.status === 200) { |
|
|
|
|
let { judgmentPoint, judgmentRuleList } = res; |
|
|
|
|
this.formData = { |
|
|
|
@ -483,6 +624,7 @@ export default { |
|
|
|
|
this.$set(this.formData.lcJudgmentPoint, 'business', +judgmentRuleList[0].operationIds.split(',')[1]) // 业务id取operationIds的第二个id,第一个是固定的285 |
|
|
|
|
this.anewPosttingData(judgmentRuleList) |
|
|
|
|
this.tableData.forEach(async (item, index) => { |
|
|
|
|
item.i = index |
|
|
|
|
// 勾选树节点 |
|
|
|
|
let lists = JSON.parse(JSON.stringify(this.treeData)) |
|
|
|
|
if (item.operationIds) { |
|
|
|
@ -503,6 +645,7 @@ export default { |
|
|
|
|
// await this.getSubjectData(item.emptyOne, index); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log("🚀 ~ file: Transaction.vue:646 ~ this.tableData.forEach ~ this.tableData:", this.tableData) |
|
|
|
|
this.setIndex() |
|
|
|
|
this.loading = false |
|
|
|
|
} else { |
|
|
|
@ -516,14 +659,25 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 获取业务 |
|
|
|
|
getBusiness () { |
|
|
|
|
this.$post(`${this.api.getAllBusiness}?systemId=${this.systemId}`).then(({ lcRecords }) => { |
|
|
|
|
this.businessList = lcRecords |
|
|
|
|
// if (this.isSt) { |
|
|
|
|
// this.$post(this.api.getAllBusinessSt, { |
|
|
|
|
// platformId: 3, |
|
|
|
|
// }).then(({ data }) => { |
|
|
|
|
// this.businessList = data |
|
|
|
|
// }).catch(res => { }) |
|
|
|
|
// } else { |
|
|
|
|
// this.$post(`${this.api.getAllBusiness}?systemId=${this.systemId}`).then(({ stRecords, lcRecords }) => { |
|
|
|
|
// this.businessList = this.isSt ? stRecords : lcRecords |
|
|
|
|
// }).catch(res => { }) |
|
|
|
|
// } |
|
|
|
|
this.$post(`${this.api[this.isSt ? 'getAllBusinessSt' : 'getAllBusiness']}?systemId=${this.systemId}`).then(({ stRecords, lcRecords }) => { |
|
|
|
|
this.businessList = this.isSt ? stRecords : lcRecords |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}, |
|
|
|
|
handleSelectionChange (val) { |
|
|
|
|
this.multipleSelection = val |
|
|
|
|
}, |
|
|
|
|
filterRule(id, obj, needObj) { |
|
|
|
|
filterRule (id, obj = [], needObj) { |
|
|
|
|
let first = id.shift() |
|
|
|
|
let tmp = obj.find(item => item.id == first) |
|
|
|
|
needObj.children = obj.filter(item => item.id == first) |
|
|
|
@ -541,7 +695,7 @@ export default { |
|
|
|
|
let list = [] |
|
|
|
|
if (this.SelectedObj.checkedNodes.length > 0) { |
|
|
|
|
for (let i = 0; i < this.SelectedObj.checkedNodes.length; i++) { |
|
|
|
|
if(this.SelectedObj.checkedNodes[i].children.length > 0){ |
|
|
|
|
if (this.SelectedObj.checkedNodes[i].children && this.SelectedObj.checkedNodes[i].children.length > 0) { |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
this.SelectedObj.checkedNodes[i].resultOperation = 0 |
|
|
|
@ -576,7 +730,6 @@ export default { |
|
|
|
|
this.configVisible = false |
|
|
|
|
}, |
|
|
|
|
anewPosttingDatas (judgmentRuleList) { |
|
|
|
|
console.log("🚀 ~ file: Transaction.vue ~ line 577 ~ anewPosttingDatas ~ judgmentRuleList", judgmentRuleList) |
|
|
|
|
let length = judgmentRuleList.length; |
|
|
|
|
let tempArr = []; |
|
|
|
|
if (this.tableData.length > 0) { |
|
|
|
@ -620,10 +773,17 @@ export default { |
|
|
|
|
obj.value3 = item.emptyTwo; |
|
|
|
|
} else if (item.type == 5) { |
|
|
|
|
obj.subjectId = Number(item.emptyOne); |
|
|
|
|
obj.value2 = item.emptyTwo[0]; |
|
|
|
|
obj.value3 = item.emptyTwo.substring(1, item.emptyTwo.indexOf("~")); |
|
|
|
|
obj.value4 = item.emptyTwo.substring(item.emptyTwo.indexOf("~") + 1, item.emptyTwo.length - 1); |
|
|
|
|
obj.value5 = item.emptyTwo[item.emptyTwo.length - 1]; |
|
|
|
|
const temp = item.emptyTwo.split('~') |
|
|
|
|
if (temp.length) { |
|
|
|
|
const symbol = temp[0].match(/[<>=]+/g) |
|
|
|
|
const num = temp[0].match(/[\d.]+/g) |
|
|
|
|
const symbol1 = temp.length > 1 ? temp[1].match(/[<>=]+/g) : '' |
|
|
|
|
const num1 = temp.length > 1 ? temp[1].match(/[\d.]+/g) : '' |
|
|
|
|
obj.value2 = symbol ? symbol[0] : '' |
|
|
|
|
obj.value3 = num ? num[0] : '' |
|
|
|
|
obj.value4 = num1 ? num1[0] : '' |
|
|
|
|
obj.value5 = symbol1 ? symbol1[0] : '' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
tempArr.push(obj); |
|
|
|
|
if (length > 1 && index !== (length - 1)) { |
|
|
|
@ -634,7 +794,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log(444, tempArr) |
|
|
|
|
for (var i = 0; i < tempArr.length; i++) { |
|
|
|
|
this.tableData.push(tempArr[i]); |
|
|
|
|
} |
|
|
|
@ -657,7 +816,10 @@ export default { |
|
|
|
|
obj.type = item.type |
|
|
|
|
} |
|
|
|
|
//题目类型(1选择 2判断 3填空 4问答 5指标结果) |
|
|
|
|
if (item.type == 1 || item.type == 2) { |
|
|
|
|
if (item.type == 1 && this.isSt) { |
|
|
|
|
obj.subjectId = Number(item.emptyOne); |
|
|
|
|
obj.value1 = item.emptyTwo.split(',').map(e => +e) |
|
|
|
|
} else if (item.type == 1 || item.type == 2) { |
|
|
|
|
obj.subjectId = Number(item.emptyOne); |
|
|
|
|
obj.value1 = +item.emptyTwo; |
|
|
|
|
} else if (item.type == 3) { |
|
|
|
@ -675,10 +837,17 @@ export default { |
|
|
|
|
obj.value3 = item.emptyTwo; |
|
|
|
|
} else if (item.type == 5) { |
|
|
|
|
obj.subjectId = Number(item.emptyOne); |
|
|
|
|
obj.value2 = item.emptyTwo[0]; |
|
|
|
|
obj.value3 = item.emptyTwo.substring(1, item.emptyTwo.indexOf("~")); |
|
|
|
|
obj.value4 = item.emptyTwo.substring(item.emptyTwo.indexOf("~") + 1, item.emptyTwo.length - 1); |
|
|
|
|
obj.value5 = item.emptyTwo[item.emptyTwo.length - 1]; |
|
|
|
|
const temp = item.emptyTwo.split('~') |
|
|
|
|
if (temp.length) { |
|
|
|
|
const symbol = temp[0].match(/[<>=]+/g) |
|
|
|
|
const num = temp[0].match(/[\d.]+/g) |
|
|
|
|
const symbol1 = temp.length > 1 ? temp[1].match(/[<>=]+/g) : '' |
|
|
|
|
const num1 = temp.length > 1 ? temp[1].match(/[\d.]+/g) : '' |
|
|
|
|
obj.value2 = symbol ? symbol[0] : '' |
|
|
|
|
obj.value3 = num ? num[0] : '' |
|
|
|
|
obj.value4 = num1 ? num1[0] : '' |
|
|
|
|
obj.value5 = symbol1 ? symbol1[0] : '' |
|
|
|
|
} |
|
|
|
|
} else if (item.type == 6) { |
|
|
|
|
obj.subjectId = Number(item.emptyOne); |
|
|
|
|
const money = item.emptyTwo.split(',') // 金额 |
|
|
|
@ -690,7 +859,6 @@ export default { |
|
|
|
|
money.map(e => { |
|
|
|
|
const val = e.split('-') |
|
|
|
|
const i = moneys.findIndex(n => n == val[0]) |
|
|
|
|
console.log(33, i) |
|
|
|
|
obj['check' + (i + 1)] = true |
|
|
|
|
obj['val' + (i + 1)] = val[1] |
|
|
|
|
}) |
|
|
|
@ -704,12 +872,13 @@ export default { |
|
|
|
|
}, |
|
|
|
|
getSubjectData (subjectId, index) { // 获取题目信息 |
|
|
|
|
if (subjectId) { |
|
|
|
|
this.$get(`${this.api.getSubjectInfo}?subject_id=${subjectId}`).then(res => { |
|
|
|
|
this.$get(`${this.api[this.isSt ? 'getSubjectInfoSt' : 'getSubjectInfo']}?subject_id=${subjectId}`).then(res => { |
|
|
|
|
if (res.status === 200) { |
|
|
|
|
let item = { |
|
|
|
|
...this.tableData[index], |
|
|
|
|
...res.subject, |
|
|
|
|
lcItems: res.items |
|
|
|
|
lcItems: res.items, |
|
|
|
|
stItems: res.items, |
|
|
|
|
}; |
|
|
|
|
this.$set(this.tableData, index, item); |
|
|
|
|
} |
|
|
|
@ -756,10 +925,11 @@ export default { |
|
|
|
|
// } |
|
|
|
|
// this.loading = false |
|
|
|
|
// }else { |
|
|
|
|
this.$post(`${this.api.getProcess}?systemId=${this.systemId}`).then(({ process, status, message }) => { |
|
|
|
|
this.$post(`${this.api[this.isSt ? 'getProcessSt' : 'getProcess']}?systemId=${this.systemId}`).then(({ process, status, message }) => { |
|
|
|
|
if (status == 200) { |
|
|
|
|
if (process.length) { |
|
|
|
|
this.$store.commit('setTreeDataStore', { treeDataStore: process }) |
|
|
|
|
console.log("🚀 ~ file: Transaction.vue:932 ~ this.$post ~ process:", process) |
|
|
|
|
this.treeData = this.toTreeId(process); |
|
|
|
|
this.loading = false |
|
|
|
|
if (this.$route.query.lcId) { |
|
|
|
@ -776,8 +946,10 @@ export default { |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
toTreeId (data, parentId) { // id重新串连成(父+子+孙),已便达到树节点需要的key唯一性,且后面提交数据,需要传这个id串到后台 |
|
|
|
|
const name = this.isSt ? 'recordChildren' : 'children' |
|
|
|
|
let result = []; |
|
|
|
|
data.forEach(item => { |
|
|
|
|
// console.log("🚀 ~ file: Transaction.vue:866 ~ toTreeId ~ name:", item[name]) |
|
|
|
|
item.label = item.name |
|
|
|
|
if (item.isNode === 0) { |
|
|
|
|
item.showCheckbox = false; |
|
|
|
@ -785,7 +957,8 @@ export default { |
|
|
|
|
item.showCheckbox = true; |
|
|
|
|
} |
|
|
|
|
item.operationIds = parentId ? `${parentId},${item.id}` : `${item.id}` |
|
|
|
|
if (item.children && item.children.length) item.children = this.toTreeId(item.children, item.operationIds) |
|
|
|
|
if (this.isSt && item.recordChildren) item.children = item.recordChildren |
|
|
|
|
if (item[name] && item[name].length) item[name] = this.toTreeId(item[name], item.operationIds) |
|
|
|
|
result.push(item); |
|
|
|
|
}); |
|
|
|
|
return result; |
|
|
|
@ -797,7 +970,8 @@ export default { |
|
|
|
|
if (this.formData.lcJudgmentPoint.name) { |
|
|
|
|
let params = { |
|
|
|
|
lcId: this.lcId, |
|
|
|
|
name: this.formData.lcJudgmentPoint.name |
|
|
|
|
name: this.formData.lcJudgmentPoint.name, |
|
|
|
|
systemId: this.systemId |
|
|
|
|
}; |
|
|
|
|
this.$post(this.api.queryNameIsExist, params).then(res => { |
|
|
|
|
if (res.status === 200) { |
|
|
|
@ -853,14 +1027,14 @@ export default { |
|
|
|
|
lcId: i.lcId, |
|
|
|
|
itemId: '', |
|
|
|
|
type: i.type ? i.type : "", |
|
|
|
|
operationIds: `${this.systemId == 11 ? 285 : 591},${point.business},${i.operationIds}`, |
|
|
|
|
operationIds: `${this.systemId == 11 ? 285 : 1},${point.business},${i.operationIds}`, |
|
|
|
|
resultOperation: i.resultOperation, |
|
|
|
|
ruleOperation: i.ruleOperation |
|
|
|
|
}; |
|
|
|
|
//题目类型(1选择 2判断 3填空 4问答 5指标结果) |
|
|
|
|
if (i.type == 1 || i.type == 2) { |
|
|
|
|
obj.emptyOne = i.subjectId ? i.subjectId.toString() : ""; |
|
|
|
|
obj.itemId = i.value1 ? i.value1.toString() : ""; |
|
|
|
|
// obj.itemId = i.value1 ? i.value1.toString() : ""; |
|
|
|
|
obj.emptyTwo = i.value1 ? i.value1.toString() : ""; |
|
|
|
|
} else if (i.type == 3) { |
|
|
|
|
obj.emptyOne = i.subjectId ? i.subjectId.toString() : ""; |
|
|
|
@ -875,7 +1049,7 @@ export default { |
|
|
|
|
} else if (i.type == 5) { |
|
|
|
|
// obj.emptyOne = i.value1; // 选择指标不传 |
|
|
|
|
obj.emptyOne = i.subjectId ? i.subjectId.toString() : ""; |
|
|
|
|
obj.emptyTwo = `${i.value2}${i.value3}~${i.value4}${i.value5}`; |
|
|
|
|
obj.emptyTwo = `${i.value2 || ''}${i.value3}${i.value4 ? '~' + i.value4 : ''}${i.value5 || ''}`; |
|
|
|
|
} else if (i.type == 6) { |
|
|
|
|
const money = [] |
|
|
|
|
const { moneys } = this |
|
|
|
@ -1012,7 +1186,12 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
//题目类型(1选择 2判断 3填空 4问答 5指标结果) |
|
|
|
|
if (row.type == 1 || row.type == 2) { |
|
|
|
|
if (!row.value1) { |
|
|
|
|
if (row.type == 1 && this.isSt) { |
|
|
|
|
if (!row.value1.length) { |
|
|
|
|
this.$message.warning(`请选择正确答案`); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} else if (!row.value1) { |
|
|
|
|
this.$message.warning(`请选择正确答案`); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -1033,12 +1212,13 @@ export default { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} else if (row.type == 5) { |
|
|
|
|
if (!row.value2 || !row.value5) { |
|
|
|
|
if ((!row.value2 || !row.value5) && !this.isSt) { |
|
|
|
|
this.$message.warning(`请选择交易指标区间`); |
|
|
|
|
return; |
|
|
|
|
} else if (!row.value3 || !row.value4) { |
|
|
|
|
} else if ((!row.value3 || !row.value4) && !this.isSt) { |
|
|
|
|
this.$message.warning(`请输入交易指标区间`); |
|
|
|
|
} else if (row.value3 > row.value4) { |
|
|
|
|
return; |
|
|
|
|
} else if (row.value3 && row.value4 && +row.value3 > +row.value4) { |
|
|
|
|
this.$message.warning(`第一个指标必须小于第二个指标`); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -1147,7 +1327,7 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
<style> |
|
|
|
|
.el-tree-node__content { |
|
|
|
|
height: 26Px!important; |
|
|
|
|
height: 26px !important; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@ -1252,7 +1432,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/deep/.add-tree { |
|
|
|
|