<!--pages/daily-inspection/daily-inspection.wxml-->
<view class="container">
    <view class="history-record-buju">
        <view class="history-record" bindtap="history">历史记录</view>
    </view>
    <scroll-view scroll-y="true" class="body">
        <view class="inspection-project" wx:for="{{inspectionProjectList}}" wx:key="i" wx:index="index">
            <view>
                <text class="project-name">{{item.name}}</text>
                <view class="divider"></view>
                <view class="buju">
                    <text class="status-title">设备运行状态</text>
                    <view class="buju1" wx:if="{{!item.result}}">
                        <view class="button" data-index="{{index}}" data-id="{{item.id}}" bindtap="abnormal">不正常</view>
                        <view class="button" data-index="{{index}}" data-id="{{item.id}}" bindtap="normal">正常</view>
                    </view>
                    <text class="results" wx:if="{{item.result}}" style="color: {{item.color}};">{{item.results}}</text>
                </view>
            </view>
        </view>
    </scroll-view>
    <button style="width:80%;" class="submit-button" bindtap="submitInspection">提交</button>
</view>