1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

update homepage work card's height, and update EditWork reset after commit

This commit is contained in:
GGB
2023-05-16 20:06:23 +08:00
parent bd88008c08
commit 5d3a264836
3 changed files with 14 additions and 8 deletions

View File

@@ -113,8 +113,10 @@ export default {
form.publisherId = String(1)
if (this.editForm) {
this.$emit('updateWork', form)
this.reset()
} else {
this.$emit('addWork', form)
this.reset()
}
console.log('submit!')
} else {

View File

@@ -1,5 +1,5 @@
<template>
<el-card style="min-width: 640px">
<el-card style="min-width: 640px; height: 400px">
<template #header>
<div class="card-header">
<h2>待办工作</h2>
@@ -7,10 +7,10 @@
</div>
</template>
<div v-for="item in tableData" :key="item" class="text item">
<el-row style="width: 100%">
<el-row style="width: 100%; height: 42px">
<el-col :span="1" />
<el-col :span="1">
<el-avatar style="background-color: #5495f1">
<el-col :span="1" style="justify-content: center">
<el-avatar style="background-color: #409eff" size="default">
<el-icon
color="white"
:size="SIZE_ICON_LG()"
@@ -22,14 +22,18 @@
</el-col>
<el-col :span="1" />
<el-col :span="7"
><el-text size="large" style="color: black">{{ item.content }}</el-text>
><el-text size="large" style="color: black; line-height: 42px">{{
item.content
}}</el-text>
</el-col>
<el-col :span="4" />
<el-col :span="7" style="text-align: right"
><el-text type="info">{{ formatDate(item.deadline) }}</el-text></el-col
><el-text type="info" style="line-height: 42px">{{
formatDate(item.deadline)
}}</el-text></el-col
>
<el-col :span="2" style="text-align: right"
><el-text type="info">截止</el-text></el-col
><el-text type="info" style="line-height: 42px">截止</el-text></el-col
>
<el-col :span="1" />
</el-row>

View File

@@ -1,6 +1,6 @@
<template>
<div class="head">
<el-row style="width: 50%">
<el-row style="width: 640px">
<el-col :span="17">
<el-input
v-model="searchContent"