<!--pages/fault-list/fault-list.wxml-->
<view class="addBtn">
    <text bindtap="addFault">新增</text>
</view>
<scroll-view class="list" scroll-y="true">
    <view class="item" wx:for="{{list}}" wx:key="i" data-item="{{item}}" bindtap="faultDetail">
        <view class="item-title">{{item.title}}</view>
        <view class="item-row">
            <label>故障内容：</label>
            <text>{{item.content}}</text>
        </view>
        <view class="item-row">
            <label>提出人员：</label>
            <text>{{item.proposePersonnel}}</text>
        </view>
        <text class="item-status" style="color: {{item.status == 20 ? '#2CC3CC' : '#E95543'}};">{{item.status == 20 ? '已处理' : '未处理'}}</text>
    </view>
</scroll-view>