Commit b7e3f4de by 胡悦

提交群发

1 parent f7c597c1
......@@ -102,7 +102,7 @@
style="width: 320px;"
></el-date-picker>
</el-form-item>
<el-form-item label="标签筛选">
<!-- <el-form-item label="标签筛选">
<el-button size="small" @click="openLabel">
<i class="el-icon-plus"></i>
标签筛选
......@@ -136,7 +136,7 @@
<el-input size="small" style="outline: none; border: none"></el-input>
</div>
</div>
</el-form-item>
</el-form-item>-->
</el-form>
</div>
</div>
......@@ -345,7 +345,21 @@ export default {
},
timeOptions: {
selectableRange: '00:00:00 - 23:59:59'
}
},
editStatus: false,
firstFlag: true
}
},
watch: {
basicForm: {
handler(val) {
if (this.firstFlag) {
this.firstFlag = false
} else {
this.editStatus = true
}
},
deep: true
}
},
mounted() {
......@@ -359,8 +373,19 @@ export default {
this.membersVisible = !this.membersVisible
},
handleCancel() {
this.$router.push('/customerTransform/index')
// this.$router.go(-1)
if (this.editStatus || this.$refs.welcome.previewList.length > 0) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.$router.push('/customerTransform/index')
})
.catch(() => {})
} else {
this.$router.push('/customerTransform/index')
}
},
// 成员弹窗
handleConfirm() {
......@@ -368,6 +393,7 @@ export default {
this.basicForm.userList = this.$refs.membersForm.innerTags
this.openMembers()
this.isUpdate = true
this.editStatus = true
} else {
this.$message({
type: 'error',
......
......@@ -242,7 +242,16 @@ export default {
selectableRange: '00:00:00 - 23:59:59'
},
footerLeft: 0,
footerWidth: 0
footerWidth: 0,
editStatus: false
}
},
watch: {
basicForm: {
handler(val) {
this.editStatus = true
},
deep: true
}
},
mounted() {
......@@ -257,7 +266,19 @@ export default {
},
handleCancel() {
// this.$router.go(-1)
this.$router.push('/customerTransform/index')
if (this.editStatus || this.$refs.welcome.previewList.length > 0) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.$router.push('/customerTransform/index')
})
.catch(() => {})
} else {
this.$router.push('/customerTransform/index')
}
},
// 成员弹窗
handleConfirm() {
......
......@@ -82,10 +82,11 @@ export default {
if (this.islord) {
params.islord = this.islord
}
params.isHavCustomer = true
this.$apis.customerTransform.listDepartmentTree(params).then(res => {
this.listTree = res
this.loading = false
// this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
this.currentArr = this.$common.utils.deepClone(this.listTree[0].entmicroStaffResponses)
this.selectData.forEach(i => {
const row = this.getEmployee(this.listTree).find(j => j.id == i.staffId)
......@@ -106,7 +107,7 @@ export default {
handleNodeClick(data) {
this.departmentId = data.id
this.tableEmpData = data.entmicroStaffResponses
this.currentArr = this.$common.utils.deepClone(data.entmicroStaffResponses)
// this.currentArr = this.$common.utils.deepClone(data.entmicroStaffResponses)
// this.listEntmicroStaff()
},
getEmployee(d, arr = []) {
......@@ -131,7 +132,6 @@ export default {
}
})
}
this.tableEmpData = arr
}
// listEntmicroStaff(staffName) {
......
......@@ -6,10 +6,9 @@
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box">
<el-tag
effect="plain"
type="info"
v-for="(tag, idx) in innerTags"
:key="idx"
type="info"
closable
:disable-transitions="false"
@close="remove(tag)"
......@@ -17,15 +16,7 @@
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
<!-- <el-tag
v-for="(tag, idx) in innerTags"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>{{ tag.staffName }}</el-tag>-->
</div>
<el-input
size="small"
v-model.trim="newTag"
......@@ -170,15 +161,10 @@ export default {
}
}
.tag-box {
max-height: 60px;
max-height: 66px;
overflow: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.input-tag-wrapper {
// max-height: 68px;
// overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
......@@ -186,17 +172,21 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
color: #606266;
display: inline-block;
outline: none;
padding: 5px 5px 0px 5px;
padding: 0 0 0 5px;
flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
width: 100%;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
......@@ -208,17 +198,11 @@ export default {
width: auto;
flex: 1;
}
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.tag-input {
background: transparent;
......@@ -241,4 +225,15 @@ export default {
height: 32px;
line-height: 32px;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!