| | |
| | | detection |
| | | }, |
| | | props: [ |
| | | "type", "activeName" |
| | | "type", "activeName","isLandInfo" |
| | | ], |
| | | data () { |
| | | return { |
| | |
| | | //初始化数据 |
| | | initData () { |
| | | var that = this |
| | | //获取农地数据 |
| | | getLandList(this.$farmId).then((res) => { |
| | | var landIdcolumn = that.findObject(that.option.column, "landId") |
| | | if (this.isLandInfo){ |
| | | //去除【所属地块】筛选条件 |
| | | landIdcolumn.search = false |
| | | }else { |
| | | //获取农地数据 |
| | | getLandList(this.$farmId).then((res) => { |
| | | if (res.data.code == 200) { |
| | | var landIdcolumn = that.findObject(that.option.column, "landId") |
| | | that.landList = res.data.data |
| | | landIdcolumn.dicData = res.data.data |
| | | |
| | | that.landList = res.data.data |
| | | landIdcolumn.dicData = res.data.data |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | //获取农产品数据 |
| | | getStrainList(0).then((res) => { |
| | | if (res.data.code == 200) { |