作者 xudada

申报,取消,BUG修复

@@ -378,7 +378,7 @@ @@ -378,7 +378,7 @@
378 </el-form> 378 </el-form>
379 <div slot="footer" class="dialog-footer"> 379 <div slot="footer" class="dialog-footer">
380 <el-button @click="dialogFormVisible = false">取 消</el-button> 380 <el-button @click="dialogFormVisible = false">取 消</el-button>
381 - <el-button type="primary" @click="sendpre">确 定</el-button> 381 + <el-button type="primary" @click="canclesendpre">确 定</el-button>
382 </div> 382 </div>
383 </el-dialog> 383 </el-dialog>
384 </el-row> 384 </el-row>
@@ -390,7 +390,7 @@ @@ -390,7 +390,7 @@
390 selectBycustomcode, 390 selectBycustomcode,
391 selectPreList, 391 selectPreList,
392 insertSelectivePre, 392 insertSelectivePre,
393 - updateByPrimaryKeySelectivePre, selectReturnMsgList, canclePre 393 + updateByPrimaryKeySelectivePre, selectReturnMsgList, canclePre,sendPrediction
394 } from "../../api/transport/transport2.0"; 394 } from "../../api/transport/transport2.0";
395 395
396 export default { 396 export default {
@@ -437,7 +437,8 @@ @@ -437,7 +437,8 @@
437 messageid: '', // 消息ID 437 messageid: '', // 消息ID
438 yqtype: 'Y', // 不知道具体含义,根据业务需求填充 438 yqtype: 'Y', // 不知道具体含义,根据业务需求填充
439 costomcode:'', 439 costomcode:'',
440 - aircrafttype:'1' 440 + aircrafttype:'1',
  441 + content:''
441 }, 442 },
442 tableData:[], 443 tableData:[],
443 total:0, 444 total:0,
@@ -532,7 +533,7 @@ @@ -532,7 +533,7 @@
532 this.row2=row; 533 this.row2=row;
533 534
534 }, 535 },
535 - sendpre(){ 536 + canclesendpre(row,FunctionCode){
536 this.row2.content=this.cancleForm.content; 537 this.row2.content=this.cancleForm.content;
537 const params = { 538 const params = {
538 row: this.row2, 539 row: this.row2,
@@ -549,6 +550,24 @@ @@ -549,6 +550,24 @@
549 } 550 }
550 }); 551 });
551 }, 552 },
  553 + sendpre(row,FunctionCode){
  554 + //this.row2.content=this.cancleForm.content;
  555 + const params = {
  556 + row: row,
  557 + FunctionCode: FunctionCode
  558 + };
  559 + sendPrediction(params).then(res =>{
  560 + let response=res.data;
  561 + if(response.code=='200'){
  562 + this.dialogFormVisible=false;
  563 + this.selectList();
  564 + this.$message.success(response.msg)
  565 + }else{
  566 + this.$message.error(response.msg)
  567 + }
  568 + });
  569 + },
  570 +
552 handleClose() { 571 handleClose() {
553 this.returnVisible=false; 572 this.returnVisible=false;
554 }, 573 },