yshop2.0.2,修复issue#I1B8RB,#I1B49Y,#I1BASM,#I1B9O7,#I1B9ED

This commit is contained in:
hupeng
2020-03-11 22:16:23 +08:00
parent 16a1fbc139
commit 1357535565
17 changed files with 19 additions and 29 deletions

View File

@ -1,4 +1,4 @@
# https://editorconfig.org
root = true root = true
[*] [*]

View File

@ -4,5 +4,6 @@ ENV = 'development'
VUE_APP_BASE_API = 'http://localhost:8000' VUE_APP_BASE_API = 'http://localhost:8000'
VUE_APP_WS_API = 'ws://localhost:8000' VUE_APP_WS_API = 'ws://localhost:8000'
# 是否启用 babel-plugin-dynamic-import-node插件 # 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -1,5 +1,6 @@
ENV = 'production' ENV = 'production'
# 接口地址 # 接口地址
VUE_APP_BASE_API = 'https://yshopapi.dayouqiantu.cn' VUE_APP_BASE_API = 'https://yshopapi.dayouqiantu.cn'
VUE_APP_WS_API = 'ws://yshopapi.dayouqiantu.cn' VUE_APP_WS_API = 'ws://yshopapi.dayouqiantu.cn'

View File

@ -3,3 +3,5 @@ src/assets
public public
dist dist
src/views src/views

View File

@ -11,7 +11,6 @@ module.exports = {
}, },
extends: ['plugin:vue/recommended', 'eslint:recommended'], extends: ['plugin:vue/recommended', 'eslint:recommended'],
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue //it is base on https://github.com/vuejs/eslint-config-vue
rules: { rules: {
"vue/max-attributes-per-line": [2, { "vue/max-attributes-per-line": [2, {

2
.gitignore vendored
View File

@ -10,7 +10,7 @@ tests/**/coverage/
tests/e2e/reports tests/e2e/reports
selenium-debug.log selenium-debug.log
# Editor directories and files # directories and files
.idea .idea
.vscode .vscode
*.suo *.suo

View File

@ -3,3 +3,4 @@ node_js: 10
script: npm run test script: npm run test
notifications: notifications:
email: false email: false

View File

@ -176,7 +176,7 @@ recommend that a file or class name and description of purpose be included on
the same "printed page" as the copyright notice for easier identification within the same "printed page" as the copyright notice for easier identification within
third-party archives. third-party archives.
Copyright 2019 Zheng Jie Copyright 2019 Zheng Jie, hu peng
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
const plugins = ['@vue/babel-plugin-transform-vue-jsx'] const plugins = ['@vue/babel-plugin-transform-vue-jsx']
// 生产环境移除console // 生产环境移除 console
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
plugins.push('transform-remove-console') plugins.push('transform-remove-console')
} }

View File

@ -15,7 +15,7 @@ module.exports = {
], ],
collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'], collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/tests/unit/coverage', coverageDirectory: '<rootDir>/tests/unit/coverage',
// 'collectCoverage': true, // 'collectCoverage': true,
'coverageReporters': [ 'coverageReporters': [
'lcov', 'lcov',
'text-summary' 'text-summary'

View File

@ -1,7 +1,7 @@
{ {
"name": "yshop-web", "name": "yshop-web",
"version": "2.4.0", "version": "2.4.0",
"description": "yshop 前端源码", "description": "yshop2.0 前端源码",
"author": "Zheng Jie", "author": "Zheng Jie",
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {

View File

@ -5,3 +5,4 @@ module.exports = function(plop) {
plop.setGenerator('view', viewGenerator) plop.setGenerator('view', viewGenerator)
plop.setGenerator('component', componentGenerator) plop.setGenerator('component', componentGenerator)
} }

View File

@ -3,3 +3,4 @@ module.exports = {
autoprefixer: {} autoprefixer: {}
} }
} }

View File

@ -103,6 +103,7 @@
:src="item.url" :src="item.url"
fit="contain" fit="contain"
:preview-src-list="[item.url]" :preview-src-list="[item.url]"
z-index="999"
/> />
<div> <div>
<el-checkbox class="material-name" :label="item.url"> <el-checkbox class="material-name" :label="item.url">
@ -458,6 +459,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/ .el-icon-circle-close{
color: red;
}
.material-name{ .material-name{
padding: 8px 0px; padding: 8px 0px;
} }

View File

@ -2,7 +2,7 @@ module.exports = {
/** /**
* @description 网站标题 * @description 网站标题
*/ */
title: 'YSHOP-2.0dev', title: 'YSHOP-2.0',
/** /**
* @description 是否显示 tagsView * @description 是否显示 tagsView
*/ */

View File

@ -9,16 +9,6 @@
</el-select> </el-select>
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button> <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button>
<!-- 新增 --> <!-- 新增 -->
<div style="display: inline-block;margin: 0px 2px;">
<el-button
v-permission="['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_CREATE']"
class="filter-item"
size="mini"
type="primary"
icon="el-icon-plus"
@click="add"
>新增</el-button>
</div>
</div> </div>
<!--表单组件--> <!--表单组件-->
<eForm ref="form" :is-add="isAdd" /> <eForm ref="form" :is-add="isAdd" />
@ -101,7 +91,7 @@ export default {
beforeInit() { beforeInit() {
this.url = 'api/yxStoreProduct' this.url = 'api/yxStoreProduct'
const sort = 'id,desc' const sort = 'id,desc'
this.params = { page: this.page, size: this.size, sort: sort, isShow: 0 } this.params = { page: this.page, size: this.size, sort: sort, isShow: 0, isDel: 0 }
const query = this.query const query = this.query
const type = query.type const type = query.type
const value = query.value const value = query.value

View File

@ -9,16 +9,6 @@
</el-select> </el-select>
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button> <el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="toQuery">搜索</el-button>
<!-- 新增 --> <!-- 新增 -->
<div style="display: inline-block;margin: 0px 2px;">
<el-button
v-permission="['admin','YXSTOREPRODUCT_ALL','YXSTOREPRODUCT_CREATE']"
class="filter-item"
size="mini"
type="primary"
icon="el-icon-plus"
@click="add"
>新增</el-button>
</div>
</div> </div>
<!--表单组件--> <!--表单组件-->
<eForm ref="form" :is-add="isAdd" /> <eForm ref="form" :is-add="isAdd" />