no message

This commit is contained in:
A1300399510
2024-01-03 15:28:16 +08:00
parent e5e3d10123
commit 4665ee5043
64 changed files with 769 additions and 731 deletions

View File

@@ -110,15 +110,6 @@ import { ElMessage } from "element-plus"
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
const router = useRouter()
const pickerOptions = {
disabledDate(time) {
const today = new Date()
const date = new Date(time)
console.log(date > today)
return date > today
},
}
const setDisabled = time => {
return time.getTime() > Date.now() // 可选历史天、可选当前天、不可选未来天
}
@@ -126,6 +117,8 @@ const setDisabled = time => {
onMounted(() => {
getInit()
})
//
// const
let token = ""
const getInit = () => {
publishInitHttp().then(res => {
@@ -138,10 +131,7 @@ const getInit = () => {
let interviewtime = data["info"]["interviewtime"] || 0
if (interviewtime) data["info"]["interviewtime"] = handleDate(interviewtime)
console.log(interviewtime, "interviewtime")
info.value = { ...data["info"] }
console.log(token)
})
}
@@ -232,7 +222,6 @@ const cutVisible = () => {
// 提交发布
const submit = (status = 1) => {
console.log(info.value, "status", status)
publishSubmitHttp({ info: info.value, token, status }).then(res => {
if (res.code != 200) {
ElMessage.error(res.message)
@@ -240,24 +229,21 @@ const submit = (status = 1) => {
}
const data = res.data
console.log("data", data)
ElMessage.success(res.message)
router.push(`/details/${data["uniqid"]}`)
// router.push(`/details/${data["uniqid"]}`)
if (status == 0) goToURL(`/index.html`, false)
else goToURL(`/details/${data["uniqid"]}`, false)
})
}
// 放弃保存 跳跃上一页或者首页
const abandonSaving = () => {
// console.log("router.currentRoute.value.meta.previousPage", router.currentRoute.value.meta.previousPage)
if (router.currentRoute.value.meta.previousPage) router.go(-1)
else router.push("./index.html") // 跳转到首页
else goToURL("./index.html") // 跳转到首页
// else router.push("./index.html") // 跳转到首页
}
// 保存并退出
const saveAndExit = () => {
console.log("saveAndExit")
}
</script>
<style scoped lang="less">