فهرست منبع

立卷单位回显问题

duy 2 سال پیش
والد
کامیت
6db513ecdb
1فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 9 9
      src/views/file/records.vue

+ 9 - 9
src/views/file/records.vue

@@ -188,7 +188,7 @@
                     </el-select>
                 </span>
                 <span class="ml-5">立卷单位:</span>
-                <span><el-input v-model="batchSet.filingUnit" placeholder="输入立卷单位"/></span>
+                <span><el-input v-model="batchSet.unit" placeholder="输入立卷单位"/></span>
                 <span class="ml-5">
                     <el-button type="primary" @click="batchSetHandle">设置</el-button>
                 </span>
@@ -221,8 +221,8 @@
                         <el-option v-for="item in storagePeriod" :key="item['dictKey']" :label="item['dictValue']" :value="item['dictKey']"/>
                     </el-select>
                 </template>
-                <template #filingUnit="{row}">
-                    <el-input v-model="row.filingUnit" type="textarea"/>
+                <template #unit="{row}">
+                    <el-input v-model="row.unit" type="textarea"/>
                 </template>
                 <template #dates="{row}">
                     <el-date-picker v-model="row.dates" value-format="YYYY-MM-DD HH:mm:ss" type="daterange"/>
@@ -415,7 +415,7 @@ const setTableColumns = () => {
         {key:'secretLevel', name: '密级', width: 100},
         {key:'storageTime', name: '保管期限', width: 100},
         {key:'pageN', name: '页数', width: 100},
-        {key:'filingUnit', name: '立卷单位'},
+        {key:'unit', name: '立卷单位'},
         {key:'dates', name: '起止日期', width: 190}
     ]
 }
@@ -997,7 +997,7 @@ const tableUploadColumn = ref([
     {key:'name', name: '案卷题名'},
     {key:'secretLevel', name: '密级', width: 100},
     {key:'storageTime', name: '保管期限', width: 100},
-    {key:'filingUnit', name: '立卷单位'},
+    {key:'unit', name: '立卷单位'},
     {key:'dates', name: '起止日期', width: 380},
     {key:'action', name: '操作', width: 100}
 ])
@@ -1178,7 +1178,7 @@ const batchSet = ref({
     numberEnd:'',
     securityLevel:'',
     storagePeriod:'',
-    filingUnit:'',
+    unit:'',
 })
 
 //批量设置
@@ -1292,10 +1292,10 @@ const setFileNumber = () => {
 
 //立卷单位
 const setFilingUnit = ()=>{
-    if(batchSet.value.filingUnit){
+    if(batchSet.value.unit){
         let isSet = true;
         // for (let i = 0; i < tableUploadData.value.length; i++) {
-        //     if(tableUploadData.value[i].filingUnit){
+        //     if(tableUploadData.value[i].unit){
         //         isSet = false;
         //         return;
         //     }
@@ -1303,7 +1303,7 @@ const setFilingUnit = ()=>{
         //如果有一条数据选了,其他的都不进行设置
         if(isSet){
             tableUploadData.value.forEach((element)=>{
-                element.filingUnit = batchSet.value.filingUnit
+                element.unit = batchSet.value.unit
             })
         }
     }