#功能开发

This commit is contained in:
Bob 2020-04-02 16:59:23 +08:00
parent c26c380d97
commit 4509141120
9 changed files with 15 additions and 15 deletions

View File

@ -122,7 +122,7 @@ export default {
}, },
created () { created () {
// var _this = this // 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 // _this.quadratList = response.data.quadrat
// }) // })
}, },

View File

@ -59,7 +59,7 @@ export default {
var _this = this var _this = this
axios({ axios({
method: 'get', 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) { }).then(function (response) {
_this.samplebush = response.data.samplebush _this.samplebush = response.data.samplebush
console.log(_this.samplebush) console.log(_this.samplebush)
@ -82,7 +82,7 @@ export default {
console.log(id) console.log(id)
axios({ axios({
method: 'get', 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) { }).then(function (response) {
if (response.data.status === '1') { if (response.data.status === '1') {
window.location.reload() window.location.reload()

View File

@ -120,7 +120,7 @@ export default {
console.log(_this.id) console.log(_this.id)
axios({ axios({
method: 'get', 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) { }).then(function (response) {
console.log('response:' + response.data) console.log('response:' + response.data)
_this.form.smallkindside = response.data.smallkindside _this.form.smallkindside = response.data.smallkindside
@ -153,7 +153,7 @@ export default {
console.log(_this.id) console.log(_this.id)
axios({ axios({
method: 'post', 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: { data: {
smallkindside: _this.form.smallkindside, smallkindside: _this.form.smallkindside,
chinesename: _this.form.chinesename, chinesename: _this.form.chinesename,

View File

@ -59,7 +59,7 @@ export default {
var _this = this var _this = this
axios({ axios({
method: 'get', 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) { }).then(function (response) {
_this.sampleherbal = response.data.sampleherbal _this.sampleherbal = response.data.sampleherbal
}).catch(function (error) { }).catch(function (error) {
@ -81,7 +81,7 @@ export default {
console.log(id) console.log(id)
axios({ axios({
method: 'get', 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) { }).then(function (response) {
if (response.data.status === '1') { if (response.data.status === '1') {
window.location.reload() window.location.reload()

View File

@ -84,7 +84,7 @@ export default {
console.log(_this.id) console.log(_this.id)
axios({ axios({
method: 'get', 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) { }).then(function (response) {
console.log('response:' + response.data) console.log('response:' + response.data)
_this.form.smallkindside = response.data.smallkindside _this.form.smallkindside = response.data.smallkindside
@ -108,7 +108,7 @@ export default {
console.log(_this.id) console.log(_this.id)
axios({ axios({
method: 'post', 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: { data: {
smallkindside: _this.form.smallkindside, smallkindside: _this.form.smallkindside,
chinesename: _this.form.chinesename, chinesename: _this.form.chinesename,

View File

@ -91,7 +91,7 @@ export default {
}, },
created () { created () {
// var _this = this // 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 // _this.quadratList = response.data.quadrat
// }) // })
}, },

View File

@ -59,7 +59,7 @@ export default {
var _this = this var _this = this
axios({ axios({
method: 'get', 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) { }).then(function (response) {
_this.simplesoil = response.data.simplesoil _this.simplesoil = response.data.simplesoil
}).catch(function (error) { }).catch(function (error) {
@ -81,7 +81,7 @@ export default {
console.log(id) console.log(id)
axios({ axios({
method: 'get', 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) { }).then(function (response) {
if (response.data.status === '1') { if (response.data.status === '1') {
window.location.reload() window.location.reload()

View File

@ -96,7 +96,7 @@ export default {
console.log(_this.id) console.log(_this.id)
axios({ axios({
method: 'get', 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) { }).then(function (response) {
console.log('response:' + response.data) console.log('response:' + response.data)
_this.form.soildepth = response.data.soildepth _this.form.soildepth = response.data.soildepth
@ -123,7 +123,7 @@ export default {
console.log(_this.id) console.log(_this.id)
axios({ axios({
method: 'post', 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: { data: {
soildepth: _this.form.soildepth, soildepth: _this.form.soildepth,
agrotype: _this.form.agrotype, agrotype: _this.form.agrotype,

View File

@ -133,7 +133,7 @@ export default {
}) })
axios({ axios({
method: 'get', method: 'get',
url: 'http://127.0.0.1:8000/index/sample' url: 'http://210.77.68.250:8081/index/sample'
}).then(function (response) { }).then(function (response) {
// //
_this.sample = response.data.sample _this.sample = response.data.sample