diff --git a/src/views/monitor/log/msg.vue b/src/views/monitor/log/msg.vue
index adf6f1d..2c93ec0 100644
--- a/src/views/monitor/log/msg.vue
+++ b/src/views/monitor/log/msg.vue
@@ -11,7 +11,7 @@
{{ item.name }}
- {{ item.timestamp+' ' }}
+ {{ time(item.timestamp)+' ' }}
{{ item.threadName+' ' }}
{{ item.level+' ' }}
@@ -58,6 +58,9 @@ export default {
clearInterval(this.timer)
},
methods: {
+ time(date) {
+ return parseTime(date)
+ },
initWebSocket() {
this.connection(this)
// 断开重连机制,尝试发送消息,捕获异常发生时重连
diff --git a/src/views/system/menu/module/add.vue b/src/views/system/menu/module/add.vue
index d78414a..bc862ec 100644
--- a/src/views/system/menu/module/add.vue
+++ b/src/views/system/menu/module/add.vue
@@ -87,6 +87,7 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.form.roles = []
const _this = this
this.roleIds.forEach(function(data, index) {
const role = { id: data }
diff --git a/src/views/system/menu/module/edit.vue b/src/views/system/menu/module/edit.vue
index ac387f4..e84e1cd 100644
--- a/src/views/system/menu/module/edit.vue
+++ b/src/views/system/menu/module/edit.vue
@@ -103,6 +103,7 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.form.roles = []
const _this = this
this.roleIds.forEach(function(data, index) {
const role = { id: data }
diff --git a/src/views/system/role/module/add.vue b/src/views/system/role/module/add.vue
index ea9c818..9390c60 100644
--- a/src/views/system/role/module/add.vue
+++ b/src/views/system/role/module/add.vue
@@ -50,6 +50,7 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.form.permissions = []
const _this = this
this.permissionIds.forEach(function(data, index) {
const permission = { id: data }
diff --git a/src/views/system/role/module/edit.vue b/src/views/system/role/module/edit.vue
index a0acb60..1151b8b 100644
--- a/src/views/system/role/module/edit.vue
+++ b/src/views/system/role/module/edit.vue
@@ -68,6 +68,7 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.form.permissions = []
const _this = this
this.permissionIds.forEach(function(data, index) {
const permission = { id: data }
diff --git a/src/views/system/user/module/add.vue b/src/views/system/user/module/add.vue
index cd39282..16adee3 100644
--- a/src/views/system/user/module/add.vue
+++ b/src/views/system/user/module/add.vue
@@ -62,6 +62,7 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.form.roles = []
const _this = this
this.roleIds.forEach(function(data, index) {
const role = { id: data }
diff --git a/src/views/system/user/module/edit.vue b/src/views/system/user/module/edit.vue
index 6dde2f9..21c007d 100644
--- a/src/views/system/user/module/edit.vue
+++ b/src/views/system/user/module/edit.vue
@@ -78,6 +78,7 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
+ this.form.roles = []
const _this = this
this.roleIds.forEach(function(data, index) {
const role = { id: data }