| | |
| | | @click="viewDetail(item)"> |
| | | 查看详情 |
| | | </u-button> --> |
| | | <u-button type="primary" |
| | | <!-- <u-button type="primary" |
| | | size="small" |
| | | class="action-btn" |
| | | :disabled="item.returnUserId" |
| | |
| | | class="action-btn" |
| | | @click="deleteVisit(item)"> |
| | | 删除 |
| | | </u-button> |
| | | </u-button> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <text>暂无拜访记录</text> |
| | | </view> |
| | | <!-- 浮动新增按钮 --> |
| | | <view class="fab-button" |
| | | <!-- <view class="fab-button" |
| | | @click="addVisit"> |
| | | <up-icon name="plus" |
| | | size="24" |
| | | color="#ffffff"></up-icon> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | const deleteVisit = item => { |
| | | uni.showModal({ |
| | | title: "删除确认", |
| | | content: `确定要删除该危险源吗?`, |
| | | content: `确定要删除该记录吗?`, |
| | | success: res => { |
| | | if (res.confirm) { |
| | | deleteClientVisit(item.id); |