|
@@ -234,6 +234,12 @@
|
|
|
},
|
|
},
|
|
|
// 统一保存和跳转方法
|
|
// 统一保存和跳转方法
|
|
|
async saveAndNavigate(jieId, type) {
|
|
async saveAndNavigate(jieId, type) {
|
|
|
|
|
+
|
|
|
|
|
+ if(!this.banbenId ||!this.danyuanId){
|
|
|
|
|
+ toast("banbenId或者danyuanId 丢失")
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let req = {
|
|
let req = {
|
|
|
"banbenId": this.banbenId,
|
|
"banbenId": this.banbenId,
|
|
|
"danyuanId": this.danyuanId,
|
|
"danyuanId": this.danyuanId,
|
|
@@ -296,6 +302,10 @@
|
|
|
this.saveAndNavigate(jieId, da.type);
|
|
this.saveAndNavigate(jieId, da.type);
|
|
|
},
|
|
},
|
|
|
handleClickDanyuan() {
|
|
handleClickDanyuan() {
|
|
|
|
|
+ if(!this.danyuanId){
|
|
|
|
|
+ toast("this.danyuanId丢失")
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
this.isShow = true;
|
|
this.isShow = true;
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.$refs.dyRef.handleShow(this.danyuanId)
|
|
this.$refs.dyRef.handleShow(this.danyuanId)
|