Browse Source

首页样式调整

newMaster
1747191978@qq.com 1 year ago
parent
commit
bd39beb2bc
  1. 1
      acupuncture-前台/package.json
  2. 2
      acupuncture-前台/src/main.js
  3. 77
      acupuncture-前台/src/views/index.vue
  4. 8
      acupuncture-前台/src/views/indexCom/query.vue

1
acupuncture-前台/package.json

@ -48,6 +48,7 @@
"js-beautify": "1.13.0", "js-beautify": "1.13.0",
"js-cookie": "3.0.1", "js-cookie": "3.0.1",
"jsencrypt": "3.0.0-rc.1", "jsencrypt": "3.0.0-rc.1",
"moment": "^2.30.1",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"quill": "2.0.2", "quill": "2.0.2",
"screenfull": "5.0.2", "screenfull": "5.0.2",

2
acupuncture-前台/src/main.js

@ -13,6 +13,7 @@ import router from './router'
import directive from './directive' // directive import directive from './directive' // directive
import plugins from './plugins' // plugins import plugins from './plugins' // plugins
import { download } from '@/utils/request' import { download } from '@/utils/request'
import moment from 'moment';
import './assets/icons' // icon import './assets/icons' // icon
import './permission' // permission control import './permission' // permission control
@ -48,6 +49,7 @@ Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download Vue.prototype.download = download
Vue.prototype.handleTree = handleTree Vue.prototype.handleTree = handleTree
Vue.prototype.$moment = moment
// 全局组件挂载 // 全局组件挂载
Vue.component('DictTag', DictTag) Vue.component('DictTag', DictTag)

77
acupuncture-前台/src/views/index.vue

@ -3,45 +3,25 @@
<div></div> <div></div>
<div> <div>
<el-card shadow="always"> <el-card shadow="always">
<search <search @picker-change="pickerChage" title="患者信息统计" type="1"></search>
@radio-change="radioChange"
@picker-change="pickerChage"
title="患者信息统计"
type="1"
></search>
</el-card> </el-card>
<patient ref="patient"></patient> <patient ref="patient"></patient>
</div> </div>
<div> <div>
<el-card shadow="always"> <el-card shadow="always">
<search <search @picker-change="pickerChage" title="诊疗信息统计" type="2"></search>
@radio-change="radioChange"
@picker-change="pickerChage"
title="诊疗信息统计"
type="2"
></search>
</el-card> </el-card>
<JM ref="JM"></JM> <JM ref="JM"></JM>
</div> </div>
<div> <div>
<el-card shadow="always"> <el-card shadow="always">
<search <search @picker-change="pickerChage" title="治疗类型统计" type="3"></search>
@radio-change="radioChange"
@picker-change="pickerChage"
title="治疗类型统计"
type="3"
></search>
</el-card> </el-card>
<XGZL ref="XGZL"></XGZL> <XGZL ref="XGZL"></XGZL>
</div> </div>
<div> <div>
<el-card shadow="always"> <el-card shadow="always">
<search <search @picker-change="pickerChage" title="随访统计" type="4"></search>
@radio-change="radioChange"
@picker-change="pickerChage"
title="随访统计"
type="4"
></search>
</el-card> </el-card>
<follow ref="follow"></follow> <follow ref="follow"></follow>
</div> </div>
@ -49,13 +29,16 @@
</template> </template>
<script> <script>
import { getCodeImg, firstAidTest } from "@/api/login"; import {
import search from "@/views/indexCom/query"; getCodeImg,
import patient from "@/views/indexCom/patient"; firstAidTest
import JM from "@/views/indexCom/JM"; } from "@/api/login";
import XGZL from "@/views/indexCom/XGZL"; import search from "@/views/indexCom/query";
import follow from "@/views/indexCom/follow"; import patient from "@/views/indexCom/patient";
export default { import JM from "@/views/indexCom/JM";
import XGZL from "@/views/indexCom/XGZL";
import follow from "@/views/indexCom/follow";
export default {
name: "Index", name: "Index",
components: { components: {
search, search,
@ -105,6 +88,9 @@ export default {
if (_type == 3) { if (_type == 3) {
this.$refs.XGZL.statistics(_data, param); this.$refs.XGZL.statistics(_data, param);
} }
if (_type == 4) {
this.$refs.follow.statistics(_data, param);
}
}, },
}, },
directives: { directives: {
@ -115,6 +101,7 @@ export default {
// elbinding // elbinding
let width = "", let width = "",
height = ""; height = "";
function isReize() { function isReize() {
const style = document.defaultView.getComputedStyle(el); const style = document.defaultView.getComputedStyle(el);
if (width !== style.width) { if (width !== style.width) {
@ -129,27 +116,30 @@ export default {
}, },
}, },
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.home { .home {
background: #f3f5f9; background: #f3f5f9;
min-height: 100vh; min-height: 100vh;
} }
.home {
.home {
blockquote { blockquote {
padding: 10px 20px; padding: 10px 20px;
margin: 0 0 20px; margin: 0 0 20px;
font-size: 17.5px; font-size: 17.5px;
border-left: 5px solid #eee; border-left: 5px solid #eee;
} }
hr { hr {
margin-top: 20px; margin-top: 20px;
margin-bottom: 20px; margin-bottom: 20px;
border: 0; border: 0;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
.col-item { .col-item {
margin-bottom: 20px; margin-bottom: 20px;
} }
@ -159,7 +149,11 @@ export default {
margin: 0; margin: 0;
} }
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "open sans",
"Helvetica Neue",
Helvetica,
Arial,
sans-serif;
font-size: 13px; font-size: 13px;
color: #676a6c; color: #676a6c;
overflow-x: hidden; overflow-x: hidden;
@ -197,13 +191,14 @@ export default {
padding-inline-start: 40px; padding-inline-start: 40px;
} }
} }
} }
</style> </style>
<style scoped> <style scoped>
>>> .el-card { >>>.el-card {
margin-bottom: 16px; margin-bottom: 16px;
} }
>>> .el-card__body {
>>>.el-card__body {
padding: 10px 20px; padding: 10px 20px;
} }
</style> </style>

8
acupuncture-前台/src/views/indexCom/query.vue

@ -6,7 +6,7 @@
</div> </div>
<div> <div>
<div> <div>
<el-radio-group <!-- <el-radio-group
v-model="radioValue" v-model="radioValue"
size="small" size="small"
style="height: 36px" style="height: 36px"
@ -16,11 +16,7 @@
<el-radio label="1" border style="margin: 0 20px 0 0"></el-radio> <el-radio label="1" border style="margin: 0 20px 0 0"></el-radio>
<el-radio label="2" border style="margin: 0 20px 0 0"></el-radio> <el-radio label="2" border style="margin: 0 20px 0 0"></el-radio>
<el-radio label="3" border style="margin: 0 20px 0 0"></el-radio> <el-radio label="3" border style="margin: 0 20px 0 0"></el-radio>
<!-- <el-radio label="4" border style="margin: 0 20px 0 0"></el-radio> </el-radio-group> -->
<el-radio label="4" border style="margin: 0 20px 0 0"></el-radio>
<el-radio label="1" border style="margin: 0 20px 0 0"></el-radio>
<el-radio label="1" border style="margin: 0 20px 0 0"></el-radio> -->
</el-radio-group>
<el-date-picker <el-date-picker
v-model="pickerValue" v-model="pickerValue"
type="daterange" type="daterange"

Loading…
Cancel
Save