Commit cbf2c413 by lichengming

修改了检测管理

parent 26177749
......@@ -3,29 +3,31 @@
<div style="width: 50%;background: rgb(88,103,127)" class="login-left">
<div style="margin-top: 90px;margin-left: 30px">
<div style="margin-left: 50px;">
<div class="logo" style="width: 50px;height: 50px;float: left;margin-right: 20px;">
<img src='../static/images/fileIcon/timg.png' alt="" style="width: 100%;height: 100%;border: 1px solid white;border-radius: 48px;">
</div>
<div class="title">
<p style="font-size: 30px;color: white;font-weight: bold;">LIMS</p>
</div>
<div class="logo" style="width: 50px;height: 50px;float: left;margin-right: 20px;">
<img src="../static/images/fileIcon/timg.png" alt="" style="width: 100%;height: 100%;border: 1px solid white;border-radius: 48px;">
</div>
<div class="title">
<p style="font-size: 30px;color: white;font-weight: bold;">
LIMS
</p>
</div>
</div>
<div style="margin-left: 50px;">
<p style="font-size: 24px;color: #ffffff;">烟草实验室管理平台</p>
<p style="font-size: 24px;color: #ffffff;">
烟草实验室管理平台
</p>
</div>
<div style="margin-top: 70px;margin-right: 50px;margin-left: 50px;color: white;background-color: red;">
<p style="text-align: center">
</p>
<p style="text-align: center" />
</div>
</div>
</div>
<div style="width: 50%;" class="login">
<div style="margin-left: 40px;margin-right:40px;margin-top: 50px">
<el-form id="login-form" ref="login-form">
<p style="font-size: 24px;color: #40485B">登录</p>
<p style="font-size: 24px;color: #40485B">
登录
</p>
<el-form-item label="">
<el-input v-model="formObj.username" placeholder="用户名" />
</el-form-item>
......@@ -78,22 +80,37 @@ export default {
methods: {
_rememberUser() {
console.log('记住密码')
console.log(localStorage.getItem('username'))
this.$nextTick(() => {
if (localStorage.getItem('username') === null) {
console.log(1564980847)
this.formObj.username = ''
this.formObj.password = ''
this.checkListValue = ''
} else {
// this.formObj.username = localStorage.getItem('username')
this.formObj.username = JSON.parse(localStorage.getItem('username'))
console.log(this.formObj.username)
this.formObj.password = JSON.parse(localStorage.getItem('password'))
// this.formObj.username = JSON.parse(localStorage.getItem('username'))
// this.formObj.password = JSON.parse(localStorage.getItem('password'))
this.formObj.password = localStorage.getItem('password')
this.formObj.username = localStorage.getItem('username')
console.log(typeof localStorage.getItem('username'))
console.log(localStorage.getItem('password'))
console.log(this.formObj.password)
this.formObj.username = this.formObj.username
.replace('"', '')
.replace('"', '')
console.log(this.formObj.password)
this.formObj.password = this.formObj.password
.replace('"', '')
.replace('"', '')
console.log(this.formObj.password)
this.checkListValue = true
}
this.checkListValue = true
})
},
_login: async function() {
console.log('登录被调用')
const data = this.formObj
const result = await codeRule.login(data)
console.log(result)
......
......@@ -16,13 +16,13 @@
:label-width="90"
inline
>
<Form-item label="组名称" prop="name">
<Form-item label="组名称" prop="name" class="width-48">
<Input v-model="formObj.name" name="name" placeholder="请输入组名称" /></Input>
</Form-item>
<Form-item label="英文缩写" prop="shortName">
<Form-item label="英文缩写" prop="shortName" class="width-48">
<Input v-model="formObj.shortName" name="shortName" placeholder="英文缩写" /></Input>
</Form-item>
<Form-item label="科室类型" prop="type">
<Form-item label="科室类型" prop="type" class="width-48">
<el-select v-model="formObj.type" filterable clearable size="small" style="width:100%">
<el-option v-for="item in typeList" :key="item.name" :value="item.name">
{{ item.name }}
......@@ -35,10 +35,10 @@
name="sort"
placeholder="请输入排序"
:min="1"
style="width: 100%"
style="width: 275px"
/>
</Form-item>
<Form-item label="组描述" prop="decp">
<Form-item label="组描述" prop="decp" style="width: 733px;">
<Input v-model="formObj.decp" type="textarea" name="decp" placeholder="请输入组描述" /></Input>
</Form-item>
</Form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment