Mod aaa-12 修改配置文件,修改字段定义
SOL: 修改人:maxiaonan 检视人:maxiaonan
This commit is contained in:
parent
aaeafa3f83
commit
245a0f7312
|
@ -12,7 +12,7 @@ module.exports = {
|
||||||
assetsPublicPath: '/',
|
assetsPublicPath: '/',
|
||||||
proxyTable: {
|
proxyTable: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://192.168.100.98:8181/',
|
target: `http://${this.targetUrl}:8181/`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': '/'
|
'^/api': '/'
|
||||||
|
@ -20,8 +20,9 @@ module.exports = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
targetUrl: '172.28.72.152',
|
||||||
// Various Dev Server settings
|
// Various Dev Server settings
|
||||||
host: 'localhost', // can be overwritten by process.env.HOST
|
host: '172.28.72.152', // can be overwritten by process.env.HOST
|
||||||
port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
||||||
autoOpenBrowser: false,
|
autoOpenBrowser: false,
|
||||||
errorOverlay: true,
|
errorOverlay: true,
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
@close="close"
|
@close="close"
|
||||||
:visible="resourceInfoVisiable"
|
:visible="resourceInfoVisiable"
|
||||||
style="height: calc(100% - 55px);overflow: auto;padding-bottom: 53px;">
|
style="height: calc(100% - 55px);overflow: auto;padding-bottom: 53px;">
|
||||||
<p><a-icon type="crown" /> 资源名称:{{resourceInfoData.roleName}}</p>
|
<p><a-icon type="crown" /> 资源名称:{{resourceInfoData.name}}</p>
|
||||||
<p :title="resourceInfoData.remark"><a-icon type="book" /> 资源描述:{{resourceInfoData.remark}}</p>
|
<p :title="resourceInfoData.remark"><a-icon type="book" /> 资源描述:{{resourceInfoData.description}}</p>
|
||||||
<p><a-icon type="clock-circle" /> 创建时间:{{resourceInfoData.createTime}}</p>
|
<p><a-icon type="clock-circle" /> 创建时间:{{resourceInfoData.createTime}}</p>
|
||||||
<p><a-icon type="clock-circle" /> 修改时间:{{resourceInfoData.modifyTime? resourceInfoData.modifyTime : '暂未修改'}}</p>
|
<p><a-icon type="clock-circle" /> 修改时间:{{resourceInfoData.modifyTime? resourceInfoData.modifyTime : '暂未修改'}}</p>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
:visible="roleInfoVisiable"
|
:visible="roleInfoVisiable"
|
||||||
style="height: calc(100% - 55px);overflow: auto;padding-bottom: 53px;">
|
style="height: calc(100% - 55px);overflow: auto;padding-bottom: 53px;">
|
||||||
<p><a-icon type="crown" /> 角色名称:{{roleInfoData.roleid}}</p>
|
<p><a-icon type="crown" /> 角色名称:{{roleInfoData.roleid}}</p>
|
||||||
<p :title="roleInfoData.remark"><a-icon type="book" /> 角色描述:{{roleInfoData.description}}</p>
|
<p :title="roleInfoData.description"><a-icon type="book" /> 角色描述:{{roleInfoData.description}}</p>
|
||||||
<p><a-icon type="clock-circle" /> 创建时间:{{roleInfoData.createTime}}</p>
|
<p><a-icon type="clock-circle" /> 创建时间:{{roleInfoData.createTime}}</p>
|
||||||
<p><a-icon type="clock-circle" /> 修改时间:{{roleInfoData.modifyTime? roleInfoData.modifyTime : '暂未修改'}}</p>
|
<p><a-icon type="clock-circle" /> 修改时间:{{roleInfoData.modifyTime? roleInfoData.modifyTime : '暂未修改'}}</p>
|
||||||
<!-- <p><a-icon type="trophy" /> 所拥有的权限:-->
|
<!-- <p><a-icon type="trophy" /> 所拥有的权限:-->
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
'roleid',
|
'roleid',
|
||||||
{rules: [{ required: true, message: '请选择角色' }]}
|
{rules: [{ required: true, message: '请选择角色' }]}
|
||||||
]">
|
]">
|
||||||
<a-select-option v-for="r in roleData" :key="r.roleId.toString()">{{r.roleName}}</a-select-option>
|
<a-select-option v-for="r in roleData" :key="r.roleId.toString()">{{r.name}}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label='域' v-bind="formItemLayout">
|
<a-form-item label='域' v-bind="formItemLayout">
|
||||||
|
@ -130,13 +130,10 @@ export default {
|
||||||
this.form.setFieldsValue(obj)
|
this.form.setFieldsValue(obj)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (user.roleId) {
|
if (user.roleid) {
|
||||||
this.form.getFieldDecorator('roleId')
|
this.form.getFieldDecorator('roleid')
|
||||||
let roleArr = user.roleId.split(',')
|
let roleArr = user.roleid.split(',')
|
||||||
this.form.setFieldsValue({'roleId': roleArr})
|
this.form.setFieldsValue({'roleid': roleArr})
|
||||||
}
|
|
||||||
if (user.deptId) {
|
|
||||||
this.userDept = [user.deptId]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onDeptChange (value) {
|
onDeptChange (value) {
|
||||||
|
@ -147,7 +144,6 @@ export default {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let user = this.form.getFieldsValue()
|
let user = this.form.getFieldsValue()
|
||||||
user.roleid = user.roleid
|
|
||||||
user.userid = this.userid
|
user.userid = this.userid
|
||||||
this.$bodyRequest('put', 'auth/v1/users', {
|
this.$bodyRequest('put', 'auth/v1/users', {
|
||||||
...user
|
...user
|
||||||
|
@ -155,8 +151,8 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.$emit('success')
|
this.$emit('success')
|
||||||
// 如果修改用户就是当前登录用户的话,更新其state
|
// 如果修改用户就是当前登录用户的话,更新其state
|
||||||
if (user.username === this.currentUser.username) {
|
if (user.name === this.currentUser.name) {
|
||||||
this.$get(`auth/v1/users/${user.username}`).then((r) => {
|
this.$get(`auth/v1/users/${user.userid}`).then((r) => {
|
||||||
this.setUser(r.data)
|
this.setUser(r.data)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue