Commit 8496db72 by wangzhihui

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into SAAS+V5.3.0-1117
2 parents 408f335a 415e64a0
...@@ -2,6 +2,8 @@ import util from "@/libs/util.js" ...@@ -2,6 +2,8 @@ import util from "@/libs/util.js"
import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account" import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account"
// import { SUPPER_ADMIN } from '@/common/constants' // import { SUPPER_ADMIN } from '@/common/constants'
import { localRoutes } from "@/router/routes" import { localRoutes } from "@/router/routes"
import { Message } from "element-ui"
import router from "@/router"
import md5 from "js-md5" import md5 from "js-md5"
export default { export default {
namespaced: true, namespaced: true,
...@@ -114,10 +116,21 @@ export default { ...@@ -114,10 +116,21 @@ export default {
// ? routeAll.map((i) => i.authId) // ? routeAll.map((i) => i.authId)
// : res.map((i) => i.authId) // : res.map((i) => i.authId)
// if (targetRoutes.length === 0) { if (targetRoutes.length === 0) {
// this.$message.warning("无权限,请联系管理员") // 显示提示
// return reject("无权限") // Message({
// } // message: "暂无权限,请联系管理员",
// type: "error",
// duration: 5 * 1000
// })
// setTimeout(() => {
// window.location.reload()
// }, 5000)
// window.location.reload()
// router.replace("/login")
// this.$message.error("无权限,请联系管理员")
return reject("暂无权限,请联系管理员")
}
// console.log(res, "res") // console.log(res, "res")
// console.log(userInfo.beSuper, "userInfo.beSuper") // console.log(userInfo.beSuper, "userInfo.beSuper")
// console.log(targetRoutes, "targetRoutes") // console.log(targetRoutes, "targetRoutes")
......
...@@ -213,6 +213,7 @@ export default { ...@@ -213,6 +213,7 @@ export default {
this.activeName = this.formData.activityCycleResponses this.activeName = this.formData.activityCycleResponses
? this.formData.activityCycleResponses[0].id ? this.formData.activityCycleResponses[0].id
: "" : ""
this.handleTextBoxFocus()
console.log(this.formData) console.log(this.formData)
}, },
......
...@@ -114,9 +114,9 @@ ...@@ -114,9 +114,9 @@
<div class="time"> <div class="time">
{{ {{
currentRow.startTime currentRow.startTime
? dayjs(currentRow.startTime).format("YYYY-MM-DD HH:mm:ss") + ? dayjs(currentRow.startTime).format("YYYY-MM-DD HH:mm") +
" 至 " + " 至 " +
dayjs(currentRow.endTime).format("YYYY-MM-DD HH:mm:ss") dayjs(currentRow.endTime).format("YYYY-MM-DD HH:mm")
: "-" : "-"
}} }}
</div> </div>
...@@ -530,6 +530,12 @@ export default { ...@@ -530,6 +530,12 @@ export default {
this.$message.warning("请输入评选周期名称") this.$message.warning("请输入评选周期名称")
return return
} }
const reg = /^[a-zA-Z0-9\u4e00-\u9fa5_()()]*$/
console.log(reg.test(this.cycleName))
if (!reg.test(this.cycleName)) {
this.$message.error("活动名称只能包含中文、英文、数字、下划线、括号")
return
}
addActivityCycle({ addActivityCycle({
activityId: this.currentRow.id, activityId: this.currentRow.id,
cycleName: this.cycleName cycleName: this.cycleName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!