|
|
@@ -4,11 +4,12 @@
|
|
|
* @Author: Liu_jiaYin
|
|
|
* @Date: 2024-04-01 15:45:58
|
|
|
* @LastEditors: Do not edit
|
|
|
- * @LastEditTime: 2024-04-03 09:22:59
|
|
|
+ * @LastEditTime: 2024-04-08 13:33:37
|
|
|
-->
|
|
|
<template>
|
|
|
<!-- 弹窗部分 -->
|
|
|
<el-dialog
|
|
|
+ ref="dialogRef"
|
|
|
:title="optTitle"
|
|
|
:visible.sync="calendarVisible"
|
|
|
:show-close="false"
|
|
|
@@ -80,15 +81,10 @@
|
|
|
<el-radio label="4" border class="class4">缓</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="清空添加:">
|
|
|
- <el-button type="warning" plain @click="daloginEmpty()"
|
|
|
- >累加多个工作内容时,请先点击</el-button
|
|
|
- >
|
|
|
- </el-form-item> -->
|
|
|
</el-col>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button plain @click="clear">清 空</el-button>
|
|
|
+ <el-button plain @click="clear">清 空</el-button>
|
|
|
<el-button type="success" plain @click="saveAndAdd">保存并新增</el-button>
|
|
|
<el-button type="primary" plain @click="saveEvent">保 存</el-button>
|
|
|
<el-button type="danger" plain @click="delEvent">删 除</el-button>
|
|
|
@@ -195,7 +191,7 @@ export default {
|
|
|
form: {
|
|
|
handler: function (val, oldVal) {
|
|
|
if (!UtilUtils.isEmptyObject(val)) {
|
|
|
- const obj = val.eventTrees.find(fid=>{return fid.id == val.clickId})
|
|
|
+ const obj = val.eventTrees.find(fid => { return fid.id === val.clickId })
|
|
|
if (val.eventTrees.length && !UtilUtils.isEmptyObject(obj) && obj !== undefined) {
|
|
|
this.calendarForm = {
|
|
|
id: obj.id,
|
|
|
@@ -219,14 +215,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- clear (){
|
|
|
+ clear () {
|
|
|
this.calendarForm = {
|
|
|
id: '',
|
|
|
biaoTi: '',
|
|
|
neiRong: '',
|
|
|
formDate: [],
|
|
|
zhuangTai: ''
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
saveAndAdd () {
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
@@ -318,8 +314,9 @@ export default {
|
|
|
.el-tree-node__content > .el-tree-node__expand-icon {
|
|
|
padding: 0px;
|
|
|
}
|
|
|
+ max-height: 300px;
|
|
|
+ overflow: auto;
|
|
|
}
|
|
|
-
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.class1{
|