From 688c428fb659b62eed9ae008385a9a5129c7120c Mon Sep 17 00:00:00 2001 From: leiyun Date: Mon, 17 Oct 2022 16:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=A4=E4=B8=AA=E5=B7=A5?= =?UTF-8?q?=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 + src/App.vue | 12 +++ src/router/index.js | 30 ++++++ src/views/Rgb.vue | 178 ++++++++++++++++++++++++++++++++++ src/views/Timestamp.vue | 205 ++++++++++++++++++++++++++++++++++++++++ src/views/UserAuto.vue | 6 +- 6 files changed, 434 insertions(+), 1 deletion(-) create mode 100644 src/views/Rgb.vue create mode 100644 src/views/Timestamp.vue diff --git a/package.json b/package.json index 2953b09..5a21fc6 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,13 @@ "build": "vue-cli-service build" }, "dependencies": { + "clipboard": "^2.0.11", "core-js": "^3.6.5", + "dayjs": "^1.11.5", "element-ui": "^2.13.2", + "hex-rgb": "^5.0.0", "moment": "^2.27.0", + "rgb-hex": "^4.0.0", "vue": "^2.6.11", "vue-router": "^3.2.0", "vuex": "^3.4.0", diff --git a/src/App.vue b/src/App.vue index 4f662bb..dcb0713 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,4 +33,16 @@ body,html{ margin:0; padding:0; } +.base-page{ + padding: 30px; + background-color: #fff; + border-radius: 4px; + min-height: 600px; +} +.ml30 { + margin-left: 30px; +} +.mt20 { + margin-top: 20px; +} diff --git a/src/router/index.js b/src/router/index.js index 721cc43..9ed357b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -22,6 +22,36 @@ const routes = [ } ] }, + { + path: '/timestamp', + component: Layout, + meta: { + title: "时间戳", + icon: "el-icon-alarm-clock" + }, + children: [ + { + path: 'index', + name: 'Timestamp', + component: () => import('@/views/Timestamp.vue'), + } + ] + }, + { + path: '/rgb', + component: Layout, + meta: { + title: "颜色转化", + icon: "el-icon-orange" + }, + children: [ + { + path: 'index', + name: 'RGB', + component: () => import('@/views/Rgb.vue'), + } + ] + }, { path: '/about', component: Layout, diff --git a/src/views/Rgb.vue b/src/views/Rgb.vue new file mode 100644 index 0000000..f2b401f --- /dev/null +++ b/src/views/Rgb.vue @@ -0,0 +1,178 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/Timestamp.vue b/src/views/Timestamp.vue new file mode 100644 index 0000000..48812f9 --- /dev/null +++ b/src/views/Timestamp.vue @@ -0,0 +1,205 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/UserAuto.vue b/src/views/UserAuto.vue index 4bd160d..b984a29 100644 --- a/src/views/UserAuto.vue +++ b/src/views/UserAuto.vue @@ -8,6 +8,7 @@ label="描述文字" :step="100"> 生成数据 导出数据 @@ -85,7 +86,7 @@ export default { name: this.getName(), phone: this.getMoble(), cardNo: this.getCardNo(), - studentNo: `${stuNo}${this.gteNo(i+1)}` + studentNo: `${stuNo}${this.gteNo(i + 1)}` } item.sex = this.getSex(item.cardNo); this.list.push(item); @@ -200,4 +201,7 @@ export default { border-radius: 4px; min-height: 600px; } +.ml30 { + margin-left: 30px; +}