|
|
@ -1,24 +1,20 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<!-- 交易类 --> |
|
|
|
<!-- 交易类 --> |
|
|
|
<div class="content" v-loading="loading" element-loading-text="加载中" element-loading-spinner="el-icon-loading"> |
|
|
|
<div class="wrap" v-loading="loading" element-loading-text="加载中" element-loading-spinner="el-icon-loading"> |
|
|
|
<div class="header"> |
|
|
|
<el-card shadow="hover"> |
|
|
|
<div> |
|
|
|
<div class="header"> |
|
|
|
<i class="back el-icon-arrow-left" @click="Back()" style="cursor:pointer"> |
|
|
|
<div> |
|
|
|
<span>Back</span> |
|
|
|
<el-page-header content="判分点设置" @back="back"></el-page-header> |
|
|
|
</i> |
|
|
|
</div> |
|
|
|
<span class="title">判分点设置</span> |
|
|
|
<div> |
|
|
|
</div> |
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="submit">保存</el-button> |
|
|
|
<div> |
|
|
|
</div> |
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="submit">保存</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
<el-card shadow="hover" style="margin: 20px 0;"> |
|
|
|
<div class="form-con"> |
|
|
|
<div class="form-con"> |
|
|
|
<div class="title"> |
|
|
|
<p class="p-title">基本信息</p> |
|
|
|
<div class="black"></div> |
|
|
|
|
|
|
|
<div>基本信息</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="item"> |
|
|
|
<div class="item"> |
|
|
|
<div class="label">判分点</div> |
|
|
|
<div class="label">判分点</div> |
|
|
|
<el-input v-model.trim="formData.lcJudgmentPoint.name" :readonly="isView" @blur="handleBlur" |
|
|
|
<el-input v-model.trim="formData.lcJudgmentPoint.name" :readonly="isView" @blur="handleBlur" |
|
|
@ -30,14 +26,11 @@ |
|
|
|
:border="true" :minHeight="150" :height="150" /> |
|
|
|
:border="true" :minHeight="150" :height="150" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="hover"> |
|
|
|
<div class="rule-con"> |
|
|
|
<div class="rule-con"> |
|
|
|
<div class="title-con"> |
|
|
|
<p class="p-title">判分规则</p> |
|
|
|
<div class="title"> |
|
|
|
|
|
|
|
<div class="black"></div> |
|
|
|
|
|
|
|
<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 class="flex-between mgb20"> |
|
|
|
<div style="width: 100%;height: 400px;overflow: auto;margin: auto;background: #F5F5F5"> |
|
|
|
<div style="width: 100%;height: 400px;overflow: auto;margin: auto;background: #F5F5F5"> |
|
|
@ -57,266 +50,261 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" style="margin-bottom: 20px"> |
|
|
|
<div class="business-wrap"> |
|
|
|
<div class="business-wrap"> |
|
|
|
<div class="business"> |
|
|
|
<div class="business"> |
|
|
|
<div class="label">{{ isSt ? '关卡' : '业务' }}</div> |
|
|
|
<div class="label">{{ isSt ? '关卡' : '业务' }}</div> |
|
|
|
<el-select v-model="formData.lcJudgmentPoint.business" :placeholder="'请选择' + (isSt ? '关卡' : '业务')"> |
|
|
|
<el-select v-model="formData.lcJudgmentPoint.business" :placeholder="'请选择' + (isSt ? '关卡' : '业务')"> |
|
|
|
<el-option v-for="(item, i) in businessList" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
<el-option v-for="(item, i) in businessList" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<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="batchDel">批量删除</el-button> |
|
|
|
<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> |
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="addRules">新增</el-button> |
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="addRules">新增</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="hover"> |
|
|
|
<el-table class="lc-table" :data="tableData" :stripe="true" row-key="i" header-align="center" |
|
|
|
<el-table class="lc-table" :data="tableData" :stripe="true" row-key="i" header-align="center" |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" width="55"> |
|
|
|
<el-table-column type="selection" width="55"> |
|
|
|
</el-table-column> |
|
|
|
</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"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.isSubject && scope.row.index + 1 }} |
|
|
|
{{ scope.row.isSubject && scope.row.index + 1 }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="流程类考核点"> |
|
|
|
<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> |
|
|
|
<p class="p">操作一致性规则:用户完成的功能操作与下方设置的操作点一致</p> |
|
|
|
<div class="tree-con"> |
|
|
|
<div class="tree-con"> |
|
|
|
<div class="block1" :id="'divTree' + scope.$index"> |
|
|
|
<div class="block1" :id="'divTree' + scope.$index"> |
|
|
|
<el-tree :data="scope.row.operationIData" :props="defaultProp" :default-expand-all="true"></el-tree> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<div v-show="scope.row.isDisabled" class="mask"></div> |
|
|
|
</el-table-column> |
|
|
|
</div> |
|
|
|
<el-table-column label=" " width="150" align="center"> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
</el-table-column> |
|
|
|
<el-button circle type="primary" v-if="scope.row.isSubject" |
|
|
|
<el-table-column label=" " width="150" align="center"> |
|
|
|
:disabled="isSt || isView || scope.row.isDisabled" @click="changeResult(scope.row)"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.resultOperation === 0 ? "且" : "或" }} |
|
|
|
<el-button circle type="primary" v-if="scope.row.isSubject" |
|
|
|
</el-button> |
|
|
|
:disabled="isSt || isView || scope.row.isDisabled" @click="changeResult(scope.row)"> |
|
|
|
<el-button v-else type="primary" circle @click="changeRule(scope.row, scope.$index)"> |
|
|
|
{{ scope.row.resultOperation === 0 ? "且" : "或" }} |
|
|
|
{{ scope.row.ruleOperation === 0 ? "且" : "或" }} |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button v-else type="primary" circle @click="changeRule(scope.row, scope.$index)"> |
|
|
|
</template> |
|
|
|
{{ scope.row.ruleOperation === 0 ? "且" : "或" }} |
|
|
|
</el-table-column> |
|
|
|
</el-button> |
|
|
|
<el-table-column label="正确答案"> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope" v-if="scope.row.isSubject"> |
|
|
|
</el-table-column> |
|
|
|
<p class="p" style="margin-top: 1px">交易结果一致性规则:用户交易结果需要与下面设置的交易结果指标要求一致</p> |
|
|
|
<el-table-column label="正确答案"> |
|
|
|
<div class="block"> |
|
|
|
<template slot-scope="scope" v-if="scope.row.isSubject"> |
|
|
|
<!-- type: 题目类型(1选择 2判断 3填空 4问答 5指标结果) --> |
|
|
|
<p class="p" style="margin-top: 1px">交易结果一致性规则:用户交易结果需要与下面设置的交易结果指标要求一致</p> |
|
|
|
<div v-if="scope.row.operationIds && scope.row.type == null" |
|
|
|
<div class="block"> |
|
|
|
style="line-height: 65px;text-align: center">需点击</div> |
|
|
|
<!-- type: 题目类型(1选择 2判断 3填空 4问答 5指标结果) --> |
|
|
|
<template v-if="scope.row.type == 1"> |
|
|
|
<div v-if="scope.row.operationIds && scope.row.type == null" |
|
|
|
<div class="box"> |
|
|
|
style="line-height: 65px;text-align: center">需点击</div> |
|
|
|
<div class="line"> |
|
|
|
<template v-if="scope.row.type == 1"> |
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
<div class="box"> |
|
|
|
</div> |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
<span class="label mini">正确答案</span> |
|
|
|
</div> |
|
|
|
<div class="action"> |
|
|
|
<div class="line"> |
|
|
|
<!--multiple:多选--> |
|
|
|
<span class="label mini">正确答案</span> |
|
|
|
<el-select v-model="scope.row.value1" :disabled="isView || scope.row.isDisabled" size="mini" |
|
|
|
<div class="action"> |
|
|
|
:multiple="isSt" style="width: 100%;overflow: hidden;"> |
|
|
|
<!--multiple:多选--> |
|
|
|
<el-option v-for="(item, i) in isSt ? scope.row.stItems : scope.row.lcItems" :key="i" |
|
|
|
<el-select v-model="scope.row.value1" :disabled="isView || scope.row.isDisabled" size="mini" |
|
|
|
:label="item.options" :value="item.itemId"></el-option> |
|
|
|
:multiple="isSt" style="width: 100%;overflow: hidden;"> |
|
|
|
</el-select> |
|
|
|
<el-option v-for="(item, i) in isSt ? scope.row.stItems : scope.row.lcItems" :key="i" |
|
|
|
</div> |
|
|
|
:label="item.options" :value="item.itemId"></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 2"> |
|
|
|
<template v-if="scope.row.type == 2"> |
|
|
|
<div class="box"> |
|
|
|
<div class="box"> |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
</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 v-model="scope.row.value1" :disabled="isView || scope.row.isDisabled" size="mini" |
|
|
|
<el-select v-model="scope.row.value1" :disabled="isView || scope.row.isDisabled" size="mini" |
|
|
|
style="width: 100%;"> |
|
|
|
style="width: 100%;"> |
|
|
|
<el-option v-for="(item, i) in scope.row.lcItems" :key="i" :label="item.options" |
|
|
|
<el-option v-for="(item, i) in scope.row.lcItems" :key="i" :label="item.options" |
|
|
|
:value="item.subjectId"></el-option> |
|
|
|
:value="item.subjectId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template v-if="scope.row.type == 3"> |
|
|
|
|
|
|
|
<div class="box"> |
|
|
|
<template v-if="scope.row.type == 3"> |
|
|
|
<div class="line" style="min-height: 100%;"> |
|
|
|
<div class="box"> |
|
|
|
<span class="label"> |
|
|
|
<div class="line" style="min-height: 100%;"> |
|
|
|
<!--<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox>--> |
|
|
|
<span class="label"> |
|
|
|
字段要求 |
|
|
|
<!--<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox>--> |
|
|
|
</span> |
|
|
|
字段要求 |
|
|
|
<div class="action"> |
|
|
|
</span> |
|
|
|
<el-input class="mini-textarea" type="textarea" rows="6" size="mini" |
|
|
|
<div class="action"> |
|
|
|
v-model.trim="scope.row.value1" :disabled="isView || scope.row.isDisabled" |
|
|
|
<el-input class="mini-textarea" type="textarea" rows="6" size="mini" |
|
|
|
placeholder="字段之间以逗号隔开"></el-input> |
|
|
|
v-model.trim="scope.row.value1" :disabled="isView || scope.row.isDisabled" |
|
|
|
</div> |
|
|
|
placeholder="字段之间以逗号隔开"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template v-if="scope.row.type == 4"> |
|
|
|
|
|
|
|
<div class="box"> |
|
|
|
<template v-if="scope.row.type == 4"> |
|
|
|
<div class="line"> |
|
|
|
<div class="box"> |
|
|
|
<span class="label"> |
|
|
|
<div class="line"> |
|
|
|
<!--<el-checkbox v-model="scope.row.numOfWords" :disabled="isView || scope.row.isDisabled">字数要求</el-checkbox>--> |
|
|
|
<span class="label"> |
|
|
|
字数要求 |
|
|
|
<!--<el-checkbox v-model="scope.row.numOfWords" :disabled="isView || scope.row.isDisabled">字数要求</el-checkbox>--> |
|
|
|
</span> |
|
|
|
字数要求 |
|
|
|
<div class="action a-line"> |
|
|
|
</span> |
|
|
|
<el-select v-model="scope.row.value1" :disabled="isView || scope.row.isDisabled" size="mini"> |
|
|
|
<div class="action a-line"> |
|
|
|
<el-option label=">" value=">"></el-option> |
|
|
|
<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> |
|
|
|
<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-option label="无限制" value="无限制"></el-option> |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value2" |
|
|
|
</el-select> |
|
|
|
:disabled="isView || scope.row.isDisabled" onkeyup="value=this.value.replace(/\D+/g,'')" |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value2" |
|
|
|
oninput="value=value.replace(/[^0-9.]/g,'')" type="number" min="1" size="mini" |
|
|
|
:disabled="isView || scope.row.isDisabled" onkeyup="value=this.value.replace(/\D+/g,'')" |
|
|
|
style="margin-left: 5px;"></el-input> |
|
|
|
oninput="value=value.replace(/[^0-9.]/g,'')" type="number" min="1" size="mini" |
|
|
|
</div> |
|
|
|
style="margin-left: 5px;"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="line"> |
|
|
|
</div> |
|
|
|
<span class="label"> |
|
|
|
<div class="line"> |
|
|
|
<!--<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox>--> |
|
|
|
<span class="label"> |
|
|
|
字段要求 |
|
|
|
<!--<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox>--> |
|
|
|
</span> |
|
|
|
字段要求 |
|
|
|
<div class="action"> |
|
|
|
</span> |
|
|
|
<el-input class="mini-textarea" type="textarea" rows="5" size="mini" |
|
|
|
<div class="action"> |
|
|
|
v-model.trim="scope.row.value3" :disabled="isView || scope.row.isDisabled" |
|
|
|
<el-input class="mini-textarea" type="textarea" rows="5" size="mini" |
|
|
|
placeholder="字段之间以逗号隔开"></el-input> |
|
|
|
v-model.trim="scope.row.value3" :disabled="isView || scope.row.isDisabled" |
|
|
|
</div> |
|
|
|
placeholder="字段之间以逗号隔开"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 5"> |
|
|
|
<template v-if="scope.row.type == 5"> |
|
|
|
<div class="box" style="padding: 0;"> |
|
|
|
<div class="box" style="padding: 0;"> |
|
|
|
<div class="line"> |
|
|
|
<div class="line"> |
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="line" style="flex-direction: column;"> |
|
|
|
<div class="line" style="flex-direction: column;"> |
|
|
|
<p class="label">交易指标区间</p> |
|
|
|
<p class="label">交易指标区间</p> |
|
|
|
<div class="action"> |
|
|
|
<div class="action"> |
|
|
|
<div class="inputs range"> |
|
|
|
<div class="inputs range"> |
|
|
|
<el-select v-model="scope.row.value2" :disabled="isView || scope.row.isDisabled" size="mini" |
|
|
|
<el-select v-model="scope.row.value2" :disabled="isView || scope.row.isDisabled" size="mini" |
|
|
|
clearable placeholder="符号"> |
|
|
|
clearable placeholder="符号"> |
|
|
|
<el-option v-for="(item, i) in leftSymbols" :key="i" :value="item.name"></el-option> |
|
|
|
<el-option v-for="(item, i) in leftSymbols" :key="i" :value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value3" |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value3" |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="数值" /> |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="数值" /> |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value4" |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value4" |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="单位" /> |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="单位" /> |
|
|
|
<span>~</span> |
|
|
|
<span>~</span> |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value5" |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value5" |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="数值" /> |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="数值" /> |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value6" |
|
|
|
<el-input class="number-input" v-model.trim="scope.row.value6" |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="单位" /> |
|
|
|
:disabled="isView || scope.row.isDisabled" size="mini" placeholder="单位" /> |
|
|
|
<el-select :disabled="isView || scope.row.isDisabled" v-model="scope.row.value7" size="mini" |
|
|
|
<el-select :disabled="isView || scope.row.isDisabled" v-model="scope.row.value7" size="mini" |
|
|
|
clearable placeholder="符号"> |
|
|
|
clearable placeholder="符号"> |
|
|
|
<el-option v-for="(item, i) in rightSymbols" :key="i" :value="item.name"></el-option> |
|
|
|
<el-option v-for="(item, i) in rightSymbols" :key="i" :value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template v-if="scope.row.type == 6"> |
|
|
|
|
|
|
|
<div class="box money-box"> |
|
|
|
<template v-if="scope.row.type == 6"> |
|
|
|
<div class="line"> |
|
|
|
<div class="box money-box"> |
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check1" |
|
|
|
<div class="line"> |
|
|
|
:disabled="isView || scope.row.isDisabled">100元</el-checkbox> |
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check1" |
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val1" |
|
|
|
:disabled="isView || scope.row.isDisabled">100元</el-checkbox> |
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val1" |
|
|
|
</div> |
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
<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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<div class="line"> |
|
|
|
</div> |
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check2" |
|
|
|
</template> |
|
|
|
:disabled="isView || scope.row.isDisabled">50元</el-checkbox> |
|
|
|
</el-table-column> |
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val2" |
|
|
|
<el-table-column label="操作" width="300" v-if="!isView"> |
|
|
|
:disabled="isView || scope.row.isDisabled" /> |
|
|
|
<template slot-scope="scope" v-if="scope.row.isSubject"> |
|
|
|
</div> |
|
|
|
<el-button v-show="scope.row.isDisabled" size="mini" type="text" @click="handleEdit(scope.row)">编辑 |
|
|
|
<div class="line"> |
|
|
|
</el-button> |
|
|
|
<el-checkbox class="money-check" v-model="scope.row.check3" |
|
|
|
<el-button v-show="!scope.row.isDisabled" size="mini" type="text" @click="handleSave(scope.row)">保存 |
|
|
|
:disabled="isView || scope.row.isDisabled">20元</el-checkbox> |
|
|
|
</el-button> |
|
|
|
<el-input class="money" placeholder="请输入数量" type="number" size="mini" v-model="scope.row.val3" |
|
|
|
<!-- <el-button v-show="!scope.row.isDisabled" |
|
|
|
: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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
|
|
</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-button> |
|
|
|
|
|
|
|
<el-button v-show="!scope.row.isDisabled" size="mini" type="text" @click="handleSave(scope.row)">保存 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<!-- <el-button v-show="!scope.row.isDisabled" |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
@click="handleCancel(scope.row, scope.$index)">取消 |
|
|
|
@click="handleCancel(scope.row, scope.$index)">取消 |
|
|
|
</el-button> --> |
|
|
|
</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)">删除 |
|
|
|
@click="handleDelete(scope.row, scope.$index)">删除 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-backtop></el-backtop> |
|
|
|
<el-backtop></el-backtop> |
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import quill from "@/components/quill"; |
|
|
|
import quill from "@/components/quill"; |
|
|
|
import MyTree from "@/components/myTree/src/tree"; |
|
|
|
import MyTree from "@/components/myTree/src/tree"; |
|
|
|
import { deepCopy } from "@/utils/deepCopy"; |
|
|
|
|
|
|
|
import { mapState } from 'vuex' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
import _ from 'lodash' |
|
|
|
import _ from 'lodash' |
|
|
|
export default { |
|
|
|
export default { |
|
|
@ -325,6 +313,14 @@ export default { |
|
|
|
return { |
|
|
|
return { |
|
|
|
systemId: this.$route.query.systemId, |
|
|
|
systemId: this.$route.query.systemId, |
|
|
|
isSt: this.$route.query.systemId == 19, |
|
|
|
isSt: this.$route.query.systemId == 19, |
|
|
|
|
|
|
|
routes: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
name: '实验记录', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
name: '实验情况' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
count: 0, |
|
|
|
count: 0, |
|
|
|
fromChange: -999, |
|
|
|
fromChange: -999, |
|
|
|
fromCountIndex: -999, |
|
|
|
fromCountIndex: -999, |
|
|
@ -777,7 +773,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
}, |
|
|
|
}, |
|
|
|
Back () { // 返回 |
|
|
|
back () { // 返回 |
|
|
|
this.$router.back(); |
|
|
|
this.$router.back(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleBlur () { // 新增/编辑判分点名称判重 |
|
|
|
handleBlur () { // 新增/编辑判分点名称判重 |
|
|
@ -879,7 +875,7 @@ export default { |
|
|
|
this.$post(this.api.addJudgmentPoint, this.formData).then(res => { |
|
|
|
this.$post(this.api.addJudgmentPoint, this.formData).then(res => { |
|
|
|
if (res.status === 200) { |
|
|
|
if (res.status === 200) { |
|
|
|
this.$message.success("新增判分点成功"); |
|
|
|
this.$message.success("新增判分点成功"); |
|
|
|
this.Back(); |
|
|
|
this.back(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$message.warning(res.message); |
|
|
|
this.$message.warning(res.message); |
|
|
|
} |
|
|
|
} |
|
|
@ -888,7 +884,7 @@ export default { |
|
|
|
this.$post(this.api.updateJudgmentPoint, this.formData).then(res => { |
|
|
|
this.$post(this.api.updateJudgmentPoint, this.formData).then(res => { |
|
|
|
if (res.status === 200) { |
|
|
|
if (res.status === 200) { |
|
|
|
this.$message.success("更新判分点成功"); |
|
|
|
this.$message.success("更新判分点成功"); |
|
|
|
this.Back(); |
|
|
|
this.back(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$message.warning(res.message); |
|
|
|
this.$message.warning(res.message); |
|
|
|
} |
|
|
|
} |
|
|
@ -983,7 +979,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleEdit (row) { // 处理编辑规则 |
|
|
|
handleEdit (row) { // 处理编辑规则 |
|
|
|
this.judgePoints = true |
|
|
|
this.judgePoints = true |
|
|
|
// this.tableDataCopy = deepCopy(this.tableData); // 深拷贝 |
|
|
|
|
|
|
|
row.isDisabled = false; |
|
|
|
row.isDisabled = false; |
|
|
|
row.isSave = false; |
|
|
|
row.isSave = false; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1145,43 +1140,15 @@ export default { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
margin-bottom: 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
.wrap { |
|
|
|
position: relative; |
|
|
|
padding: 20px; |
|
|
|
top: 10px; |
|
|
|
|
|
|
|
padding: 0 10px; |
|
|
|
|
|
|
|
background-color: #ffffff; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.header { |
|
|
|
.header { |
|
|
|
border-bottom: 1px dashed #ccc; |
|
|
|
|
|
|
|
height: 45px; |
|
|
|
|
|
|
|
line-height: 45px; |
|
|
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
|
|
font-weight: 600; |
|
|
|
|
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
|
|
|
|
.back { |
|
|
|
|
|
|
|
line-height: 3; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
span { |
|
|
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
|
|
font-weight: 600; |
|
|
|
|
|
|
|
padding-left: 5px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.title { |
|
|
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
margin-left: 20px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.cell div { |
|
|
|
|
|
|
|
margin: auto; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.business { |
|
|
|
.business { |
|
|
@ -1195,22 +1162,6 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// 表单容器 |
|
|
|
// 表单容器 |
|
|
|
.form-con { |
|
|
|
.form-con { |
|
|
|
padding-bottom: 24px; |
|
|
|
|
|
|
|
border-bottom: 1px dashed #ccc; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.title { |
|
|
|
|
|
|
|
padding: 10px 0; |
|
|
|
|
|
|
|
border-bottom: 1px dashed #ccc; |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.black { |
|
|
|
|
|
|
|
width: 8px; |
|
|
|
|
|
|
|
height: 18px; |
|
|
|
|
|
|
|
background-color: #333; |
|
|
|
|
|
|
|
margin-right: 10px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.item { |
|
|
|
.item { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
margin-top: 24px; |
|
|
|
margin-top: 24px; |
|
|
@ -1227,29 +1178,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 规则容器 |
|
|
|
|
|
|
|
.rule-con { |
|
|
|
|
|
|
|
padding-bottom: 60px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.title-con { |
|
|
|
|
|
|
|
height: 60px; |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.title { |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.black { |
|
|
|
|
|
|
|
width: 8px; |
|
|
|
|
|
|
|
height: 18px; |
|
|
|
|
|
|
|
background-color: #333; |
|
|
|
|
|
|
|
margin-right: 10px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.add-tree { |
|
|
|
/deep/.add-tree { |
|
|
@ -1260,26 +1188,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 滚动条的宽度 |
|
|
|
|
|
|
|
/deep/ ::-webkit-scrollbar { |
|
|
|
|
|
|
|
width: 6px; // 横向滚动条 |
|
|
|
|
|
|
|
height: 6px; // 纵向滚动条 必写 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 滚动条的滑块 |
|
|
|
|
|
|
|
/deep/ ::-webkit-scrollbar-thumb { |
|
|
|
|
|
|
|
background-color: #9278ff; |
|
|
|
|
|
|
|
border-radius: 3px; |
|
|
|
|
|
|
|
-webkit-box-shadow: inset 0 0 5px #dddddd; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/deep/ ::-webkit-scrollbar-track { |
|
|
|
|
|
|
|
/*滚动条里面轨道*/ |
|
|
|
|
|
|
|
-webkit-box-shadow: inset 0 0 5px #dddddd; |
|
|
|
|
|
|
|
border-radius: 0; |
|
|
|
|
|
|
|
background: #dddddd; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.tree-con { |
|
|
|
.tree-con { |
|
|
|
height: 230px; |
|
|
|
height: 230px; |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|