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"
import { AccountLogin, getAuths, getUserInfo } from "@api/sys.account"
// import { SUPPER_ADMIN } from '@/common/constants'
import { localRoutes } from "@/router/routes"
import { Message } from "element-ui"
import router from "@/router"
import md5 from "js-md5"
export default {
namespaced: true,
......@@ -114,10 +116,21 @@ export default {
// ? routeAll.map((i) => i.authId)
// : res.map((i) => i.authId)
// if (targetRoutes.length === 0) {
// this.$message.warning("无权限,请联系管理员")
// return reject("无权限")
// }
if (targetRoutes.length === 0) {
// 显示提示
// 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(userInfo.beSuper, "userInfo.beSuper")
// console.log(targetRoutes, "targetRoutes")
......
......@@ -213,6 +213,7 @@ export default {
this.activeName = this.formData.activityCycleResponses
? this.formData.activityCycleResponses[0].id
: ""
this.handleTextBoxFocus()
console.log(this.formData)
},
......
......@@ -114,9 +114,9 @@
<div class="time">
{{
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>
......@@ -530,6 +530,12 @@ export default {
this.$message.warning("请输入评选周期名称")
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({
activityId: this.currentRow.id,
cycleName: this.cycleName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!