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 @@ + + + + 颜色转化 + + rgb hex: + + 转换 + + rgb用英文逗号分隔,如 255,255,255 + + + 复制rgb + 复制hex + + + hex rgb: + + 转换 + + + + 复制hex + 复制rgb + + + + + + + + + \ 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 @@ + + + + 时间戳转换 + 现在: + {{timestamp}} + {{dateStr}} + + + 停止/开始 + 复制时间戳 + 复制时间 + + + 时间戳: + + 转换 + + + + 复制时间戳 + 复制时间 + + + 时间: + + 转换 + + + + 复制时间 + 复制时间戳 + + + + + + + + + \ 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; +}