Before Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 2.0 MiB |
After Width: | Height: | Size: 2.1 MiB |
@ -0,0 +1,23 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
@ -0,0 +1,24 @@
|
||||
# web
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
npm run lint
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "web",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.0.0",
|
||||
"core-js": "^3.6.5",
|
||||
"vue": "^3.0.0",
|
||||
"vue-router": "^4.1.5",
|
||||
"vuex": "^4.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~4.5.19",
|
||||
"@vue/cli-plugin-eslint": "~4.5.19",
|
||||
"@vue/cli-service": "~4.5.19",
|
||||
"@vue/compiler-sfc": "^3.0.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-vue": "^7.0.0"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/vue3-essential",
|
||||
"eslint:recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"parser": "babel-eslint"
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"not dead"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title>商品订货系统</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>你的浏览器太低级了,赶紧换个牛逼的</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
<style>
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<NavBar></NavBar>
|
||||
<router-view></router-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from './components/NavBar.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
},
|
||||
setup() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{
|
||||
background-image: url("../src/assets/images/background.jpg");
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
After Width: | Height: | Size: 572 KiB |
After Width: | Height: | Size: 12 MiB |
After Width: | Height: | Size: 352 KiB |
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="contentfield">
|
||||
<div class="kongbai"></div>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.contentfield{
|
||||
background-color: rgba(7, 7, 7, 0.5);
|
||||
height: 40vh;
|
||||
width: 80vw;
|
||||
margin-top: 20px;
|
||||
margin-left: 10vw;
|
||||
}
|
||||
.contentfield .kongbai{
|
||||
height: 10vh;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,68 @@
|
||||
<template>
|
||||
<div class="allpage">
|
||||
<div class="name item">名称</div>
|
||||
<div class="current_quantity item">现有数量</div>
|
||||
<div class="quantity_limit item">最低数量限制</div>
|
||||
<div class="purchaser item">采购人</div>
|
||||
<div class="purchase_time item">采购时间</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.allpage{
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.allpage .item{
|
||||
text-align:center;
|
||||
line-height:5vh;
|
||||
font-size: 20px;
|
||||
}
|
||||
.allpage .name{
|
||||
margin-left: 0.3vw;
|
||||
|
||||
height: 5vh;
|
||||
width: 10vw;
|
||||
float: left;
|
||||
border-width: 0.5px;
|
||||
border-style: solid;
|
||||
}
|
||||
.allpage .current_quantity{
|
||||
float: left;
|
||||
border-width: 0.5px;
|
||||
border-style: solid;
|
||||
border-left: 0;
|
||||
height: 5vh;
|
||||
width: 10vw;
|
||||
}
|
||||
.allpage .quantity_limit{
|
||||
float: left;
|
||||
border-width: 0.5px;
|
||||
border-style: solid;
|
||||
border-left: 0;
|
||||
height: 5vh;
|
||||
width: 10vw;
|
||||
}
|
||||
|
||||
.allpage .purchaser{
|
||||
float: left;
|
||||
border-width: 0.5px;
|
||||
border-style: solid;
|
||||
border-left: 0;
|
||||
height: 5vh;
|
||||
width: 10vw;
|
||||
}
|
||||
.allpage .purchase_time{
|
||||
float: left;
|
||||
border-width: 0.5px;
|
||||
border-style: solid;
|
||||
border-left: 0;
|
||||
height: 5vh;
|
||||
width: 10vw;
|
||||
}
|
||||
|
||||
</style>
|
@ -0,0 +1,7 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
|
||||
createApp(App).use(store).use(router).mount('#app')
|
||||
|
@ -0,0 +1,46 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeIndexView from '../views/home/HomeIndexView'
|
||||
import KucunIndexView from "../views/kucun/KucunIndexView.vue"
|
||||
import DinghuoIndexView from "../views/dinghuo/DinghuoIndexView.vue"
|
||||
|
||||
import NotFound from '../views/error/NotFound'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path:"/",
|
||||
name: 'home',
|
||||
redirect:"/home/",
|
||||
},
|
||||
{
|
||||
path: "/home/",
|
||||
name: 'home_index',
|
||||
component: HomeIndexView,
|
||||
},
|
||||
{
|
||||
path: "/kucun/",
|
||||
name: 'kucun_index',
|
||||
component: KucunIndexView,
|
||||
},
|
||||
{
|
||||
path: "/dinghuo/",
|
||||
name: 'dinghuo_index',
|
||||
component: DinghuoIndexView,
|
||||
},
|
||||
{
|
||||
path: "/404/",
|
||||
name: '404',
|
||||
component: NotFound,
|
||||
},
|
||||
{
|
||||
path:"/:catchAll(.*)",
|
||||
redirect: "/404/"
|
||||
}
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
|
||||
export default router
|
@ -0,0 +1,16 @@
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
export default createStore({
|
||||
state: {
|
||||
currentpage:"",
|
||||
},
|
||||
mutations: {
|
||||
updatecurrentpage(state, currentpage){
|
||||
state.currentpage = currentpage
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
modules: {
|
||||
}
|
||||
})
|
@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<div class="allpage">
|
||||
<div class="err">订货系统。。。。。。还在施工当中</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { useRouter } from "vue-router";
|
||||
import { useStore } from 'vuex';
|
||||
export default{
|
||||
|
||||
components: {
|
||||
|
||||
},
|
||||
setup() {
|
||||
const router = useRouter();
|
||||
const store = useStore();
|
||||
const currentpage = router.currentRoute.value.name;
|
||||
store.commit("updatecurrentpage", currentpage);
|
||||
console.log(currentpage)
|
||||
console.log("store: ", store.state.currentpage)
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.allpage{
|
||||
height: 60vh;
|
||||
width: 100%;
|
||||
}
|
||||
.allpage .err{
|
||||
font-size: 50px;
|
||||
color: white;
|
||||
margin-top: 20vh;
|
||||
margin-left: 20vw;
|
||||
}
|
||||
|
||||
</style>
|
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<ContentField>
|
||||
<div class="err_infor">
|
||||
404 not found
|
||||
</div>
|
||||
</ContentField>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ContentField from '../../components/ContentField.vue'
|
||||
|
||||
export default {
|
||||
components:{
|
||||
ContentField
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.err_infor{
|
||||
margin-left: 30%;
|
||||
color: white;
|
||||
font-size: 10vh;
|
||||
}
|
||||
|
||||
</style>
|
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div class="allpage">
|
||||
项目运行成功
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.allpage{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
</style>
|
@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<div class="allpage">
|
||||
<div class="platform">
|
||||
<KuCunDan ></KuCunDan>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import KuCunDan from "../../components/KuCunDan.vue"
|
||||
import { useRouter } from "vue-router";
|
||||
import { useStore } from 'vuex';
|
||||
export default{
|
||||
|
||||
components: {
|
||||
KuCunDan
|
||||
},
|
||||
setup() {
|
||||
const router = useRouter();
|
||||
const store = useStore();
|
||||
const currentpage = router.currentRoute.value.name;
|
||||
store.commit("updatecurrentpage", currentpage);
|
||||
console.log(currentpage)
|
||||
console.log("store: ", store.state.currentpage)
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.allpage{
|
||||
height: 60vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.platform{
|
||||
margin-left: 20vw;
|
||||
height: 60vh;
|
||||
width: 51vw;
|
||||
background-color: rgba(118,234,211, 0.5);
|
||||
margin-top: 10vh;
|
||||
}
|
||||
|
||||
</style>
|