Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
73d4887b
Commit
73d4887b
authored
Jan 19, 2024
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 问题修改
parent
4bc42d2b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
17 deletions
+52
-17
.eslintrc.js
+5
-8
src/views/system/category-style.vue
+0
-4
src/views/system/sku-sort.vue
+47
-5
No files found.
.eslintrc.js
View file @
73d4887b
module
.
exports
=
{
root
:
true
,
env
:
{
node
:
true
,
node
:
true
},
extends
:
[
'plugin:vue/essential'
,
'@vue/standard'
,
],
extends
:
[
'plugin:vue/essential'
,
'@vue/standard'
],
parserOptions
:
{
parser
:
'@babel/eslint-parser'
,
parser
:
'@babel/eslint-parser'
},
rules
:
{
'space-before-function-paren'
:
0
,
...
...
@@ -21,6 +18,6 @@ module.exports = {
'multiline-ternary'
:
'off'
,
'vue/multi-word-component-names'
:
'off'
,
'eol-last'
:
0
,
'vue/no-mutating-props'
:
'off'
,
}
,
'vue/no-mutating-props'
:
'off'
}
}
src/views/system/category-style.vue
View file @
73d4887b
...
...
@@ -727,10 +727,6 @@ export default {
message
:
'删除成功!'
,
})
this
.
getList
(
this
.
currentPage
)
}
else
{
this
.
$alert
(
res
.
message
,
'错误提示'
,
{
dangerouslyUseHTMLString
:
true
,
})
}
})
})
...
...
src/views/system/sku-sort.vue
View file @
73d4887b
...
...
@@ -92,7 +92,7 @@
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"sku属性"
prop=
"skuProperty"
>
<div
style=
"width: 100%"
>
<el-radio
v-model=
"addcurrencyform.skuProperty"
:label=
"true"
>
...
...
@@ -104,7 +104,7 @@
</div>
</el-form-item>
</el-col>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"多选"
prop=
"multi"
>
<div
style=
"width: 100%"
>
<el-radio
v-model=
"addcurrencyform.multi"
:label=
"true"
>
...
...
@@ -126,7 +126,7 @@
</el-col>
</el-row>
<p
class=
"pop-p"
>
产品
SKU
属性
SKU
<span
class=
"pop-p-but"
>
<el-button
icon=
"el-icon-plus"
...
...
@@ -242,7 +242,8 @@ export default {
enname
:
''
,
sort
:
''
,
skuProperty
:
false
,
multi
:
false
multi
:
false
,
enable
:
true
}
,
addcurrencyform2
:
null
,
formId
:
null
,
...
...
@@ -308,6 +309,18 @@ export default {
align
:
'right'
}
,
{
label
:
'状态'
,
key
:
'enable'
,
width
:
80
,
render
:
(
item
)
=>
(
<
el
-
switch
onChange
=
{(
v
)
=>
this
.
changeDisableStatus
(
v
,
item
)
}
v
-
model
=
{
item
.
enable
}
active
-
color
=
"#13ce66"
inactive
-
color
=
"#ff4949"
><
/el-switch
>
)
}
,
{
label
:
'相关操作'
,
width
:
80
,
render
:
(
item
)
=>
(
...
...
@@ -355,6 +368,35 @@ export default {
}
,
methods
:
{
async
changeDisableStatus
(
v
,
item
)
{
try
{
await
this
.
$confirm
(
`确定将状态改为${v === false ? '禁用' : '启用'
}
吗?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}
)
}
catch
{
this
.
$set
(
item
,
'enable'
,
!
v
)
return
}
try
{
const
res
=
await
axios
.
get
(
'baseProperty/changeEnable'
,
{
params
:
{
id
:
item
.
id
,
enable
:
v
}
}
)
if
(
res
.
code
!==
200
)
return
this
.
$message
.
success
(
res
.
message
)
this
.
getList
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
}
,
async
submitProp
()
{
if
(
!
this
.
checkedProps
.
length
)
{
return
this
.
$message
.
warning
(
'请选择属性'
)
...
...
@@ -424,7 +466,7 @@ export default {
}
,
async
loadProductProperties
()
{
try
{
const
res
=
await
axios
.
get
(
'base/propertyValue/getAllData'
)
const
res
=
await
axios
.
get
(
'
manage/rest/
base/propertyValue/getAllData'
)
if
(
res
.
code
!==
200
)
return
this
.
productProperties
=
res
.
data
}
catch
(
e
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment