Browse Source

参数修改

duy 1 year ago
parent
commit
c8c21d8e98

+ 14 - 1
src/views/transfer/components/conclusion/table-opinion.vue

@@ -7,7 +7,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from 'vue'
+import { onMounted, ref, watch } from 'vue'
 import { getArrValue } from 'js-fast-way'
 import initialgApi from '~api/initial/initial'
 
@@ -21,6 +21,11 @@ const props = defineProps({
         type: [String, Number],
         default: '',
     },
+    currentId:{
+        type: [String, Number],
+        default: '',
+    },
+
 })
 
 //事件
@@ -28,12 +33,19 @@ const emit = defineEmits(['opinionTap'])
 //变量
 const projectId = ref(props.projectId)
 const contractId = ref(props.contractId)
+const currentId = ref(props.currentId)
 
 //渲染完成
 onMounted(() => {
     getTableData()
 })
 
+//监听
+watch(() => [
+props.currentId,
+], ([cuId]) => {
+    currentId.value = cuId
+})
 //表格数据
 const tableColumn = ref([
     { key:'expertName', name: '专家', width: 80 },
@@ -49,6 +61,7 @@ const getTableData = async () => {
             current:1,
             size:10000,
             projectId: projectId.value,
+            conclusionId:currentId.value,
         })
         tableLoading.value = false
         if (!error && code === 200) {

+ 10 - 1
src/views/transfer/components/examination/table-opinion.vue

@@ -40,12 +40,17 @@ const props = defineProps({
     searchLogForm:{
         type:Object,
     },
+    currentId:{
+        type: [String, Number],
+        default: '',
+    },
 })
 
 //事件
 const emit = defineEmits(['changeFile'])
 //变量
 const projectId = ref(props.projectId)
+const currentId = ref(props.currentId)
 const searchLogForm = ref(props.searchLogForm)
 
 //渲染完成
@@ -56,9 +61,11 @@ onMounted(() => {
 watch(() => [
     props.searchLogForm,
     props.projectId,
-], ([SearchLogForm, ProjectId]) => {
+    props.currentId,
+], ([SearchLogForm, ProjectId, Cid]) => {
     searchLogForm.value = SearchLogForm
     projectId.value = ProjectId
+    currentId.value = Cid
 })
 //表格数据
 const tableColumn = ref([
@@ -73,6 +80,8 @@ const getTableData = async () => {
         const { error, code, data } = await initialgApi.getUserInspectInfo({
             ...searchLogForm.value,
             projectId: projectId.value,
+            conclusionId:currentId.value,
+     
         })
         tableLoading.value = false
         if (!error && code === 200) {

+ 1 - 1
src/views/transfer/preliminary-examination.vue

@@ -91,7 +91,7 @@
 
         <!-- 抽检记录 -->
         <hc-new-dialog v-model="isLogModal" is-slot-footer is-table widths="70%" title="抽检记录" @close="isLogModalClose">
-            <TableOpinion :contract-id="contractId" :project-id="projectId" :search-log-form="searchLogForm" @change-file="changeFile" />
+            <TableOpinion :contract-id="contractId" :project-id="projectId" :search-log-form="searchLogForm" :current-id="currentId" @change-file="changeFile" />
             <template #footer>
                 <HcPages :pages="searchLogForm" @change="pageLogChange" />
             </template>