Commit 0361679e by xinla

修改部分issue问题

1 parent 4946e368
......@@ -224,12 +224,23 @@ export default {
>
<el-card shadow="hover" body-style="padding: 0px;">
<div class="img-wrap">
<el-image :src="item.materialUrl" fit="contain"></el-image>
<el-image
v-if="type == 0"
:src="item.materialUrl"
fit="contain"
></el-image>
<el-image
v-else-if="type == 2"
:src="item.coverUrl"
fit="contain"
></el-image>
</div>
<div style="padding: 14px">
<el-checkbox :label="item">{{
item.materialName
}}</el-checkbox>
<el-checkbox :label="item">
<span class="label">
{{ item.materialName }}
</span>
</el-checkbox>
</div>
</el-card>
</el-col>
......@@ -268,4 +279,10 @@ export default {
top: 0;
}
}
/deep/ .el-checkbox__label {
vertical-align: text-top;
}
.label {
white-space: normal;
}
</style>
......@@ -84,14 +84,23 @@ export default {
},
// 选择变化
handleCheckChange(data, checked, indeterminate) {
// debugger
if (checked) {
if (this.isSigleSelect) {
// 单选情况
this.$refs.tree.setCheckedKeys([data.key])
}
this.userList.push(data)
if (this.isOnlyLeaf) {
if (data.userId) {
this.userList.push(data)
}
} else {
this.userList.push(data)
}
} else {
this.userList.splice(this.userList.indexOf(data), 1)
let index = this.userList.indexOf(data)
index > 0 && this.userList.splice(index, 1)
}
// console.log(data, checked, indeterminate);
},
......
......@@ -10,6 +10,11 @@ export default {
weFlowerCustomerRels: [{}],
},
birthday: '',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now()
},
},
}
},
created() {
......@@ -66,6 +71,7 @@ export default {
v-if="datePickerVisible"
v-model="birthday"
type="date"
:picker-options="pickerOptions"
value-format="yyyy-MM-dd"
placeholder="选择日期便于以后客情维护"
@blur="datePickerVisible = false"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!