|
@@ -164,27 +164,33 @@
|
|
|
align="center"
|
|
|
class-name="small-padding fixed-width"
|
|
|
>
|
|
|
- <template #default="scope" >
|
|
|
- <el-button v-if="userId==scope.row.userId"
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button
|
|
|
+ v-if="userId == scope.row.userId"
|
|
|
link
|
|
|
type="primary"
|
|
|
icon="Edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['offcial:weekly:edit']"
|
|
|
- >修改</el-button >
|
|
|
- <el-button v-if="userId==scope.row.userId"
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="userId == scope.row.userId"
|
|
|
link
|
|
|
type="primary"
|
|
|
icon="Delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['offcial:weekly:remove']"
|
|
|
- >删除</el-button >
|
|
|
- <el-button v-else
|
|
|
- link
|
|
|
- type="primary"
|
|
|
- icon="view"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- >查看</el-button >
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-else
|
|
|
+ link
|
|
|
+ type="primary"
|
|
|
+ icon="view"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ >查看</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -229,7 +235,11 @@
|
|
|
<el-input disabled v-model="form.deptName" placeholder="" />
|
|
|
</el-form-item>
|
|
|
<el-divider content-position="center">周报事务信息</el-divider>
|
|
|
- <el-row :gutter="10" class="mb8" v-if="!form.userId||userId==form.userId">
|
|
|
+ <el-row
|
|
|
+ :gutter="10"
|
|
|
+ class="mb8"
|
|
|
+ v-if="!form.userId || userId == form.userId"
|
|
|
+ >
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="primary" icon="Plus" @click="handleAddYwWeeklyItem"
|
|
|
>添加</el-button
|
|
@@ -295,11 +305,15 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="下周计划" prop="weekNextPlan">
|
|
|
<template #default="scope">
|
|
|
+ <!-- scope.row.submitState == 1
|
|
|
+ ? '此事项本周已完成'
|
|
|
+ : '请输入下周计划' -->
|
|
|
<el-input
|
|
|
:rows="3"
|
|
|
type="textarea"
|
|
|
v-model="scope.row.weekNextPlan"
|
|
|
- placeholder="请输入下周计划"
|
|
|
+ placeholder="请输入下周计划或“此事项本周已完成”
|
|
|
+ "
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -343,7 +357,7 @@
|
|
|
</el-table-column> -->
|
|
|
</el-table>
|
|
|
</el-form>
|
|
|
- <template #footer v-if="!form.userId||userId==form.userId">
|
|
|
+ <template #footer v-if="!form.userId || userId == form.userId">
|
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -462,10 +476,10 @@ function handleView() {
|
|
|
);
|
|
|
});
|
|
|
}
|
|
|
-huoquUserId()
|
|
|
-function huoquUserId(){
|
|
|
+huoquUserId();
|
|
|
+function huoquUserId() {
|
|
|
getInfo().then((res) => {
|
|
|
- userId.value=res.user.userId
|
|
|
+ userId.value = res.user.userId;
|
|
|
});
|
|
|
}
|
|
|
function handleJinzhanYwWeeklyItem() {
|