This commit is contained in:
qsh
2025-06-13 10:39:44 +08:00
parent 2add57162e
commit 7e54b14103
2 changed files with 15 additions and 4 deletions

View File

@@ -462,9 +462,9 @@ const emit = defineEmits(['success', 'close']) // 定义 success 事件,用于
function addObjective() {
objectList.value.push({
objectiveName: '',
executor: [],
executor: form.value.executor || [],
keyResults: [],
dataScope: 2
dataScope: form.value.dataScope || 2
})
}
@@ -543,8 +543,8 @@ async function handleSave() {
.confirm('是否按照当前节点所选的多个执行人自动新增对应的员工节点?', {
type: 'warning',
showCancelButton: true,
cancelButtonText: '取消',
confirmButtonText: '确定'
cancelButtonText: '不新增员工节点',
confirmButtonText: '新增员工节点'
})
.then(() => {
saveOkrData(true)
@@ -577,21 +577,31 @@ async function saveOkrData(isAutoAddChild = false) {
2,
'0'
)}-${getLastDayOfMonth(defaultTime.getFullYear(), month)}`,
dataScope: form.value.dataScope,
executor: form.value.executor,
children: [
{
nodeName: `${month + 1}月第1周`,
dataScope: form.value.dataScope,
executor: form.value.executor,
children: []
},
{
nodeName: `${month + 1}月第2周`,
dataScope: form.value.dataScope,
executor: form.value.executor,
children: []
},
{
nodeName: `${month + 1}月第3周`,
dataScope: form.value.dataScope,
executor: form.value.executor,
children: []
},
{
nodeName: `${month + 1}月第4周`,
dataScope: form.value.dataScope,
executor: form.value.executor,
children: []
}
]

View File

@@ -126,6 +126,7 @@
<div v-if="!!isDetail" class="w-full">{{ form.meetingSummary }}</div>
<el-input
v-else
v-model="form.meetingSummary"
type="textarea"
placeholder="请输入会议纪要"
:maxlength="-1"