| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | |
| | | }, |
| | | watch: { |
| | | 'loginForm.deptId'() { |
| | |
| | | this.form.landArea = 0 |
| | | this.visible = true; |
| | | this.form.farmId = this.$farmId; |
| | | |
| | | this.form.landName = "" |
| | | this.form.landType = "" |
| | | getDetail(this.form.farmId).then(res=>{ |
| | | this.farmInfo = res.data.data |
| | | this.url = this.drawMapUrlBase + "/base?type=1&lng=112&lat=24&status=manage&longitude="+this.farmInfo.longitude+"&latitude="+this.farmInfo.latitude; |
| | |
| | | |
| | | module.exports = { |
| | | //路径前缀 |
| | | publicPath: "/", |
| | | publicPath:"/zhny-web", |
| | | // publicPath: "/", |
| | | lintOnSave: true, |
| | | productionSourceMap: false, |
| | | chainWebpack: (config) => { |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //本地服务接口地址 |
| | | target: 'http://192.168.0.207:89', |
| | | target: 'http://127.0.0.1:89', |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | // target: 'http://182.106.212.58:8013/api', |
| | | // target: 'http://182.106.212.58:8020/api', |
| | | ws: true, |
| | | pathRewrite: { |
| | | '^/api': '/' |