From 4509141120020b2ff6939bac22f4e9503a7a4392 Mon Sep 17 00:00:00 2001 From: Bob <1397910458@qq.com> Date: Thu, 2 Apr 2020 16:59:23 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/SamplebushAdd.vue | 2 +- src/views/data/SamplebushUpdate.vue | 4 ++-- src/views/data/SamplebushUpdateFrom.vue | 4 ++-- src/views/data/SampleherbalUpdate.vue | 4 ++-- src/views/data/SampleherbalUpdateFrom.vue | 4 ++-- src/views/data/SampletreesAdd.vue | 2 +- src/views/data/SimplesoilUpdate.vue | 4 ++-- src/views/data/SimplesoilUpdateFrom.vue | 4 ++-- src/views/index/Index.vue | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/views/data/SamplebushAdd.vue b/src/views/data/SamplebushAdd.vue index 40c7a7c..7d0ca36 100644 --- a/src/views/data/SamplebushAdd.vue +++ b/src/views/data/SamplebushAdd.vue @@ -122,7 +122,7 @@ export default { }, created () { // var _this = this - // axios.get('http://127.0.0.1:8000/samplebush/add/?findingscode=' + _this.findingscode).then(function (response) { + // axios.get('http://210.77.68.250:8081/samplebush/add/?findingscode=' + _this.findingscode).then(function (response) { // _this.quadratList = response.data.quadrat // }) }, diff --git a/src/views/data/SamplebushUpdate.vue b/src/views/data/SamplebushUpdate.vue index 8e2e948..34392f5 100644 --- a/src/views/data/SamplebushUpdate.vue +++ b/src/views/data/SamplebushUpdate.vue @@ -59,7 +59,7 @@ export default { var _this = this axios({ method: 'get', - url: 'http://127.0.0.1:8000/samplebush/search/?findingscode=' + _this.findingscode + url: 'http://210.77.68.250:8081/samplebush/search/?findingscode=' + _this.findingscode }).then(function (response) { _this.samplebush = response.data.samplebush console.log(_this.samplebush) @@ -82,7 +82,7 @@ export default { console.log(id) axios({ method: 'get', - url: 'http://127.0.0.1:8000/samplebush/delete/' + id + url: 'http://210.77.68.250:8081/samplebush/delete/' + id }).then(function (response) { if (response.data.status === '1') { window.location.reload() diff --git a/src/views/data/SamplebushUpdateFrom.vue b/src/views/data/SamplebushUpdateFrom.vue index 13bd2a1..5f05858 100644 --- a/src/views/data/SamplebushUpdateFrom.vue +++ b/src/views/data/SamplebushUpdateFrom.vue @@ -120,7 +120,7 @@ export default { console.log(_this.id) axios({ method: 'get', - url: 'http://127.0.0.1:8000/samplebush/update/' + _this.id + url: 'http://210.77.68.250:8081/samplebush/update/' + _this.id }).then(function (response) { console.log('response:' + response.data) _this.form.smallkindside = response.data.smallkindside @@ -153,7 +153,7 @@ export default { console.log(_this.id) axios({ method: 'post', - url: 'http://127.0.0.1:8000/samplebush/update/' + _this.id + '/', + url: 'http://210.77.68.250:8081/samplebush/update/' + _this.id + '/', data: { smallkindside: _this.form.smallkindside, chinesename: _this.form.chinesename, diff --git a/src/views/data/SampleherbalUpdate.vue b/src/views/data/SampleherbalUpdate.vue index 31be328..21207af 100644 --- a/src/views/data/SampleherbalUpdate.vue +++ b/src/views/data/SampleherbalUpdate.vue @@ -59,7 +59,7 @@ export default { var _this = this axios({ method: 'get', - url: 'http://127.0.0.1:8000/sampleherbal/search/?findingscode=' + _this.findingscode + url: 'http://210.77.68.250:8081/sampleherbal/search/?findingscode=' + _this.findingscode }).then(function (response) { _this.sampleherbal = response.data.sampleherbal }).catch(function (error) { @@ -81,7 +81,7 @@ export default { console.log(id) axios({ method: 'get', - url: 'http://127.0.0.1:8000/sampleherbal/delete/' + id + url: 'http://210.77.68.250:8081/sampleherbal/delete/' + id }).then(function (response) { if (response.data.status === '1') { window.location.reload() diff --git a/src/views/data/SampleherbalUpdateFrom.vue b/src/views/data/SampleherbalUpdateFrom.vue index 96c9fff..348a1eb 100644 --- a/src/views/data/SampleherbalUpdateFrom.vue +++ b/src/views/data/SampleherbalUpdateFrom.vue @@ -84,7 +84,7 @@ export default { console.log(_this.id) axios({ method: 'get', - url: 'http://127.0.0.1:8000/sampleherbal/update/' + _this.id + url: 'http://210.77.68.250:8081/sampleherbal/update/' + _this.id }).then(function (response) { console.log('response:' + response.data) _this.form.smallkindside = response.data.smallkindside @@ -108,7 +108,7 @@ export default { console.log(_this.id) axios({ method: 'post', - url: 'http://127.0.0.1:8000/sampleherbal/update/' + _this.id + '/', + url: 'http://210.77.68.250:8081/sampleherbal/update/' + _this.id + '/', data: { smallkindside: _this.form.smallkindside, chinesename: _this.form.chinesename, diff --git a/src/views/data/SampletreesAdd.vue b/src/views/data/SampletreesAdd.vue index c2ad670..f424e33 100644 --- a/src/views/data/SampletreesAdd.vue +++ b/src/views/data/SampletreesAdd.vue @@ -91,7 +91,7 @@ export default { }, created () { // var _this = this - // axios.get('http://127.0.0.1:8000/sampletrees/add/?findingscode=' + _this.findingscode).then(function (response) { + // axios.get('http://210.77.68.250:8081/sampletrees/add/?findingscode=' + _this.findingscode).then(function (response) { // _this.quadratList = response.data.quadrat // }) }, diff --git a/src/views/data/SimplesoilUpdate.vue b/src/views/data/SimplesoilUpdate.vue index 7355042..f5966ac 100644 --- a/src/views/data/SimplesoilUpdate.vue +++ b/src/views/data/SimplesoilUpdate.vue @@ -59,7 +59,7 @@ export default { var _this = this axios({ method: 'get', - url: 'http://127.0.0.1:8000/simplesoil/search/?findingscode=' + _this.findingscode + url: 'http://210.77.68.250:8081/simplesoil/search/?findingscode=' + _this.findingscode }).then(function (response) { _this.simplesoil = response.data.simplesoil }).catch(function (error) { @@ -81,7 +81,7 @@ export default { console.log(id) axios({ method: 'get', - url: 'http://127.0.0.1:8000/simplesoil/delete/' + id + url: 'http://210.77.68.250:8081/simplesoil/delete/' + id }).then(function (response) { if (response.data.status === '1') { window.location.reload() diff --git a/src/views/data/SimplesoilUpdateFrom.vue b/src/views/data/SimplesoilUpdateFrom.vue index 8be9d04..c7cc717 100644 --- a/src/views/data/SimplesoilUpdateFrom.vue +++ b/src/views/data/SimplesoilUpdateFrom.vue @@ -96,7 +96,7 @@ export default { console.log(_this.id) axios({ method: 'get', - url: 'http://127.0.0.1:8000/simplesoil/update/' + _this.id + url: 'http://210.77.68.250:8081/simplesoil/update/' + _this.id }).then(function (response) { console.log('response:' + response.data) _this.form.soildepth = response.data.soildepth @@ -123,7 +123,7 @@ export default { console.log(_this.id) axios({ method: 'post', - url: 'http://127.0.0.1:8000/simplesoil/update/' + _this.id + '/', + url: 'http://210.77.68.250:8081/simplesoil/update/' + _this.id + '/', data: { soildepth: _this.form.soildepth, agrotype: _this.form.agrotype, diff --git a/src/views/index/Index.vue b/src/views/index/Index.vue index 37c7329..7aa5e8a 100644 --- a/src/views/index/Index.vue +++ b/src/views/index/Index.vue @@ -133,7 +133,7 @@ export default { }) axios({ method: 'get', - url: 'http://127.0.0.1:8000/index/sample' + url: 'http://210.77.68.250:8081/index/sample' }).then(function (response) { // 调查点数量 _this.sample = response.data.sample