|
@@ -37,7 +37,7 @@
|
|
|
|
|
|
<template #footer>
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button v-if="dialogType ==='pass'" type="primary" @click="handleSubmit">提 交</el-button>
|
|
|
+ <el-button v-if="dialogType ==='pass'" type="primary" @click="handleSubmitConfirm">提 交</el-button>
|
|
|
</template>
|
|
|
</Dialog>
|
|
|
</template>
|
|
@@ -59,6 +59,7 @@ const checkList = ref([0, 3])
|
|
|
/** 打开弹窗 */
|
|
|
const open = async (id: Number, type: string) => {
|
|
|
dialogType.value = type
|
|
|
+ checkList.value = [0, 3] // 默认选中
|
|
|
dialogVisible.value = true
|
|
|
getData(id)
|
|
|
}
|
|
@@ -70,6 +71,16 @@ const getData = async (id) => {
|
|
|
info.value = data
|
|
|
}
|
|
|
|
|
|
+const handleSubmitConfirm = async () => {
|
|
|
+ if (!checkList.value?.length) {
|
|
|
+ // 权限设置提示
|
|
|
+ await message.delConfirm('未给企业设置发布职位权限,是否确定继续提交?')
|
|
|
+ handleSubmit()
|
|
|
+ } else {
|
|
|
+ handleSubmit()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const handleSubmit = async () => {
|
|
|
try {
|
|
|
await EnterpriseRegisterApi.passEnterpriseRegister({ id: info.value?.id, reason: '', pubJobTypePerm: checkList.value })
|