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 @@ + + + + + + + + + {{ + column.label + }} + + + + + {{ scope.row[column.value] }} + + + + + + + + {{ + column.label + }} + + + + + + + + + {{ + op.formatter + ? op.formatter(scope.row).label + : op.label + ? op.label + : scope.row[column.value] + }} + + + + + + + + + + + + + + + + + + + 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 @@ - - - - - - {{item.unit}} - - - - - - - - - - {{ item.value }} - {{ item.description }} - - - - - - - - - - - - - - - - - - - - - - - - - {{opt.label}} - - - - - - - - {{item.text?item.text:form[item.prop]}} - - - - - - - - - - - - - - - - {{btn.btnText}} - - - + + + + + + {{ + item.unit + }} + + + + + + + + + + {{ item.value }} + {{ item.description }} + + + + + + + + + + + + + + + + + + + + + + + + + {{ opt.label }} + + + + + + + + {{ item.text ? item.text : form[item.prop] }} + + + + + + + + + + + + + + {{ btn.btnText }} + + + + 待修改({{ btn.tobeModified }}) + + + + + + + + {{ btn.btnText }} + + + - - 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 @@ - - - - - - 国家消化道早癌防治中心联盟 早期胃癌筛查项目 - + + + + + 国家消化道早癌防治中心联盟 早期胃癌筛查项目 - - - 筛查随访数据库登录 - - - - - - - - - - - 登录 - - - - - - - 欢迎,LIXid胡 - 退出 - - - - - + + + 筛查随访数据库登录 + - {{ item.name }} - - + + + + + + + + 登录 + + + + + + + 欢迎,LIXid胡 + 退出 - - - - - - + + - + + {{ item.name }} + + + + + + + + + @@ -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 @@ + + + 请选择您的筛查填报场景 + + + + + + + + {{ item.title }} + + + + + + + + 保存 + + + @@ -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 @@ - - + - - + + diff --git a/src/views/dataoverview/index.vue b/src/views/dataoverview/index.vue index 892a461d3e2ada56acedc20aed310a1dd5516fcd..d310b4c93637a57ff27c09a7de9c58e38d79bdac 100644 --- a/src/views/dataoverview/index.vue +++ b/src/views/dataoverview/index.vue @@ -1,14 +1,144 @@ - 数据概览 + + + + {{ item }} + + + + - + diff --git a/src/views/followupquery/index.vue b/src/views/followupquery/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..874b503084ab2d9e863efaf3119a7bc7559c66be --- /dev/null +++ b/src/views/followupquery/index.vue @@ -0,0 +1,286 @@ + + + + + + + + + + + + diff --git a/src/views/followupresearch/index.vue b/src/views/followupresearch/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..248304613634e397be0f0ab16d4f3705e73de651 --- /dev/null +++ b/src/views/followupresearch/index.vue @@ -0,0 +1,219 @@ + + + + + + + + + + + + diff --git a/yarn.lock b/yarn.lock index d6fd2379e1044dbc2f807f66930fa1dc0a0016ee..5e5c9c72d769f21366921ee40ffbb5482eb7b649 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2042,11 +2042,6 @@ async-limiter@~1.0.0: resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== -async-validator@^3.3.0: - version "3.5.2" - resolved "https://registry.npmmirror.com/async-validator/-/async-validator-3.5.2.tgz#68e866a96824e8b2694ff7a831c1a25c44d5e500" - integrity sha512-8eLCg00W9pIRZSB781UUX/H6Oskmm8xloZfr09lz5bikRpBVDlJ3hRVuxxP1SxcwsEYfJ4IU8Q19Y8/893r3rQ== - async-validator@~1.8.1: version "1.8.5" resolved "https://registry.yarnpkg.com/async-validator/-/async-validator-1.8.5.tgz#dc3e08ec1fd0dddb67e60842f02c0cd1cec6d7f0" @@ -2203,11 +2198,6 @@ base@^0.11.1: mixin-deep "^1.2.0" pascalcase "^0.1.1" -batch-processor@1.0.0: - version "1.0.0" - resolved "https://registry.npmmirror.com/batch-processor/-/batch-processor-1.0.0.tgz#75c95c32b748e0850d10c2b168f6bdbe9891ace8" - integrity sha512-xoLQD8gmmR32MeuBHgH0Tzd5PuSZx71ZsbhVxOCRbgktZEPe4SQy7s9Z50uPp0F/f7iw2XmkHN2xkgbMfckMDA== - batch@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" @@ -3655,11 +3645,6 @@ deepmerge@^1.2.0, deepmerge@^1.5.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-1.5.2.tgz#10499d868844cdad4fee0842df8c7f6f0c95a753" integrity sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ== -deepmerge@^2.2.1: - version "2.2.1" - resolved "https://registry.npmmirror.com/deepmerge/-/deepmerge-2.2.1.tgz#5d3ff22a01c00f645405a2fbc17d0778a1801170" - integrity sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA== - default-gateway@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-4.2.0.tgz#167104c7500c2115f6dd69b0a536bb8ed720552b" @@ -3954,13 +3939,6 @@ electron-to-chromium@^1.3.649: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.704.tgz#894205a237cbe0097d63da8f6d19e605dd13ab51" integrity sha512-6cz0jvawlUe4h5AbfQWxPzb+8LzVyswGAWiGc32EJEmfj39HTQyNPkLXirc7+L4x5I6RgRkzua8Ryu5QZqc8cA== -element-resize-detector@^1.2.0: - version "1.2.4" - resolved "https://registry.npmmirror.com/element-resize-detector/-/element-resize-detector-1.2.4.tgz#3e6c5982dd77508b5fa7e6d5c02170e26325c9b1" - integrity sha512-Fl5Ftk6WwXE0wqCgNoseKWndjzZlDCwuPTcoVZfCP9R3EHQF8qUtr3YUPNETegRBOKqQKPW3n4kiIWngGi8tKg== - dependencies: - batch-processor "1.0.0" - element-ui@^2.15.2: version "2.15.3" resolved "https://registry.yarnpkg.com/element-ui/-/element-ui-2.15.3.tgz#55108ab82a3bcc646e7b0570871c48ba96300652" @@ -6271,11 +6249,6 @@ js-base64@^2.1.9: resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4" integrity sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ== -js-calendar@^1.2.3: - version "1.2.3" - resolved "https://registry.npmmirror.com/js-calendar/-/js-calendar-1.2.3.tgz#a583b0644b4e695ba394f344d103dbcc7a7a7d3e" - integrity sha512-dAA1/Zbp4+c5E+ARCVTIuKepXsNLzSYfzvOimiYD4S5eeP9QuplSHLcdhfqFSwyM1o1u6ku6RRRCyaZ0YAjiBw== - js-cookie@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-2.2.1.tgz#69e106dc5d5806894562902aa5baec3744e9b2b8" @@ -6644,11 +6617,6 @@ lodash.memoize@^4.1.2: resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= -lodash.throttle@^4.1.1: - version "4.1.1" - resolved "https://registry.npmmirror.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" - integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== - lodash.transform@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.transform/-/lodash.transform-4.6.0.tgz#12306422f63324aed8483d3f38332b5f670547a0" @@ -8110,11 +8078,6 @@ pnp-webpack-plugin@^1.6.4: dependencies: ts-pnp "^1.1.6" -popper.js@^1.14.6: - version "1.16.1" - resolved "https://registry.npmmirror.com/popper.js/-/popper.js-1.16.1.tgz#2a223cb3dc7b6213d740e40372be40de43e65b1b" - integrity sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ== - portfinder@^1.0.26: version "1.0.28" resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.28.tgz#67c4622852bd5374dd1dd900f779f53462fac778" @@ -10318,11 +10281,6 @@ timsort@^0.3.0: resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= -tinycolor2@^1.4.1: - version "1.4.2" - resolved "https://registry.npmmirror.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803" - integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA== - title-case@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/title-case/-/title-case-2.1.1.tgz#3e127216da58d2bc5becf137ab91dae3a7cd8faa" @@ -10774,11 +10732,6 @@ uuid@^3.3.2, uuid@^3.4.0: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -v-click-outside-x@^3.7.1: - version "3.7.1" - resolved "https://registry.npmmirror.com/v-click-outside-x/-/v-click-outside-x-3.7.1.tgz#aa03eaa0e41e44cb5207dcf86c2d9f0dd64084c1" - integrity sha512-WmUgmcIXr9clVpm1AYS/FgHtcDicfnfoxgQCNg4O6vfk9GVnxA0vSqO321ogUo0b7czYTidj7fQENvWFMWOkUg== - v8-compile-cache@^2.0.3, v8-compile-cache@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" @@ -10836,20 +10789,6 @@ vfile@^4.0.0: unist-util-stringify-position "^2.0.0" vfile-message "^2.0.0" -view-design@^4.7.0: - version "4.7.0" - resolved "https://registry.npmmirror.com/view-design/-/view-design-4.7.0.tgz#98c4ec18ed70d1b58157007f8107a77158334846" - integrity sha512-WRvVRfsZciN0aJYlz+6b1zxs5G8tLFb4OUKOu+PiN0QyIGmdgWVziEyEmioYtJahQpueWiQpRYGzyxrpz3UkWQ== - dependencies: - async-validator "^3.3.0" - deepmerge "^2.2.1" - element-resize-detector "^1.2.0" - js-calendar "^1.2.3" - lodash.throttle "^4.1.1" - popper.js "^1.14.6" - tinycolor2 "^1.4.1" - v-click-outside-x "^3.7.1" - vm-browserify@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"