From 4a4e2815de15052af2357e7f53ed9aa30e079d40 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期二, 20 九月 2022 10:39:05 +0800 Subject: [PATCH] 修改字体颜色以及输入框背景色 --- src/views/systemSetting/baseSetting/user/updateUser/index.vue | 82 ++++++++++++++++++++++++++--------------- 1 files changed, 52 insertions(+), 30 deletions(-) diff --git a/src/views/systemSetting/baseSetting/user/updateUser/index.vue b/src/views/systemSetting/baseSetting/user/updateUser/index.vue index 37f46b2..4f50ce0 100644 --- a/src/views/systemSetting/baseSetting/user/updateUser/index.vue +++ b/src/views/systemSetting/baseSetting/user/updateUser/index.vue @@ -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,30 +273,28 @@ // 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; @@ -299,9 +302,10 @@ height: 60px; line-height: 60px; padding: 0 20px; + border: 1px solid #fff; .headerTitle { + color: #4b9bb7; font-weight: 600; - color: #666; } .headerTip span { @@ -309,16 +313,18 @@ } .headerTip label { - color: #999999; + color: #4b9bb7; } } main { + border: 1px solid #fff; text-align: left; padding: 0 55px; + background-color: #09152f; + .mainTitle { - // margin-left: 60px; - color: #666; + color: #4b9bb7; font-weight: 600; line-height: 100px; font-size: 14px; @@ -327,6 +333,7 @@ .mainContent { display: flex; justify-content: center; + .el-form-item__content { width: 400px; @@ -334,20 +341,26 @@ 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{ + + .btn { padding: 12px 50px; } } @@ -355,4 +368,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