From b1f0eae65c39709bb0041d38ff4cc913c07616ec Mon Sep 17 00:00:00 2001
From: tangyi <275503107@qq.com>
Date: Wed, 6 Apr 2022 11:41:09 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/repairsPage/repairsPage.vue | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/pages/repairsPage/repairsPage.vue b/pages/repairsPage/repairsPage.vue
index 3a90bba..ecb7080 100644
--- a/pages/repairsPage/repairsPage.vue
+++ b/pages/repairsPage/repairsPage.vue
@@ -35,7 +35,7 @@
添加故障图片
-
import yyMmDdHhSs from '@/components/dates/yy-mm-dd-hh-ss.vue';
+ import { uploadImg } from '@/jsFile/public-api.js';
export default {
components: {
yyMmDdHhSs
@@ -68,11 +69,13 @@
data: {
is_device: 0,
fault_type: "",
- device_name: "",
+ device_name: "华为LED",
condition: "",
project_number: "",
+ service_address:"",
address: "",
username: "",
+ fault_describe:"",
images:"",
phone: "",
visit_time: ""
@@ -96,6 +99,7 @@
onLoad() {
this.getType()
},
+
methods: {
// 获取故障类型
getType() {
@@ -138,7 +142,13 @@
this.imgsrcArr.push(item);
})
- console.log( this.imgsrcArr)
+
+ uploadImg({path:res.tempFilePaths[0]}).then(res=>{
+ if(res.code) {
+ this.$toolAll.tools.showToast('上传成功');
+ }
+ })
+
}
})
},