From ab36c0c3dbaa95fa3f94268cfc8b8bb7aae22b80 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期四, 22 九月 2022 10:44:13 +0800
Subject: [PATCH] 新增案件池问题登记
---
src/views/systemSetting/baseSetting/role/updateUser/index.vue | 64 +++++++++++++++++---------------
1 files changed, 34 insertions(+), 30 deletions(-)
diff --git a/src/views/systemSetting/baseSetting/role/updateUser/index.vue b/src/views/systemSetting/baseSetting/role/updateUser/index.vue
index 1231a29..5d2e253 100644
--- a/src/views/systemSetting/baseSetting/role/updateUser/index.vue
+++ b/src/views/systemSetting/baseSetting/role/updateUser/index.vue
@@ -1,19 +1,19 @@
<template>
<div class="updateUser">
- <header>
+ <!-- <header>
<div class="headerTitle">{{updateFlag ? '淇敼瑙掕壊淇℃伅' :'鏌ョ湅瑙掕壊淇℃伅'}}</div>
- </header>
+ </header> -->
<main>
<div class="mainContent">
<el-form ref="user" label-width="140px" autoComplete="on" :model="role" :rules="createRoleRules"
label-position="right">
<!-- 瑙掕壊鍚嶇О -->
- <el-form-item class="optionItem" label="鐢ㄦ埛鍚嶇О:" prop="name">
+ <el-form-item class="optionItem" label="瑙掕壊鍚嶇О:" prop="name">
<el-input v-model="role.name" placeholder="璇峰~鍐欒鑹插悕绉�" :disabled="!updateFlag"></el-input>
</el-form-item>
<!-- 瑙掕壊绫诲瀷 -->
<el-form-item class="optionItems" label="瑙掕壊绫诲瀷:" prop="status">
- <el-select v-model="role.status" placeholder="璇烽�夋嫨鐢ㄦ埛绫诲瀷" :disabled="!updateFlag">
+ <el-select v-model="role.status" placeholder="璇烽�夋嫨瑙掕壊绫诲瀷" :disabled="!updateFlag">
<el-option v-for="item in typeList" :key="item.name" :label="item.name" :value="item.value"
:disabled="item.disabled">
</el-option>
@@ -64,6 +64,7 @@
};
return {
role: {
+ id:'',
name: '',
status: '',
description: '',
@@ -102,16 +103,19 @@
},
methods: {
handleUser() {
- const { user } = this;
- this.$axios.post('sccg/depart/status', {
- id: user.departmentId,
- status: user.status ? 1 : 0,
+ const { role } = this;
+ this.$axios.post('/sccg/role/update/'+role.id, {
+ id:role.id,
+ status: role.status,
+ description:role.description,
+ name:role.name
}).then(res => {
- console.log(res);
+ this.$emit('changeDialog',{dialogUpdate:false});
+ this.getUserList();
})
}
},
- props: ['userInfo', 'updateFlag']
+ props: ['userInfo', 'updateFlag','getUserList','changeDialog']
}
</script>
<style lang="scss" scoped>
@@ -119,29 +123,29 @@
border-radius: 1px;
background-color: #09152f;
- header {
- display: flex;
- justify-content: center;
- height: 60px;
- line-height: 60px;
- padding: 0 20px;
- border: 1px solid #fff;
- .headerTitle {
- color: #4b9bb7;
- font-weight: 600;
- }
+ // header {
+ // display: flex;
+ // justify-content: center;
+ // height: 60px;
+ // line-height: 60px;
+ // padding: 0 20px;
+ // border: 1px solid #fff;
+ // .headerTitle {
+ // color: #4b9bb7;
+ // font-weight: 600;
+ // }
- .headerTip span {
- color: #ff3b6c;
- }
+ // .headerTip span {
+ // color: #ff3b6c;
+ // }
- .headerTip label {
- color: #4b9bb7;
- }
- }
+ // .headerTip label {
+ // color: #4b9bb7;
+ // }
+ // }
main {
- border: 1px solid #fff;
+ // border: 1px solid #fff;
text-align: left;
padding: 0 55px;
background-color: #09152f;
@@ -149,7 +153,7 @@
.mainContent {
display: flex;
justify-content: center;
- margin-top: 50px ;
+ padding-top: 50px;
.el-form-item__content {
width: 400px;
--
Gitblit v1.8.0