修改展示数据
This commit is contained in:
parent
e5625d8ffc
commit
252f9e44a2
|
|
@ -9,7 +9,7 @@ import { encryptCBC, decryptCBC } from '@/utils/aescbc'
|
|||
const service = axios.create({
|
||||
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
|
||||
// withCredentials: true, // send cookies when cross-domain requests
|
||||
timeout: 10000 // request timeout
|
||||
timeout: 20000 // request timeout
|
||||
})
|
||||
|
||||
// request interceptor
|
||||
|
|
@ -42,7 +42,7 @@ service.interceptors.request.use(config => {
|
|||
if (getToken() && !isToken) {
|
||||
config.headers['Authorization'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
}
|
||||
|
||||
|
||||
//参数加密
|
||||
if (config.method === 'post' && config.data) {
|
||||
if(config.headers['decrypt']!='decrypt'){
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@
|
|||
</el-dialog>
|
||||
<el-dialog :title="title2" :visible.sync="dialogVisible2" width="520px">
|
||||
<el-form ref="dataForm" label-position="right" label-width="110px" >
|
||||
|
||||
|
||||
<el-form-item label="告警内容:" prop="warnError">
|
||||
<el-input type="textarea" v-model="formData.warnError" placeholder="告警类型" :maxlength="250" :readonly="true"/>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible2 = false" type="primary">
|
||||
|
|
@ -47,17 +47,17 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
// console.log(this.$route.query.formLogin)
|
||||
if(this.$route.query.formLogin=='true'){
|
||||
console.log(this.$route.query.formLogin)
|
||||
if(this.$route.query.formLogin=='true' || this.$route.query.formLogin){
|
||||
this.checkAlarm()
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
checkAlarm(){
|
||||
let nickName = sessionStorage.getItem('nickName')
|
||||
// console.log(nickName)
|
||||
if(nickName=='sjry'){
|
||||
console.log(nickName)
|
||||
if(nickName=='wb_huzw3813'){
|
||||
logWarn().then((response) => {
|
||||
if(response.code==200){
|
||||
this.formData = response.data;
|
||||
|
|
@ -70,17 +70,17 @@ export default {
|
|||
this.title2 = '日志容量告警'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
handleClosedModal(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@ export default {
|
|||
}
|
||||
return {
|
||||
loginForm: {
|
||||
username: 'guest',
|
||||
password: 'admin@123'
|
||||
username: '',
|
||||
password: ''
|
||||
},
|
||||
loginRules: {
|
||||
username: [{ required: true,message:"请输入用户名", trigger: 'blur', }],
|
||||
|
|
|
|||
|
|
@ -35,8 +35,9 @@ module.exports = {
|
|||
open: true,
|
||||
proxy: {
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
// target: `http://36.33.26.201:19090/zhgd`,
|
||||
target: `http://127.0.0.1:18080/zhgd`,
|
||||
// target: `http://36.33.26.201:19090/zhgd`,
|
||||
target: `http://10.138.255.233:18080/zhgd`,
|
||||
//target: `http://127.0.0.1:18080/zhgd`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
|
|
|
|||
Loading…
Reference in New Issue