Commit 415e64a0 by cen

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 7ebaa0c2 c55a5e80
...@@ -885,6 +885,7 @@ export default { ...@@ -885,6 +885,7 @@ export default {
} }
this.formObj[item.name] = "" this.formObj[item.name] = ""
this.setEditOptionIndex(name, -1)
this.$emit("handleEditSelectTypeConfirm", data) this.$emit("handleEditSelectTypeConfirm", data)
} else { } else {
this.setShowOptionInput(name, false) this.setShowOptionInput(name, false)
......
...@@ -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")
......
...@@ -195,7 +195,7 @@ export default { ...@@ -195,7 +195,7 @@ export default {
} }
}, },
{ {
label: "已用金额", label: "已用额度",
prop: "usageLimit", prop: "usageLimit",
minWidth: 120, minWidth: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
......
...@@ -471,9 +471,16 @@ export default { ...@@ -471,9 +471,16 @@ export default {
this.getOptionsList(this, "isEntryFormData", false, name) this.getOptionsList(this, "isEntryFormData", false, name)
this.isEntryForm[typeName] = this.isEntryForm[typeName] =
this.baseData[optionsName].find((item) => { this.filterAttribute(
return item.itemValue == this.isEntryForm[name] optionsName,
}).itemName || "" "itemValue",
"itemName",
this.isEntryForm[name]
) || this.isEntryForm[name]
// this.isEntryForm[typeName] =
// this.baseData[optionsName].find((item) => {
// return item.itemValue == this.isEntryForm[name]
// }).itemName || ""
}, },
async handleEditSelectTypeConfirm(data) { async handleEditSelectTypeConfirm(data) {
let { let {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!