| | |
| | | methods: { |
| | | // 关闭弹窗 |
| | | handleCancel() { |
| | | console.log(1); |
| | | this.$emit("closeDialog", { flag: false, index: 0 }); |
| | | }, |
| | | //保存 |
| | | handleSave() { |
| | | const { myInterface } = this; |
| | | this.$refs.survey.validate((flag)=>{ |
| | | console.log(flag) |
| | | if(flag){ |
| | | |
| | | }else{ |
| | | return false |
| | | } |
| | | }) |
| | | // this.$axios |
| | | // .post("sccg/system/portal/thirdApp/add", { |
| | | // websiteUrl: myInterface.websiteUrl, |
| | | // applicationIconUrl: myInterface.applicationIconUrl, |
| | | // applicationType: 0, |
| | | // description: myInterface.description, |
| | | // applicationName: myInterface.applicationName, |
| | | // }) |
| | | // .then((res) => { |
| | | // console.log(res); |
| | | // // if (res.code === 200) { |
| | | // // this.refresh(); |
| | | // // } |
| | | // }); |
| | | }, |
| | | }, |
| | | props: ['refresh','closeDialog'], |