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

搜索bug

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