Commit d9c31722 authored by 刘宇扬's avatar 刘宇扬

搜索bug

parent 3b01e83e
......@@ -193,6 +193,8 @@ export default {
data() {
return {
// TODO: 表单里的单项详情参数
equipmentList: '',
handleSelectionChange: '',
singleDetails: {
equipmentName: '',
equipmentCode: '',
......@@ -369,17 +371,6 @@ export default {
this.title = '详情信息'
this.openDetails = !this.openDetails
},
handelTab(i, e) {
const that = this
if (!that.$refs['input' + i]) {
return
}
that.$nextTick(() => {
e.target.blur()
const index = i + 1
that.$refs['input' + index].focus()
})
},
/** 查询角色列表 */
getList() {
this.loading = true
......@@ -391,6 +382,15 @@ export default {
}
)
},
resetQuery() {
this.queryParams = {
page: 1,
rows: 10,
ptype: 1
}
this.resetForm('queryForm')
this.handleQuery()
},
// 取消按钮
cancel() {
this.open = false
......
......@@ -205,11 +205,9 @@
<script>
import {
addRole,
changeRoleStatus,
dataScope,
getRole,
updateRole
getRole
} from '@/api/system/role'
import { listdevice, deletedevice, exportdevice, getDetailById, updatadevice, add } from '@/api/magnagement'
import { roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect } from '@/api/system/menu'
......@@ -219,6 +217,7 @@ export default {
data() {
return {
// TODO: 表单里的单项详情参数
equipmentList: '',
singleDetails: {
equipmentName: '',
equipmentCode: '',
......@@ -536,7 +535,11 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
// this.dateRange = []
this.queryParams = {
page: 1,
rows: 10,
ptype: 1
}
this.resetForm('queryForm')
this.handleQuery()
},
......
......@@ -223,6 +223,7 @@ export default {
// 是否显示弹出层(数据详情)
openDetails: false,
// // TODO: 模拟测试数据
equipmentList: '',
typeParent: 'text',
typePrimary: 'primary',
typeSuccess: 'success',
......@@ -530,7 +531,11 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
// this.dateRange = []
this.queryParams = {
page: 1,
rows: 10,
ptype: 1
}
this.resetForm('queryForm')
this.handleQuery()
},
......
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