From 6e2c13ada743e6355a1b2fe09bfa9a56e1eb0c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 23 Jul 2022 14:04:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/mdp.scss | 58 +++++++++++-------- src/views/xm/core/xmProduct/XmProductEdit.vue | 50 ++++++++-------- src/views/xm/core/xmProject/XmProjectEdit.vue | 21 +++---- 3 files changed, 69 insertions(+), 60 deletions(-) diff --git a/src/styles/mdp.scss b/src/styles/mdp.scss index bed912ca..124e2cfb 100644 --- a/src/styles/mdp.scss +++ b/src/styles/mdp.scss @@ -274,11 +274,42 @@ table tr.hover-row{ display: inline-block; margin-right: 5px; } -/*2.隐藏滚动条,太丑了 -.el-drawer__container ::-webkit-scrollbar{ - display: none; + + + +.label-font-color{ + color: #C0C4CC; +} + +.title-font-size{ + font-size:28px; +} + +.title-box{ + + height: 40px; } -*/ +.title-box:hover .el-input .el-input__inner{ + border: 1px solid #dcdfe6 !important; + padding:0 0px; + font-size:1.5rem; + height: 40px; + +} + .title-box:hover .el-input .el-input__inner:focus{ + border: 1px solid #7287ef !important; + padding:0 0px; + font-size:1.5rem; + height: 40px; + +} +.title-box .el-input .el-input__inner{ + border: 0px solid #dcdfe6 !important; + padding:0 1px; + font-size:1.5rem; + height: 40px; +} + /*此处根据不同屏幕分配率显示不同的样式*/ /*手机端*/ @media only screen and (min-width: 0px) and (max-width: 768px) { @@ -316,22 +347,3 @@ table tr.hover-row{ } } -.label-font-color{ - color: #C0C4CC; -} - -.title-font-size{ - font-size:28px; -} - -.title-box:hover.el-input >>> .el-input__inner{ - border: 1px solid #dcdfe6 !important; -padding:0 0px; -font-size:1.5rem; - -} -.title-box.el-input >>> .el-input__inner{ - border: 0px solid #dcdfe6 !important; - padding:0 1px; - font-size:1.5rem; -} diff --git a/src/views/xm/core/xmProduct/XmProductEdit.vue b/src/views/xm/core/xmProduct/XmProductEdit.vue index 078f5805..2024a2aa 100644 --- a/src/views/xm/core/xmProduct/XmProductEdit.vue +++ b/src/views/xm/core/xmProduct/XmProductEdit.vue @@ -6,7 +6,7 @@ :model="editForm" label-width="120px" :rules="editFormRules" - label-position="left" + label-position="top" ref="editForm" > @@ -20,14 +20,13 @@ > - - + - - + - + + + 保存 + - - 保存 - @@ -144,6 +143,8 @@ export default { }, visible: function (visible) { if (visible == true) { + + this.initData(); //从新打开页面时某些数据需要重新加载,可以在这里添加 } }, @@ -358,30 +359,31 @@ export default { this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' }); }) }, + + initData(){ + this.editForm=Object.assign(this.editForm,this.xmProduct) + if(this.opType==='add'){ + this.editForm.pmUserid=this.userInfo.userid + this.editForm.pmUsername=this.userInfo.username + this.editForm.admUserid=this.userInfo.userid + this.editForm.admUsername=this.userInfo.username + this.editForm.assUserid=this.userInfo.userid + this.editForm.assUsername=this.userInfo.username + } + this.editFormBak={...this.editForm} + }, /**end 在上面加自定义方法**/ }, //end method components: { }, - mounted() { - this.editForm = this.xmProduct; - this.editFormBak = { ...this.editForm }; + mounted() { initDicts(this); + this.initData(); /**在下面写其它函数***/ }, //end mounted }; \ No newline at end of file diff --git a/src/views/xm/core/xmProject/XmProjectEdit.vue b/src/views/xm/core/xmProject/XmProjectEdit.vue index 874e925c..32712530 100644 --- a/src/views/xm/core/xmProject/XmProjectEdit.vue +++ b/src/views/xm/core/xmProject/XmProjectEdit.vue @@ -6,9 +6,13 @@ 项目代号: {{editForm.code}}    项目编号: {{editForm.id}} - - + + + + + + @@ -926,14 +930,5 @@ - \ No newline at end of file +