Sfoglia il codice sorgente

关联试验文件修改

duy 2 anni fa
parent
commit
6ae5a47b74
1 ha cambiato i file con 13 aggiunte e 8 eliminazioni
  1. 13 8
      src/views/data-fill/components/ListItem.vue

+ 13 - 8
src/views/data-fill/components/ListItem.vue

@@ -172,7 +172,7 @@
                 <div class="dialog-table">
                         <HcTable  :loading="CTDdialogTableLoading" :column="CTDdialogTableColumn" :datas="CTDdialogTableData1" >
                              <template #recordNo="{row}">
-                                <span class="text-link" @click="CTDtableRowName(row)"  :class="[row.isSelectedStatus===0?'text-blue':'']">{{row?.recordNo}}</span>
+                                <span class="text-link" @click="CTDtableRowName(row)" >{{row?.recordNo}}</span>
                             </template>
                         </HcTable>
                 </div>
@@ -306,14 +306,14 @@
                 </div>
                 <div class="dialog-table">
                         <HcTable ref="dialogTableRef" :loading="filedialogTableLoading" :column="filedialogTableColumn" :datas="filedialogTableData" isCheck @selection-change="filedialogTableSelection"  v-if="fileModalradio==1">
-                             <!-- <template #name="{row}">
-                                <span class="text-link" @click="filetableRowName(row)">{{row?.recordNo}}</span>
-                            </template> -->
+                             <template #name="{row}">
+                                <span :class="[row.isSelectedStatus===0?'text-green':'']" @click="filetableRowName(row)">{{row?.recordNo}}</span>
+                            </template>
                         </HcTable>
                         <HcTable ref="dialogTableRef" :loading="filedialogTableLoading" :column="filedialogTableColumn1" :datas="filedialogTableData" isCheck @selection-change="filedialogTableSelection" v-else>
-                             <!-- <template #name="{row}">
-                                <span class="text-link" @click="filetableRowName(row)">{{row?.recordNo}}</span>
-                            </template> -->
+                             <template #name="{row}">
+                                <span :class="[row.isSelectedStatus===0?'':'text-green']" @click="filetableRowName(row)">{{row?.recordNo}}</span>
+                            </template>
                         </HcTable>
                 </div>
                 <div class="dialog-pages">
@@ -964,6 +964,7 @@ const handleMenuSelect = ({key}) => {
         CTDModal.value = true
     }else if(key === 'file'){
         fileModal.value=true;
+        fileModalradio.value=1
         // getTreeDatas()
     }
 }
@@ -1095,6 +1096,7 @@ const ElTreeLoadNode = async (node, resolve) => {
             emit('nodeLoading')
         }
         resolve(resData)
+        console.log(resData,'resData');
         //最后一个,执行点击
         if (clickKey) {
             await nextTick(() => {
@@ -1123,7 +1125,6 @@ const filedialogTableSelection = (rows) => {
 }
 //确认关联试验文件
 const savefileModal = ()=>{
-   console.log( filetableCheckedKeys.value,' filetableCheckedKeys.value');
     const idarr=[]
     filetableCheckedKeys.value.forEach((item)=>{
              idarr.push(item.id)
@@ -1428,6 +1429,7 @@ const thirdtreeDatasElTreeClick =(data,node)=>{
 }
 //关联试验文件
  const savesubmitRelationFile =async (ids)=>{
+     console.log( isPrimaryKeyId.value,' isPrimaryKeyId.value');
     const { error, code, data } = await samplingApi.submitRelationFile({
         projectId: projectId.value,
         contractId: contractId.value,
@@ -1781,4 +1783,7 @@ defineExpose({
 .text-blue{
     color: blue;
 }
+.text-green{
+    color:green
+}
 </style>