Commit d4837947 by 匡雅琴

跟进专员

1 parent 993f515f
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div v-show="materialAddForm.materialType == 1"> <div v-show="materialAddForm.materialType == 1">
<div class="pdf-show"> <div class="pdf-show">
<input type="file" style="opacity: 0" accept=".pdf" @change="e => handlePdfChange(e)" /> <input type="file" style="opacity: 0" accept=".pdf" @change="e => handlePdfChange(e)" />
<el-button icon="el-icon-plus" :size="size">选择文件</el-button> <el-button icon="el-icon-plus" :size="size" :disabled="routeInfo.addOrEdit == 2">选择文件</el-button>
</div> </div>
<div v-if="pdfUrl">{{ pdfUrl }}</div> <div v-if="pdfUrl">{{ pdfUrl }}</div>
</div> </div>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</div> --> </div> -->
<!-- 选择图文 --> <!-- 选择图文 -->
<div v-show="materialAddForm.materialType == 3"> <div v-show="materialAddForm.materialType == 3">
<textBox @change="writeChange" ref="textBox"></textBox> <textBox @change="writeChange" ref="textBox" @forbid="forbidEdit"></textBox>
</div> </div>
<div class="space"></div> <div class="space"></div>
</el-form-item> </el-form-item>
...@@ -245,6 +245,7 @@ export default { ...@@ -245,6 +245,7 @@ export default {
mounted() { mounted() {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 1 ? this.getMaterialInfo() : '' this.routeInfo.addOrEdit != 1 ? this.getMaterialInfo() : ''
this.routeInfo.addOrEdit != 1 ? this.forbidEdit() : ''
this.title = this.titleObj[this.routeInfo.addOrEdit] this.title = this.titleObj[this.routeInfo.addOrEdit]
this.materialInsert() this.materialInsert()
this.getMaterialList() this.getMaterialList()
...@@ -359,7 +360,10 @@ export default { ...@@ -359,7 +360,10 @@ export default {
// }) // })
// }, // },
getListEntBusinessType() { getListEntBusinessType() {
this.$apis.material.getListEntBusinessType({}).then(res => { var params = {}
// flag 0-跟进专员调用 1-素材调用
params.flag = 1
this.$apis.material.getListEntBusinessType(params).then(res => {
if (res) { if (res) {
this.businessTypes = res this.businessTypes = res
} }
...@@ -513,6 +517,10 @@ export default { ...@@ -513,6 +517,10 @@ export default {
writeChange(val) { writeChange(val) {
this.textBoxContent = val this.textBoxContent = val
}, },
// 禁用富文本
forbidEdit() {
this.$refs.textBox.forbidEdit()
},
// 打开标签 // 打开标签
openLabel() { openLabel() {
this.dialogVisible = !this.dialogVisible this.dialogVisible = !this.dialogVisible
......
...@@ -66,6 +66,9 @@ export default { ...@@ -66,6 +66,9 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.editor.txt.html(html) this.editor.txt.html(html)
}) })
},
forbidEdit() {
this.editor.$textElem.attr('contenteditable', false)
} }
} }
} }
......
...@@ -405,7 +405,10 @@ export default { ...@@ -405,7 +405,10 @@ export default {
// }) // })
// }, // },
getListEntBusinessType() { getListEntBusinessType() {
this.$apis.material.getListEntBusinessType({}).then(res => { var params = {}
// flag 0-跟进专员调用 1-素材调用
params.flag = 1
this.$apis.material.getListEntBusinessType(params).then(res => {
if (res) { if (res) {
this.businessTypes = res this.businessTypes = res
let idx = this.materialFormData.findIndex(item => item.name == 'businessType') let idx = this.materialFormData.findIndex(item => item.name == 'businessType')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!