This commit is contained in:
姚宇浩 2024-11-04 16:53:28 +08:00
parent 7d38005c65
commit 734827bd08
1 changed files with 7 additions and 4 deletions

View File

@ -77,7 +77,7 @@
<!-- v-if="visibleIndex.value == scope.$index" --> <!-- v-if="visibleIndex.value == scope.$index" -->
<el-popover <el-popover
:visible="visible" :visible="scope.row.index==chooseBfh"
placement="right" placement="right"
:width="220" :width="220"
trigger="click" trigger="click"
@ -100,7 +100,7 @@
placeholder="请输入不符合原因" placeholder="请输入不符合原因"
clearable clearable
/> />
<el-button size="small" text @click="visible = false" <el-button size="small" text @click="chooseBfh = 0"
>取消</el-button >取消</el-button
> >
<el-button <el-button
@ -485,6 +485,7 @@ const chooseTitle = ref(1);
const visible = ref(false); // const visible = ref(false); //
const visibleIndex = ref(null); // const visibleIndex = ref(null); //
const nonCompliance = ref(""); // const nonCompliance = ref(""); //
const chooseBfh=ref(0);
const search1 = reactive({ const search1 = reactive({
name: "", name: "",
date: "", date: "",
@ -1034,12 +1035,14 @@ const handleVisibleChange = (newVisible) => {
}; };
const inconsistent = (index, row, status) => { const inconsistent = (index, row, status) => {
console.log(index, row, status); console.log(index, row, status);
visible.value = true; // visible.value = true;
chooseBfh.value=row.index
visibleIndex.value = index; visibleIndex.value = index;
}; };
const handleEdit = (index, row, status) => { const handleEdit = (index, row, status) => {
console.log(index, row, status); console.log(index, row, status);
visible.value = true; // visible.value = true;
chooseBfh.value=0;
pushStatus(row, status); pushStatus(row, status);
}; };
const pushStatus = (val, status) => { const pushStatus = (val, status) => {