14 changed files with 537 additions and 446 deletions
|
After Width: | Height: | Size: 160 KiB |
@ -0,0 +1,75 @@ |
|||||||
|
<template> |
||||||
|
<el-dialog title="回复问题" width="900px"> |
||||||
|
<div class="row mb-10 mt-20"> |
||||||
|
<div class="col col-12"> |
||||||
|
<label>提醒类型</label> |
||||||
|
<span>{{ data.alarmType }}</span> |
||||||
|
</div> |
||||||
|
<div class="col col-12"> |
||||||
|
<label>提醒时间</label> |
||||||
|
<span>{{ data.alarmTime }}</span> |
||||||
|
</div> |
||||||
|
<div class="col col-24"> |
||||||
|
<label>提醒内容</label> |
||||||
|
<span>{{ data.alarmContent }}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<el-form label-width="100" :model="formData" ref="formRef" style="min-height: 200px"> |
||||||
|
<el-form-item |
||||||
|
label="回复问题" |
||||||
|
prop="replyResultContent" |
||||||
|
:rules="{ |
||||||
|
required: true, |
||||||
|
message: '请输入回复内容', |
||||||
|
trigger: ['blur'], |
||||||
|
}" |
||||||
|
> |
||||||
|
<el-input |
||||||
|
type="textarea" |
||||||
|
placeholder="请输入回复内容" |
||||||
|
v-model="formData.replyResultContent" |
||||||
|
:autosize="{ minRows: 5 }" |
||||||
|
/> |
||||||
|
</el-form-item> |
||||||
|
<!-- <el-form-item |
||||||
|
label="附件" |
||||||
|
> |
||||||
|
<file-upload /> |
||||||
|
</el-form-item> --> |
||||||
|
</el-form> |
||||||
|
<footer class="flex end"> |
||||||
|
<el-button @click="emit('close')" size="large">取消</el-button> |
||||||
|
<el-button type="primary" @click="handleSumbit" size="large" |
||||||
|
>确定 |
||||||
|
</el-button> |
||||||
|
</footer> |
||||||
|
</el-dialog> |
||||||
|
</template> |
||||||
|
<script setup> |
||||||
|
import { |
||||||
|
alarmNotificationReply, |
||||||
|
} from "@/api/work/alarm"; |
||||||
|
import feedback from "@/utils/feedback"; |
||||||
|
|
||||||
|
const props = defineProps({ |
||||||
|
data: { |
||||||
|
type: Object, |
||||||
|
default: {} |
||||||
|
} |
||||||
|
}) |
||||||
|
const emit = defineEmits(['close', 'update']) |
||||||
|
const show = ref(false) |
||||||
|
const formData = ref({}) |
||||||
|
const formRef = ref() |
||||||
|
|
||||||
|
async function handleSumbit() { |
||||||
|
await formRef.value.validate(); |
||||||
|
formData.value.id = props.data.id |
||||||
|
await alarmNotificationReply(formData.value); |
||||||
|
feedback.msgSuccess("操作成功"); |
||||||
|
emit('close') |
||||||
|
emit('update') |
||||||
|
} |
||||||
|
</script> |
||||||
|
<style scoped> |
||||||
|
</style> |
||||||
@ -0,0 +1,31 @@ |
|||||||
|
<template> |
||||||
|
<div class="container"> |
||||||
|
<el-row> |
||||||
|
<el-col :span="12"> |
||||||
|
<h1 style="margin-top: 160px; margin-bottom: 30px">您没有权限!</h1> |
||||||
|
<p class="mb-20">如有疑问,请联系系统管理员</p> |
||||||
|
<p class="mb-8">可选择</p> |
||||||
|
<el-button type="primary" link @click="goLogin">返回登录</el-button> |
||||||
|
</el-col> |
||||||
|
<el-col :span="12"> |
||||||
|
<img src="/imgs/401.gif"> |
||||||
|
</el-col> |
||||||
|
</el-row> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
<script setup> |
||||||
|
import { deleteToken } from '@/utils/token' |
||||||
|
|
||||||
|
const router = useRouter() |
||||||
|
function goLogin() { |
||||||
|
deleteToken() |
||||||
|
router.push('/login') |
||||||
|
} |
||||||
|
</script> |
||||||
|
<style lang="scss" scoped> |
||||||
|
.container { |
||||||
|
width: 800px; |
||||||
|
margin: auto; |
||||||
|
margin-top: 10vh; |
||||||
|
} |
||||||
|
</style> |
||||||
Loading…
Reference in new issue