Commit 4d15ad62 authored by zhuangxinwei's avatar zhuangxinwei

修改bug

parent e1005206
......@@ -89,7 +89,7 @@ export function updateMenu(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/system/menu/update/'+ businessId,
url: '/system/menu/update/' + businessId,
method: 'put',
data,
headers: {
......
......@@ -210,6 +210,7 @@ export default {
if (response.code === 200) {
this.list = []
this.total = 0
this.$message.error(response.message)
this.loading = false
} else {
this.list = response.rows.map(item => {
......
......@@ -171,7 +171,7 @@ export default {
ipaddr: undefined,
username: undefined,
status: undefined,
loginTime: ''
loginTime: undefined
}
}
},
......@@ -207,6 +207,7 @@ export default {
if (response.code === 200) {
this.list = []
this.total = 0
this.$message.error(response.message)
this.loading = false
} else {
this.list = response.rows
......
......@@ -147,7 +147,6 @@
<script>
import { list, delOperLog, cleanOperLog, exportOperLog } from '@/api/monitor/operLog'
import { delErrLog } from '@/api/monitor/errorLog'
export default {
name: 'Operlog',
......@@ -219,6 +218,7 @@ export default {
if (response.code === 200) {
this.list = []
this.total = 0
this.$message.error(response.message)
this.loading = false
} else {
this.list = response.rows.map(item => {
......
......@@ -186,7 +186,16 @@ export default {
// 是否显示弹出层
open: false,
// 状态数据字典
statusOptions: [],
statusOptions: [
{
dictLabel: '正常',
dictValue: '1'
},
{
dictLabel: '停用',
dictValue: '0'
}
],
// 查询参数
queryParams: {
deptName: undefined,
......@@ -235,9 +244,9 @@ export default {
this.queryParams = { ...param }
}
this.getList()
this.getDicts('sys_normal_disable'.toUpperCase()).then(response => {
this.statusOptions = response.data
})
// this.getDicts('sys_normal_disable'.toUpperCase()).then(response => {
// this.statusOptions = response.data
// })
},
methods: {
/** 查询部门列表 */
......
......@@ -305,7 +305,7 @@ export default {
return {
showSearch: '',
getOptions: '',
statusOptions: '',
// statusOptions: '',
//状态默认选择
radio: '1',
test: '',
......@@ -328,16 +328,16 @@ export default {
// 是否显示弹出层
open: false,
// 状态数据字典
// statusOptions: [
// {
// dictLabel: '正常',
// dictValue: '1'
// },
// {
// dictLabel: '停用',
// dictValue: '0'
// }
// ],
statusOptions: [
{
dictLabel: '正常',
dictValue: '1'
},
{
dictLabel: '停用',
dictValue: '0'
}
],
// 日期范围
dateRange: [],
// 查询参数
......@@ -387,9 +387,9 @@ export default {
this.queryParams = { ...param }
}
this.getList()
this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
this.statusOptions = response.data
})
// this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
// this.statusOptions = response.data
// })
// optionselect().then(response => {
// this.options = response.data
// })
......
......@@ -507,18 +507,19 @@ export default {
})
},
handleStatusChange(row) {
row.children = []
const text = row.flag === '0' ? '停用' : '启用'
this.$confirm('确认要' + text + '该菜单吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
return updateMenu(row)
}).then(() => {
updateMenu(row).then(() => {
this.$message({
message: text + '成功',
type: 'success'
})
})
}).catch(function() {
row.flag = row.flag === '0' ? '1' : '0'
})
......
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