Commit 0a5b02e8 by cwq0219

Merge branch 'v1.0.1' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.1

2 parents 82695f25 b456a094
...@@ -86,8 +86,10 @@ export default { ...@@ -86,8 +86,10 @@ export default {
this.$apis.customerTransform.listDepartmentTree(params).then(res => { this.$apis.customerTransform.listDepartmentTree(params).then(res => {
this.listTree = res this.listTree = res
this.loading = false this.loading = false
this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree) if (this.listTree.length) {
this.currentArr = this.$common.utils.deepClone(this.listTree[0].entmicroStaffResponses) this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
this.currentArr = this.$common.utils.deepClone(this.listTree[0].entmicroStaffResponses)
}
this.selectData.forEach(i => { this.selectData.forEach(i => {
const row = this.getEmployee(this.listTree).find(j => j.id == i.staffId) const row = this.getEmployee(this.listTree).find(j => j.id == i.staffId)
this.clearSelect(row) this.clearSelect(row)
...@@ -114,7 +116,10 @@ export default { ...@@ -114,7 +116,10 @@ export default {
d.forEach(i => { d.forEach(i => {
if (i.entmicroStaffResponses) { if (i.entmicroStaffResponses) {
i.entmicroStaffResponses.forEach(j => { i.entmicroStaffResponses.forEach(j => {
arr.push(j) const flag = arr.find(m => m.id == j.id)
if (!flag) {
arr.push(j)
}
}) })
} }
if (i.children) { if (i.children) {
......
...@@ -188,6 +188,7 @@ export default { ...@@ -188,6 +188,7 @@ export default {
// 创建a标签 // 创建a标签
let node = document.createElement('img') let node = document.createElement('img')
node.src = url node.src = url
// node.setAttribute('ondragstart', 'return false;')
this.insertNode(node) this.insertNode(node)
}, },
onFocus() { onFocus() {
...@@ -206,6 +207,7 @@ export default { ...@@ -206,6 +207,7 @@ export default {
document.querySelector('.w-textarea_input').focus() document.querySelector('.w-textarea_input').focus()
setTimeout(() => { setTimeout(() => {
this.insertNodeFirst(node) this.insertNodeFirst(node)
document.querySelector('.w-textarea_input').blur()
}, 100) }, 100)
} }
}, },
...@@ -557,6 +559,9 @@ export default { ...@@ -557,6 +559,9 @@ export default {
img { img {
width: 24px; width: 24px;
height: 24px; height: 24px;
-webkit-user-select: none;
cursor: default;
pointer-events: none;
} }
.active { .active {
background: #dcdfe6; background: #dcdfe6;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!