个人中心修改信息更换接口
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-12-25 17:50:15 +08:00
parent 57a8bb4e24
commit 8225eacb7e
3 changed files with 9 additions and 7 deletions

View File

@ -44,6 +44,13 @@ export function updateUser(param) {
data: param data: param
}) })
} }
export function updateUserBasicInfo(param) {
return request({
url: `/user/updateUserBasicInfo`,
method: 'put',
data: param
})
}
export function getUser(params) { export function getUser(params) {
return request({ return request({

View File

@ -82,7 +82,7 @@
</div> </div>
</template> </template>
<script> <script>
import { updateUser } from "@/api/admin.js"; import { updateUserBasicInfo } from "@/api/admin.js";
export default { export default {
name: "mine", name: "mine",
props: { props: {
@ -179,7 +179,7 @@ export default {
// this.user.OrganizationName = 'ZhiZhun' // this.user.OrganizationName = 'ZhiZhun'
// } // }
if (this.user.Id) { if (this.user.Id) {
updateUser(this.user) updateUserBasicInfo(this.user)
.then((res) => { .then((res) => {
this.isDisabled = false; this.isDisabled = false;
this.$message.success( this.$message.success(

View File

@ -116,11 +116,6 @@ export default {
this.siteData = row this.siteData = row
this.config.visible = true this.config.visible = true
this.getList() this.getList()
console.log(
this.hasPermi([
'trials:trials-panel:setting:personnel-manage:edit-site',
])
)
}, },
// dicomAE // dicomAE
async getList() { async getList() {