@@ -111,7 +112,7 @@ export default {
},
computed: {
...mapGetters([
- 'nickName','name'
+ 'nickName', 'name'
]),
},
created() {
@@ -182,10 +183,14 @@ export default {
},
// 上传成功回调
handleUploadSuccess(res, file) {
- console.log(res)
+ console.log(file)
if (res.code === 200) {
this.form.fileUrl = res.data.url
this.form.fileName = res.data.name
+ const fileName = file.name.split('.')
+ const fileExt = fileName[fileName.length - 1]
+
+ this.form.ffmc = file.name.replace('.' + fileExt, '')
this.fileList.push({ name: res.data.name, url: res.data.url })
this.$modal.closeLoading()
} else {
diff --git a/src/views/business/form/nonTrial/comp/syff/Yd.vue b/src/views/business/form/nonTrial/comp/syff/Yd.vue
index b2fb620..01954ca 100644
--- a/src/views/business/form/nonTrial/comp/syff/Yd.vue
+++ b/src/views/business/form/nonTrial/comp/syff/Yd.vue
@@ -4,6 +4,7 @@