Commit 678596fe authored by 高宇's avatar 高宇

删除菜单

parent c1c5ce77
......@@ -71,7 +71,7 @@
<el-col :span="12">
<el-form-item style="flex-basis: 50%;">
<el-button type="primary" @click="submitForm">提交</el-button>
<el-button style="padding: 8px 7px;" icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
<el-button @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -63,8 +63,7 @@
</el-table-column>
<el-table-column label="pgx" prop="pgx">
<template slot-scope="scope">
<span v-if="scope.row.pgx === '001'">压缩</span>
<span v-if="scope.row.pgx === '002'">排水</span>
<span>{{replace(scope.row.pgx)}}</span>
</template>
</el-table-column>
<el-table-column label="ptype" prop="ptype">
......@@ -209,6 +208,7 @@ export default {
name: 'BasicInfo',
data() {
return {
dictList: [],
// 遮罩层
loading: true,
// 选中数组
......@@ -312,18 +312,32 @@ export default {
next()
},
created() {
this.init()
if (this.$store.getters.searchParams[this.$route.path]) {
const { searchParams } = this.$store.getters; const { path } = this.$route
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
this.queryParams = { ...param }
}
this.getList()
this.init()
// this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
// this.statusOptions = response.data;
// });
},
methods: {
replace(value) {
return this.dictList.find(item => item.dictValue === value).dictLabel
},
getCodeDict() {
const obj = {
key: 'GX_CODE'
}
getDictData(obj).then(res => {
console.log('res', res)
if (res.code === 200 && res.data !== null) {
this.dictList = res.data
}
})
},
// 回车跳转下一个输入框
focusNextInput(form) {
this.$nextTick(() => {
......@@ -343,6 +357,7 @@ export default {
},
// 初始化要调的接口
init() {
this.getCodeDict()
this.getDict()
},
/** 查询基础信息列表 */
......
......@@ -591,6 +591,7 @@ export default {
// 处理弹窗里的勾选确定
handleCance() {
this.loadingDetail = true
this.monthDate = false
this.title = '权限验证'
if (this.multipleSelection.length === 0) {
this.$message.warning('请至少选择一个要处理的设备')
......@@ -711,7 +712,7 @@ export default {
this.openHandle = true
}
})
this.title = '权限验证'
this.title = '处理'
this.loadingDetail = true
},
......
......@@ -78,7 +78,7 @@
<el-col :span="12">
<el-form-item style="flex-basis: 50%;">
<el-button type="primary" @click="submitForm">提交</el-button>
<el-button style="padding: 8px 7px;" icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
<el-button @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -56,7 +56,7 @@
<el-col :span="12">
<el-form-item style="flex-basis: 50%;">
<el-button type="primary" @click="submitForm">提交</el-button>
<el-button style="padding: 8px 7px;" icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
<el-button @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -415,6 +415,7 @@ export default {
name: 'Draw',
data() {
return {
isClose: false,
number: '',
menu: false,
menuform: {
......@@ -559,6 +560,9 @@ export default {
this.loadingDetail = false
this.openHandle = true
this.loginform.password = ''
if (!this.isClose) {
this.radio1 = '2'
}
},
handlemenuConfirm() {
const obj = {
......@@ -637,6 +641,7 @@ export default {
}
checkPermission(obj).then(res => {
if (res.code === 200) {
this.isClose = true
this.openLogin = false
if (this.radio1 === '1') {
this.$message.success('已切换到设备库')
......@@ -666,6 +671,7 @@ export default {
}
})
} else if (res.code === null) {
this.isClose = false
this.$message.warning(res.message)
if (this.radio1 === '2') {
this.radio1 = '1'
......@@ -674,6 +680,8 @@ export default {
}
this.loadingDetail = false
this.openHandle = true
this.loginform.password = ''
this.openLogin = false
}
})
},
......@@ -681,6 +689,7 @@ export default {
// 处理弹窗里的勾选确定
handleCance() {
this.loadingDetail = true
this.monthDate = false
if (this.multipleSelection.length === 0) {
this.$message.warning('请至少选择一个要处理的设备')
} else {
......
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