|
@@ -54,6 +54,22 @@
|
|
|
methods: {
|
|
|
onSubmit() {
|
|
|
console.log('submit!');
|
|
|
+ var value = "北航测试"
|
|
|
+ let change = `update dat_map_zhurong set desc = "`+value+`" where name = "北航";`
|
|
|
+ let msg = {
|
|
|
+ cmd: 'update',
|
|
|
+ data: {
|
|
|
+ op: 'UPDATE',
|
|
|
+ name: 'confi-g-',
|
|
|
+ id: 0,
|
|
|
+ sql: change
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log('change', change)
|
|
|
+ window.vm.$socket.emit('META', msg,(data)=>{
|
|
|
+ console.log(data)
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
back(){
|
|
|
this.$router.go(-1)
|
|
@@ -73,10 +89,8 @@
|
|
|
},
|
|
|
mounted() {
|
|
|
|
|
|
- console.log(this.$route.query.flight)
|
|
|
- var flight = JSON.parse(this.$route.query.flight);
|
|
|
- console.log(typeof flight)
|
|
|
- if(typeof flight != undefined){
|
|
|
+ if(typeof this.$route.query.flight != 'undefined'){
|
|
|
+ var flight = JSON.parse(this.$route.query.flight);
|
|
|
this.bite = false;
|
|
|
this.form.name = flight.name;
|
|
|
this.form.url = flight.url;
|