Commit 3e35f70f by 前端

Merge branch 'kuangyq_fix_v2.0.0' into 'v2.0.0'

跟进专员

See merge request !86
2 parents 2ec7f7f7 d4837947
......@@ -28,7 +28,7 @@
<div v-show="materialAddForm.materialType == 1">
<div class="pdf-show">
<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 v-if="pdfUrl">{{ pdfUrl }}</div>
</div>
......@@ -42,7 +42,7 @@
</div> -->
<!-- 选择图文 -->
<div v-show="materialAddForm.materialType == 3">
<textBox @change="writeChange" ref="textBox"></textBox>
<textBox @change="writeChange" ref="textBox" @forbid="forbidEdit"></textBox>
</div>
<div class="space"></div>
</el-form-item>
......@@ -245,6 +245,7 @@ export default {
mounted() {
this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 1 ? this.getMaterialInfo() : ''
this.routeInfo.addOrEdit != 1 ? this.forbidEdit() : ''
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.materialInsert()
this.getMaterialList()
......@@ -359,7 +360,10 @@ export default {
// })
// },
getListEntBusinessType() {
this.$apis.material.getListEntBusinessType({}).then(res => {
var params = {}
// flag 0-跟进专员调用 1-素材调用
params.flag = 1
this.$apis.material.getListEntBusinessType(params).then(res => {
if (res) {
this.businessTypes = res
}
......@@ -513,6 +517,10 @@ export default {
writeChange(val) {
this.textBoxContent = val
},
// 禁用富文本
forbidEdit() {
this.$refs.textBox.forbidEdit()
},
// 打开标签
openLabel() {
this.dialogVisible = !this.dialogVisible
......
......@@ -66,6 +66,9 @@ export default {
this.$nextTick(() => {
this.editor.txt.html(html)
})
},
forbidEdit() {
this.editor.$textElem.attr('contenteditable', false)
}
}
}
......
......@@ -405,7 +405,10 @@ export default {
// })
// },
getListEntBusinessType() {
this.$apis.material.getListEntBusinessType({}).then(res => {
var params = {}
// flag 0-跟进专员调用 1-素材调用
params.flag = 1
this.$apis.material.getListEntBusinessType(params).then(res => {
if (res) {
this.businessTypes = res
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!