Commit 4bc42d2b by qinjianhui

feat: 商品属性管理优化

parent 125d728c
......@@ -11,15 +11,16 @@ module.exports = {
parser: '@babel/eslint-parser',
},
rules: {
"space-before-function-paren": 0,
'space-before-function-paren': 0,
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'comma-dangle': ['error', 'always-multiline'],
'comma-dangle': 'off',
// eslint-disable-next-line no-dupe-keys
'space-before-function-paren': 'off',
indent: 'off',
'multiline-ternary': 'off',
"vue/multi-word-component-names":"off",
'vue/multi-word-component-names': 'off',
'eol-last': 0,
'vue/no-mutating-props':"off"
'vue/no-mutating-props': 'off',
},
}
{
"tabWidth": 2,
"singleQuote": true,
"printWidth": 180,
"printWidth": 80,
"semi": false,
"trailingComma": "none",
"bracketSpacing": true,
......
{
"singleQuote": true,
"semi": false,
"trailingComma": "all",
"printWidth": 60
}
......@@ -1045,10 +1045,6 @@ ul li {
padding: 0 8px;
}
.el-dialog__footer .el-button {
width: 100px;
}
.operate-popper {
min-width: 100px;
}
......
......@@ -36,6 +36,7 @@ import {
Tooltip,
ColorPicker,
CheckboxGroup,
Popover,
} from 'element-ui'
const components = [
......@@ -71,6 +72,7 @@ const components = [
Tooltip,
ColorPicker,
CheckboxGroup,
Popover,
]
export default {
......
......@@ -101,6 +101,22 @@ const routes = [
name: 'system_category_style',
meta: { title: '类别风格' },
},
{
path: '/saas/sku-sort',
component: () => import('@/views/system/sku-sort.vue'),
name: 'system_sku-sort',
meta: {
title: '属性类别管理',
},
},
{
path: '/saas/sku-manage',
component: () => import('@/views/system/sku-manage.vue'),
name: 'system_sku-manage',
meta: {
title: '商品属性管理',
},
},
],
},
]
......
......@@ -252,6 +252,22 @@ export default {
index: '/saas/category-style',
children: [],
},
{
id: 9,
path: '',
label: '属性类别管理',
icon: 'el-icon-box',
index: '/saas/sku-sort',
children: [],
},
{
id: 10,
path: '',
label: '商品属性管理',
icon: 'el-icon-box',
index: '/saas/sku-manage',
children: [],
},
],
},
],
......
......@@ -612,6 +612,7 @@ export default {
pageSize: pageSize,
currentPage: currentPage,
},
baseURL: '/api/manage/rest',
})
.then((res) => {
if (res.code === 200) {
......@@ -638,7 +639,9 @@ export default {
? 'baseCategoryInfo'
: 'baseStyleInfo'
const url = `${text}/get?id=${this.formId}`
axios.get(url).then((res) => {
axios.get(url, {
baseURL: '/api/manage/rest',
}).then((res) => {
if (res.code === 200) {
const data = res.data
this.addcurrencyform = Object.assign({}, data)
......@@ -734,20 +737,22 @@ export default {
.catch(() => {})
},
alllist(url, arr) {
axios.get(url).then((res) => {
if (res.code === 200) {
this[arr] = res.data
this.$nextTick(() => {
if (this.$refs.addcurrencyform) {
this.$refs.addcurrencyform.clearValidate()
}
})
} else {
this.$alert(res.message, '错误提示', {
dangerouslyUseHTMLString: true,
})
}
})
axios
.get(url, { baseURL: '/api/manage/rest' })
.then((res) => {
if (res.code === 200) {
this[arr] = res.data
this.$nextTick(() => {
if (this.$refs.addcurrencyform) {
this.$refs.addcurrencyform.clearValidate()
}
})
} else {
this.$alert(res.message, '错误提示', {
dangerouslyUseHTMLString: true,
})
}
})
},
},
}
......
......@@ -137,6 +137,8 @@ export default {
pageSize,
currentPage,
...this.searchForm,
}, {
baseURL: '/api/manage/rest',
})
.then((res) => {
this.sourceData = res.data.records
......
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