|
@@ -14,6 +14,8 @@
|
|
|
<div class="listItem" style="width:80%;">{{item.zssjt0}}</div>
|
|
|
<div class="listItem">{{item.mpro}}</div>
|
|
|
<div class="listItem">{{item.mdose}}</div>
|
|
|
+ <img v-if="item.candel==1" src="../assets/images/delete.png" style="position:absolute;right:-10px;top:10%;" alt="" width="32px"
|
|
|
+ height="32px" @click="delRecord(item)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="footer">
|
|
@@ -30,7 +32,8 @@
|
|
|
Field,
|
|
|
Picker,
|
|
|
Search,
|
|
|
- Button
|
|
|
+ Button,
|
|
|
+ Toast
|
|
|
} from 'mint-ui'
|
|
|
|
|
|
export default {
|
|
@@ -39,7 +42,8 @@
|
|
|
Field,
|
|
|
Picker,
|
|
|
Search,
|
|
|
- Button
|
|
|
+ Button,
|
|
|
+ Toast
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -76,6 +80,15 @@
|
|
|
this.patinfo = res.data.data
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ delRecord(row){
|
|
|
+ let rid = row.id;
|
|
|
+ this.$api.deleteRecord({id:rid}).then(res=>{
|
|
|
+ if(!res.data.code){
|
|
|
+ Toast("删除成功!");
|
|
|
+ this.getData();
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -106,6 +119,7 @@
|
|
|
|
|
|
.listItemContainer {
|
|
|
display: flex;
|
|
|
+ position: relative;
|
|
|
|
|
|
.listItem {
|
|
|
width: 33%;
|