fix : 修复项目详情前置流程更改回显
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<div v-else>--</div>
|
<div v-else>--</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="researchStage" label="项目阶段" align="center">
|
<el-table-column prop="researchStage" label="研发阶段" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table :data="preProcessList" stripe v-loading="loading"
|
<el-table :data="preProcessList" stripe v-loading="loading"
|
||||||
@select="handleSelect" row-key="requestId">
|
@select="handleSelect" row-key="requestId" ref="preProcessTable">
|
||||||
<el-table-column type="selection" width="55" :reserve-selection="true"/>
|
<el-table-column type="selection" width="55" :reserve-selection="true"/>
|
||||||
<el-table-column prop="requestId" label="请求id"></el-table-column>
|
<el-table-column prop="requestId" label="请求id"></el-table-column>
|
||||||
<el-table-column prop="requestName" label="请求名称"></el-table-column>
|
<el-table-column prop="requestName" label="请求名称"></el-table-column>
|
||||||
@@ -106,6 +106,7 @@ import Paging from "@/components/pagination/index.vue";
|
|||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const changeDiagram = ref(false)
|
const changeDiagram = ref(false)
|
||||||
|
const preProcessTable = ref()
|
||||||
const emit = defineEmits(["getAttachment", "getOtherFile"])
|
const emit = defineEmits(["getAttachment", "getOtherFile"])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
title: {
|
title: {
|
||||||
@@ -210,6 +211,13 @@ const getPreProcessList = () => {
|
|||||||
searchArray.push(item)
|
searchArray.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
res.data.forEach((item) => {
|
||||||
|
localFormData.value.preProcess.forEach((item1) => {
|
||||||
|
if (item.requestId == item1.requestId) {
|
||||||
|
preProcessTable.value.toggleRowSelection(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
total.value = searchArray.length
|
total.value = searchArray.length
|
||||||
currentList.value = searchArray
|
currentList.value = searchArray
|
||||||
preProcessList.value = currentList.value.slice(0, 10)
|
preProcessList.value = currentList.value.slice(0, 10)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<div v-else>--</div>
|
<div v-else>--</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="researchStage" label="项目阶段" align="center">
|
<el-table-column prop="researchStage" label="研发阶段" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
||||||
|
|||||||
@@ -310,7 +310,6 @@ const search = (val) => {
|
|||||||
}
|
}
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
|
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
|
||||||
console.log("🚀 ~ init ~ data:", data)
|
|
||||||
if (data) {
|
if (data) {
|
||||||
tableData.value = data
|
tableData.value = data
|
||||||
baseForm.value.setValues(data)
|
baseForm.value.setValues(data)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<div v-else>--</div>
|
<div v-else>--</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="researchStage" label="项目阶段" align="center" min-width="100">
|
<el-table-column prop="researchStage" label="研发阶段" align="center" min-width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
v-if="scope.row.researchStage !== null && scope.row.researchStage !== null && scope.row.researchStage !== undefined">
|
||||||
|
|||||||
Reference in New Issue
Block a user