Commit 0361679e by xinla

修改部分issue问题

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