@ -0,0 +1,127 @@ |
|||
木兰宽松许可证, 第2版 |
|||
|
|||
木兰宽松许可证, 第2版 |
|||
2020年1月 http://license.coscl.org.cn/MulanPSL2 |
|||
|
|||
|
|||
您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束: |
|||
|
|||
0. 定义 |
|||
|
|||
“软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 |
|||
|
|||
“贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 |
|||
|
|||
“贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 |
|||
|
|||
“法人实体”是指提交贡献的机构及其“关联实体”。 |
|||
|
|||
“关联实体”是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 |
|||
|
|||
1. 授予版权许可 |
|||
|
|||
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 |
|||
|
|||
2. 授予专利许可 |
|||
|
|||
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 |
|||
|
|||
3. 无商标许可 |
|||
|
|||
“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 |
|||
|
|||
4. 分发限制 |
|||
|
|||
您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 |
|||
|
|||
5. 免责声明与责任限制 |
|||
|
|||
“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 |
|||
|
|||
6. 语言 |
|||
“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。 |
|||
|
|||
条款结束 |
|||
|
|||
如何将木兰宽松许可证,第2版,应用到您的软件 |
|||
|
|||
如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: |
|||
|
|||
1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; |
|||
|
|||
2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; |
|||
|
|||
3, 请将如下声明文本放入每个源文件的头部注释中。 |
|||
|
|||
Copyright (c) [Year] [name of copyright holder] |
|||
[Software Name] is licensed under Mulan PSL v2. |
|||
You can use this software according to the terms and conditions of the Mulan PSL v2. |
|||
You may obtain a copy of Mulan PSL v2 at: |
|||
http://license.coscl.org.cn/MulanPSL2 |
|||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. |
|||
See the Mulan PSL v2 for more details. |
|||
|
|||
|
|||
Mulan Permissive Software License,Version 2 |
|||
|
|||
Mulan Permissive Software License,Version 2 (Mulan PSL v2) |
|||
January 2020 http://license.coscl.org.cn/MulanPSL2 |
|||
|
|||
Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions: |
|||
|
|||
0. Definition |
|||
|
|||
Software means the program and related documents which are licensed under this License and comprise all Contribution(s). |
|||
|
|||
Contribution means the copyrightable work licensed by a particular Contributor under this License. |
|||
|
|||
Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. |
|||
|
|||
Legal Entity means the entity making a Contribution and all its Affiliates. |
|||
|
|||
Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. |
|||
|
|||
1. Grant of Copyright License |
|||
|
|||
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. |
|||
|
|||
2. Grant of Patent License |
|||
|
|||
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. |
|||
|
|||
3. No Trademark License |
|||
|
|||
No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in Section 4. |
|||
|
|||
4. Distribution Restriction |
|||
|
|||
You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. |
|||
|
|||
5. Disclaimer of Warranty and Limitation of Liability |
|||
|
|||
THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
|||
|
|||
6. Language |
|||
|
|||
THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL. |
|||
|
|||
END OF THE TERMS AND CONDITIONS |
|||
|
|||
How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software |
|||
|
|||
To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps: |
|||
|
|||
i Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; |
|||
|
|||
ii Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package; |
|||
|
|||
iii Attach the statement to the appropriate annotated syntax at the beginning of each source file. |
|||
|
|||
|
|||
Copyright (c) [Year] [name of copyright holder] |
|||
[Software Name] is licensed under Mulan PSL v2. |
|||
You can use this software according to the terms and conditions of the Mulan PSL v2. |
|||
You may obtain a copy of Mulan PSL v2 at: |
|||
http://license.coscl.org.cn/MulanPSL2 |
|||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. |
|||
See the Mulan PSL v2 for more details. |
|||
@ -0,0 +1 @@ |
|||
# 声明 |
|||
@ -0,0 +1,5 @@ |
|||
module.exports = { |
|||
presets: [ |
|||
'@vue/cli-plugin-babel/preset' |
|||
] |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
{ |
|||
"compilerOptions": { |
|||
"target": "es5", |
|||
"module": "esnext", |
|||
"baseUrl": "./", |
|||
"moduleResolution": "node", |
|||
"paths": { |
|||
"@/*": [ |
|||
"src/*" |
|||
] |
|||
}, |
|||
"lib": [ |
|||
"esnext", |
|||
"dom", |
|||
"dom.iterable", |
|||
"scripthost" |
|||
] |
|||
} |
|||
} |
|||
@ -0,0 +1,55 @@ |
|||
{ |
|||
"name": "company_report", |
|||
"version": "0.1.0", |
|||
"private": true, |
|||
"scripts": { |
|||
"serve": "vue-cli-service serve --open", |
|||
"dev": "vue-cli-service serve --open", |
|||
"build": "vue-cli-service build", |
|||
"lint": "vue-cli-service lint" |
|||
}, |
|||
"dependencies": { |
|||
"amfe-flexible": "^2.2.1", |
|||
"axios": "^0.27.2", |
|||
"core-js": "^3.8.3", |
|||
"postcss-pxtorem": "^6.0.0", |
|||
"vant": "^2.12.48", |
|||
"vue": "^2.6.14", |
|||
"vue-router": "^3.5.1", |
|||
"vuex": "^3.6.2", |
|||
"webpack-bundle-analyzer": "^4.7.0" |
|||
}, |
|||
"devDependencies": { |
|||
"@babel/core": "^7.12.16", |
|||
"@babel/eslint-parser": "^7.12.16", |
|||
"@vue/cli-plugin-babel": "~5.0.0", |
|||
"@vue/cli-plugin-eslint": "~5.0.0", |
|||
"@vue/cli-plugin-router": "~5.0.0", |
|||
"@vue/cli-plugin-vuex": "~5.0.0", |
|||
"@vue/cli-service": "~5.0.0", |
|||
"eslint": "^7.32.0", |
|||
"eslint-plugin-vue": "^8.0.3", |
|||
"less": "^4.0.0", |
|||
"less-loader": "^8.0.0", |
|||
"vue-template-compiler": "^2.6.14" |
|||
}, |
|||
"eslintConfig": { |
|||
"root": true, |
|||
"env": { |
|||
"node": true |
|||
}, |
|||
"extends": [ |
|||
"plugin:vue/essential", |
|||
"eslint:recommended" |
|||
], |
|||
"parserOptions": { |
|||
"parser": "@babel/eslint-parser" |
|||
}, |
|||
"rules": {} |
|||
}, |
|||
"browserslist": [ |
|||
"> 1%", |
|||
"last 2 versions", |
|||
"not dead" |
|||
] |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
module.exports = { |
|||
|
|||
publicPath: './', |
|||
assetsDir: './', |
|||
css: { |
|||
loaderOptions: { |
|||
postcss: { |
|||
plugins: [ |
|||
require('postcss-pxtorem')({ |
|||
rootValue: 37.5, |
|||
propList: ['*'] |
|||
}) |
|||
] |
|||
} |
|||
} |
|||
}, |
|||
} |
|||
|
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,17 @@ |
|||
<!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><%= htmlWebpackPlugin.options.title %></title> |
|||
</head> |
|||
<body> |
|||
<noscript> |
|||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> |
|||
</noscript> |
|||
<div id="app"></div> |
|||
<!-- built files will be auto injected --> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1,24 @@ |
|||
<template> |
|||
<div id="app"> |
|||
<router-view /> |
|||
</div> |
|||
</template> |
|||
|
|||
<style lang="less"> |
|||
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */ |
|||
dl, dt, dd, ul, ol, li, /* list elements 列表元素 */ |
|||
pre, /* text formatting elements 文本格式元素 */ |
|||
fieldset, lengend, button, input, textarea, /* form elements 表单元素 */ |
|||
th, td { |
|||
/* table elements 表格元素 */ |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
#app { |
|||
font-family: Avenir, Helvetica, Arial, sans-serif; |
|||
-webkit-font-smoothing: antialiased; |
|||
-moz-osx-font-smoothing: grayscale; |
|||
color: #2c3e50; |
|||
background: rgba(193,193,193,0.16); |
|||
} |
|||
</style> |
|||
@ -0,0 +1,17 @@ |
|||
import http from '../utils/http' |
|||
//
|
|||
/** |
|||
* @parms resquest 请求地址 例如:http://197.82.15.15:8088/request/...
|
|||
* @param '/testIp'代表vue-cil中config,index.js中配置的代理 |
|||
*/ |
|||
|
|||
// get请求
|
|||
const testApi = { |
|||
getListAPI(params) { |
|||
return http.get('/api/joke/list', params) |
|||
}, |
|||
postFormAPI(params) { |
|||
return http.post('/api/user/reg', params) |
|||
} |
|||
} |
|||
export default testApi |
|||
|
After Width: | Height: | Size: 832 B |
|
After Width: | Height: | Size: 163 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 2.7 KiB |
@ -0,0 +1,12 @@ |
|||
export default { |
|||
/**接口请求的基础路径 */ |
|||
baseUrl: { |
|||
// dev: 'http://192.168.0.93:8080', // 开发路径
|
|||
dev: 'https://yifengdian-smps.elinkservice.cn', |
|||
// dev: 'http://10.0.0.147:8301',
|
|||
pro: 'https://yifengdian-smps.elinkservice.cn' // 生产路径
|
|||
}, |
|||
}; |
|||
|
|||
|
|||
|
|||
@ -0,0 +1,17 @@ |
|||
import Vue from 'vue' |
|||
import App from './App.vue' |
|||
import router from './router' |
|||
import store from './store' |
|||
import 'amfe-flexible'; |
|||
import Vant from 'vant'; |
|||
import 'vant/lib/index.css'; |
|||
import axios from 'axios'; |
|||
|
|||
Vue.use(Vant); |
|||
Vue.config.productionTip = false; |
|||
new Vue({ |
|||
axios, |
|||
router, |
|||
store, |
|||
render: h => h(App) |
|||
}).$mount('#app') |
|||
@ -0,0 +1,21 @@ |
|||
import Vue from 'vue' |
|||
import VueRouter from 'vue-router' |
|||
import router_modular from '@/router/router_modular/index.js' |
|||
Vue.use(VueRouter) |
|||
|
|||
const routes = [ |
|||
...router_modular |
|||
] |
|||
|
|||
const router = new VueRouter({ |
|||
routes |
|||
}) |
|||
//全局路由守卫
|
|||
router.beforeEach((to,from,next)=>{ |
|||
console.log(to,from); |
|||
next() |
|||
}) |
|||
router.afterEach((to,from)=>{ |
|||
console.log(to,from); |
|||
}) |
|||
export default router |
|||
@ -0,0 +1,19 @@ |
|||
|
|||
const router_modular = [ |
|||
{ |
|||
path: '/', |
|||
name: 'login', |
|||
component: () => import('@/views/login') |
|||
}, |
|||
{ |
|||
path: '/list', |
|||
name: 'list', |
|||
component: () => import(/* webpackChunkName: "about" */ '@/views/vegetableList.vue') |
|||
}, |
|||
{ |
|||
path: '/vegetableDetails', |
|||
name: 'vegetableDetails', |
|||
component: () => import(/* webpackChunkName: "about" */ '@/views/vegetableDetails.vue') |
|||
} |
|||
] |
|||
export default router_modular |
|||
@ -0,0 +1,18 @@ |
|||
import Vue from 'vue' |
|||
import Vuex from 'vuex' |
|||
import store_modular from '@/store/store_modular/index.js' |
|||
Vue.use(Vuex) |
|||
|
|||
export default new Vuex.Store({ |
|||
state: { |
|||
}, |
|||
getters: { |
|||
}, |
|||
mutations: { |
|||
}, |
|||
actions: { |
|||
}, |
|||
modules: { |
|||
store_modular |
|||
} |
|||
}) |
|||
@ -0,0 +1,23 @@ |
|||
const state = { |
|||
name: '勇敢小陈' |
|||
} |
|||
const getters = { |
|||
|
|||
} |
|||
const actions = { |
|||
|
|||
} |
|||
const mutations = { |
|||
operation(state, value) { |
|||
state.name += value |
|||
} |
|||
} |
|||
|
|||
const store_modular = { |
|||
namespaced: true,//开启命名空间,命名空间是为了解决方法可能出现命名重复的问题
|
|||
state, |
|||
getters, |
|||
actions, |
|||
mutations |
|||
} |
|||
export default store_modular |
|||
@ -0,0 +1,45 @@ |
|||
/**** http.js ****/ |
|||
// 导入封装好的axios实例
|
|||
import request from './request' |
|||
|
|||
const http ={ |
|||
/** |
|||
* methods: 请求 |
|||
* @param url 请求地址 |
|||
* @param params 请求参数 |
|||
*/ |
|||
get(url,params){ |
|||
const config = { |
|||
method: 'get', |
|||
url:url |
|||
} |
|||
if(params) config.params = params |
|||
return request(config) |
|||
}, |
|||
post(url,params){ |
|||
const config = { |
|||
method: 'post', |
|||
url:url |
|||
} |
|||
if(params) config.data = params |
|||
return request(config) |
|||
}, |
|||
put(url,params){ |
|||
const config = { |
|||
method: 'put', |
|||
url:url |
|||
} |
|||
if(params) config.params = params |
|||
return request(config) |
|||
}, |
|||
delete(url,params){ |
|||
const config = { |
|||
method: 'delete', |
|||
url:url |
|||
} |
|||
if(params) config.params = params |
|||
return request(config) |
|||
} |
|||
} |
|||
//导出
|
|||
export default http |
|||
@ -0,0 +1,45 @@ |
|||
/**** request.js ****/ |
|||
// 导入axios
|
|||
import axios from 'axios' |
|||
import config from '@/config/index'; |
|||
const baseUrl = |
|||
process.env.NODE_ENV === 'development' |
|||
? config.baseUrl.dev |
|||
: config.baseUrl.pro; |
|||
//1. 创建新的axios实例,
|
|||
const service = axios.create({ |
|||
// 公共接口--这里注意后面会讲
|
|||
baseURL: baseUrl, |
|||
// 超时时间 单位是ms,这里设置了3s的超时时间
|
|||
timeout: 60 * 1000 |
|||
}) |
|||
// 2.请求拦截器
|
|||
service.interceptors.request.use(config => { |
|||
//发请求前做的一些处理,数据转化,配置请求头,设置token,设置loading等,根据需求去添加
|
|||
config.data = JSON.stringify(config.data); //数据转化,也可以使用qs转换
|
|||
config.headers = { |
|||
'Content-Type':'application/json' //配置请求头
|
|||
} |
|||
//如有需要:注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
|
|||
//const token = getCookie('名称');//这里取token之前,你肯定需要先拿到token,存一下
|
|||
// if(token){
|
|||
// config.params = {'token':token} //如果要求携带在参数中
|
|||
// config.headers.token= token; //如果要求携带在请求头中
|
|||
// }
|
|||
return config |
|||
}, error => { |
|||
Promise.reject(error) |
|||
}) |
|||
|
|||
// 3.响应拦截器
|
|||
service.interceptors.response.use(response => { |
|||
//接收到响应数据并成功后的一些共有的处理,关闭loading等
|
|||
|
|||
return response |
|||
}, error => { |
|||
/***** 接收到异常响应的处理开始 *****/ |
|||
|
|||
return Promise.resolve(error.response) |
|||
}) |
|||
//4.导入文件
|
|||
export default service |
|||
@ -0,0 +1,109 @@ |
|||
<!-- Login.vue 文件 --> |
|||
<template> |
|||
<div class="login-container"> |
|||
<!-- 顶部标题栏 --> |
|||
<header class="header"> |
|||
<!-- <img src="@/assets/logo.png" alt="Brand Logo" class="logo" /> --> |
|||
<h1>欢迎登录</h1> |
|||
</header> |
|||
|
|||
<!-- 登录表单 --> |
|||
<form @submit.prevent="handleLogin"> |
|||
<!-- 手机号输入框 --> |
|||
<div> |
|||
手机号: |
|||
<input |
|||
type="tel" |
|||
v-model="phone" |
|||
placeholder="请输入手机号码" |
|||
required |
|||
class="input-field" |
|||
/> |
|||
</div> |
|||
|
|||
<!-- 密码输入框 --> |
|||
<div> |
|||
密码: |
|||
<input |
|||
type="password" |
|||
v-model="password" |
|||
placeholder="请输入密码" |
|||
required |
|||
class="input-field" |
|||
/> |
|||
</div> |
|||
<!-- 登录按钮 --> |
|||
<button type="submit" class="login-btn">登录</button> |
|||
|
|||
<!-- 注册按钮 --> |
|||
<!-- <router-link to="/register" class="register-btn">立即注册</router-link> --> |
|||
</form> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
phone: "", |
|||
password: "", |
|||
}; |
|||
}, |
|||
methods: { |
|||
handleLogin() { |
|||
// 在这里添加实际的登录逻辑,比如调用API发送请求 |
|||
console.log("正在登录:", this.phone, "和", this.password); |
|||
|
|||
// 假设有个登录服务 |
|||
// this.$axios.post('/api/login', { phone: this.phone, password: this.password }) |
|||
// .then(response => { |
|||
// // 处理登录成功逻辑 |
|||
// }) |
|||
// .catch(error => { |
|||
// // 处理错误逻辑 |
|||
// }); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.login-container { |
|||
/* 添加适应手机屏幕的样式 */ |
|||
} |
|||
|
|||
.header { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
padding: 16px; |
|||
} |
|||
|
|||
.logo { |
|||
width: 50px; |
|||
height: auto; |
|||
} |
|||
|
|||
.input-field { |
|||
width: 97%; |
|||
padding: 10px; |
|||
margin-bottom: 16px; |
|||
} |
|||
|
|||
.login-btn, |
|||
.register-btn { |
|||
width: 100%; |
|||
padding: 10px; |
|||
font-size: 16px; |
|||
background-color: #007bff; |
|||
color: white; |
|||
border: none; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
.register-btn { |
|||
background-color: #6c757d; |
|||
text-decoration: none; |
|||
margin-top: 16px; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,172 @@ |
|||
<template> |
|||
<div class="login-container"> |
|||
<!-- 顶部标题栏 --> |
|||
<div class="header"> |
|||
<div>你好, <br />欢迎使用移风</div> |
|||
</div> |
|||
<!-- 登录表单 --> |
|||
<div class="form-box"> |
|||
<!-- 企业名称输入框 --> |
|||
<div class="input-box"> |
|||
<img class="input-icon" src="../assets/user.png" /> |
|||
<van-field |
|||
class="input-field" |
|||
v-model="placeOrgName" |
|||
required |
|||
placeholder="请输入企业名称" |
|||
/> |
|||
</div> |
|||
|
|||
<!-- 密码输入框 --> |
|||
<div class="input-box"> |
|||
<img class="input-icon" src="../assets/password.png" /> |
|||
<van-field |
|||
type="password" |
|||
v-model="password" |
|||
placeholder="请输入密码" |
|||
required |
|||
class="input-field" |
|||
/> |
|||
</div> |
|||
<!-- 登录按钮 --> |
|||
<button type="submit" @click="handleLogin" class="login-btn">登录</button> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Toast from "vant/es/toast"; |
|||
import axios from "axios"; |
|||
import config from "@/config/index"; |
|||
const baseUrl = |
|||
process.env.NODE_ENV === "development" ? "" : config.baseUrl.pro; |
|||
export default { |
|||
data() { |
|||
return { |
|||
placeOrgName: null, |
|||
password: null, |
|||
}; |
|||
}, |
|||
methods: { |
|||
handleLogin() { |
|||
console.log(this); |
|||
// 在这里添加实际的登录逻辑,比如调用API发送请求 |
|||
if ( |
|||
(this.placeOrgName == null || this.placeOrgName == "") && |
|||
(this.password == null || this.password == "") |
|||
) { |
|||
Toast("企业名称和密码不能为空!"); |
|||
return; |
|||
} |
|||
if (this.placeOrgName == null || this.placeOrgName == "") { |
|||
Toast("企业名称不能为空!"); |
|||
return; |
|||
} |
|||
if (this.password == null || this.password == "") { |
|||
Toast("密码不能为空!"); |
|||
return; |
|||
} |
|||
Toast.loading({ |
|||
message: "加载中...", |
|||
forbidClick: true, |
|||
}); |
|||
// 登录服务 |
|||
axios({ |
|||
method: "post", |
|||
url: |
|||
baseUrl + |
|||
"/api/resi/partymember/screenreportenterprise/yifengScreen/login", |
|||
data: { placeOrgName: this.placeOrgName, password: this.password }, //GET参数要通过params属性提供 |
|||
}) |
|||
.then((response) => { |
|||
// 处理登录成功逻辑 |
|||
if (response.data.code == 0) { |
|||
this.$router.push(`/list?placeOrgName=${this.placeOrgName}`); // 跳转到指定路径 |
|||
} else { |
|||
Toast({ message: response.data.msg }); |
|||
} |
|||
}) |
|||
.catch((error) => { |
|||
// 处理错误逻辑 |
|||
console.log("error::", error); |
|||
}); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.login-container { |
|||
width: 100%; |
|||
height: 100vh; |
|||
/* 添加适应手机屏幕的样式 */ |
|||
} |
|||
|
|||
.form-box { |
|||
height: calc(100vh - 380px); |
|||
background: #ffffff; |
|||
position: relative; |
|||
border-radius: 24px 24px 0 0; |
|||
padding: 60px 0 60px 30px; |
|||
top: -120px; |
|||
} |
|||
|
|||
.input-icon { |
|||
position: relative; |
|||
top: 12px; |
|||
left: 18px; |
|||
width: 24px; |
|||
height: 24px; |
|||
z-index: 10; |
|||
} |
|||
.input-field { |
|||
/* margin-bottom: 24px; */ |
|||
height: 46px; |
|||
width: calc(100% + 46px); |
|||
left: -28px; |
|||
line-height: 46px; |
|||
/* background: #f5f5fa; */ |
|||
background: #e8f0fe; |
|||
font-size: 18px; |
|||
border-radius: 23px; |
|||
padding: 0 18px 0 58px; |
|||
border: 0; |
|||
} |
|||
.input-box { |
|||
display: flex; |
|||
width: 100%; |
|||
margin-bottom: 48px; |
|||
} |
|||
.header { |
|||
position: relative; |
|||
top: -28px; |
|||
height: 190px; |
|||
padding: 119px 0 0 30px; |
|||
background: url(../assets/loginBg.png) no-repeat; |
|||
background-size: 100% 100%; |
|||
font-family: PingFang SC; |
|||
font-weight: bold; |
|||
font-size: 22px; |
|||
color: #ffffff; |
|||
line-height: 30px; |
|||
} |
|||
|
|||
.login-btn { |
|||
width: calc(100% - 30px); |
|||
padding: 10px; |
|||
height: 42px; |
|||
background: #0089f0; |
|||
border-radius: 21px; |
|||
font-size: 16px; |
|||
background-color: #007bff; |
|||
color: white; |
|||
border: none; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
.register-btn { |
|||
background-color: #6c757d; |
|||
text-decoration: none; |
|||
margin-top: 16px; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,444 @@ |
|||
<template> |
|||
<div> |
|||
<div class="head"> |
|||
<div class="arrow" @click="goback"><van-icon name="arrow-left" /></div> |
|||
<div class="head-title">产量上报</div> |
|||
</div> |
|||
<div style="height: 54px"></div> |
|||
<div class="list"> |
|||
<div |
|||
class="list-item" |
|||
v-for="(item, i) in vegetableList" |
|||
:key="'item' + i" |
|||
> |
|||
<div |
|||
v-if="vegetableList.length != 1" |
|||
style=" |
|||
font-size: 24px; |
|||
width: 100%; |
|||
text-align: right; |
|||
position: relative; |
|||
top: -12px; |
|||
color: red; |
|||
" |
|||
> |
|||
<a @click="onDelete(i)"><van-icon name="delete-o" /></a> |
|||
</div> |
|||
<van-cell-group :border="false"> |
|||
<van-field |
|||
label="品类" |
|||
right-icon="arrow" |
|||
@click="onDisplayName(i)" |
|||
readonly |
|||
:value="item.vegetableCategory" |
|||
required |
|||
placeholder="请选择品类" |
|||
/> |
|||
<van-field |
|||
label="种植时间" |
|||
right-icon="arrow" |
|||
:value="item.growTime" |
|||
placeholder="请选择种植时间" |
|||
required |
|||
readonly |
|||
@click="onDisplay(i)" |
|||
/> |
|||
<van-field |
|||
label="上市时间" |
|||
right-icon="arrow" |
|||
:value="item.marketTime" |
|||
placeholder="请选择上市时间" |
|||
required |
|||
readonly |
|||
@click="onDisplay1(i)" |
|||
/> |
|||
<van-field |
|||
label="产量(吨)" |
|||
right-icon="arrow" |
|||
v-model="item.output" |
|||
placeholder="请输入产量" |
|||
required |
|||
/> |
|||
</van-cell-group> |
|||
</div> |
|||
<button @click="addRow" class="login-btn1"> |
|||
<van-icon name="plus" /> 添加 |
|||
</button> |
|||
</div> |
|||
<div v-show="typeShow" class="picker-box"> |
|||
<van-picker |
|||
v-show="typeShow" |
|||
:columns="columns" |
|||
:value-key="vegetableList[index].vegetableCategory" |
|||
@cancel="onCancel" |
|||
@confirm="onConfirm" |
|||
show-toolbar |
|||
/> |
|||
</div> |
|||
<div v-show="timeShow" class="picker-box"> |
|||
<van-datetime-picker |
|||
type="date" |
|||
v-show="timeShow" |
|||
@cancel="onCancelTime" |
|||
@confirm="onConfirmTime" |
|||
:value="new Date(vegetableList[index].growTime)" |
|||
/> |
|||
</div> |
|||
<div v-show="timeShow1" class="picker-box"> |
|||
<van-datetime-picker |
|||
type="date" |
|||
v-show="timeShow1" |
|||
@cancel="onCancelTime1" |
|||
:default-date="new Date()" |
|||
@confirm="onConfirmTime1" |
|||
:value="new Date(vegetableList[index].marketTime)" |
|||
/> |
|||
</div> |
|||
<div class="bottom"> |
|||
<button @click="onSubmit" class="login-btn">上报</button> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Toast from "vant/es/toast"; |
|||
import Dialog from "vant/es/dialog"; |
|||
import axios from "axios"; |
|||
import config from "@/config/index"; |
|||
const baseUrl = |
|||
process.env.NODE_ENV === "development" ? "" : config.baseUrl.pro; |
|||
export default { |
|||
data() { |
|||
return { |
|||
vegetableList: [ |
|||
{ |
|||
vegetableCategory: null, |
|||
output: null, |
|||
growTime: this.formatDateTime(new Date()), |
|||
marketTime: this.formatDateTime(new Date()), |
|||
}, |
|||
], |
|||
name: null, |
|||
num: null, |
|||
time: null, |
|||
time1: null, |
|||
index: 0, |
|||
typeShow: false, |
|||
timeShow: false, |
|||
timeShow1: false, |
|||
placeOrgName: null, |
|||
columns: ["白菜", "土豆", "温州", "嘉兴", "湖州"], |
|||
list: [], |
|||
}; |
|||
}, |
|||
mounted() { |
|||
function getIframeQueryParams() { |
|||
// 使用URLSearchParams解析查询参数 |
|||
function getStringAfterQuestionMark(str) { |
|||
return str.split("?").pop(); |
|||
} |
|||
var result = getStringAfterQuestionMark(window.location.href); |
|||
var params = new URLSearchParams(result); |
|||
// 创建一个对象来存储解析后的参数 |
|||
var queryParams = {}; |
|||
// 遍历所有查询参数并存储到对象中 |
|||
params.forEach((value, key) => { |
|||
queryParams[key] = value; |
|||
}); |
|||
|
|||
return queryParams; |
|||
} |
|||
const query = getIframeQueryParams(); |
|||
this.placeOrgName = query.placeOrgName; |
|||
this.vegetableList = [ |
|||
{ |
|||
vegetableCategory: null, |
|||
output: null, |
|||
placeOrgName: query.placeOrgName, |
|||
growTime: this.formatDateTime(new Date()), |
|||
marketTime: this.formatDateTime(new Date()), |
|||
}, |
|||
]; |
|||
// 登录服务 |
|||
axios({ |
|||
method: "post", |
|||
url: `${baseUrl}/api/sys/dict/data/yifengScreen/dictlist`, |
|||
data: { |
|||
dictType: "vegetable", |
|||
}, |
|||
}) |
|||
.then((response) => { |
|||
// 处理登录成功逻辑 |
|||
if (response.data.code == 0) { |
|||
this.columns = response.data.data.map((item) => { |
|||
return item.label; |
|||
}); |
|||
} else { |
|||
Toast({ message: response.data.msg }); |
|||
} |
|||
}) |
|||
.catch((error) => { |
|||
// 处理错误逻辑 |
|||
console.log("error::", error); |
|||
}); |
|||
}, |
|||
methods: { |
|||
onInput(val) {}, |
|||
onConfirm(val) { |
|||
this.vegetableList[this.index].vegetableCategory = val; |
|||
this.typeShow = false; |
|||
}, |
|||
onCancel() { |
|||
this.typeShow = false; |
|||
}, |
|||
onDelete(i) { |
|||
const _this = this; |
|||
Dialog.confirm({ |
|||
title: "删除确认", |
|||
message: "确认要删除该条数据吗?", |
|||
confirmButtonText: "确认", |
|||
cancelButtonText: "取消", |
|||
}) |
|||
.then(() => { |
|||
this.index = 0; |
|||
const arr = _this.vegetableList.filter((item, index) => i != index); |
|||
_this.vegetableList = [...arr]; |
|||
}) |
|||
.catch(() => { |
|||
console.log("zoule"); |
|||
// on cancel |
|||
}); |
|||
}, |
|||
onDisplayName(index) { |
|||
this.index = index; |
|||
this.typeShow = true; |
|||
}, |
|||
formatDateTime(date) { |
|||
function padZero(num) { |
|||
return num < 10 ? "0" + num : num; |
|||
} |
|||
|
|||
var year = date.getFullYear(); |
|||
var month = padZero(date.getMonth() + 1); |
|||
var day = padZero(date.getDate()); |
|||
// var hours = padZero(date.getHours()); |
|||
// var minutes = padZero(date.getMinutes()); |
|||
// var seconds = padZero(date.getSeconds()); |
|||
|
|||
return year + "-" + month + "-" + day; |
|||
// return ( |
|||
// year + |
|||
// "-" + |
|||
// month + |
|||
// "-" + |
|||
// day + |
|||
// " " + |
|||
// hours + |
|||
// ":" + |
|||
// minutes + |
|||
// ":" + |
|||
// seconds |
|||
// ); |
|||
}, |
|||
formatDateTime1(date) { |
|||
function padZero(num) { |
|||
return num < 10 ? "0" + num : num; |
|||
} |
|||
|
|||
var year = date.getFullYear(); |
|||
var month = padZero(date.getMonth() + 1); |
|||
var day = padZero(date.getDate()); |
|||
var hours = padZero(date.getHours()); |
|||
var minutes = padZero(date.getMinutes()); |
|||
var seconds = padZero(date.getSeconds()); |
|||
|
|||
// return year + "-" + month + "-" + day; |
|||
return ( |
|||
year + |
|||
"-" + |
|||
month + |
|||
"-" + |
|||
day + |
|||
" " + |
|||
hours + |
|||
":" + |
|||
minutes + |
|||
":" + |
|||
seconds |
|||
); |
|||
}, |
|||
onConfirmTime(val) { |
|||
this.vegetableList[this.index].growTime = this.formatDateTime(val); |
|||
this.timeShow = false; |
|||
this.index = 0; |
|||
}, |
|||
onCancelTime() { |
|||
this.timeShow = false; |
|||
this.index = 0; |
|||
}, |
|||
onConfirmTime1(val) { |
|||
this.vegetableList[this.index].marketTime = this.formatDateTime(val); |
|||
this.timeShow1 = false; |
|||
this.index = 0; |
|||
}, |
|||
onCancelTime1() { |
|||
this.timeShow1 = false; |
|||
this.index = 0; |
|||
}, |
|||
onDisplay(index) { |
|||
this.index = index; |
|||
this.timeShow = true; |
|||
}, |
|||
onDisplay1(index) { |
|||
this.index = index; |
|||
this.timeShow1 = true; |
|||
}, |
|||
addRow() { |
|||
this.vegetableList = [ |
|||
...this.vegetableList, |
|||
{ |
|||
vegetableCategory: null, |
|||
output: null, |
|||
placeOrgName: this.placeOrgName, |
|||
growTime: this.formatDateTime(new Date()), |
|||
marketTime: this.formatDateTime(new Date()), |
|||
}, |
|||
]; |
|||
}, |
|||
goback() { |
|||
this.$router.go(-1); // 在history记录中向前或向后跳转指定步数的路径 |
|||
}, |
|||
onSubmit() { |
|||
let bool = false; |
|||
this.vegetableList.forEach((item) => { |
|||
if (item.vegetableCategory == null || item.vegetableCategory == "") { |
|||
bool = true; |
|||
} |
|||
if (item.output == null || item.output == "") { |
|||
bool = true; |
|||
} |
|||
if (item.growTime == null || item.growTime == "") { |
|||
bool = true; |
|||
} |
|||
if (item.marketTime == null || item.marketTime == "") { |
|||
bool = true; |
|||
} |
|||
}); |
|||
if (bool) { |
|||
Toast("有必填选项或输入项未录入,请检查!"); |
|||
return; |
|||
} |
|||
Toast.loading({ |
|||
message: "加载中...", |
|||
forbidClick: true, |
|||
}); |
|||
// 登录服务 |
|||
axios({ |
|||
method: "post", |
|||
url: `${baseUrl}/api/resi/partymember/screenenterpriseoutput/yifengScreen/submitOutput`, |
|||
data: { |
|||
vegetableList: this.vegetableList.map((item) => { |
|||
return { |
|||
...item, |
|||
growTime: this.formatDateTime1(new Date(item.growTime)), |
|||
marketTime: this.formatDateTime1(new Date(item.marketTime)), |
|||
}; |
|||
}), |
|||
}, |
|||
}) |
|||
.then((response) => { |
|||
// 处理登录成功逻辑 |
|||
console.log("response::", response); |
|||
if (response.data.code == 0) { |
|||
Toast("提交成功"); |
|||
this.goback(); |
|||
} else { |
|||
Toast({ message: response.data.msg }); |
|||
} |
|||
}) |
|||
.catch((error) => { |
|||
// 处理错误逻辑 |
|||
console.log("error::", error); |
|||
}); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.list { |
|||
padding: 12px; |
|||
height: calc(100vh - 170px); |
|||
overflow-y: scroll; |
|||
} |
|||
.list-item { |
|||
background: #ffffff; |
|||
padding: 16px; |
|||
border-radius: 8px; |
|||
margin-bottom: 12px; |
|||
} |
|||
.head { |
|||
line-height: 54px; |
|||
height: 54px; |
|||
width: 100%; |
|||
display: flex; |
|||
font-size: 18px; |
|||
font-weight: 600; |
|||
background: #ffffff; |
|||
position: absolute; |
|||
top: 0; |
|||
} |
|||
.arrow { |
|||
width: 54px; |
|||
height: 54px; |
|||
padding-left: 12px; |
|||
} |
|||
.head-title { |
|||
padding-left: 25%; |
|||
} |
|||
.container { |
|||
padding: 24px 16px; |
|||
} |
|||
.picker-box { |
|||
width: 100%; |
|||
position: absolute; |
|||
bottom: 0px; |
|||
z-index: 100; |
|||
} |
|||
.login-btn { |
|||
padding: 10px; |
|||
width: 100%; |
|||
height: 42px; |
|||
background: #0089f0; |
|||
border-radius: 21px; |
|||
font-size: 16px; |
|||
font-weight: 900; |
|||
background-color: #007bff; |
|||
color: white; |
|||
border: none; |
|||
cursor: pointer; |
|||
} |
|||
.login-btn1 { |
|||
padding: 10px; |
|||
width: calc(100% - 24px); |
|||
margin-left: 12px; |
|||
margin-bottom: 24px; |
|||
height: 42px; |
|||
background: #0089f0; |
|||
border-radius: 21px; |
|||
font-size: 16px; |
|||
font-weight: 900; |
|||
background-color: #007bff; |
|||
color: white; |
|||
border: none; |
|||
cursor: pointer; |
|||
} |
|||
.bottom { |
|||
width: calc(100% - 48px); |
|||
position: absolute; |
|||
bottom: 0px; |
|||
height: 64px; |
|||
padding: 12px 24px; |
|||
text-shadow: -2px -2px 5px #ccc; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,222 @@ |
|||
<template> |
|||
<div style="background-color: #ffffff"> |
|||
<div class="head1"> |
|||
<!-- <div class="arrow" @click="goback"><van-icon name="arrow-left" /></div> --> |
|||
<div class="head-title">上次上报品类列表</div> |
|||
<div class="head-line"></div> |
|||
</div> |
|||
<div style="height: 54px"></div> |
|||
<div class="container"> |
|||
<div class="head"> |
|||
<div class="title">品类</div> |
|||
<div class="title">产量</div> |
|||
<div class="title">种植时间</div> |
|||
<div class="title">上市时间</div> |
|||
</div> |
|||
<div class="content"> |
|||
<div class="list-row" v-for="item in list" :key="item.name"> |
|||
<div class="text">{{ item.vegetableCategory }}</div> |
|||
<div class="text">{{ item.output }}</div> |
|||
<div class="text">{{ item.growTime }}</div> |
|||
<div class="text">{{ item.marketTime }}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="bottom"> |
|||
<button @click="shangbao" class="login-btn">上报</button> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Toast from "vant/es/toast"; |
|||
import axios from "axios"; |
|||
import config from "@/config/index"; |
|||
const baseUrl = |
|||
process.env.NODE_ENV === "development" ? "" : config.baseUrl.pro; |
|||
export default { |
|||
data() { |
|||
return { |
|||
placeOrgName: null, |
|||
list: [], |
|||
}; |
|||
}, |
|||
mounted() { |
|||
function getIframeQueryParams() { |
|||
// 使用URLSearchParams解析查询参数 |
|||
function getStringAfterQuestionMark(str) { |
|||
return str.split("?").pop(); |
|||
} |
|||
var result = getStringAfterQuestionMark(window.location.href); |
|||
var params = new URLSearchParams(result); |
|||
// 创建一个对象来存储解析后的参数 |
|||
var queryParams = {}; |
|||
// 遍历所有查询参数并存储到对象中 |
|||
params.forEach((value, key) => { |
|||
queryParams[key] = value; |
|||
}); |
|||
|
|||
return queryParams; |
|||
} |
|||
const query = getIframeQueryParams(); |
|||
this.placeOrgName = query.placeOrgName; |
|||
this.getData(); |
|||
}, |
|||
methods: { |
|||
shangbao() { |
|||
this.$router.push("/vegetableDetails?placeOrgName=" + this.placeOrgName); // 跳转到指定路径 |
|||
// this.$router.replace('/path'); // 跳转到指定路径,且不会在history中留下记录 |
|||
// this.$router.go(1); // 在history记录中向前或向后跳转指定步数的路径 |
|||
}, |
|||
formatDateTime(date) { |
|||
function padZero(num) { |
|||
return num < 10 ? "0" + num : num; |
|||
} |
|||
var year = date.getFullYear(); |
|||
var month = padZero(date.getMonth() + 1); |
|||
var day = padZero(date.getDate()); |
|||
return year + "-" + month + "-" + day; |
|||
}, |
|||
getData() { |
|||
Toast.loading({ |
|||
message: "加载中...", |
|||
forbidClick: true, |
|||
}); |
|||
// 登录服务 |
|||
axios({ |
|||
method: "get", |
|||
url: `${baseUrl}/api/resi/partymember/screenenterpriseoutput/yifengScreen/getVegetableByEnterprise/${this.placeOrgName}`, |
|||
}) |
|||
.then((response) => { |
|||
// 处理登录成功逻辑 |
|||
if (response.data.code == 0) { |
|||
this.list = response.data.data.map((item) => { |
|||
return { |
|||
...item, |
|||
growTime: this.formatDateTime(new Date(item.growTime)), |
|||
marketTime: this.formatDateTime(new Date(item.marketTime)), |
|||
}; |
|||
}); |
|||
} else { |
|||
Toast({ message: response.data.msg }); |
|||
} |
|||
}) |
|||
.catch((error) => { |
|||
// 处理错误逻辑 |
|||
console.log("error::", error); |
|||
}); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.container { |
|||
padding: 24px 16px; |
|||
} |
|||
.content { |
|||
height: calc(100vh - 220px); |
|||
overflow: hidden; |
|||
overflow-y: scroll; |
|||
} |
|||
.login-btn { |
|||
padding: 10px; |
|||
width: 100%; |
|||
height: 42px; |
|||
background: #0089f0; |
|||
border-radius: 21px; |
|||
font-size: 16px; |
|||
font-weight: 900; |
|||
background-color: #007bff; |
|||
color: white; |
|||
border: none; |
|||
cursor: pointer; |
|||
} |
|||
.bottom { |
|||
width: calc(100% - 48px); |
|||
position: absolute; |
|||
bottom: 0px; |
|||
height: 64px; |
|||
padding: 12px 24px; |
|||
background: #ffffff; |
|||
} |
|||
.title { |
|||
height: 28px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
font-size: 16px; |
|||
color: #666666; |
|||
line-height: 41px; |
|||
} |
|||
.head { |
|||
display: flex; |
|||
margin-bottom: 12px; |
|||
} |
|||
.list-row { |
|||
font-family: PingFang SC; |
|||
display: flex; |
|||
font-weight: 500; |
|||
font-size: 16px; |
|||
line-height: 41px; |
|||
} |
|||
.list-row:nth-child(odd) { |
|||
background: rgba(58, 128, 231, 0.2); |
|||
} |
|||
.head > .title:nth-child(1) { |
|||
width: 140px; |
|||
padding-left: 8px; |
|||
} |
|||
.head > .title:nth-child(2) { |
|||
width: 100px; |
|||
padding-left: 8px; |
|||
} |
|||
.head > .title:nth-child(3) { |
|||
width: 180px; |
|||
} |
|||
.head > .title:nth-child(4) { |
|||
width: 180px; |
|||
} |
|||
.list-row > .text:nth-child(1) { |
|||
width: 140px; |
|||
padding-left: 8px; |
|||
overflow: hidden; |
|||
white-space: nowrap; |
|||
text-overflow: ellipsis; |
|||
} |
|||
.list-row > .text:nth-child(2) { |
|||
width: 100px; |
|||
padding-left: 8px; |
|||
} |
|||
.list-row > .text:nth-child(3) { |
|||
width: 180px; |
|||
} |
|||
.list-row > .text:nth-child(4) { |
|||
width: 180px; |
|||
} |
|||
|
|||
.head1 { |
|||
line-height: 54px; |
|||
height: 54px; |
|||
width: 100%; |
|||
font-size: 18px; |
|||
font-weight: 600; |
|||
background: #ffffff; |
|||
position: absolute; |
|||
border-bottom: 1px soild #cccccc !important; |
|||
} |
|||
.arrow { |
|||
width: 54px; |
|||
height: 54px; |
|||
padding-left: 12px; |
|||
} |
|||
.head-title { |
|||
/* padding-left: 23%; */ |
|||
width: 100%; |
|||
text-align: center; |
|||
} |
|||
.head-line { |
|||
width: 100%; |
|||
height: 1px; |
|||
background: rgba(58, 128, 231, 0.2); |
|||
} |
|||
</style> |
|||
@ -0,0 +1,33 @@ |
|||
const { |
|||
defineConfig |
|||
} = require('@vue/cli-service') |
|||
const bundleAnalyzer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin |
|||
module.exports = defineConfig({ |
|||
transpileDependencies: true, |
|||
lintOnSave: false, //关闭eslint语法检测
|
|||
outputDir: 'yifengdian-company-report', |
|||
publicPath:'/yifengdian-company-report/', |
|||
devServer: { |
|||
host: 'localhost', |
|||
port: 8080, |
|||
hot: true, |
|||
https: false, |
|||
proxy: { //配置多个代理
|
|||
'/api': { |
|||
target: 'https://yifengdian-smps.elinkservice.cn', |
|||
// target: 'http://127.0.0.1:10001/api/',
|
|||
// pathRewrite: {
|
|||
// '^/api': '/api'
|
|||
// },
|
|||
logLevel: 'debug', |
|||
changeOrigin: true, |
|||
secure: false |
|||
}, |
|||
} |
|||
}, |
|||
configureWebpack:config=>{ |
|||
config.plugins.push( |
|||
new bundleAnalyzer() |
|||
) |
|||
} |
|||
}) |
|||