|
@@ -4,7 +4,7 @@
|
|
|
<div class="form-page__search">
|
|
<div class="form-page__search">
|
|
|
<el-row type="flex" justify="space-between" :gutter="20">
|
|
<el-row type="flex" justify="space-between" :gutter="20">
|
|
|
<el-col :span="18">
|
|
<el-col :span="18">
|
|
|
- <el-select
|
|
|
|
|
|
|
+ <!-- <el-select
|
|
|
v-model="queryInfo.org_name"
|
|
v-model="queryInfo.org_name"
|
|
|
placeholder="请选择隶属组织"
|
|
placeholder="请选择隶属组织"
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -19,7 +19,7 @@
|
|
|
:value="item.org_name"
|
|
:value="item.org_name"
|
|
|
>
|
|
>
|
|
|
</el-option>
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
|
|
|
|
+ </el-select> -->
|
|
|
<UserIDSelectComponent v-model="queryInfo.user_id" />
|
|
<UserIDSelectComponent v-model="queryInfo.user_id" />
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="queryInfo.select_time"
|
|
v-model="queryInfo.select_time"
|
|
@@ -34,7 +34,14 @@
|
|
|
<el-button type="info" @click="search" size="mini">查询</el-button>
|
|
<el-button type="info" @click="search" size="mini">查询</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6" style="text-align:right;">
|
|
<el-col :span="6" style="text-align:right;">
|
|
|
- <el-button type="info" size="mini">批量导出当前页</el-button>
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="info"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="exportData('all')"
|
|
|
|
|
+ :disabled="exportLoading"
|
|
|
|
|
+ ><i v-if="exportLoading" class="el-icon-loading"></i
|
|
|
|
|
+ >批量导出当前页</el-button
|
|
|
|
|
+ >
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</div>
|
|
</div>
|
|
@@ -47,7 +54,7 @@
|
|
|
:height="48 * 13"
|
|
:height="48 * 13"
|
|
|
ref="gridTable"
|
|
ref="gridTable"
|
|
|
>
|
|
>
|
|
|
- <el-table-column prop="index" label="编号" width="60px">
|
|
|
|
|
|
|
+ <el-table-column prop="index" label="编号" width="60px" fixed="left">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span>{{ (queryInfo.page - 1) * 20 + (scope.$index + 1) }}</span>
|
|
<span>{{ (queryInfo.page - 1) * 20 + (scope.$index + 1) }}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -55,6 +62,9 @@
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="sample_addr"
|
|
prop="sample_addr"
|
|
|
label="标准样地地点"
|
|
label="标准样地地点"
|
|
|
|
|
+ fixed="left"
|
|
|
|
|
+ width="120"
|
|
|
|
|
+ show-overflow-tooltip
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="sample_num"
|
|
prop="sample_num"
|
|
@@ -62,26 +72,42 @@
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="sample_area"
|
|
prop="sample_area"
|
|
|
|
|
+ width="140"
|
|
|
label="标准样地面积(亩)"
|
|
label="标准样地面积(亩)"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<el-table-column prop="lng" label="经度"></el-table-column>
|
|
<el-table-column prop="lng" label="经度"></el-table-column>
|
|
|
<el-table-column prop="lat" label="纬度"></el-table-column>
|
|
<el-table-column prop="lat" label="纬度"></el-table-column>
|
|
|
<el-table-column prop="height" label="海拔"></el-table-column>
|
|
<el-table-column prop="height" label="海拔"></el-table-column>
|
|
|
- <el-table-column prop="trap_number" label="诱虫灯设备名称">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="trap_number"
|
|
|
|
|
+ label="诱虫灯设备名称"
|
|
|
|
|
+ width="150"
|
|
|
|
|
+ >
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="inducer_name" label="诱剂名称成分">
|
|
<el-table-column prop="inducer_name" label="诱剂名称成分">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="pest_type_num" label="入侵害虫种类">
|
|
<el-table-column prop="pest_type_num" label="入侵害虫种类">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="user_name" label="调查人"> </el-table-column>
|
|
<el-table-column prop="user_name" label="调查人"> </el-table-column>
|
|
|
- <el-table-column prop="submit_time" label="提交时间" width="200">
|
|
|
|
|
|
|
+ <el-table-column prop="check_time" label="提交时间" width="200">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="150">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ width="150"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ fixed="right"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="info" size="mini" @click="handleEdit(scope.row)">
|
|
<el-button type="info" size="mini" @click="handleEdit(scope.row)">
|
|
|
修改</el-button
|
|
修改</el-button
|
|
|
>
|
|
>
|
|
|
- <el-button type="info" size="mini">导出</el-button>
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="info"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :disabled="exportLoading"
|
|
|
|
|
+ @click="exportData('single', scope.row)"
|
|
|
|
|
+ >导出</el-button
|
|
|
|
|
+ >
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -116,7 +142,7 @@
|
|
|
baseForm.user_name
|
|
baseForm.user_name
|
|
|
}}</el-descriptions-item>
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="调查时间">{{
|
|
<el-descriptions-item label="调查时间">{{
|
|
|
- baseForm.submit_time
|
|
|
|
|
|
|
+ baseForm.check_time
|
|
|
}}</el-descriptions-item>
|
|
}}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -172,6 +198,14 @@
|
|
|
|
|
|
|
|
<!-- start -->
|
|
<!-- start -->
|
|
|
<el-card style="margin-bottom:20px;" bodered>
|
|
<el-card style="margin-bottom:20px;" bodered>
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ @click="handleAddNewPestInfo"
|
|
|
|
|
+ style="float: right; padding: 3px 0"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ >新增</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="baseForm.pest_list"
|
|
:data="baseForm.pest_list"
|
|
|
border
|
|
border
|
|
@@ -181,38 +215,111 @@
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
:prop="'pest_list.' + scope.$index + '.pest_id'"
|
|
:prop="'pest_list.' + scope.$index + '.pest_id'"
|
|
|
|
|
+ label-width="0"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
- validator: validateArrayRequired,
|
|
|
|
|
|
|
+ validator: validateSingleInput,
|
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
- <el-input v-model="scope.row.pest_name"></el-input>
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="scope.row.pest_id"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @change="value => handleChange(value, scope.row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in pestListOptions"
|
|
|
|
|
+ :key="item.pest_id"
|
|
|
|
|
+ :label="item.pest_name"
|
|
|
|
|
+ :value="item.pest_id"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="危害作物" align="center" width="120">
|
|
<el-table-column label="危害作物" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox :label="scope.row.harm_crop"></el-checkbox>
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ :prop="'pest_list.' + scope.$index + '.harm_crop'"
|
|
|
|
|
+ label-width="0"
|
|
|
|
|
+ :rules="{
|
|
|
|
|
+ validator: validateSingleInput,
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input v-model="scope.row.harm_crop"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="合计" align="center" width="120">
|
|
<el-table-column label="合计" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox :label="scope.row.pest_total"></el-checkbox>
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ :prop="'pest_list.' + scope.$index + '.pest_total'"
|
|
|
|
|
+ label-width="0"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input v-model="scope.row.pest_total" disabled></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="雌" align="center" width="120">
|
|
<el-table-column label="雌" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox :label="scope.row.female_num"></el-checkbox>
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ :prop="'pest_list.' + scope.$index + '.female_num'"
|
|
|
|
|
+ label-width="0"
|
|
|
|
|
+ :rules="{
|
|
|
|
|
+ validator: validateSingleInputNumber,
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ @change="value => handleInputChange(value, scope.row)"
|
|
|
|
|
+ v-model="scope.row.female_num"
|
|
|
|
|
+ onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="雄" align="center" width="120">
|
|
<el-table-column label="雄" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox :label="scope.row.male_num"></el-checkbox>
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ :prop="'pest_list.' + scope.$index + '.male_num'"
|
|
|
|
|
+ label-width="0"
|
|
|
|
|
+ :rules="{
|
|
|
|
|
+ validator: validateSingleInputNumber,
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="scope.row.male_num"
|
|
|
|
|
+ @change="value => handleInputChange(value, scope.row)"
|
|
|
|
|
+ onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="备注" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ :prop="'pest_list.' + scope.$index + '.remarks'"
|
|
|
|
|
+ label-width="0"
|
|
|
|
|
+ :rules="{
|
|
|
|
|
+ validator: validateSingleInput,
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input v-model="scope.row.remarks"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="备注" align="center" width="120">
|
|
|
|
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox :label="scope.row.remarks"></el-checkbox>
|
|
|
|
|
|
|
+ <el-form-item label-width="0">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ @click="handleDelete(scope.row, scope.$index)"
|
|
|
|
|
+ >删除</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -233,6 +340,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { downFile } from '@/util/downloadFile.js';
|
|
|
|
|
+import { assign, omit, find, map } from 'lodash-es';
|
|
|
import UserIDSelectComponent from './components/userSelect.vue';
|
|
import UserIDSelectComponent from './components/userSelect.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -319,11 +428,7 @@ export default {
|
|
|
message: '请至少选择一个活动性质',
|
|
message: '请至少选择一个活动性质',
|
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
|
}
|
|
}
|
|
|
- ],
|
|
|
|
|
- resource: [
|
|
|
|
|
- { required: true, message: '请选择活动资源', trigger: 'change' }
|
|
|
|
|
- ],
|
|
|
|
|
- desc: [{ required: true, message: '请填写活动形式', trigger: 'blur' }]
|
|
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
habitatList: [
|
|
habitatList: [
|
|
|
{
|
|
{
|
|
@@ -388,7 +493,9 @@ export default {
|
|
|
label: '水库道路周边地块、荒地(待建地、城乡失管地等)',
|
|
label: '水库道路周边地块、荒地(待建地、城乡失管地等)',
|
|
|
value: '4'
|
|
value: '4'
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ pestListOptions: [],
|
|
|
|
|
+ exportLoading: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
//监听属性 类似于data概念
|
|
//监听属性 类似于data概念
|
|
@@ -397,6 +504,85 @@ export default {
|
|
|
watch: {},
|
|
watch: {},
|
|
|
//方法集合
|
|
//方法集合
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 导出
|
|
|
|
|
+ exportData(type, row) {
|
|
|
|
|
+ if (this.exportLoading) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ let payload = {
|
|
|
|
|
+ tc_ids: ''
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ if (type === 'all') {
|
|
|
|
|
+ payload.tc_ids = map(this.tableData, 'tc_id').join(',');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ payload.tc_ids = row.tc_id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.exportLoading = true;
|
|
|
|
|
+ this.$axios({
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ url: '/api/api_gateway?method=data_report.info.export_trap_check_info',
|
|
|
|
|
+ responseType: 'blob',
|
|
|
|
|
+ data: this.qs.stringify(payload)
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ downFile({
|
|
|
|
|
+ data: res.data,
|
|
|
|
|
+ fileName: '农业外来入侵害虫诱捕法调查记录表.docx'
|
|
|
|
|
+ });
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
|
+ }, 1500);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
|
+ }, 1500);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ handleChange(value, row) {
|
|
|
|
|
+ const pestInfo = find(this.pestListOptions, { pest_id: value }) || {};
|
|
|
|
|
+ row.pest_name = pestInfo.pest_name || '';
|
|
|
|
|
+ },
|
|
|
|
|
+ handleAddNewPestInfo() {
|
|
|
|
|
+ this.baseForm.pest_list.push({
|
|
|
|
|
+ pest_id: '', //害虫id
|
|
|
|
|
+ pest_name: '', // 害虫名称
|
|
|
|
|
+ harm_crop: '', // 危害农作物
|
|
|
|
|
+ pest_total: 0, // 害虫总数
|
|
|
|
|
+ male_num: 0, // 雄性数量
|
|
|
|
|
+ female_num: 0, // 雌性数量
|
|
|
|
|
+ remarks: '' // 备注
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ handleDelete(row, index) {
|
|
|
|
|
+ this.baseForm.pest_list.splice(index, 1);
|
|
|
|
|
+ },
|
|
|
|
|
+ handleInputChange(value, row) {
|
|
|
|
|
+ row.pest_total = Math.floor(row.male_num * 1 + row.female_num * 1);
|
|
|
|
|
+ },
|
|
|
|
|
+ getPestList() {
|
|
|
|
|
+ this.$axios({
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ url: '/api/api_gateway?method=sysmenage.maintain.pest_list',
|
|
|
|
|
+ data: this.qs.stringify({
|
|
|
|
|
+ page: 1, // 页码
|
|
|
|
|
+ page_item: '1000000000000000000000000000', // 每页条目数,默认10
|
|
|
|
|
+ pest_name: '' // 有害生物
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.data.data.total_item !== 0) {
|
|
|
|
|
+ var data = res.data.data;
|
|
|
|
|
+ this.pestListOptions = data.page_list;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ console.log(err);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
getDataList() {
|
|
getDataList() {
|
|
|
//获取设备列表
|
|
//获取设备列表
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
@@ -433,7 +619,12 @@ export default {
|
|
|
this.queryInfo.page = e;
|
|
this.queryInfo.page = e;
|
|
|
this.getDataList();
|
|
this.getDataList();
|
|
|
},
|
|
},
|
|
|
- handleEdit() {
|
|
|
|
|
|
|
+ handleEdit(row) {
|
|
|
|
|
+ //tc_id
|
|
|
|
|
+ if (row.tc_id) {
|
|
|
|
|
+ this.baseForm = assign({}, row);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
},
|
|
},
|
|
|
submitForm(formName) {
|
|
submitForm(formName) {
|
|
@@ -464,7 +655,8 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
// 编辑
|
|
// 编辑
|
|
|
// 添加
|
|
// 添加
|
|
|
- const payload = omit(this.baseForm, ['check_time']);
|
|
|
|
|
|
|
+ const payload = omit(this.baseForm, ['check_time', 'user_name']);
|
|
|
|
|
+ payload.pest_list = JSON.stringify(payload.pest_list);
|
|
|
this.$axios({
|
|
this.$axios({
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
url: '/api/api_gateway?method=data_report.info.trap_check_modify',
|
|
url: '/api/api_gateway?method=data_report.info.trap_check_modify',
|
|
@@ -504,7 +696,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
validateSingleInputNumber(rule, value, callback) {
|
|
validateSingleInputNumber(rule, value, callback) {
|
|
|
if (!value) {
|
|
if (!value) {
|
|
|
- callback();
|
|
|
|
|
|
|
+ callback(new Error('请输入大于0的数'));
|
|
|
} else {
|
|
} else {
|
|
|
if (Number(value) > 0) {
|
|
if (Number(value) > 0) {
|
|
|
callback();
|
|
callback();
|
|
@@ -512,6 +704,14 @@ export default {
|
|
|
callback(new Error('请输入大于0的数'));
|
|
callback(new Error('请输入大于0的数'));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ validateSingleInput(rule, value, callback) {
|
|
|
|
|
+ if (!value) {
|
|
|
|
|
+ callback(new Error('请输入/选择'));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ callback();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
@@ -522,6 +722,7 @@ export default {
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.getOrganizationList();
|
|
this.getOrganizationList();
|
|
|
this.getDataList();
|
|
this.getDataList();
|
|
|
|
|
+ this.getPestList();
|
|
|
},
|
|
},
|
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
updated() {}, //生命周期 - 更新之后
|
|
updated() {}, //生命周期 - 更新之后
|