Commit 683d858c by li_hongchao

逻辑分库用户信息更多显示偶尔会不弹窗,扩大事件监听区域

逻辑分库操作保存成功后,添加成功吐司提示
parent d8ba36aa
......@@ -50,7 +50,7 @@ var _IS_SHOW_TIP = true
// 初始化参数
let initConfig = (config) => {
// logger.info('http--initConfig:', config)
logger.info('http--initConfig:', config)
if (config.url.indexOf('/login/myLoginForm') <= 0) {
const token = localStorage.getItem(ACCESS_TOKEN)
if (token) {
......@@ -80,9 +80,12 @@ let initConfig = (config) => {
if (config[HttpConfig._TYPE.LOADING] !== false) {
showLoading(config[HttpConfig._TYPE.LOADING_TARGET]) // 如果设置了targer,使用设置的target,比如el-table
}
logger.info('_IS_SHOW_TIP', _IS_SHOW_TIP)
if (config[HttpConfig._TYPE.TIP]) {
_IS_SHOW_TIP = config[HttpConfig._TYPE.TIP]
// console.log('initConfig', config)
}
logger.info('_IS_SHOW_TIP', _IS_SHOW_TIP)
console.log('initConfig', config)
return config
}
......@@ -215,6 +218,10 @@ let handleError = (response) => {
break
}
showTip(response, message, type)
}
let showTip = (response, message, type) => {
if (response[HttpConfig._TYPE.TIP] !== false) {
Message({
message: message,
......@@ -226,6 +233,7 @@ let handleError = (response) => {
let parseResponse = (resolve, reject, response) => {
if (response && response.code === 0) {
resolve(response)
showTip(response, '保存成功!', 'success')
} else {
handleError(response)
resolve(response)
......
......@@ -48,7 +48,8 @@
:open-delay="300"
v-if="scope.row.groups && scope.row.groups.length > 4">
<span style="margin-left: 5px"
<span style="margin-left: 5px;padding: 10px;"
v-if="scope.row.groups && scope.row.groups.length > 4"
@mouseenter.stop="showMoreYhView(scope.$index)"
@mouseout.stop="showMoreYhView(scope.$index,true)">...</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment