提交 c5b6d1e6 authored 作者: wangyizheng's avatar wangyizheng

更新案例pdf的预览问题

上级 bdd3e0b0
...@@ -9,7 +9,7 @@ export function createUserUseConfig(data) { ...@@ -9,7 +9,7 @@ export function createUserUseConfig(data) {
} }
// 添加用户使用配置 // 添加用户使用配置
export function UserUseConfig(id, params = {}) { export function userUseConfig(id, params = {}) {
var headers = { var headers = {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }
......
...@@ -33,72 +33,70 @@ ...@@ -33,72 +33,70 @@
stripe stripe
size="mini" size="mini"
style="width: 100%"> style="width: 100%">
<el-table-column fixed prop="id" label="ID" width="150px"> <el-table-column fixed width="150px" label="案例名称">
</el-table-column>
<el-table-column width="150px" label="案例名称">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.case.name }}</span> <span>{{ scope.row.case.name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="150px" label="特征选项配置"> <el-table-column width="150px" label="特征选项配置">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
placement="right" placement="right"
width="600" width="600"
trigger="click"> trigger="click">
<div style="padding: 14px;" v-for="(option, optionIndex) in scope.row.options" :key="'option-' + optionIndex"> <div style="padding: 14px;" v-for="(option, optionIndex) in scope.row.options" :key="'option-' + optionIndex">
<el-card> <el-card>
<div> <div>
<span><strong>特征选项名称:</strong></span><span>{{ option.name }}</span> <span><strong>特征选项名称:</strong></span><span>{{ option.name }}</span>
</div> </div>
<div class="bottom clearfix"> <div class="bottom clearfix">
<span><strong>特征选项配置</strong></span> <span><strong>特征选项配置</strong></span>
<div v-for="(option1, optionIndex1) in option.options" :key="'option1-' + optionIndex1"> <div v-for="(option1, optionIndex1) in option.options" :key="'option1-' + optionIndex1">
<span><el-tag effect="plain" type="" size="mini">{{ option1.option }}</el-tag></span> <span><el-tag effect="plain" type="" size="mini">{{ option1.option }}</el-tag></span>
<span>{{ option1.option_name }}, 分数:{{ option1.score}}, </span> <span>{{ option1.option_name }}, 分数:{{ option1.score}}, </span>
<span> <span>
答案: 答案:
<el-icon v-if="option1.answer" class="el-icon-check"></el-icon> <el-icon v-if="option1.answer" class="el-icon-check"></el-icon>
<el-icon v-else class="el-icon-close"></el-icon> <el-icon v-else class="el-icon-close"></el-icon>
, ,
</span> </span>
<span> <span>
触及红线: 触及红线:
<el-icon v-if="option1.warning" class="el-icon-check"></el-icon> <el-icon v-if="option1.warning" class="el-icon-check"></el-icon>
<el-icon v-else class="el-icon-close"></el-icon> <el-icon v-else class="el-icon-close"></el-icon>
</span> </span>
<br/> <br/>
</div>
</div>
</el-card>
</div>
<el-button slot="reference" size="mini">查看配置</el-button>
</el-popover>
</template>
</el-table-column>
<el-table-column width="150px" label="择算分规则">
<template slot-scope="scope">
<el-popover
placement="right"
width="500"
trigger="click">
<div style="padding: 14px;" v-for="(rule, ruleIndex) in scope.row.rules" :key="'rule-' + ruleIndex">
<el-card>
<div>
<span><strong>分数范围:</strong></span>
<span>{{ rule.min }} ~ {{ rule.max }}</span>
</div>
<div>
<span><strong>得分:</strong></span>
<span>{{ rule.score }}</span>
</div> </div>
</el-card> </div>
</div> </el-card>
<el-button slot="reference" size="mini">查看择算分规则</el-button> </div>
</el-popover> <el-button slot="reference" size="mini">查看配置</el-button>
</template> </el-popover>
</el-table-column> </template>
<el-table-column width="150px" label="风险等级规则"> </el-table-column>
<el-table-column width="150px" label="择算分规则">
<template slot-scope="scope">
<el-popover
placement="right"
width="500"
trigger="click">
<div style="padding: 14px;" v-for="(rule, ruleIndex) in scope.row.rules" :key="'rule-' + ruleIndex">
<el-card>
<div>
<span><strong>分数范围:</strong></span>
<span>{{ rule.min }} ~ {{ rule.max }}</span>
</div>
<div>
<span><strong>得分:</strong></span>
<span>{{ rule.score }}</span>
</div>
</el-card>
</div>
<el-button slot="reference" size="mini">查看择算分规则</el-button>
</el-popover>
</template>
</el-table-column>
<el-table-column width="150px" label="风险等级规则">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
placement="right" placement="right"
...@@ -120,19 +118,19 @@ ...@@ -120,19 +118,19 @@
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间"> <el-table-column label="创建时间">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span style="margin-left: 10px">{{ scope.row.created_at }}</span> <span style="margin-left: 10px">{{ scope.row.created_at }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="更新时间"> <el-table-column label="更新时间">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span style="margin-left: 10px">{{ scope.row.updated_at }}</span> <span style="margin-left: 10px">{{ scope.row.updated_at }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作"> <el-table-column fixed="right" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select size="mini" :value="opera" @change="operation" placeholder="请选择"> <el-select size="mini" :value="opera" @change="operation" placeholder="请选择">
<el-option :value="{ tag: 'detail', row: scope.row }" label="详情"></el-option> <el-option :value="{ tag: 'detail', row: scope.row }" label="详情"></el-option>
...@@ -141,7 +139,7 @@ ...@@ -141,7 +139,7 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="block"> <div class="block">
<el-pagination <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChange"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论