Browse Source

fix: 修复害堤动物确认操作bug

sy-water-data-board-ui
panyuyi 1 year ago
parent
commit
fc46c447f4
  1. 33
      src/views/dike/runManage/pestAnimalControl/governanceRecords/index.vue

33
src/views/dike/runManage/pestAnimalControl/governanceRecords/index.vue

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

Loading…
Cancel
Save