소스 검색

选择元素来源提示

duy 2 달 전
부모
커밋
f245ff8c63
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/views/digital/signer.vue

+ 4 - 4
src/views/digital/signer.vue

@@ -135,7 +135,7 @@
             <el-table 
                                 :data="tableData1"
                                 style="width: 100%"
-                                  max-height="500"
+                                max-height="600"
                               >
                               
                                 <el-table-column
@@ -910,8 +910,8 @@
             },
             // 确认按钮点击事件
             confirmSourceSelection() {
-                console.log(this.eleIndex,'eleIndex');
-                if(!this.selectedSourceOption){
+         
+                if(this.selectedSourceOption!==0&&this.selectedSourceOption!==1){
                     this.$message({
                         type: 'warning',
                         message: '请选择元素来源!'
@@ -940,7 +940,7 @@
                             this.tableData1[index].tableType = 1;
                         }
                     })
-                    if (this.elementTableNameSelect.length > 0) {
+                    if (this.elementTableNameSelect&&this.elementTableNameSelect.length > 0) {
                         this.tableData1.forEach((item, index) => {
                             if (index==this.eleIndex) {
                                 this.tableData1[index].tableIds = this.elementTableNameSelect