| | |
| | | '$farmId': { |
| | | handler (newName, oldName) { |
| | | // this.farm.id = newName |
| | | this.page.currentPage = 1 |
| | | //地块页面 |
| | | setTimeout(() => { |
| | | this.onLoad() |
| | |
| | | <template> |
| | | <el-dialog |
| | | :title="title" |
| | | :modal-append-to-body="false" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | width="80%" |
| | | :visible.sync="visible" |
| | | top="10vh" |
| | | > |
| | | <avue-form ref="form" v-model="form" :option="option" @submit="submit"> |
| | | <!-- 地图插入 --> |
| | | <template slot-scope="{ type, disabled }" slot="line"> |
| | | <!-- <getMapDataInThere ref="getMapData" id="getMapData" @setMapData="setMapData"></getMapDataInThere> --> |
| | | </template> |
| | | </avue-form> |
| | | <div class="map"> |
| | | <iframe :src="url" frameborder="0" width="100%" height="100%"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="title" |
| | | :modal-append-to-body="false" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | width="60%" |
| | | :visible.sync="visible" |
| | | top="10vh" |
| | | > |
| | | <avue-form ref="form" v-model="form" :option="option" @submit="submit"> |
| | | <!-- 地图插入 --> |
| | | <template slot-scope="{ type, disabled }" slot="line"> |
| | | <!-- <getMapDataInThere ref="getMapData" id="getMapData" @setMapData="setMapData"></getMapDataInThere> --> |
| | | </template> |
| | | </avue-form> |
| | | <div class="map"> |
| | | <iframe :src="url" frameborder="0" width="100%" height="100%"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | return |
| | | } |
| | | |
| | | add(row).then( |
| | | () => { |
| | | that.$emit("refreshOnLoad") |
| | | that.$refs.form.resetFields() |
| | | that.form.landUnit = "0" |
| | | that.visible = false |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | // loading() |
| | | window.console.log(error) |
| | | } |
| | | ) |
| | | }, |
| | | add(row).then(() => { |
| | | that.$emit("refreshOnLoad"); |
| | | that.$refs.form.resetFields(); |
| | | that.form.landUnit = "0"; |
| | | that.$parent.onLoad() |
| | | that.visible = false; |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }) |
| | | }, |
| | | |
| | | setMapData (val) { |
| | | this.LineData = val[0] |
| | |
| | | :modal-append-to-body="false" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | width="80%" |
| | | width="60%" |
| | | top="10vh" |
| | | :visible.sync="visible" |
| | | > |
| | |
| | | watch: { |
| | | '$farmId':{ |
| | | handler (newName, oldName) { |
| | | this.page.currentPage = 1 |
| | | this.farm.id = newName |
| | | //地块页面 |
| | | this.onLoad(this.page) |
| | |
| | | :modal-append-to-body="false" |
| | | :append-to-body="true" |
| | | :close-on-click-modal="false" |
| | | width="80%" |
| | | width="60%" |
| | | top="10vh" |
| | | :visible.sync="visible" |
| | | > |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //本地服务接口地址 |
| | | // target: 'http://192.168.0.207:89', |
| | | target: 'http://192.168.0.207:89', |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | target: 'http://182.106.212.58:8020/api', |
| | | // target: 'http://182.106.212.58:8013/api', |
| | | ws: true, |
| | | pathRewrite: { |
| | | '^/api': '/' |