|
|
@ -14,6 +14,7 @@ import { |
|
|
|
updateDikeAnimalRecordData, |
|
|
|
getDikeAnimalRecordDetails, |
|
|
|
deleteDikeAnimalRecordDetails, |
|
|
|
updateDikeAnimalRecordStatus, |
|
|
|
} from "@/api/dike"; |
|
|
|
|
|
|
|
export default { |
|
|
@ -21,8 +22,8 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
paramsData: { |
|
|
|
status: "", |
|
|
|
location: "", |
|
|
|
status: null, |
|
|
|
location: null, |
|
|
|
}, |
|
|
|
dialogVisible: false, |
|
|
|
imageDialog: false, |
|
|
@ -175,17 +176,24 @@ export default { |
|
|
|
}, |
|
|
|
// 确认 |
|
|
|
handleConfirm(row) { |
|
|
|
console.log("row >>>>> ", row); |
|
|
|
this.$confirm("是否确认?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
// 确认 |
|
|
|
// this.$message({ |
|
|
|
// type: "success", |
|
|
|
// message: "确认成功!", |
|
|
|
// }); |
|
|
|
console.log("?????????"); |
|
|
|
updateDikeAnimalRecordStatus({ |
|
|
|
id: row.id, |
|
|
|
status: "1", |
|
|
|
}).then(() => { |
|
|
|
this.getTableData(); |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "确认成功!", |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
@ -308,8 +316,8 @@ export default { |
|
|
|
}, |
|
|
|
// 重置搜索 |
|
|
|
resetSearch() { |
|
|
|
this.paramsData.status = ""; |
|
|
|
this.paramsData.location = ""; |
|
|
|
this.paramsData.status = null; |
|
|
|
this.paramsData.location = null; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
// 获取计划列表 |
|
|
@ -392,7 +400,7 @@ export default { |
|
|
|
/> |
|
|
|
<span style="margin-left: 10px">状态:</span> |
|
|
|
<el-select v-model="paramsData.status" placeholder="请选择"> |
|
|
|
<el-option label="全部" value="" /> |
|
|
|
<el-option label="全部" :value="null" /> |
|
|
|
<el-option |
|
|
|
v-for="item in statusList" |
|
|
|
:label="item.dictLabel" |
|
|
@ -827,7 +835,10 @@ export default { |
|
|
|
/> |
|
|
|
<el-table-column prop="drugName" align="center" label="药物名称"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.drugName" placeholder="请输入药物名称" /> |
|
|
|
<el-input |
|
|
|
v-model="scope.row.drugName" |
|
|
|
placeholder="请输入药物名称" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="concentration" align="center" label="浓度"> |
|
|
|