v-for v-if || v-else

        <el-col>
                <div v-for="item in resultDetail" class="physical-content"  v-if="item.ProjectId!='3' ">
                        <el-col :span="8">
                            <div class="physical-box">
                                <el-col :span="12" class='physical-icon'>
                                    <img v-bind:src="item.ProjectId | formatIconImg" />
                                </el-col>
                                <el-col :span="12" class='physical-text'>
                                    <span>{{ item.Name }}</span><br>
                                    <span v-if="item.IsTest==true " style="color:red">无法测试</span>
                                    <span v-else>{{ item.Result }} {{item.ProjectId|formatUnit}}</span>
                                </el-col>
                            </div>
                        </el-col>
                    </div>
                </el-col>


 <el-button v-if="resultMaster.TestStatus==true" class="btn-css-green" v-on:click="exportReport(resultMaster.ChildName)">导出报告 </el-button >
<el-button v-else class="btn-css-green-disabled" :disabled="true" >报告导出</el-button>
posted @ 2017-07-21 10:43  Y.anCy  阅读(319)  评论(0编辑  收藏  举报