From 2d95605efd098e1b1c80f80021b259314b10f204 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 01 三月 2024 10:41:14 +0800
Subject: [PATCH] ERP接口
---
admin/src/views/business/visitorSources.vue | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/admin/src/views/business/visitorSources.vue b/admin/src/views/business/visitorSources.vue
index 6c8e4e1..9548afc 100644
--- a/admin/src/views/business/visitorSources.vue
+++ b/admin/src/views/business/visitorSources.vue
@@ -34,8 +34,8 @@
<el-form-item label="璁垮绛旈璇存槑:" prop="description">
<el-input style="width: 50%;" type="textarea" v-model="form.description" placeholder="璇疯緭鍏�" v-trim/>
</el-form-item>
- <el-form-item label="鍏ュ巶椤荤煡:" prop="description">
- <el-tiptap style="width: 50%;" v-model="form.description" :extensions="extensions" />
+ <el-form-item label="鍏ュ巶椤荤煡:" prop="visitNotice">
+ <el-tiptap style="width: 50%;" v-model="form.visitNotice" :extensions="extensions" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submit">淇濆瓨閰嶇疆椤�</el-button>
@@ -83,7 +83,8 @@
healthCard: 0,
isAnswer: 0,
theme: '',
- description: ''
+ description: '',
+ visitNotice: ''
},
extensions: [
new Doc(),
@@ -100,10 +101,10 @@
new Image({
uploadRequest (file) {
const fd = new FormData()
- fd.append('folder', 'visit')
+ fd.append('folder', 'visit/')
fd.append('file', file)
return upload(fd).then(res => {
- return res.url
+ return res.prefixPath + res.folder + res.halfPath
})
}
}),
@@ -134,6 +135,7 @@
this.form.isAnswer = res.isAnswer
this.form.reservationWay = res.reservationWay
this.form.theme = res.theme
+ this.form.visitNotice = res.visitNotice
})
},
submit () {
@@ -143,7 +145,8 @@
checkVisit: this.form.checkVisit,
reservationWay: this.form.reservationWay,
description: this.form.description,
- theme: this.form.theme
+ theme: this.form.theme,
+ visitNotice: this.form.visitNotice
}).then(res => {
this.$message.success('淇濆瓨鎴愬姛')
this.getData()
@@ -156,7 +159,6 @@
<style lang="scss" scoped>
.box {
width: 100%;
- height: 100%;
padding: 30px;
box-sizing: border-box;
background: #ffffff;
--
Gitblit v1.9.3