|
@@ -42,8 +42,13 @@ export default {
|
|
|
userId: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
+ },
|
|
|
+ customerRoleDictValue: {
|
|
|
+ type: Object,
|
|
|
+ default: function () {
|
|
|
+ return {}
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -66,11 +71,10 @@ export default {
|
|
|
console.log(res, 'rrrrrrrrr')
|
|
|
if (res.status == 200) {
|
|
|
_this.$message.success(res.message)
|
|
|
- location.reload()
|
|
|
- // _this.$emit('refresh')
|
|
|
// _this.$router.push({ path: `/userInfo/userManageList/list` })
|
|
|
setTimeout(function () {
|
|
|
_this.isShow = false
|
|
|
+ location.reload()
|
|
|
}, 300)
|
|
|
}
|
|
|
})
|
|
@@ -82,14 +86,22 @@ export default {
|
|
|
openUseridentityMoadl (newValue, oldValue) {
|
|
|
this.isShow = newValue
|
|
|
},
|
|
|
- isShow (val) {
|
|
|
+ isShow (newValue, oldValue) {
|
|
|
console.log(this.userId)
|
|
|
- if (!val) {
|
|
|
+ if (newValue) {
|
|
|
+ this.formData = Object.assign({}, this.customerRoleDictValue)
|
|
|
+ console.log(this.formData, 'this.formData')
|
|
|
+ } else {
|
|
|
this.$emit('close')
|
|
|
- } else {
|
|
|
- this.form.resetFields()
|
|
|
- }
|
|
|
+ }
|
|
|
+ // if (!newValue) {
|
|
|
+ // this.$emit('close')
|
|
|
+ // } else {
|
|
|
+ // this.form.resetFields()
|
|
|
+ // this.formData = Object.assign({}, this.customerRoleDictValue)
|
|
|
+ // }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|