Browse Source

添加随访记录

shihang 6 years ago
parent
commit
9013b46a59

+ 1 - 1
src/dashoo.cn/backend/api/controllers/reports.go

@@ -875,7 +875,7 @@ func (this *ReportsController) SamplesDetailList() {
 		where = where + " and b.SourceId=" + SourceId
 	}
 	if GroupId != "" {
-		where = where + " and g.Id=" + GroupId
+		where = where + " and g.GroupId=" + GroupId
 	}
 	if SampleTypeId != "" {
 		where = where + " and b.SampleType=" + SampleTypeId

+ 1 - 1
src/dashoo.cn/frontend_web/src/components/Headbar.vue

@@ -61,7 +61,7 @@
 
         fullscreen: false,
         sampcode: '',
-        department: '基础版'
+        department: '专业版'
       }
     },
     created() {

+ 0 - 7
src/dashoo.cn/frontend_web/src/pages/biobank/allsearch/_opera/operation.vue

@@ -180,13 +180,6 @@
                 jssubstrhandle(sampleinfodetail.Position+'',
                 '0') }}列 。</label>
             </el-col>
-            <!-- <el-col :span="6">
-              <router-link :to="`/equipment/${sampleinfodetail.EquipmentId}/manage?station=${sampleinfodetail.ShelfX};${sampleinfodetail.ShelfY};${sampleinfodetail.BoxX};${sampleinfodetail.BoxY};${sampleinfodetail.Position};${sampleinfodetail.Id}`">
-                <a>定位到位置:
-                  <i class="icon icon-location"></i>
-                </a>
-              </router-link>
-            </el-col> -->
           </el-row>
         </div>
       </el-card>

+ 1 - 8
src/dashoo.cn/frontend_web/src/pages/biobank/allsearch/index.vue

@@ -67,11 +67,6 @@
                 <i class="icon icon-eye"></i>
               </el-button>
             </router-link>
-            <!-- <router-link :to="'/equipment/'+scope.row.EquipmentId+'/manage'+getstationurl(scope.row)">
-              <el-button type="text" size="small" title="样本存储信息" style="margin-left:3px;">
-                <i class="icon icon-location"></i>
-              </el-button>
-            </router-link> -->
             <router-link :to="'/samples/stored/'+scope.row.Id + '/detailed?pname=samples-stored&size='+size+'&currentPage='+currentPage">
               <el-button v-if="scope.row.IsAttachment == 1" size="small" type="text" title="上传附件" style="margin-left:3px;">
                 <i class="icon icon-upload2"></i>
@@ -96,9 +91,7 @@
               {{jstimehandle(scope.row[item.filed])}}
             </template>
             <template v-else-if="item.filed === 'Location'">
-              <!-- <router-link :to="'/equipment/'+scope.row.EquipmentId +'/manage' + getstationurl(scope.row)"> -->
-                {{scope.row.ECode}}-{{numtoupchar(scope.row.ShelfY)}}{{scope.row.ShelfX}}-{{numtoupchar(scope.row.BoxY)}}{{scope.row.BoxX}}-{{postiontoupchar(scope.row.Position)}}
-              <!-- </router-link> -->
+              {{scope.row.ECode}}-{{numtoupchar(scope.row.ShelfY)}}{{scope.row.ShelfX}}-{{numtoupchar(scope.row.BoxY)}}{{scope.row.BoxX}}-{{postiontoupchar(scope.row.Position)}}
             </template>
             <template v-else>
               {{scope.row[item.filed]}}

+ 220 - 0
src/dashoo.cn/frontend_web/src/pages/donors/flupplan/fluprecordadd.vue

@@ -0,0 +1,220 @@
+<style>
+  .input-with-select .el-select .el-input {
+    width: 110px;
+  }
+
+  .input-with-select .el-input-group__append {
+    background-color: #fff;
+  }
+
+</style>
+
+<template>
+  <div>
+    <el-card style="min-height: calc(100vh - 92px);">
+      <div slot="header" style="height: 20px;">
+        <span style="float: left;">
+          <i class="icon icon-table2"></i>
+        </span>
+        <el-breadcrumb class="heading" style="float: left; margin-left: 5px">
+          <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
+          <el-breadcrumb-item :to="{ path: '/donors/flupplan/fluprecord' }">随访记录</el-breadcrumb-item>
+          <el-breadcrumb-item>新增随访记录</el-breadcrumb-item>
+        </el-breadcrumb>
+        <span style="float: right;">
+          <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px" @click="savedata()">保存
+          </el-button>
+          <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px"
+            onclick="window.history.go(-1)">返回</el-button>
+        </span>
+      </div>
+
+      <el-form :model="Flupplanentity">
+        <el-row :gutter="20" class="fluprecordaddrow">
+          <el-col :span="8">
+            <el-form-item label="样本来源" :label-width="formLabelWidth">
+              <div class="linkdisableddiv">
+                <el-input v-model="Flupplanentity.SourceName" disabled></el-input>
+              </div>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="身份证号" :label-width="formLabelWidth">
+              <el-input v-model="Flupplanentity.SourceIdCard" disabled></el-input>
+            </el-form-item>
+          </el-col>
+          <!-- <el-col :span="8">
+            <el-form-item label="住院号" :label-width="formLabelWidth">
+              <el-input v-model="fluprecordinfo.Flupplanentity.AdmissionNumber" disabled></el-input>
+            </el-form-item>
+          </el-col> -->
+          <el-col :span="8">
+            <el-form-item label="随访标题" :label-width="formLabelWidth">
+              <el-input v-model="Flupplanentity.Name" disabled></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="病名" :label-width="formLabelWidth">
+              <el-input v-model="Flupplanentity.IllnessName" disabled></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="计划日期" :label-width="formLabelWidth">
+              <el-input v-model="fluprecordinfo.Plandate" disabled></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="实际日期" :label-width="formLabelWidth" required>
+              <el-date-picker style="width:100%" v-model="formrealtime" type="date" placeholder="选择实际日期">
+              </el-date-picker>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="随访部门" :label-width="formLabelWidth">
+              <el-input v-model="Flupplanentity.FDepartment" placeholder="输入随访部门"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="随访医生" :label-width="formLabelWidth">
+              <el-input v-model="Flupplanentity.FDoctor" placeholder="输入随访医生"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="随访方式" :label-width="formLabelWidth">
+              <el-select v-model="formitem" style="width:100%" placeholder="请选择随访方式">
+                <el-option label="电话随访" value="1"></el-option>
+                <el-option label="上门随访" value="2"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="24">
+            <el-form-item label="随访内容" :label-width="formLabelWidth">
+              <el-input type="textarea" :rows="2" v-model="Flupplanentity.Content" auto-complete="off"
+                placeholder="输入随访内容"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="24">
+            <el-form-item label="备注" :label-width="formLabelWidth">
+              <el-input type="textarea" :rows="2" v-model="Flupplanentity.Remark" auto-complete="off"
+                placeholder="输入备注"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-form>
+
+    </el-card>
+  </div>
+
+</template>
+
+<script>
+  export default {
+    name: 'fluprecordadd',
+    data() {
+      return {
+        planid: '',
+        PlanId: '',
+        formrealtime: null,
+        formitem: '',
+        fluprecordinfo: {}, // 列表项值
+        Flupplanentity: {
+          Id: '',
+          SourceName: '',
+          SourceIdCard: '',
+          Name: '',
+          IllnessName: '',
+          FDepartment: '',
+          FDoctor: '',
+          Content: '',
+          Remark: '',
+        },
+        formLabelWidth: '130px'
+      }
+    },
+    created() {
+      this.initData(this.$route.query.planid, this.$route.query.plandate)
+    },
+    methods: {
+      initData(planid, plandate) {
+        let _this = this
+        const params = {
+          planid: planid,
+          plandate: plandate
+        }
+        this.$axios.get('willfluprecord/getfluprecordinfo', {
+            params
+          })
+          .then(res => {
+            _this.fluprecordinfo = res.data
+            _this.Flupplanentity = res.data.Flupplanentity
+            _this.formitem = '1'
+            _this.formrealtime = new Date(res.data.Time_now)
+          })
+          .catch(err => {
+            console.error(err)
+          })
+      },
+      savedata(formName) {
+        let _this = this
+        if (!_this.formrealtime || _this.formrealtime.getTime() < 0) {
+          _this.$message({
+            type: 'warning',
+            message: '请输入实际日期!'
+          })
+          return
+        }
+        _this.fluprecordinfo.Flupplanentity.Realdate_int = _this.formrealtime.getTime()
+        _this.fluprecordinfo.Flupplanentity.Lastflupdate_int = new Date(_this.fluprecordinfo.Flupplanentity
+          .LastFlupDate).getTime()
+        _this.fluprecordinfo.Flupplanentity.PlanDate_int = new Date(_this.fluprecordinfo.Plandate).getTime()
+        _this.fluprecordinfo.Flupplanentity.FItem = parseInt(_this.formitem)
+         _this.fluprecordinfo.Flupplanentity.PlanId = _this.fluprecordinfo.Flupplanentity.Id
+        _this.$axios.post('willfluprecord', _this.fluprecordinfo.Flupplanentity)
+          .then(res => {
+            if (res.data.code === 0) {
+              _this.$message({
+                type: 'success',
+                message: res.data.message
+              })
+              this.$router.push({
+                path: '/fluprecord',
+                query: {
+                  splanid: _this.fluprecordinfo.Flupplanentity.PlanId
+                }
+              })
+              window.history.go(-1)
+            } else {
+              _this.$message({
+                type: 'warning',
+                message: res.data.message
+              })
+            }
+          })
+          .catch(err => {
+            // handle error
+            console.error(err)
+          })
+      }
+    }
+  }
+
+</script>
+
+<style lang="scss">
+  .button {
+    padding: 0;
+    float: right;
+  }
+
+  .linkdisableddiv {
+    border: 1px solid #D1DBE5;
+    margin-bottom: -2px;
+    background: #EEF1F6;
+    border-radius: 5px
+  }
+
+  .fluprecordaddrow .el-col .el-col-8 {
+    height: 58px;
+  }
+
+</style>

+ 1 - 4
src/dashoo.cn/frontend_web/src/pages/donors/flupplan/willfluprecord.vue

@@ -66,6 +66,7 @@
     name: 'willfluprecord',
     data() {
       return {
+        list: [],
         selectlist: [],
         currentItemCount: 0,
         currentPage: 1,
@@ -80,13 +81,11 @@
       }
     },
     created() {
-      // initial data
       this.initData()
     },
     methods: {
       initData() {
         let _this = this
-        // paginate
         const params = {
           _currentPage: this.currentPage,
           _size: this.size,
@@ -95,12 +94,10 @@
           Order: this.Column.Order,
           Prop: this.Column.Prop
         }
-        // request
         this.$axios.get('/willfluprecord/list', {
             params
           })
           .then(res => {
-            // response
             _this.list = res.data.items
             _this.currentItemCount = res.data.currentItemCount
           })

+ 69 - 62
src/dashoo.cn/frontend_web/src/pages/equipment/_opera/manage_new.vue

@@ -108,7 +108,7 @@
                                           width: (unitwidth/colorTableWidth-2.5) + 'px',
                                           height: (unitheight/colorTableHeight/samplelist[index].RowNum-2.5) + 'px',
                                           backgroundColor: ybox == rowindex && xshelf == k1+1 && yshelf == k2+1 ? COLORARR[7] : COLORARR[0]}"
-                                          style="margin: 1px" @click="getEquipPosition(rowindex-1, k1+1, k2+1)">
+                                        style="margin: 1px" @click="getEquipPosition(rowindex-1, k1+1, k2+1)">
                                       </div>
                                     </div>
                                   </div>
@@ -123,7 +123,8 @@
                       </div>
                     </el-col>
                     <el-col :span="4" style="margin-top: 20px">
-                      <div class="ulbgcolor" v-for="g in shelfs.ColumnNum" :key="g" style="width:150px;float:left;margin-left:1px">
+                      <div class="ulbgcolor" v-for="g in shelfs.ColumnNum" :key="g"
+                        style="width:150px;float:left;margin-left:1px">
                         <div class="hoverdiv" v-bind:style="{ 
                           backgroundColor: xbox == g && ybox == ybox && 
                           xshelf == shelfs.YStation && yshelf == shelfs.XStation ? COLORARR[2] :                          
@@ -199,7 +200,7 @@
             <div slot="header">
               <i class="icon icon-file-text"> </i> 样本管理
               <span style="float: right;">
-                <el-button @click="sampleInfoDialog = true" type="primary" class="el-button--mini"
+                <el-button @click="showDialog" type="primary" class="el-button--mini"
                   v-if="sampleForm.type_flag === 'edit'">编辑</el-button>
                 <el-button @click="dialogfusuVisible=true" type="primary" class="el-button--mini"
                   v-if="sampleForm.type_flag === 'edit'">复苏</el-button>
@@ -808,7 +809,8 @@
         boxSample: [],
         equipid: 0, // 新增,设备id
         COLORARR: ['#EAEAEA', '#13CE66', '#FF4949', '#D1EEEE', '#20A0FF', '#836FFF', '#000080',
-        '#FF7777'], //灰、绿、粉、25%、蓝、紫、深蓝
+          '#FF7777'
+        ], //灰、绿、粉、25%、蓝、紫、深蓝
         selectedorgan: [], // 级联所选组织结构
         sampleorganprops: {
           value: 'code',
@@ -2592,7 +2594,7 @@
 
       handleclk(xbox, ybox, xshelf, yshelf) {
         // 清空状态
-        //this.clearSampleForm()
+        this.clearSampleForm()
         let _this = this
         var inputstr = _this.equipid + ',' + yshelf + ',' + xshelf + ',' + (xbox + 1) + ',' + (ybox + 1)
         _this.$axios.get('/shelfset/boxdraw/' + inputstr, {})
@@ -2628,17 +2630,6 @@
         //清空状态
         this.clearSampleForm()
         if (v != null) {
-          if (v.IState == 1) {
-            for (var i = 0; i < this.sampleTypeList.length; i++) {
-              if (v.SampleType == this.sampleTypeList[i].value) {
-                this.imgSrc = this.filehost + this.sampleTypeList[i].photo
-              }
-            }
-          } else if (v.IState == 5) {
-            this.imgSrc = this.filehost + '/static/img/sampletypeimg/zhanwei.png'
-          } else if (v.IState == 10) {
-            this.imgSrc = '/img/lock.png'
-          }
           let _this = this
           _this.sampleForm.type_flag = 'edit'
           _this.disabledsamplecode = true
@@ -2703,6 +2694,7 @@
 
       getSampleInfoById(id) {
         let _this = this
+        _this.extendList = []
         _this.sampleinfoid = id
         _this.$axios.get('/sampleoperation/getsamplebyid?SamplesInfoId=' + id, {})
           .then(res => {
@@ -2741,10 +2733,21 @@
             _this.sampleForm.SourceName = res.data.SourceName
             _this.sampleForm.CreateUserId = res.data.CreateUserId
             _this.sampleForm.CreateBy = res.data.CreateBy
+            if (res.data.IState == 1) {
+              for (var i = 0; i < this.sampleTypeList.length; i++) {
+                if (res.data.SampleType == this.sampleTypeList[i].value) {
+                  this.imgSrc = this.filehost + this.sampleTypeList[i].photo
+                }
+              }
+            } else if (res.data.IState == 5) {
+              this.imgSrc = this.filehost + '/static/img/sampletypeimg/zhanwei.png'
+            } else if (res.data.IState == 10) {
+              this.imgSrc = '/img/lock.png'
+            }
             //获取所属分组
             _this.getGroup(res.data.BarCode)
             // 获取特有扩展并给特有扩展信息赋值
-            _this.getExtendValue(res.data.SampleType)
+            _this.getExtendValue(res.data)
             //获取附件信息
             _this.getattachment(res.data.BarCode, res.data.SampleCode)
           })
@@ -2769,9 +2772,8 @@
       getExtendValue(val) {
         let _this = this
         _this.groupnameList = []
-        _this.extendList = []
-        if (val && val > 0) {
-          _this.$axios.get('/sampletype/gettykzzdgroup?SampleType=' + val, {})
+        if (val && val.SampleType > 0) {
+          _this.$axios.get('/sampletype/gettykzzdgroup?SampleType=' + val.SampleType, {})
             .then(res => {
               for (var i = 0; i < res.data.length; i++) {
                 if (res.data[i].GroupName != '') {
@@ -2779,11 +2781,11 @@
                 }
               }
               _this.Tabs = _this.groupnameList[0]
-              _this.$axios.get('/sampletype/gettykzzd?SampleType=' + val, {})
+              _this.$axios.get('/sampletype/gettykzzd?SampleType=' + val.SampleType, {})
                 .then(res => {
                   _this.extendList = res.data
                   for (let i = 0; i < this.extendList.length; i++) {
-                    this.extendList[i].FieldDefault = val[this.extendList[i].FieldName]
+                    this.extendList[i].FieldDefault = val[this.extendList[i].FieldName]          
                   }
                 })
             })
@@ -2898,7 +2900,7 @@
                 }
                 _this.getSampleTypedata(_this.sampleForm.SampleType)
                 // 获取特有扩展并给特有扩展信息赋值
-                _this.getExtendValue(res.data.SampleType)
+                _this.getExtendValue(res.data)
               }
             })
         }
@@ -2929,6 +2931,10 @@
         this.sampleForm.SourceName = val.Name
       },
 
+      showDialog(){
+        this.sampleTitle = '编辑样本'
+        this.sampleInfoDialog = true
+      },
       savedata() {
         if (this.sampleTitle == '新增样本') {
           this.addSampleInfo()
@@ -2967,7 +2973,7 @@
               let jsonstr = _this.getExtendata()
               // 转换为json对象
               let jsonobj = JSON.parse(jsonstr)
-              // 拼接两个对象
+              // 拼接两个对象             
               let params = _this.sampleForm
               params = Object.assign(params, jsonobj)
               // 位置冰箱等信息
@@ -3013,7 +3019,6 @@
                 }
                 _this.GroupName = tempOfficers.join(',');
               }
-              console.log("--------------------------", params)
               // _this.$axios.post('/sampleoperation?batchitem=' + _this.batchitem + '&groupid=' + _this.GroupId +
               //     '&groupname=' +
               _this.$axios.post('/sampleoperation?groupid=' + _this.GroupId + '&groupname=' + _this.GroupName,
@@ -3024,7 +3029,7 @@
                       type: 'success',
                       message: res.data.message
                     })
-                    _this.getSampleInfoById(res.data.code.item.Id)
+                    _this.handleclk(_this.xbox, _this.ybox, _this.xshelf, _this.yshelf)
                     // _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
                     // 清空上传附件
                     _this.$refs.refuploadattach.clearFiles()
@@ -3033,41 +3038,43 @@
                     //清空缓存数据
                     _this.batchstorages = []
                     store.set('batchstorages', _this.batchstorages)
-                  } else if (res.data.code === 10 || res.data.code === 11) { // 保存成功后打印
-                    this.$message({
-                      type: 'success',
-                      message: res.data.message
-                    })
-                    _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
-                    // 自动打印
-                    if (res.data.item.Printmsg !== '') {
-                      let printparams = res.data.item.Printmsg.split(',')
-                      if (printparams.length === 3 && printparams[0] !== '' && printparams[1] !== '' &&
-                        printparams[2] !== '') {
-                        window.PrintReport(printparams[1], `samples,${printparams[2]},${printparams[0]}`)
-                      }
-                    }
-                    // 清空上传附件
-                    _this.$refs.refuploadattach.clearFiles()
-                    // 获取附件信息
-                    _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
-                    //清空缓存数据
-                    _this.batchstorages = []
-                    store.set('batchstorages', _this.batchstorages)
-                  } else if (res.data.code === 20) {
-                    this.$message({
-                      type: 'error',
-                      message: res.data.message
-                    })
-                    _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
-                    // 清空上传附件
-                    _this.$refs.refuploadattach.clearFiles()
-                    // 获取附件信息
-                    _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
-                    //清空缓存数据
-                    _this.batchstorages = []
-                    store.set('batchstorages', _this.batchstorages)
-                  } else {
+                  } 
+                  // else if (res.data.code === 10 || res.data.code === 11) { // 保存成功后打印
+                  //   this.$message({
+                  //     type: 'success',
+                  //     message: res.data.message
+                  //   })
+                  //   _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
+                  //   // 自动打印
+                  //   if (res.data.item.Printmsg !== '') {
+                  //     let printparams = res.data.item.Printmsg.split(',')
+                  //     if (printparams.length === 3 && printparams[0] !== '' && printparams[1] !== '' &&
+                  //       printparams[2] !== '') {
+                  //       window.PrintReport(printparams[1], `samples,${printparams[2]},${printparams[0]}`)
+                  //     }
+                  //   }
+                  //   // 清空上传附件
+                  //   _this.$refs.refuploadattach.clearFiles()
+                  //   // 获取附件信息
+                  //   _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
+                  //   //清空缓存数据
+                  //   _this.batchstorages = []
+                  //   store.set('batchstorages', _this.batchstorages)
+                  // } else if (res.data.code === 20) {
+                  //   this.$message({
+                  //     type: 'error',
+                  //     message: res.data.message
+                  //   })
+                  //   _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
+                  //   // 清空上传附件
+                  //   _this.$refs.refuploadattach.clearFiles()
+                  //   // 获取附件信息
+                  //   _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
+                  //   //清空缓存数据
+                  //   _this.batchstorages = []
+                  //   store.set('batchstorages', _this.batchstorages)
+                  // } 
+                  else {
                     this.$message({
                       type: 'warning',
                       message: res.data.message
@@ -3118,7 +3125,6 @@
         params = Object.assign(params, jsonobj)
         _this.$axios.put('/sampleoperation/editsampe?BarCode=' + this.sampleForm.BarCode, params)
           .then(res => {
-            // response
             if (res.data.code === 0) {
               this.$message({
                 type: 'success',
@@ -3134,6 +3140,7 @@
                 message: res.data.message
               })
             }
+            _this.sampleInfoDialog = false
           })
           .catch(err => {
             console.error(err)

+ 1 - 12
src/dashoo.cn/frontend_web/src/pages/login.vue

@@ -21,7 +21,7 @@
       <el-row>
         <el-col :span="15">
           <div class="leftpadding">
-            <img src="../assets/img/basic.png" class="intelligent-img" /> </div>
+            <img src="../assets/img/major.png" class="intelligent-img" /> </div>
         </el-col>
         <el-col :span="9">
           <el-card class="box-card" style="width: 300px;margin-top: 130px;height: 360px;">
@@ -170,17 +170,6 @@
     margin: 0 auto;
   }
 
-  // .nav header .search-query {
-  //   height: 30px;
-  //   line-height: 32px;
-  //   box-sizing: border-box;
-  //   border: 1px solid #e6e6e6;
-  //   border-radius: 15px;
-  //   outline: none;
-  //   padding: 0 15px 0 32px;
-  //   background-size: 20px;
-  // }
-
   .nav ul.nav-item {
     height: 32px;
     float: left;

+ 25 - 22
src/dashoo.cn/frontend_web/src/pages/login_major.vue → src/dashoo.cn/frontend_web/src/pages/login_basic.vue

@@ -2,7 +2,7 @@
   <div class="nav">
     <header>
       <a href="/" class="nav-logo leftpadding" alt="egg">
-        <img src="../assets/img/logo.png" style="height:55px; margin-left: 200px">
+        <img src="../assets/img/logo.png" style="height:55px;">
       </a>
       <ul class="nav-item">
         <li><a href="http://www.dashoo.cn/product-3-1.html" alt="介绍">产品中心</a></li>
@@ -21,16 +21,16 @@
       <el-row>
         <el-col :span="15">
           <div class="leftpadding">
-            <img src="../assets/img/major.png" class="intelligent-img" /> </div>
+            <img src="../assets/img/basic.png" class="intelligent-img" /> </div>
         </el-col>
         <el-col :span="9">
           <el-card class="box-card" style="width: 300px;margin-top: 130px;height: 360px;">
             <el-form class="login-form" auto-complete="off" :model="model" :rules="rules" ref="user">
               <h2 class="heading">登录</h2>
-              <el-form-item label="用户名" prop="username">
+              <el-form-item label="用户名" prop="username" style="margin-top:-5px">
                 <el-input type="text" v-model="model.username" placeholder="请输入用户名"></el-input>
               </el-form-item>
-              <el-form-item label="密码" prop="password">
+              <el-form-item label="密码" prop="password" style="margin-top:-20px">
                 <el-input type="password" v-model="model.password" placeholder="请输入密码" @keyup.enter.native="login()" />
               </el-form-item>
               <el-button type="primary" :loading="loading" @click="login()">{{ loading ? '登录中...' : '登录' }}</el-button>
@@ -40,8 +40,8 @@
       </el-row>
     </div>
 
-    <div class="footer">
-      <footer style="background: #F9F9F9;">
+    <div class="footer" style="height:calc(100vh - 500px);">
+      <footer>
         <el-row>
           <el-col :span="12">
             <div class="login_bg4">
@@ -125,7 +125,6 @@
             }
           }
         } catch (e) {
-          // this.$message.warning(e.message)
           this.$message.warning('账号或密码错误')
         } finally {
           this.logging = false
@@ -147,14 +146,14 @@
     border-bottom: 1px solid rgba(230, 230, 230, 0.99);
     z-index: 2;
     width: 100%;
-    min-height: 1100px;
+    // min-height: 1100px;
     position: fixed;
     top: 0;
   }
 
   .nav .nav-logo {
     padding-top: 2px;
-    padding-left: 20px;
+    padding-left: 210px;
   }
 
   .nav-logo {
@@ -186,12 +185,12 @@
     height: 32px;
     float: left;
     line-height: 32px;
-    padding-left: 405px;
+    padding-left: 470px;
   }
 
   .nav ul.nav-item li {
     display: inline-block;
-    margin-left: 45px;
+    margin-left: 25px;
   }
 
   .nav ul.nav-item a {
@@ -205,10 +204,11 @@
     text-align: center;
     background: url("../assets/img/Background.png");
     width: 100%;
-    height: 150%;
+    // height: 150%;
+    min-height: 575px;
+    height: calc(100vh - 200px);
     margin: 0 auto;
     background-size: cover;
-    // position: relative;
   }
 
   .leftpadding {
@@ -217,7 +217,7 @@
   }
 
   .intelligent-img {
-    width: 600px;
+    width: 650px;
     margin-bottom: 2.5rem;
     margin-top: -30px;
   }
@@ -230,6 +230,7 @@
   .footer {
     min-width: 1100px;
     width: 100%;
+    
   }
 
   .footer a {
@@ -238,8 +239,8 @@
 
   .footer footer {
     overflow: hidden;
-    // max-width: 1136px;
-    max-width: 1550px;
+    min-width: 1136px;
+    // max-width: 1550px;
     margin: 0 auto;
     padding-top: 0px;
     padding-bottom: 30px;
@@ -251,7 +252,9 @@
   }
 
   .login_bg4 {
-    padding-left: 220px;
+    float: right;
+    // padding-left: 220px;
+    padding-right: 350px;
     padding-top: 15px;
   }
 
@@ -279,6 +282,11 @@
 
   .login {
     &-form {
+      .heading {
+        text-align: center;
+        color: #1c96ff;
+      }
+
       .el-button {
         margin-top: 0.5rem;
         width: 100%;
@@ -286,9 +294,4 @@
     }
   }
 
-  .heading {
-    text-align: center;
-    color: #1c96ff;
-  }
-
 </style>