bug修改
This commit is contained in:
parent
4028516e13
commit
790e98df98
|
@ -6,12 +6,12 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
# url: jdbc:oracle:thin:@127.0.0.1:1521/orcl
|
url: jdbc:oracle:thin:@218.58.79.146:17521/orcl
|
||||||
# username: root
|
username: system
|
||||||
# password: password
|
password: oracle
|
||||||
url: jdbc:oracle:thin:@10.169.28.44:1521/orcl
|
# url: jdbc:oracle:thin:@10.169.28.44:1521/orcl
|
||||||
username: spg_voc
|
# username: spg_voc
|
||||||
password: SPG$spgvoc_24!
|
# password: SPG$spgvoc_24!
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
# 从数据源开关/默认关闭
|
# 从数据源开关/默认关闭
|
||||||
|
|
|
@ -72,18 +72,19 @@ spring:
|
||||||
enabled: true
|
enabled: true
|
||||||
# redis 配置
|
# redis 配置
|
||||||
redis:
|
redis:
|
||||||
# 地址
|
host: 192.168.1.115
|
||||||
# host: 192.168.31.105
|
|
||||||
host: 127.0.0.1
|
|
||||||
# 端口,默认为6379
|
|
||||||
port: 6379
|
port: 6379
|
||||||
# 数据库索引
|
password: Liwen073898!
|
||||||
database: 0
|
# redis:
|
||||||
# 密码
|
# # 地址
|
||||||
password: 123456
|
# host: 127.0.0.1
|
||||||
# password: admin123!
|
# port: 6379
|
||||||
|
# # 数据库索引
|
||||||
|
# database: 0
|
||||||
|
# # 密码
|
||||||
|
# password: 123456
|
||||||
# 连接超时时间
|
# 连接超时时间
|
||||||
timeout: 10s
|
# timeout: 10s
|
||||||
lettuce:
|
lettuce:
|
||||||
pool:
|
pool:
|
||||||
# 连接池中的最小空闲连接
|
# 连接池中的最小空闲连接
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
|
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" icon="el-icon-thumb" @click="handleUpdate(scope.row)">下发通知</el-button>
|
<el-button v-if="checkRole(['admin', 'notice'])" size="mini" type="text" icon="el-icon-thumb" @click="handleUpdate(scope.row)">下发通知</el-button>
|
||||||
<!--v-if="userName == scope.row.dealUser" -->
|
<!--v-if="userName == scope.row.dealUser" -->
|
||||||
<el-button size="mini" type="text" icon="el-icon-dish-1" @click="handleAlarm(scope.row)">处理报警</el-button>
|
<el-button size="mini" type="text" icon="el-icon-dish-1" @click="handleAlarm(scope.row)">处理报警</el-button>
|
||||||
<el-button size="mini" type="text" icon="el-icon-location-information"
|
<el-button size="mini" type="text" icon="el-icon-location-information"
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { checkRole } from "@/utils/permission";
|
||||||
import { listAlarm } from "@/api/demostrate/monitor";
|
import { listAlarm } from "@/api/demostrate/monitor";
|
||||||
import sendMsg from "@/views/demostrate/alarm/sendMsg";
|
import sendMsg from "@/views/demostrate/alarm/sendMsg";
|
||||||
import dealAlarm from "@/views/demostrate/alarm/dealAlarm";
|
import dealAlarm from "@/views/demostrate/alarm/dealAlarm";
|
||||||
|
@ -246,6 +246,7 @@ export default {
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
checkRole,
|
||||||
openDetailWindows(row) {
|
openDetailWindows(row) {
|
||||||
this.detailParams = row
|
this.detailParams = row
|
||||||
this.isOpenDetail = true
|
this.isOpenDetail = true
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--左侧-->
|
<!--左侧-->
|
||||||
<div v-if="showBeside" class="reservoir-left">
|
<div class="reservoir-left">
|
||||||
|
|
||||||
<left />
|
<left />
|
||||||
</div>
|
</div>
|
||||||
<!--右侧-->
|
<!--右侧-->
|
||||||
<div v-if="showBeside" class="reservoir-right">
|
<div class="reservoir-right">
|
||||||
<right />
|
<right />
|
||||||
</div>
|
</div>
|
||||||
<div class="reservoir-map">
|
<div class="reservoir-map">
|
||||||
|
|
|
@ -606,7 +606,8 @@ export default {
|
||||||
this.roleOptions = response.roles;
|
this.roleOptions = response.roles;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加用户";
|
this.title = "添加用户";
|
||||||
this.form.password = this.initPassword;
|
// this.form.password = this.initPassword;
|
||||||
|
this.form.password ='Gkjt123...';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
|
@ -642,9 +643,7 @@ export default {
|
||||||
if (!hasUpperCase || !hasLowerCase || !hasNumber || !hasSpecialCharacter) {
|
if (!hasUpperCase || !hasLowerCase || !hasNumber || !hasSpecialCharacter) {
|
||||||
this.$message.error("密码不符合要求:密码长度10-20位,包含大小写、数字以及特殊字符");
|
this.$message.error("密码不符合要求:密码长度10-20位,包含大小写、数字以及特殊字符");
|
||||||
} else {
|
} else {
|
||||||
let values =encrypt(value )
|
resetUserPwd(row.userId, value).then(response => {
|
||||||
resetUserPwd(row.userId, values).then(response => {
|
|
||||||
debugger
|
|
||||||
this.$modal.msgSuccess("密码修改成功!");
|
this.$modal.msgSuccess("密码修改成功!");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue