Commit 26ced3ba by zhuzhequan

sku修改

parent 731def42
......@@ -239,6 +239,7 @@
<script>
import axios from '../../common/api/axios'
import MyTable from '@/common/components/base/tableView.vue'
export default {
name: 'system_sku-sort',
components: {
......@@ -296,8 +297,16 @@ export default {
computed: {
tableColumns() {
return [
{ label: '中文名', key: 'cnname', align: 'left' },
{ label: '英文名', key: 'enname', align: 'left' },
{
label: '中文名',
key: 'cnname',
align: 'left'
},
{
label: '英文名',
key: 'enname',
align: 'left'
},
{
label: 'sku属性',
key: 'skuProperty',
......@@ -536,8 +545,11 @@ export default {
this.getList()
},
currentTabFn(val) {
if (val) this.formId = val.id
else this.formId = null
if (val) {
this.formId = val.id
} else {
this.formId = null
}
},
selectionChange(selection) {
this.selection = selection
......@@ -585,7 +597,10 @@ export default {
// 查询
getList() {
this.searchLoading = true
const { pageSize, currentPage } = this.paginationOptions
const {
pageSize,
currentPage
} = this.paginationOptions
axios
.get('baseProperty/list_page', {
params: {
......@@ -643,7 +658,10 @@ export default {
})
})
axios
.post(url, { ...this.addcurrencyform, propertyValueIds })
.post(url, {
...this.addcurrencyform,
propertyValueIds
})
.then((res) => {
// eslint-disable-next-line eqeqeq
if (res.code == 200) {
......@@ -698,8 +716,11 @@ export default {
// 删除
deleteSection(v) {
let arr = []
if (v) arr.push(v)
else arr = this.selection
if (v) {
arr.push(v)
} else {
arr = this.selection
}
const leng = arr.length
if (leng === 0) {
return this.$message('请勾选至少一条记录')
......@@ -756,6 +777,7 @@ export default {
.prop-checkbox {
margin-top: 10px;
&::v-deep {
.el-checkbox__label {
font-size: 12px;
......@@ -780,6 +802,7 @@ export default {
}
}
}
.prop-label {
font-size: 16px;
font-weight: bold;
......@@ -840,7 +863,7 @@ export default {
}
.customsize-label.el-select-dropdown.is-multiple
.el-select-dropdown__item.selected::after {
.el-select-dropdown__item.selected::after {
content: '';
display: none;
}
......@@ -865,11 +888,15 @@ export default {
.custom-dialog .el-dialog__body {
height: 600px;
}
.close-icon .el-icon-close::before {
border: 1px solid red;
padding: 1px;
border-radius: 50%;
color: black;
color: white;
background-color: red;
position: relative;
z-index: 3;
font-size: 10px;
}
</style>
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