Browse Source

task-6648 测量不确定评定度评定报告,选择弹窗修改

tianxinyu 2 weeks ago
parent
commit
c78c44a2c0
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/views/component/inspectionProcess/uncertainty.vue

+ 6 - 5
src/views/component/inspectionProcess/uncertainty.vue

@@ -33,7 +33,7 @@
             <ibps-custom-dialog
               v-model="row.canShuId"
               size="mini"
-              template-key="xznlfwdd"
+              template-key="xzjyxmyp"
               type="dialog"
               class="custom-dialog"
               placeholder="请选择"
@@ -146,7 +146,7 @@
       :page-sizes="[10, 20, 30, 50]"
       :page-size="pagination.pageSize"
       layout="prev,pager,next,jumper,sizes,->,total"
-      :total="tableData.length"
+      :total="tableData ? tableData.length : 0"
       @size-change="handleSizeChange"
       @current-change="handleCurrentChange"
     />
@@ -183,7 +183,7 @@ export default {
     showData() {
       const start = (this.pagination.currentPage - 1) * this.pagination.pageSize
       const end = start + this.pagination.pageSize
-      return this.tableData.slice(start, end)
+      return this.tableData?.slice(start, end)
     },
     isReadonly() {
       return this.readonly
@@ -198,8 +198,8 @@ export default {
     },
     'formData.clbqddpdbgzb': {
       handler(val) {
-        this.tableData = val
-        // console.log('val', val)
+        this.tableData = Array.isArray(val) ? val : []
+        console.log('val', val)
       },
       immediate: true
     }
@@ -209,6 +209,7 @@ export default {
     handleCurrentChange(val) {
       this.pagination.currentPage = val
     },
+
     // 页码选择器改变
     handleSizeChange(val) {
       this.pagination.pageSize = val