Commit bdfcfd05 authored by jiaxu.yan's avatar jiaxu.yan

提交代码规范

parent c621f798
...@@ -3,8 +3,11 @@ build/*.js ...@@ -3,8 +3,11 @@ build/*.js
# 忽略src/assets目录下文件的语法检查 # 忽略src/assets目录下文件的语法检查
src/assets src/assets
# 忽略public目录下文件的语法检查 # 忽略public目录下文件的语法检查
public public/*
# 忽略当前目录下为js的文件的语法检查 # 忽略当前目录下为js的文件的语法检查
*.js *.js
# 忽略当前目录下为vue的文件的语法检查 # 忽略当前目录下为vue的文件的语法检查
*.vue # *.vue
\ No newline at end of file node_modules/*
packages/*
\ No newline at end of file
module.exports = {
extends: ['./node_modules/vue-cli-plugin-commitlint/lib/lint']
};
module.exports = {
'*.{js,vue}': [
'vue-cli-service lint ./src --fix',
'git add'
]
}
\ No newline at end of file
This diff is collapsed.
{ {
"name": "jiaxu.yan", "name": "jiaxu.yan",
"version": "0.0.1", "version": "0.0.1",
"description": "中汽研安全检测平台管理系统", "description": "中汽研安全检测平台管理系统",
"author": "中汽研安全检测平台", "author": "中汽研安全检测平台",
"license": "MIT", "scripts": {
"scripts": { "lint": "eslint src/**/* --ext .js,.vue",
"dev": "vue-cli-service serve", "build:prod": "vue-cli-service build",
"build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging",
"build:stage": "vue-cli-service build --mode staging", "cz": "npm run log && git add . && git cz",
"preview": "node build/index.js --preview", "dev": "vue-cli-service serve",
"prepare": "husky install && husky install", "log": "conventional-changelog --config ./node_modules/vue-cli-plugin-commitlint/lib/log -i CHANGELOG.md -s -r 0",
"spellcheck": "cspell lint --dot --gitignore --color --cache --show-suggestions \"src/**/*.@(html|js|cjs|mjs|ts|tsx|css|scss|md|vue)\"", "preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src" "spellcheck": "cspell lint --dot --gitignore --color --cache --show-suggestions \"src/**/*.@(html|js|cjs|mjs|ts|tsx|css|scss|md|vue)\""
}, },
"husky": { "dependencies": {
"hooks": { "@riophae/vue-treeselect": "0.4.0",
"pre-commit": "lint-staged" "axios": "0.24.0",
} "clipboard": "2.0.8",
}, "core-js": "3.25.3",
"lint-staged": { "cspell": "^8.1.3",
"src/**/*.{js,vue}": [ "echarts": "5.4.0",
"eslint --fix", "element-ui": "2.15.13",
"git add" "file-saver": "2.0.5",
] "fuse.js": "6.4.3",
}, "highlight.js": "9.18.5",
"keywords": [ "js-beautify": "1.13.0",
"vue", "js-cookie": "3.0.1",
"admin", "jsencrypt": "3.0.0-rc.1",
"dashboard", "nprogress": "0.2.0",
"element-ui", "quill": "1.3.7",
"boilerplate", "screenfull": "5.0.2",
"admin-template", "sortablejs": "1.10.2",
"management-system" "vue": "2.6.12",
], "vue-count-to": "1.0.13",
"repository": { "vue-cropper": "0.5.5",
"type": "git", "vue-meta": "2.4.0",
"url": "https://gitee.com/y_project/RuoYi-Vue.git" "vue-router": "3.4.9",
}, "vuedraggable": "2.24.3",
"dependencies": { "vuex": "3.6.0"
"@riophae/vue-treeselect": "0.4.0", },
"axios": "0.24.0", "devDependencies": {
"clipboard": "2.0.8", "@vue/cli-plugin-babel": "4.4.6",
"core-js": "3.25.3", "@vue/cli-plugin-eslint": "4.4.6",
"cspell": "^8.1.3", "@vue/cli-service": "4.4.6",
"echarts": "5.4.0", "babel-eslint": "10.1.0",
"element-ui": "2.15.13", "babel-plugin-dynamic-import-node": "2.3.3",
"file-saver": "2.0.5", "chalk": "4.1.0",
"fuse.js": "6.4.3", "commitizen": "^4.0.3",
"highlight.js": "9.18.5", "commitlint": "^8.2.0",
"husky": "^8.0.3", "compression-webpack-plugin": "5.0.2",
"js-beautify": "1.13.0", "connect": "3.6.6",
"js-cookie": "3.0.1", "conventional-changelog-cli": "^2.0.28",
"jsencrypt": "3.0.0-rc.1", "eslint-config-prettier": "^9.1.0",
"nprogress": "0.2.0", "eslint-plugin-prettier": "^4.2.1",
"quill": "1.3.7", "eslint-plugin-vue": "7.2.0",
"screenfull": "5.0.2", "husky": "^3.0.9",
"sortablejs": "1.10.2", "lint-staged": "^10.5.3",
"vue": "2.6.12", "mockjs": "1.0.1-beta3",
"vue-count-to": "1.0.13", "prettier-eslint-cli": "^8.0.1",
"vue-cropper": "0.5.5", "runjs": "4.4.2",
"vue-meta": "2.4.0", "sass": "1.32.13",
"vue-router": "3.4.9", "sass-loader": "10.1.1",
"vuedraggable": "2.24.3", "script-ext-html-webpack-plugin": "2.1.5",
"vuex": "3.6.0" "svg-sprite-loader": "5.1.1",
}, "vue-cli-plugin-commitlint": "~1.0.12",
"devDependencies": { "vue-template-compiler": "2.6.12"
"@vue/cli-plugin-babel": "4.4.6", },
"@vue/cli-plugin-eslint": "4.4.6", "browserslist": [
"@vue/cli-service": "4.4.6", "> 1%",
"babel-eslint": "10.1.0", "last 2 versions"
"babel-plugin-dynamic-import-node": "2.3.3", ],
"chalk": "4.1.0", "config": {
"compression-webpack-plugin": "5.0.2", "commitizen": {
"connect": "3.6.6", "path": "./node_modules/vue-cli-plugin-commitlint/lib/cz"
"eslint": "7.15.0", }
"eslint-plugin-vue": "7.2.0", },
"lint-staged": "10.5.3", "engines": {
"mockjs": "1.0.1-beta3", "node": ">=8.9",
"runjs": "4.4.2", "npm": ">= 3.0.0"
"sass": "1.32.13", },
"sass-loader": "10.1.1", "husky": {
"script-ext-html-webpack-plugin": "2.1.5", "hooks": {
"svg-sprite-loader": "5.1.1", "pre-commit": "lint-staged",
"vue-template-compiler": "2.6.12" "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}, }
"engines": { },
"node": ">=8.9", "keywords": [
"npm": ">= 3.0.0" "vue",
}, "admin",
"browserslist": [ "dashboard",
"> 1%", "element-ui",
"last 2 versions" "boilerplate",
] "admin-template",
} "management-system"
],
"license": "MIT",
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://gitee.com/y_project/RuoYi-Vue.git"
}
}
...@@ -17,14 +17,32 @@ ...@@ -17,14 +17,32 @@
<div v-else class="user-time"> <div v-else class="user-time">
<i class="el-icon-time"></i> <span>{{ parseTime(new Date()) }}</span> <i class="el-icon-time"></i> <span>{{ parseTime(new Date()) }}</span>
</div> </div>
<div class="back-btn"> <div v-if= "call==false" class="back-btn" @click="call= true">
回复 回复
</div> </div>
<div v-else class="back-btn" @click="call= false">
取消
</div>
</div> </div>
<div class="message-reason mb5"> <div class="message-reason mb5">
这个提议需要深入探讨一下。 这个提议需要深入探讨一下。
</div> </div>
<div v-if="call" style="width: 100%" class="mt10">
<el-input
v-model="model.deptName"
placeholder="回复@英敏长"
clearable
type="textarea"
:autosize="false"
show-word-limit
:maxlength="100"
:rows="4"
/>
<el-button size="mini" class="mt5" type="primary" plain
>发布评论</el-button
>
</div>
<div v-if="hasChild" class="mt10"> <div v-if="hasChild" class="mt10">
<talk-item :back="true"> </talk-item> <talk-item :back="true"> </talk-item>
<talk-item :back="true"> </talk-item> <talk-item :back="true"> </talk-item>
...@@ -45,6 +63,8 @@ export default { ...@@ -45,6 +63,8 @@ export default {
}, },
data() { data() {
return { return {
call:false,
model:{},
circleUrl: circleUrl:
"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
}; };
...@@ -57,6 +77,7 @@ export default { ...@@ -57,6 +77,7 @@ export default {
justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
font-size: 12px; font-size: 12px;
width: 100%;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
padding: 10px 15px; padding: 10px 15px;
// border-radius: 10px; // border-radius: 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment