Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-ai-manager
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dd6c1d63
authored
Feb 22, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
表情修改
1 parent
8cebde03
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
19 deletions
src/views/customer/brand/Edit.vue
src/views/customer/brand/index.vue
src/views/customer/components/src/manufacturers.vue
src/views/customer/brand/Edit.vue
View file @
dd6c1d6
This diff is collapsed.
Click to expand it.
src/views/customer/brand/index.vue
View file @
dd6c1d6
...
@@ -99,7 +99,6 @@ export default {
...
@@ -99,7 +99,6 @@ export default {
tableLoading
:
false
,
tableLoading
:
false
,
updateLoading
:
false
,
updateLoading
:
false
,
idPassvalue
:
null
,
idPassvalue
:
null
,
tableValue
:
null
,
/* loadingParams-end */
/* loadingParams-end */
tableData
:
{
tableData
:
{
border
:
true
,
border
:
true
,
...
@@ -232,10 +231,10 @@ export default {
...
@@ -232,10 +231,10 @@ export default {
this
.
updateVisible
=
!
this
.
updateVisible
this
.
updateVisible
=
!
this
.
updateVisible
this
.
idPassvalue
.
$emit
(
'expressionId'
,
objId
)
this
.
idPassvalue
.
$emit
(
'expressionId'
,
objId
)
},
},
updateDialogClose
()
{
updateDialogClose
(
isCancel
)
{
console
.
log
(
'关闭'
)
//
console.log('关闭')
this
.
updateVisible
=
!
this
.
updateVisible
this
.
updateVisible
=
!
this
.
updateVisible
this
.
loadingGetList
()
!
isCancel
&&
this
.
loadingGetList
()
},
},
deleteExp
(
objId
)
{
deleteExp
(
objId
)
{
if
(
objId
)
{
if
(
objId
)
{
...
...
src/views/customer/components/src/manufacturers.vue
View file @
dd6c1d6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<gl-col
:span=
"(manufactureOnly||!in_row)?24:12"
>
<gl-col
:span=
"(manufactureOnly||!in_row)?24:12"
>
<gl-form-item
label=
'品牌厂商:'
>
<gl-form-item
label=
'品牌厂商:'
>
<gl-select
<gl-select
v-model=
"model.manufacturer
Id
"
v-model=
"model.manufacturer
Name
"
filterable
filterable
placeholder=
"请选择品牌厂商"
placeholder=
"请选择品牌厂商"
name=
"manufacturerId"
name=
"manufacturerId"
...
@@ -132,20 +132,20 @@
...
@@ -132,20 +132,20 @@
import
{
manufacturers
,
merchants
,
grayscaleuser
}
from
'@/api'
import
{
manufacturers
,
merchants
,
grayscaleuser
}
from
'@/api'
import
{
NoticeMixin
}
from
'@/mixins'
import
{
NoticeMixin
}
from
'@/mixins'
const
manufacturer_list_back_up
=
[
const
manufacturer_list_back_up
=
[
{
//
{
manufacturer
:
null
,
//
manufacturer: null,
manufacturerName
:
'请选择品牌厂商
'
,
// manufacturerName: '
',
merchantId
:
0
,
//
merchantId: 0,
merchantName
:
''
//
merchantName: ''
}
//
}
]
]
const
merchant_list_back_up
=
[
const
merchant_list_back_up
=
[
{
//
{
merchantId
:
null
,
//
merchantId: null,
merchantName
:
'请选择渠道商
'
,
// merchantName: '
',
merchantStatus
:
0
,
//
merchantStatus: 0,
merchantType
:
401
//
merchantType: 401
}
//
}
]
]
export
default
{
export
default
{
name
:
'Manufacturers'
,
name
:
'Manufacturers'
,
...
@@ -183,6 +183,11 @@ export default {
...
@@ -183,6 +183,11 @@ export default {
// }
// }
// })
// })
// }),
// }),
__eventBus
.
$on
(
'defalut_setting'
,
__value
=>
{
console
.
log
(
'setting default value'
)
// console.log(__value)
this
.
__setDefault
(
__value
)
})
__eventBus
.
$on
(
'clear_error'
,
()
=>
{
__eventBus
.
$on
(
'clear_error'
,
()
=>
{
this
.
$validator
.
errors
.
clear
()
this
.
$validator
.
errors
.
clear
()
})
})
...
@@ -220,10 +225,10 @@ export default {
...
@@ -220,10 +225,10 @@ export default {
this
.
$emit
(
'update:value'
,
__back__data__
)
this
.
$emit
(
'update:value'
,
__back__data__
)
}
}
},
},
'model.manufacturer
Id
'
:
{
'model.manufacturer
Name
'
:
{
handler
(
__value
)
{
handler
(
__value
)
{
this
.
result
.
manufacturers
=
this
.
manufacturer_list
.
filter
(
this
.
result
.
manufacturers
=
this
.
manufacturer_list
.
filter
(
obj
=>
this
.
model
.
manufacturer
Id
===
obj
.
manufacturer
obj
=>
this
.
model
.
manufacturer
Name
===
obj
.
manufacturer
)[
0
]
)[
0
]
const
__back__data__
=
this
.
$deep_clone
(
this
.
result
)
const
__back__data__
=
this
.
$deep_clone
(
this
.
result
)
this
.
$emit
(
'update:value'
,
__back__data__
)
this
.
$emit
(
'update:value'
,
__back__data__
)
...
@@ -250,6 +255,7 @@ export default {
...
@@ -250,6 +255,7 @@ export default {
{
label
:
'指定用户(灰度)'
,
value
:
'LIST'
}
{
label
:
'指定用户(灰度)'
,
value
:
'LIST'
}
],
],
model
:
{
model
:
{
manufacturerName
:
''
,
merchantId
:
''
,
merchantId
:
''
,
manufacturerId
:
''
,
manufacturerId
:
''
,
file_list
:
[]
// 文件列表
file_list
:
[]
// 文件列表
...
@@ -310,6 +316,7 @@ export default {
...
@@ -310,6 +316,7 @@ export default {
},
},
__reset
()
{
__reset
()
{
// 初始化
// 初始化
this
.
model
.
manufacturerName
=
null
this
.
model
.
manufacturerId
=
null
this
.
model
.
manufacturerId
=
null
this
.
model
.
merchantId
=
null
this
.
model
.
merchantId
=
null
this
.
result
=
{
this
.
result
=
{
...
@@ -323,6 +330,7 @@ export default {
...
@@ -323,6 +330,7 @@ export default {
__setDefault
(
__default
)
{
__setDefault
(
__default
)
{
this
.
model
.
merchantId
=
__default
.
merchantId
this
.
model
.
merchantId
=
__default
.
merchantId
this
.
model
.
manufacturerId
=
__default
.
manufacturerId
this
.
model
.
manufacturerId
=
__default
.
manufacturerId
this
.
model
.
manufacturerName
=
__default
.
manufacturerName
this
.
result
.
influenceScope
=
__default
.
influenceScope
this
.
result
.
influenceScope
=
__default
.
influenceScope
this
.
model
.
file_list
=
__default
.
file_list
this
.
model
.
file_list
=
__default
.
file_list
this
.
result
.
grayscaleUserList
=
__default
.
grayscaleuser
this
.
result
.
grayscaleUserList
=
__default
.
grayscaleuser
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment