Commit 4a74ba5f authored by zhengke's avatar zhengke

1

parent aab745c6
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
:options="finishTypeObj" label="请选择" style="width:160px" dense emit-value map-options /> :options="finishTypeObj" label="请选择" style="width:160px" dense emit-value map-options />
</td> </td>
<td> <td>
<q-input filled stack-label maxlength="20" dense v-model="sItem.TaskFinishValue" <q-input filled stack-label maxlength="20" @keyup.native="checkInteger(sItem,'TaskFinishValue')" dense v-model="sItem.TaskFinishValue"
ref="TaskFinishValue" class="q-pr-none" label="任务完成值" /> ref="TaskFinishValue" class="q-pr-none" label="任务完成值" />
</td> </td>
<td> <td>
......
...@@ -36,13 +36,35 @@ ...@@ -36,13 +36,35 @@
</template> </template>
<template v-slot:body-cell-TaskConditions="props"> <template v-slot:body-cell-TaskConditions="props">
<q-td :props="props" style="padding-right: 0px"> <q-td :props="props" style="padding-right: 0px">
<div v-for="(x,index) in props.value" :key="index"> <div v-for="(x,index) in props.value" :key="index" class="border-bottom">
<template v-if="x.TargetList.length>0"> <template v-if="x.TargetList">
<div class="border-bottom"> <template v-if="x.TargetList.length==1">
<span v-for="(sItem,sIndex) in x.TargetList" :key="sIndex"> {{x.TargetList[0].TargetName}}
{{sItem.TargetName}}<span v-if="sIndex!=x.TargetList.length-1">,</span> </template>
</span> <template v-if="x.TargetList.length>1">
{{x.TargetList[0].TargetName}}
<span class="otherTask">
{{x.TargetList.length}}
<q-popup-proxy>
<q-banner>
<div style="width:100%;max-height:400px;overflow:auto;">
<table class="saleTaskTable" style="border-collapse:collapse;">
<tr>
<th>任务条件</th>
</tr>
<tr v-for="(sItem,sIndex) in x.TargetList" :key="sIndex"
style="border-bottom:1px dashed #d1d1d1;">
<td>{{sItem.TargetName}}</td>
</tr>
</table>
</div> </div>
</q-banner>
</q-popup-proxy>
</span>
</template>
<template v-if="x.TargetList.length==0">
</template>
</template> </template>
</div> </div>
</q-td> </q-td>
...@@ -255,30 +277,34 @@ ...@@ -255,30 +277,34 @@
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
<style lang="scss"> <style lang="scss">
.otherTask { .otherTask {
display: inline-block; display: inline-block;
width: 25px; width: 22px;
height: 25px; height: 22px;
text-align: center; text-align: center;
line-height: 23px;
border: 1px solid #2961FE; border: 1px solid #2961FE;
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
color: #2961FE; color: #2961FE;
} }
.saleTaskTable { .saleTaskTable {
width: 400px; width: 400px;
text-align: center; text-align: center;
} }
.saleTaskTable tr td { .saleTaskTable tr td {
height: 40px; height: 40px;
} }
.saleTaskTable tr th { .saleTaskTable tr th {
height: 40px; height: 40px;
background-color: rgb(238, 238, 239); background-color: rgb(238, 238, 239);
} }
.border-bottom { .border-bottom {
border-bottom: 1px dashed #eee; border-bottom: 1px dashed #eee;
padding-bottom: 5px; padding-bottom: 5px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment