|
|
@@ -4,209 +4,209 @@
|
|
|
<!-- <el-header>
|
|
|
<el-page-header @back="goBack" title content="虫害"></el-page-header>
|
|
|
<el-button type="primary" class="pathology-btn1" @click="judge()">完成</el-button>
|
|
|
- </el-header> -->
|
|
|
+ </el-header>-->
|
|
|
|
|
|
<!-- 页面主内容 -->
|
|
|
- <!-- 主内容列表 -->
|
|
|
- <ul class="insect-ul">
|
|
|
- <!-- 虫害名称 -->
|
|
|
- <li class="insect-li">
|
|
|
- <img src="../../assets/plantImg/addr.png" alt class="insect-li-imgone dandu" />
|
|
|
- <div class="insect-li-div">
|
|
|
- <div>
|
|
|
- <div class="insect-li-divone danoneA">虫害名称</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- 测试 -->
|
|
|
- <div class="insect-li-input">
|
|
|
- <el-input
|
|
|
- type="text"
|
|
|
- :rows="10"
|
|
|
- placeholder="输入要添加的虫害名称"
|
|
|
- v-model.trim="inputInsect"
|
|
|
- clearable
|
|
|
- @blur="animateWidthB()"
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <!-- 虫害名称 -->
|
|
|
-
|
|
|
- <!-- 虫害名称 -->
|
|
|
- <li class="insect-li">
|
|
|
- <img src="../../assets/imageOne/insect.png" alt class="insect-li-imgone dandu" />
|
|
|
- <div class="insect-li-div">
|
|
|
+ <!-- 主内容列表 -->
|
|
|
+ <ul class="insect-ul">
|
|
|
+ <!-- 虫害名称 -->
|
|
|
+ <li class="insect-li">
|
|
|
+ <img src="../../assets/plantImg/addr.png" alt class="insect-li-imgone dandu" />
|
|
|
+ <div class="insect-li-div">
|
|
|
+ <div>
|
|
|
<div class="insect-li-divone danoneA">虫害名称</div>
|
|
|
- <el-cascader
|
|
|
- :options="optionsB"
|
|
|
- v-model="valueA"
|
|
|
- placeholder="请选择虫害种类"
|
|
|
- @change="resultB($event)"
|
|
|
- class="content insectName"
|
|
|
- ></el-cascader>
|
|
|
</div>
|
|
|
- </li>
|
|
|
-
|
|
|
- <!-- 生育期 -->
|
|
|
- <li class="insect-li">
|
|
|
- <img src="../../assets/imageOne/raise.png" alt class="insect-li-imgone dandu" />
|
|
|
- <div class="insect-li-div">
|
|
|
- <div>
|
|
|
- <div class="insect-li-divone danoneA">生育期</div>
|
|
|
- </div>
|
|
|
|
|
|
- <!-- 测试 -->
|
|
|
- <div class="insect-li-input">
|
|
|
- <el-input
|
|
|
- @blur="animateWidthC()"
|
|
|
- v-bind:disabled="disabledInput"
|
|
|
- type="text"
|
|
|
- :rows="10"
|
|
|
- placeholder="请输入生育期"
|
|
|
- v-model.trim="inputC"
|
|
|
- clearable
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
+ <!-- 测试 -->
|
|
|
+ <div class="insect-li-input">
|
|
|
+ <el-input
|
|
|
+ type="text"
|
|
|
+ :rows="10"
|
|
|
+ placeholder="输入要添加的虫害名称"
|
|
|
+ v-model.trim="inputInsect"
|
|
|
+ clearable
|
|
|
+ @blur="animateWidthB()"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
- </li>
|
|
|
- <!-- 生育期 -->
|
|
|
-
|
|
|
- <!-- 统计方法 -->
|
|
|
- <li class="insect-li">
|
|
|
- <img src="../../assets/imageOne/danwei.png" alt class="insect-li-imgone dandu2" />
|
|
|
- <div class="insect-li-div danxuan">
|
|
|
- <div class="insect-li-divone danxuan2">统计方法</div>
|
|
|
- <!-- 测试 -->
|
|
|
- <el-cascader v-model="value" :options="options" @change="handleChange"></el-cascader>
|
|
|
- <!-- 测试 -->
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <!-- 虫害名称 -->
|
|
|
+
|
|
|
+ <!-- 虫害名称 -->
|
|
|
+ <li class="insect-li">
|
|
|
+ <img src="../../assets/imageOne/insect.png" alt class="insect-li-imgone dandu" />
|
|
|
+ <div class="insect-li-div">
|
|
|
+ <div class="insect-li-divone danoneA">虫害名称</div>
|
|
|
+ <el-cascader
|
|
|
+ :options="optionsB"
|
|
|
+ v-model="valueA"
|
|
|
+ placeholder="请选择虫害种类"
|
|
|
+ @change="resultB($event)"
|
|
|
+ class="content insectName"
|
|
|
+ ></el-cascader>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <!-- 生育期 -->
|
|
|
+ <li class="insect-li">
|
|
|
+ <img src="../../assets/imageOne/raise.png" alt class="insect-li-imgone dandu" />
|
|
|
+ <div class="insect-li-div">
|
|
|
+ <div>
|
|
|
+ <div class="insect-li-divone danoneA">生育期</div>
|
|
|
</div>
|
|
|
- </li>
|
|
|
-
|
|
|
- <!-- 作物数量 -->
|
|
|
- <li class="insect-li">
|
|
|
- <img src="../../assets/imageOne/number.png" alt class="insect-li-imgone dandu3" />
|
|
|
- <div class="insect-li-div">
|
|
|
- <div>
|
|
|
- <div class="insect-li-divone shuliang">作物数量</div>
|
|
|
- </div>
|
|
|
|
|
|
- <!-- 测试 -->
|
|
|
- <div class="insect-li-input">
|
|
|
- <el-input
|
|
|
- type="number"
|
|
|
- :rows="10"
|
|
|
- placeholder="只能输入数字"
|
|
|
- v-model.trim="inputA"
|
|
|
- @blur="animateWidthA()"
|
|
|
- @focus="animateWidth()"
|
|
|
- clearable
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
- <!-- 测试 -->
|
|
|
+ <!-- 测试 -->
|
|
|
+ <div class="insect-li-input">
|
|
|
+ <el-input
|
|
|
+ @blur="animateWidthC()"
|
|
|
+ v-bind:disabled="disabledInput"
|
|
|
+ type="text"
|
|
|
+ :rows="10"
|
|
|
+ placeholder="请输入生育期"
|
|
|
+ v-model.trim="inputC"
|
|
|
+ clearable
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
- </li>
|
|
|
-
|
|
|
- <!-- -->
|
|
|
- <li class="insect-li ceshi">
|
|
|
- <img src="../../assets/imageOne/dingwei.png" alt class="insect-li-imgone dandu" />
|
|
|
- <div class="insect-li-div">
|
|
|
- <div class="insect-li-divone danone">上传图片</div>
|
|
|
-
|
|
|
- <!-- 删除 -->
|
|
|
- <el-button @click="delBtn()" type="primary" v-if="btnShow">删除</el-button>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <!-- 生育期 -->
|
|
|
+
|
|
|
+ <!-- 统计方法 -->
|
|
|
+ <li class="insect-li">
|
|
|
+ <img src="../../assets/imageOne/danwei.png" alt class="insect-li-imgone dandu2" />
|
|
|
+ <div class="insect-li-div danxuan">
|
|
|
+ <div class="insect-li-divone danxuan2">统计方法</div>
|
|
|
+ <!-- 测试 -->
|
|
|
+ <el-cascader v-model="value" :options="options" @change="handleChange"></el-cascader>
|
|
|
+ <!-- 测试 -->
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <!-- 作物数量 -->
|
|
|
+ <li class="insect-li">
|
|
|
+ <img src="../../assets/imageOne/number.png" alt class="insect-li-imgone dandu3" />
|
|
|
+ <div class="insect-li-div">
|
|
|
+ <div>
|
|
|
+ <div class="insect-li-divone shuliang">作物数量</div>
|
|
|
</div>
|
|
|
- <div class="shangchuan_box">
|
|
|
- <el-upload
|
|
|
- ref="upload"
|
|
|
- action="/account_photo"
|
|
|
- list-type="picture-card"
|
|
|
- :on-preview="handlePictureCardPreview"
|
|
|
- :http-request="handleHttpRequest"
|
|
|
- :on-remove="handleRemove"
|
|
|
- :limit="imgLimit"
|
|
|
- >
|
|
|
- <i class="el-icon-plus"></i>
|
|
|
- </el-upload>
|
|
|
- <el-dialog :visible.sync="dialogVisible">
|
|
|
- <img width="100%" :src="dialogImageUrl" alt />
|
|
|
- </el-dialog>
|
|
|
+
|
|
|
+ <!-- 测试 -->
|
|
|
+ <div class="insect-li-input">
|
|
|
+ <el-input
|
|
|
+ type="number"
|
|
|
+ :rows="10"
|
|
|
+ placeholder="只能输入数字"
|
|
|
+ v-model.trim="inputA"
|
|
|
+ @blur="animateWidthA()"
|
|
|
+ @focus="animateWidth()"
|
|
|
+ clearable
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
- </li>
|
|
|
-
|
|
|
- <!-- 虫害级别 -->
|
|
|
- <li class="insect-li bgji">
|
|
|
- <img src="../../assets/imageOne/insect.png" alt class="insect-li-img" />
|
|
|
- <div class="insect-li-div">
|
|
|
- <div class="insect-li-text bingji">虫级</div>
|
|
|
- <div class="insect-div-box">
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span">(1)卵:</span>
|
|
|
- <input type="number" placeholder class="insect-inputX" v-model.number="input1" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span">(2)蛹:</span>
|
|
|
- <input type="number" placeholder class="insect-inputX" v-model.number="input2" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-one">(3)幼虫:</span>
|
|
|
- <input type="number" placeholder class="insect-inputE" v-model.number="input3" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-one">(4)落虫:</span>
|
|
|
- <input type="number" placeholder class="insect-inputE" v-model.number="input4" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-two">(5)齡雄虫1:</span>
|
|
|
- <input type="number" placeholder class="insect-inputA" v-model.number="input5" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-two">(6)齡雄虫2:</span>
|
|
|
- <input type="number" placeholder class="insect-inputA" v-model.number="input6" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-two">(7)齡雄虫3:</span>
|
|
|
- <input type="number" placeholder class="insect-inputA" v-model.number="input7" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-two">(8)齡雄虫4:</span>
|
|
|
- <input type="number" placeholder class="insect-inputA" v-model.number="input8" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-two">(9)齡雄虫5:</span>
|
|
|
- <input type="number" placeholder class="insect-inputA" v-model.number="input9" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-three">(10)齡雄虫6:</span>
|
|
|
- <input type="number" placeholder class="insect-inputB" v-model.number="input10" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-three">(11)齡雌虫1:</span>
|
|
|
- <input type="number" placeholder class="insect-inputB" v-model.number="input11" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-three">(12)齡雌虫2:</span>
|
|
|
- <input type="number" placeholder class="insect-inputB" v-model.number="input12" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-three">(13)齡雌虫3:</span>
|
|
|
- <input type="number" placeholder class="insect-inputB" v-model.number="input13" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-three">(14)齡雌虫4:</span>
|
|
|
- <input type="number" placeholder class="insect-inputB" v-model.number="input14" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-three">(15)齡雌虫5:</span>
|
|
|
- <input type="number" placeholder class="insect-inputB" v-model.number="input15" />
|
|
|
- </div>
|
|
|
- <div class="insect-text-box">
|
|
|
- <span class="insect-text-box-span-three">(16)齡雌虫6:</span>
|
|
|
- <input type="number" placeholder class="insect-inputB" v-model.number="input16" />
|
|
|
- </div>
|
|
|
+ <!-- 测试 -->
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <!-- -->
|
|
|
+ <li class="insect-li ceshi">
|
|
|
+ <img src="../../assets/imageOne/dingwei.png" alt class="insect-li-imgone dandu" />
|
|
|
+ <div class="insect-li-div">
|
|
|
+ <div class="insect-li-divone danone">上传图片</div>
|
|
|
+
|
|
|
+ <!-- 删除 -->
|
|
|
+ <el-button @click="delBtn()" type="primary" v-if="btnShow">删除</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="shangchuan_box">
|
|
|
+ <el-upload
|
|
|
+ ref="upload"
|
|
|
+ action="/account_photo"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :http-request="handleHttpRequest"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :limit="imgLimit"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <!-- 虫害级别 -->
|
|
|
+ <li class="insect-li bgji">
|
|
|
+ <img src="../../assets/imageOne/insect.png" alt class="insect-li-img" />
|
|
|
+ <div class="insect-li-div">
|
|
|
+ <div class="insect-li-text bingji">虫级</div>
|
|
|
+ <div class="insect-div-box">
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span">(1)卵:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputX" v-model.number="input1" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span">(2)蛹:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputX" v-model.number="input2" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-one">(3)幼虫:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputE" v-model.number="input3" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-one">(4)落虫:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputE" v-model.number="input4" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-two">(5)齡雄虫1:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputA" v-model.number="input5" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-two">(6)齡雄虫2:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputA" v-model.number="input6" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-two">(7)齡雄虫3:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputA" v-model.number="input7" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-two">(8)齡雄虫4:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputA" v-model.number="input8" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-two">(9)齡雄虫5:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputA" v-model.number="input9" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-three">(10)齡雄虫6:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputB" v-model.number="input10" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-three">(11)齡雌虫1:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputB" v-model.number="input11" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-three">(12)齡雌虫2:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputB" v-model.number="input12" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-three">(13)齡雌虫3:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputB" v-model.number="input13" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-three">(14)齡雌虫4:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputB" v-model.number="input14" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-three">(15)齡雌虫5:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputB" v-model.number="input15" />
|
|
|
+ </div>
|
|
|
+ <div class="insect-text-box">
|
|
|
+ <span class="insect-text-box-span-three">(16)齡雌虫6:</span>
|
|
|
+ <input type="number" placeholder class="insect-inputB" v-model.number="input16" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
|
|
|
<!-- 添加病虫害名称提示框 -->
|
|
|
<el-dialog
|
|
|
@@ -229,6 +229,7 @@ export default {
|
|
|
name: "insect",
|
|
|
data() {
|
|
|
return {
|
|
|
+ isClick: true,
|
|
|
disabledInput: true, //生育期input框是否禁用
|
|
|
valueA: "", //病害名称数据
|
|
|
inputInsect: "", //添加虫害名称
|
|
|
@@ -311,7 +312,7 @@ export default {
|
|
|
label: "insect_type"
|
|
|
},
|
|
|
optionsB: [],
|
|
|
- selectedOptionsB: "",
|
|
|
+ selectedOptionsB: ""
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -426,6 +427,7 @@ export default {
|
|
|
.then(res => {
|
|
|
if (res.data.code == null) {
|
|
|
this.$notify.error({
|
|
|
+ showClose: true,
|
|
|
title: "失败",
|
|
|
message: "数据保存失败",
|
|
|
duration: 1000
|
|
|
@@ -433,6 +435,7 @@ export default {
|
|
|
} else if (res.data.code == 200) {
|
|
|
_this.$router.push("home");
|
|
|
this.$notify({
|
|
|
+ showClose: true,
|
|
|
title: "成功",
|
|
|
message: "数据保存成功了",
|
|
|
type: "success",
|
|
|
@@ -458,6 +461,7 @@ export default {
|
|
|
animateWidthA() {
|
|
|
if (this.inputA === "") {
|
|
|
this.$notify({
|
|
|
+ showClose: true,
|
|
|
title: "警告",
|
|
|
message: "这是必填项,不能为空",
|
|
|
type: "warning",
|
|
|
@@ -476,6 +480,7 @@ export default {
|
|
|
) {
|
|
|
this.$notify({
|
|
|
title: "警告",
|
|
|
+ showClose: true,
|
|
|
message: "请先选择统计方法之后,再填写数量",
|
|
|
type: "warning",
|
|
|
duration: 1000
|
|
|
@@ -493,12 +498,13 @@ export default {
|
|
|
) {
|
|
|
this.$notify({
|
|
|
title: "警告",
|
|
|
+ showClose: true,
|
|
|
message: "此项为必填项,请填写完后再填写下一项",
|
|
|
type: "warning",
|
|
|
duration: 1000
|
|
|
});
|
|
|
} else {
|
|
|
- localStorage.setItem('maternity', _this.inputC) //生育期数据保存
|
|
|
+ localStorage.setItem("maternity", _this.inputC); //生育期数据保存
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -632,33 +638,44 @@ export default {
|
|
|
let postData = _this.$qs.stringify({
|
|
|
pic_list: localStorage.getItem("add")
|
|
|
});
|
|
|
- _this
|
|
|
- .$axios({
|
|
|
- method: "post",
|
|
|
- url: "https://www.yfznscd.com/del_account_photo",
|
|
|
- data: postData,
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/x-www-form-urlencoded"
|
|
|
- }
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- localStorage.removeItem("add");
|
|
|
- this.$notify({
|
|
|
- title: "成功",
|
|
|
- message: "图片删除成功",
|
|
|
- type: "success"
|
|
|
- });
|
|
|
- _this.add = []
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
- localStorage.removeItem("add");
|
|
|
- })
|
|
|
- .catch(error => {
|
|
|
- console.log(error);
|
|
|
- this.$notify.error({
|
|
|
- title: "失败",
|
|
|
- message: "图片删除失败"
|
|
|
+ var isClick = _this.isClick;
|
|
|
+ if (isClick === true) {
|
|
|
+ _this.isClick = false;
|
|
|
+ _this
|
|
|
+ .$axios({
|
|
|
+ method: "post",
|
|
|
+ url: "https://www.yfznscd.com/del_account_photo",
|
|
|
+ data: postData,
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/x-www-form-urlencoded"
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ localStorage.removeItem("add");
|
|
|
+ this.$notify({
|
|
|
+ showClose: true,
|
|
|
+ duration: 1500,
|
|
|
+ title: "成功",
|
|
|
+ message: "图片删除成功",
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ _this.add = [];
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
+ localStorage.removeItem("add");
|
|
|
+ })
|
|
|
+ .catch(error => {
|
|
|
+ console.log(error);
|
|
|
+ this.$notify.error({
|
|
|
+ showClose: true,
|
|
|
+ title: "失败",
|
|
|
+ message: "图片删除失败",
|
|
|
+ duration: 1500
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
+ setTimeout(function() {
|
|
|
+ _this.isClick = true;
|
|
|
+ }, 1500);
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
//监听虫害名称添加input-失去焦点-虫害名称
|