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/user/updateUser/index.vue | 131 +++++++++++++++++++++++++------------------
1 files changed, 76 insertions(+), 55 deletions(-)
diff --git a/src/views/systemSetting/baseSetting/user/updateUser/index.vue b/src/views/systemSetting/baseSetting/user/updateUser/index.vue
index 37f46b2..eabcd01 100644
--- a/src/views/systemSetting/baseSetting/user/updateUser/index.vue
+++ b/src/views/systemSetting/baseSetting/user/updateUser/index.vue
@@ -1,10 +1,10 @@
<template>
<div class="updateUser">
- <header>
+ <!-- <header>
<div class="headerTitle">{{updateFlag ? '淇敼鐢ㄦ埛閮ㄩ棬淇℃伅' :'鏌ョ湅鐢ㄦ埛淇℃伅'}}</div>
- </header>
+ </header> -->
<main>
- <div class="mainTitle">鍩虹淇℃伅</div>
+ <!-- <div class="mainTitle">鍩虹淇℃伅</div> -->
<div class="mainContent">
<el-form ref="user" label-width="140px" autoComplete="on" :model="user" :rules="createUserRules"
label-position="right">
@@ -14,7 +14,8 @@
</el-form-item>
<!-- 鐢ㄦ埛瀵嗙爜 -->
<el-form-item class="optionItems" label="鐢ㄦ埛瀵嗙爜:" prop="password">
- <el-input v-model="user.password" type="password" placeholder="璇疯緭鍏ョ敤鎴峰瘑鐮�" :disabled="true"></el-input>
+ <el-input v-model="user.password" type="password" placeholder="璇疯緭鍏ョ敤鎴峰瘑鐮�" :disabled="true">
+ </el-input>
</el-form-item>
<!-- 鎵�灞炵敤鎴峰鍚� -->
<!-- <el-form-item class="optionItem" label="鎵�灞炵敤鎴峰鍚�:" prop="true_name">
@@ -71,7 +72,8 @@
<!-- 鎵�灞為儴闂� -->
<el-form-item class="optionItem" label="鎵�灞為儴闂�:" prop="departmentId">
<el-select v-model="user.department" placeholder="璇烽�夋嫨鎵�灞為儴闂�" :disabled="!updateFlag">
- <el-option v-for="item in typeList" :key="item.name" :label="item.departName" :value="item.id">
+ <el-option v-for="item in typeList" :key="item.name" :label="item.departName"
+ :value="item.id">
</el-option>
</el-select>
</el-form-item>
@@ -90,8 +92,11 @@
<!-- <el-form-item class="optionItem" label="濉啓鎵�灞瀒p鍦板潃:" prop="ip">
<el-input v-model="user.ip" placeholder="璇峰~鍐欐墍灞瀒p鍦板潃"></el-input>
</el-form-item> -->
- <el-form-item v-if="updateFlag">
- <div class="optionBtn"><el-button type="primary" class="btn submit" @click.native.prevent="handleUser">鎻愪氦</el-button></div>
+ <el-form-item v-if="updateFlag">
+ <div class="optionBtn">
+ <el-button type="primary" class="btn submit" @click.native.prevent="handleUser">鎻愪氦
+ </el-button>
+ </div>
</el-form-item>
</el-form>
@@ -112,7 +117,7 @@
callback(new Error("璇峰~鍐欑櫥褰曞瘑鐮�"));
} else {
const rep = /^\w+$/;
- if(!rep.test(value)){
+ if (!rep.test(value)) {
callback(new Error("瀵嗙爜鍙兘鏄互鏁板瓧銆�26涓嫳鏂囧瓧姣嶆垨鑰呬笅鍒掔嚎缁勬垚鐨勫瓧绗︿覆"));
}
}
@@ -122,7 +127,7 @@
callback(new Error("璇峰~鍐欑敤鎴峰鍚�"));
} else {
const rep = /^[\u4E00-\u9FA5]{2,4}$/;
- if(!rep.test(value)){
+ if (!rep.test(value)) {
callback("璇疯緭鍏ユ纭殑鐢ㄦ埛濮撳悕");
}
}
@@ -132,7 +137,7 @@
callback(new Error("璇峰~鍐欐墜鏈哄彿鐮�"));
} else {
const rep = /(^1[3|4|5|7|8|9]\d{9}$)|(^09\d{8}$)/
- if(!rep.test(value)){
+ if (!rep.test(value)) {
callback("璇疯緭鍏ユ纭殑鎵嬫満鍙风爜");
}
}
@@ -140,7 +145,7 @@
const validateMail = (rule, value, callback) => {
if (value) {
const rep = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
- if(!rep.test(value)){
+ if (!rep.test(value)) {
callback(new Error("璇疯緭鍏ユ纭殑閭"))
}
}
@@ -258,8 +263,8 @@
typeList: []
}
},
- created() {
- const that = this ;
+ created() {
+ const that = this;
this.user = JSON.parse(JSON.stringify(that.userInfo));
// 鑾峰彇瑙掕壊鍒楄〃
// this.$axios.get('')
@@ -268,65 +273,67 @@
// console.log(res);
// })
// 鑾峰彇鍏ㄩ儴閮ㄩ棬鍒楄〃
- this.$axios.get('sccg/depart/page').then(res=>{
+ this.$axios.get('sccg/depart/page').then(res => {
that.typeList = res.data.records;
})
},
methods: {
handleUser() {
- const {user} = this;
- this.$axios.post('sccg/depart/status',{
- id:user.departmentId,
- status:user.status?1:0,
- }).then(res=>{
+ const { user } = this;
+ this.$axios.post('sccg/depart/status', {
+ id: user.departmentId,
+ status: user.status ? 1 : 0,
+ }).then(res => {
console.log(res);
})
}
},
- props:['userInfo','updateFlag']
+ props: ['userInfo', 'updateFlag']
}
</script>
-<style lang="scss" scpoed>
+<style lang="scss" scoped>
.updateUser {
border-radius: 1px;
- // min-width: 1024px;
- // min-height: 1450px;
- background-color: #06122c;
+ background-color: #09152f;
- header {
- display: flex;
- justify-content: center;
- height: 60px;
- line-height: 60px;
- padding: 0 20px;
- .headerTitle {
- font-weight: 600;
- color: #666;
- }
+ // 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: #999999;
- }
- }
+ // .headerTip label {
+ // color: #4b9bb7;
+ // }
+ // }
main {
+ // border: 1px solid #fff;
text-align: left;
padding: 0 55px;
- .mainTitle {
- // margin-left: 60px;
- color: #666;
- font-weight: 600;
- line-height: 100px;
- font-size: 14px;
- }
+ background-color: #09152f;
+ padding-bottom: 50px;
+ // .mainTitle {
+ // color: #4b9bb7;
+ // font-weight: 600;
+ // line-height: 100px;
+ // font-size: 14px;
+ // }
.mainContent {
display: flex;
justify-content: center;
+ padding-top: 50px;
.el-form-item__content {
width: 400px;
@@ -334,20 +341,25 @@
width: 100%;
}
}
- .optionHandleSp{
+
+ .optionHandleSp {
display: flex;
- .areaNumber,.moreNumber{
+
+ .areaNumber,
+ .moreNumber {
flex: 1;
}
- .telNumber{
+
+ .telNumber {
flex: 2;
}
}
- .optionBtn{
+
+ .optionBtn {
display: flex;
- justify-content: center;
- margin-top: 80px;
- .btn{
+ margin-top: 20px;
+
+ .btn {
padding: 12px 50px;
}
}
@@ -355,4 +367,13 @@
}
}
}
+
+.updateUser::v-deep .el-form-item__label {
+ color: #4b9bb7;
+}
+
+.updateUser::v-deep .el-input__inner {
+ background-color: #09152f;
+ border: 1px solid #17324c;
+}
</style>
\ No newline at end of file
--
Gitblit v1.8.0