Commit ea8d7376 by lichengming

修改了登录页面和首页

parent 55e6a51f
...@@ -67,6 +67,7 @@ export { default as staffTask } from './staff/staffTask' ...@@ -67,6 +67,7 @@ export { default as staffTask } from './staff/staffTask'
export { default as car } from './res/car' export { default as car } from './res/car'
export { default as onlFormHead } from './online/onlFormHead' export { default as onlFormHead } from './online/onlFormHead'
export { default as testValueExtend } from './drug/testValueExtend' export { default as testValueExtend } from './drug/testValueExtend'
export { default as drugStatistics } from './drug/drugStatistics'
/** /**
* 字典 * 字典
*/ */
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"dateformat": "^3.0.3", "dateformat": "^3.0.3",
"dhtmlx-gantt": "^7.0.0", "dhtmlx-gantt": "^7.0.0",
"echarts": "^4.8.0",
"element-ui": "2.13.0", "element-ui": "2.13.0",
"extend": "^3.0.2", "extend": "^3.0.2",
"extract-text-webpack-plugin": "^4.0.0-beta.0", "extract-text-webpack-plugin": "^4.0.0-beta.0",
......
...@@ -265,11 +265,18 @@ export default { ...@@ -265,11 +265,18 @@ export default {
} }
}, },
_init() { _init() {
this.getPage = {
total: 0,
size: 50,
records: []
}
this.getPage.records = [] this.getPage.records = []
this.getPage.total = 0 this.getPage.total = 0
this.$refs.pageTable._initTable() this.$refs.pageTable._initTable()
// this.getPage.records = []
// this.getPage.total = 0
// this.$refs.pageTable._initTable()
}, },
_importItem() { _importItem() {
this.$refs.relItemModal._open(this.catalogueId) this.$refs.relItemModal._open(this.catalogueId)
}, },
......
...@@ -46,7 +46,10 @@ ...@@ -46,7 +46,10 @@
:fixed="item.fixed?item.fixed:undefined" :fixed="item.fixed?item.fixed:undefined"
> >
<template slot-scope="scope" @click.stop="_handleIndex(scope)"> <template slot-scope="scope" @click.stop="_handleIndex(scope)">
<span v-if="item.datetime"> <span v-if="item.datetime" @click="_handleIndex(scope)">
{{ scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):'' }}
</span>
<span v-else-if="item.data">
{{ scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):'' }} {{ scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):'' }}
</span> </span>
<span v-else-if="item.key === 'status'"> <span v-else-if="item.key === 'status'">
...@@ -101,7 +104,7 @@ export default { ...@@ -101,7 +104,7 @@ export default {
{ {
title: '开始留样时间', title: '开始留样时间',
key: 'ctime', key: 'ctime',
width: 120, width: 160,
data: true, data: true,
align: 'center' align: 'center'
}, },
...@@ -166,6 +169,7 @@ export default { ...@@ -166,6 +169,7 @@ export default {
} }
}, },
_handleIndex(data) { _handleIndex(data) {
console.log(data)
this.currentIndex = data.$index this.currentIndex = data.$index
}, },
_tableResultChange(msg, data) { _tableResultChange(msg, data) {
......
...@@ -41,11 +41,14 @@ ...@@ -41,11 +41,14 @@
</Form> </Form>
</Col> </Col>
<!--按钮--> <!--按钮-->
<Col span="24" /> <!-- <Col span="24" />-->
<!-- <btn-list :msg="btn" :open="searchOpen" show-search-btn="true" @on-result-change="_btnClick" />-->
<!-- </Col>-->
<Col span="24">
<btn-list :msg="btn" :open="searchOpen" show-search-btn="true" @on-result-change="_btnClick" /> <btn-list :msg="btn" :open="searchOpen" show-search-btn="true" @on-result-change="_btnClick" />
</Col> </Col>
<!--table--> <!--table-->
<Col span="24" /> <Col span="24">
<element-table <element-table
ref="pageTable" ref="pageTable"
:page-columns="pageColumns" :page-columns="pageColumns"
...@@ -181,6 +184,7 @@ export default { ...@@ -181,6 +184,7 @@ export default {
this._endByIds() this._endByIds()
break break
case 'search': case 'search':
console.log('点击了收起搜索')
this.searchOpen = !this.searchOpen this.searchOpen = !this.searchOpen
break break
} }
......
...@@ -11,6 +11,7 @@ import drugConsumeRouters from '../router/drug-consume-routes' ...@@ -11,6 +11,7 @@ import drugConsumeRouters from '../router/drug-consume-routes'
import drugOosRouters from '../router/drug-oos-routes' import drugOosRouters from '../router/drug-oos-routes'
import staffRouters from '../router/staff-routes' import staffRouters from '../router/staff-routes'
import frameRouters from '../router/frame-routes' import frameRouters from '../router/frame-routes'
import statisticRouters from '../router/drug-statistic-routes'
export default [ export default [
{ {
...@@ -66,5 +67,11 @@ export default [ ...@@ -66,5 +67,11 @@ export default [
path: 'frame', path: 'frame',
component: blank, component: blank,
children: frameRouters children: frameRouters
},
{
meta: { title: '统计查询' },
path: 'statistics',
component: blank,
children: statisticRouters
} }
] ]
...@@ -15,16 +15,16 @@ import flowFormRoutes from './flowform-routes' ...@@ -15,16 +15,16 @@ import flowFormRoutes from './flowform-routes'
export default [ export default [
{ path: '/lock', name: 'Lock', component: lock, meta: { allowBack: false } }, { path: '/lock', name: 'Lock', component: lock, meta: { allowBack: false } },
{ {
path: '/',
component: index,
children: [{ path: '/', meta: { title: '首页' } }]
},
{
path: '/login', path: '/login',
component: login, component: login,
meta: { allowBack: false } meta: { allowBack: false }
}, },
{ {
path: '/',
component: index,
children: [{ path: '/', meta: { title: '首页' } }]
},
{
path: '/sys', path: '/sys',
component: blank, component: blank,
children: sysRouters, children: sysRouters,
......
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