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

删除菜单

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