优化:指标名称使用 textarea

This commit is contained in:
xiongchengqiang 2020-12-18 09:48:28 +08:00
parent d57379a853
commit b6edefe23a
3 changed files with 14 additions and 10 deletions

View File

@ -36,9 +36,11 @@
:key="indexJ"> :key="indexJ">
<div class="goals-content-tabbar-table-content-top"> <div class="goals-content-tabbar-table-content-top">
<div style="width:200px;" <div style="width:200px;"
class="my-handle"><img style="width:20px;height:20px;" class="my-handle pre"><img style="width:20px;height:20px;"
src="@/assets/img/yidong.png" src="@/assets/img/yidong.png"
alt="">{{j.target}}</div> alt="">
<pre>{{j.target}}</pre>
</div>
<div style="flex:1 0 auto;" <div style="flex:1 0 auto;"
class="kaohe"> class="kaohe">
<pre>{{j.keyResult}}</pre> <pre>{{j.keyResult}}</pre>
@ -93,7 +95,7 @@
业务指标权重{{handleGetWeight(i)}}% <span v-if="i.weight !== null">/{{Math.round((i.weight * 100)*1000)/1000}}%</span> 业务指标权重{{handleGetWeight(i)}}% <span v-if="i.weight !== null">/{{Math.round((i.weight * 100)*1000)/1000}}%</span>
</div> </div>
<div> <div>
所有指标总权重: <span style="color:#EE6723;">{{ handleGetWeight1()}}%/100%</span> 所有指标总权重: <span style="color:#EE6723;">{{ handleGetWeight1()}}%</span><span>/100%</span>
</div> </div>
</div> </div>
<div style=" padding: 10px;"> <div style=" padding: 10px;">
@ -170,7 +172,8 @@
<el-form-item prop="target" <el-form-item prop="target"
label='指标名称'> label='指标名称'>
<el-input clearable <el-input clearable
:rows="4"
type="textarea"
size="small" size="small"
v-model="formIndicators.target"></el-input> v-model="formIndicators.target"></el-input>
</el-form-item> </el-form-item>
@ -178,7 +181,7 @@
prop="keyResult"> prop="keyResult">
<el-input size="small" <el-input size="small"
clearable clearable
:rows="24" :rows="22"
type="textarea" type="textarea"
v-model="formIndicators.keyResult"></el-input> v-model="formIndicators.keyResult"></el-input>
</el-form-item> </el-form-item>

View File

@ -43,8 +43,9 @@
<div class="table-content" <div class="table-content"
v-for="(i,index2) in item.detailDtos" v-for="(i,index2) in item.detailDtos"
:key="index2"> :key="index2">
<div class="name" <div class="name pre"
v-html="i.target"> >
<pre>{{i.target}}</pre>
</div> </div>
<div class="jindu"> <div class="jindu">
<el-progress v-if='i.taskDtos.length !== 0' type="circle" <el-progress v-if='i.taskDtos.length !== 0' type="circle"
@ -64,7 +65,7 @@
</div> </div>
<div class="kaohe pre" style="justify-content: flex-start;"> <div class="kaohe pre" style="justify-content: flex-start;">
<pre> <pre>
{{i.keyResult}} {{i.keyResult}}
</pre> </pre>
</div> </div>

View File

@ -96,7 +96,7 @@
v-for="(j,indexJ) in handleFilter(i.tagetLibItems)" v-for="(j,indexJ) in handleFilter(i.tagetLibItems)"
:key="indexJ" :key="indexJ"
> >
<div style="width:30%">{{j.name}}</div> <div style="width:30%" class="pre"><pre>{{j.name}}</pre></div>
<div style="width:30%" class="pre"> <div style="width:30%" class="pre">
<pre >{{j.keyResult}}</pre> <pre >{{j.keyResult}}</pre>
</div> </div>
@ -186,7 +186,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="name" label='指标名称'> <el-form-item prop="name" label='指标名称'>
<el-input clearable size="small" v-model="formIndicators.name"></el-input> <el-input clearable size="small" :rows="4" type="textarea" v-model="formIndicators.name"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="考核标准" prop="keyResult"> <el-form-item label="考核标准" prop="keyResult">
<el-input size="small" resize='vertical' :rows="24" clearable type="textarea" v-model="formIndicators.keyResult"></el-input> <el-input size="small" resize='vertical' :rows="24" clearable type="textarea" v-model="formIndicators.keyResult"></el-input>