Commit 6765e5b9 authored by Mac's avatar Mac

修改欢迎语

parent 9df1b847
......@@ -131,7 +131,9 @@
<el-form-item label="文本内容:">
<q-input v-model="addMsg.Content" filled clearable type="textarea" label="文本内容" @input="gettrigger" />
<div style="margin-top: 10px;">
<q-btn color="accent" label="+插入客户名称" size='sm' class="q-mr-md" @click='insert' />
<q-btn color="accent" label="+插入客户名称" size='sm' class="q-mr-md" @click='insert(1)' />
<q-btn color="accent" label="+插入员工名称" size='sm' class="q-mr-md" @click='insert(2)' />
<q-btn color="accent" label="+插入员工别名" size='sm' class="q-mr-md" @click='insert(3)' />
</div>
</el-form-item>
<el-form-item label="添加内容:" style="margin-bottom: 20px;">
......@@ -337,8 +339,14 @@
insert() {
this.addMsg.Content = this.addMsg.Content + '##客户名称##'
insert(type) {
if(type==1){
this.addMsg.Content = this.addMsg.Content + '##客户名称##'
}else if(type==2){
this.addMsg.Content = this.addMsg.Content + '##员工名称##'
}else{
this.addMsg.Content = this.addMsg.Content + '##员工别名##'
}
this.gettrigger()
},
selectimg() {//素材选择 图片模式
......
......@@ -148,7 +148,9 @@
<q-input v-model="addMsg.Content" filled clearable type="textarea" label="文本内容"
style="width: 60%;" />
<div style="margin-top: 10px;">
<q-btn color="accent" label="+插入客户名称" size='sm' class="q-mr-md" @click='insert' />
<q-btn color="accent" label="+插入客户名称" size='sm' class="q-mr-md" @click='insert(1)' />
<q-btn color="accent" label="+插入员工名称" size='sm' class="q-mr-md" @click='insert(2)' />
<q-btn color="accent" label="+插入员工别名" size='sm' class="q-mr-md" @click='insert(3)' />
</div>
</el-form-item>
<el-form-item label="添加内容:">
......@@ -395,8 +397,14 @@
},
insert() {
this.addMsg.Content = this.addMsg.Content + '##客户名称##'
insert(type) {
if(type==1){
this.addMsg.Content = this.addMsg.Content + '##客户名称##'
}else if(type==2){
this.addMsg.Content = this.addMsg.Content + '##员工名称##'
}else{
this.addMsg.Content = this.addMsg.Content + '##员工别名##'
}
},
selectimg() {//素材选择 图片模式
this.materialType = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment