diff --git a/package.json b/package.json index 5b6ea941ccdc9cd3ccafd1db5f273d50dbc40103..9708799742fb3e0f3717291863f14ee91950a2de 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "qrcodejs2": "^0.0.2", "qs": "^6.9.4", "screenfull": "^5.0.2", - "view-design": "^4.7.0", "vue": "^2.6.11", "vue-count-to": "^1.0.13", "vue-router": "^3.3.4", diff --git a/src/assets/img/DataCenter/circle.png b/src/assets/img/DataCenter/circle.png new file mode 100644 index 0000000000000000000000000000000000000000..d08a2069a15d015d9f59533e8a4a5b640149f1ef Binary files /dev/null and b/src/assets/img/DataCenter/circle.png differ diff --git a/src/assets/img/DataCenter/message.png b/src/assets/img/DataCenter/message.png new file mode 100644 index 0000000000000000000000000000000000000000..d60e43b5d445f10ce0cf00ef99394de3d57c974c Binary files /dev/null and b/src/assets/img/DataCenter/message.png differ diff --git a/src/assets/img/DataCenter/selected.png b/src/assets/img/DataCenter/selected.png new file mode 100644 index 0000000000000000000000000000000000000000..5138a01ce74da27020be20559268350b2171022d Binary files /dev/null and b/src/assets/img/DataCenter/selected.png differ diff --git a/src/assets/img/DataCenter/shequ.png b/src/assets/img/DataCenter/shequ.png new file mode 100644 index 0000000000000000000000000000000000000000..b49fa213ba19a24d4ffdae62b350709f25af8e43 Binary files /dev/null and b/src/assets/img/DataCenter/shequ.png differ diff --git a/src/assets/img/DataCenter/shift.png b/src/assets/img/DataCenter/shift.png new file mode 100644 index 0000000000000000000000000000000000000000..1120b5e707f583c36e49e1eade1494e64e0a6c84 Binary files /dev/null and b/src/assets/img/DataCenter/shift.png differ diff --git a/src/assets/img/DataCenter/tijian.png b/src/assets/img/DataCenter/tijian.png new file mode 100644 index 0000000000000000000000000000000000000000..16ad15b914e41c95013cf3c076b477a41ad8c9fa Binary files /dev/null and b/src/assets/img/DataCenter/tijian.png differ diff --git a/src/assets/img/DataCenter/user.png b/src/assets/img/DataCenter/user.png new file mode 100644 index 0000000000000000000000000000000000000000..254089c22ee36192e01ee50b9df947eec8a0ae08 Binary files /dev/null and b/src/assets/img/DataCenter/user.png differ diff --git a/src/assets/img/DataCenter/yiyuan.png b/src/assets/img/DataCenter/yiyuan.png new file mode 100644 index 0000000000000000000000000000000000000000..7542b7ba7d58eced70b0eabc8bfe0f3c395b53b1 Binary files /dev/null and b/src/assets/img/DataCenter/yiyuan.png differ diff --git a/src/components/CustomsTable/index.vue b/src/components/CustomsTable/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..1b5638a05c409bbf10cebf0c1461cad7e8ccad3d --- /dev/null +++ b/src/components/CustomsTable/index.vue @@ -0,0 +1,187 @@ + + + diff --git a/src/components/FormComponents/index.vue b/src/components/FormComponents/index.vue index 9eb5b263b702dffc44b1ec9e0b14e9a09d446e63..e54a8968cfdf4d99bd860161b4f7dc88028f4e2a 100644 --- a/src/components/FormComponents/index.vue +++ b/src/components/FormComponents/index.vue @@ -1,189 +1,381 @@ - - diff --git a/src/components/layout/index.vue b/src/components/layout/index.vue index 9aa215f772374a7e5bc6a71562f1bb696fcbea87..2d26bd7b1c0aafd2c5ed7df720fc3805f8356602 100644 --- a/src/components/layout/index.vue +++ b/src/components/layout/index.vue @@ -1,73 +1,79 @@ @@ -104,61 +172,65 @@ export default { } } } - - .right-panel { + .userInfo { display: flex; - align-content: center; align-items: center; - justify-content: flex-end; - height: 74px; - - ::v-deep { - .user-avatar { - margin-top: 2px; - margin-right: 5px; - font-weight: 600; - cursor: pointer; - } - - .user-name { - position: relative; - margin-right: 35px; - margin-left: 5px; - font-weight: 600; - cursor: pointer; - } - - .user-name + i { - position: absolute; - top: 4px; - right: 15px; - } - - svg { - width: 1em; - height: 1em; - margin-right: 20px; - font-size: $base-font-size-big; - color: $base-color-gray; + padding-right: 40px; + .fontSelect { + display: flex; + margin-right: 20px; + .font { + width: 40px; + height: 40px; + background: #4e68ff; + border-radius: 4px; + border: 1px solid #ffffff; + text-align: center; + line-height: 40px; cursor: pointer; - fill: $base-color-gray; + margin-left: 20px; } - - button { - svg { - margin-right: 0; - color: $base-color-white; - cursor: pointer; - fill: $base-color-white; + .active { + box-sizing: border-box; + background: #ffffff; + height: 40px; + color: #4e68ff; + padding: 1px; + .label { + height: 36px; + border: 1px solid #4e68ff; } } - - .el-badge { - margin-right: 20px; - padding: 0 5px; - svg { - margin-right: 0px; - } + } + .community { + width: 106px; + height: 30px; + white-space: nowrap; + background: rgba(255, 255, 255, 0.1); + color: #fff; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + img { + margin-right: 4px; + width: 18px; + height: 18px; + } + } + .user { + white-space: nowrap; + margin-left: 40px; + height: 30px; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + color: #fff; + img { + margin-right: 4px; + width: 18px; + height: 18px; } } } diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 3cc00a3b921db7e3bba042f55b35968651c0f39f..f051911f45b7c87f06a3bee522ee935306fccd48 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -32,7 +32,10 @@ }" >
- +
@@ -40,6 +43,51 @@
+ +
+
请选择您的筛查填报场景
+ +
+ 保存 +
+
+
@@ -68,7 +116,25 @@ export default { }, mixins: [Media], data() { - return {} + return { + modalFlag: false, + screeningList: [ + { + title: "社区筛查", + src: require("@/assets/img/DataCenter/shequ.png"), + }, + { + title: "医院筛查", + src: require("@/assets/img/DataCenter/yiyuan.png"), + }, + { + title: "体检筛查", + src: require("@/assets/img/DataCenter/tijian.png"), + }, + ], + selectedIndex: 0, + curSelectedIndex: "", + } }, computed: { ...mapGetters({ @@ -84,7 +150,18 @@ export default { } }, }, + created() { + this.selectedIndex = localStorage.getItem("selectedIndex") || "" + this.curSelectedIndex = this.selectedIndex ? this.selectedIndex - 0 : -1 + }, mounted() { + if (!this.selectedIndex) { + this.modalFlag = true + this.selectedIndex = 0 + } else { + this.selectedIndex = this.selectedIndex - 0 + this.curSelectedIndex = this.selectedIndex ? this.selectedIndex : -1 + } this.$nextTick(() => { window.addEventListener( "storage", @@ -100,6 +177,15 @@ export default { ...mapActions({ handleFoldSideBar: "settings/foldSideBar", }), + setSelectedIndex() { + console.log(this.selectedIndex) + this.curSelectedIndex = this.selectedIndex + localStorage.setItem("selectedIndex", this.selectedIndex) + this.modalFlag = false + }, + openModalFlag() { + this.modalFlag = true + }, }, } @@ -238,4 +324,63 @@ export default { height: calc(100vh - 90px); } } +::v-deep .el-dialog__header { + display: none; +} +.modalContent { + padding: 60px; + .title { + text-align: center; + height: 30px; + font-size: 24px; + font-family: AlibabaPuHuiTiM; + color: #333333; + line-height: 30px; + margin-bottom: 60px; + } + .list { + display: flex; + justify-content: space-between; + li { + cursor: pointer; + } + .screeningItem { + display: flex; + .circle { + width: 26px; + height: 26px; + margin-right: 12px; + img { + width: 100%; + height: 100%; + } + } + .itemTitle { + height: 24px; + font-size: 18px; + font-family: AlibabaPuHuiTiM; + color: #333333; + font-weight: bold; + line-height: 24px; + } + } + .ItemIamge { + width: 90%; + // height: 180px; + margin-top: 14px; + img { + width: 100%; + height: 100%; + } + } + } + .submit { + margin-top: 60px; + text-align: center; + .btn { + width: 100px; + height: 32px; + } + } +} diff --git a/src/main.js b/src/main.js index 22e3e0b95b2f0bc7e8ee59e695b2e75a9989aad4..5cc1a497b96c3b44755b9cd7e8c6b31f30386ffd 100644 --- a/src/main.js +++ b/src/main.js @@ -6,12 +6,9 @@ import store from "./store" import router from "./router" import "./plugins" import "./mixins" -import iView from "view-design" -import "view-design/dist/styles/iview.css" import "@/assets/style/common.scss" // const { mockXHR } = require("../mock/static") // mockXHR() -Vue.use(iView) Vue.config.productionTip = false new Vue({ diff --git a/src/router/index.js b/src/router/index.js index 189cc05c551cb33723bdbbd20064060273623c78..42bd05447032c44818a767e9739329d597c14d7e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,7 @@ export const constantRoutes = [ { path: "/home", name: "Home", - redirect: "/home", + // redirect: "/home", component: layout, children: [ { diff --git a/src/store/modules/table.js b/src/store/modules/table.js new file mode 100644 index 0000000000000000000000000000000000000000..325bca7d02d89295939a042db95207d4479d1f41 --- /dev/null +++ b/src/store/modules/table.js @@ -0,0 +1,18 @@ +const state = { + fontIndex: localStorage.getItem("fontIndex") || 1, +} +const getters = { + fontIndex: (state) => state.fontIndex, +} +const mutations = { + setFontIndex(state, fontIndex) { + state.fontIndex = fontIndex + }, +} +const actions = {} +export default { + state, + getters, + mutations, + actions, +} diff --git a/src/views/Home/index.vue b/src/views/Home/index.vue index 581e5b4faa21e203c1ef65b64f7a5167ae441e8a..7bf6e08c194999db285a753e68e501b55f5c8a84 100644 --- a/src/views/Home/index.vue +++ b/src/views/Home/index.vue @@ -5,8 +5,8 @@