| | |
| | | exaList: [], |
| | | // 表单参数 |
| | | form: {}, |
| | | clearTimeSet:null, |
| | | tjNumbers: "", |
| | | multipleSelection: "", |
| | | tjnum: "", |
| | |
| | | }); |
| | | }, |
| | | tableRowClassName({ row, rowIndex }) { |
| | | console.log(111); |
| | | for (let i = 0; i < this.selectList.length; i++) { |
| | | if (row === this.selectList[i]) { |
| | | return "warning-row"; |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | setTime() { |
| | | //设置定时器 |
| | | this.clearTimeSet = setInterval(() => { |
| | | this.$modal.closeLoading(); |
| | | }, 300000); |
| | | }, |
| | | tongbu(row) { |
| | | // this.$refs.tb.toggleRowSelection(row); |
| | | this.$modal.loading("正在同步,请稍候..."); |
| | | this.setTime(); |
| | | let tjNumber = row.tjNumber; |
| | | dataSynchronization(tjNumber).then((res) => { |
| | | if (res.code == 200) { |
| | | // this.$forceUpdate(); |
| | | // this.getList(); |
| | | clearInterval(this.clearTimeSet) |
| | | this.clearTimeSet=null |
| | | this.$modal.closeLoading(); |
| | | this.$modal.msgSuccess("同步成功!"); |
| | | } |
| | | }); |
| | |
| | | .el-table .warning-row { |
| | | background: #e5f3ff !important; |
| | | } |
| | | ::v-deep .el-table__body tr.current-row>td { |
| | | background: #edf2fa !important; |
| | | } |
| | | ::v-deep .el-table__body tr.current-row > td { |
| | | background: #edf2fa !important; |
| | | } |
| | | </style> |