Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-carowner
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 344b2fa4
authored
Mar 27, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
触发条件前的提交
1 parent
d5369273
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
10 deletions
src/api/scenario.js
src/components/d2-table/index.vue
src/styles/index.scss
src/views/customer/iconLibrary/index.vue
src/views/customer/scenarioManagement/addScenario.vue
src/views/customer/scenarioManagement/index.vue
src/api/scenario.js
View file @
344b2fa
import
{
GlAxios
}
from
'glsx-vue-common'
import
axios
from
'./axios'
const
path
=
'/smartAdmin/sceneTemplate/'
const
path1
=
'/smartAdmin/productType/'
// 获取分页数据列表
function
getList
(
params
)
{
return
GlAxios
.
get
(
`
${
path
}
getList`
,
{
params
})
...
...
@@ -16,4 +16,8 @@ function updateStatus(data, baseURl) {
})
}
export
{
getList
,
updateStatus
}
// 获取场景指令内容列表
function
getConditionList
(
params
)
{
return
GlAxios
.
get
(
`
${
path1
}
getConditionList`
,
{
params
})
}
export
{
getList
,
updateStatus
,
getConditionList
}
src/components/d2-table/index.vue
View file @
344b2fa
...
...
@@ -264,7 +264,6 @@ export default {
params
.
sortColum
=
this
.
sortColum
params
.
sort
=
this
.
sort
===
'descending'
?
1
:
0
}
console
.
log
(
params
)
this
.
getListApi
(
params
).
then
(
res
=>
{
this
.
data
=
res
[
this
.
tableParams
.
listName
]
this
.
total
=
res
.
totalElements
...
...
src/styles/index.scss
View file @
344b2fa
...
...
@@ -87,3 +87,19 @@ a:hover {
.m-t-sm
{
margin-top
:
20px
;
}
// 上传按钮
.import-btn
{
position
:
relative
;
}
.import-input
{
opacity
:
0
;
position
:
absolute
;
right
:
0
;
top
:
0
;
width
:
70px
;
height
:
36px
;
cursor
:
pointer
;
font-size
:
0
;
}
src/views/customer/iconLibrary/index.vue
View file @
344b2fa
...
...
@@ -62,7 +62,7 @@ export default {
}
},
created
()
{
getList
({
type
:
0
}).
then
(
res
=>
(
this
.
iconList
=
res
))
getList
({
type
:
1
}).
then
(
res
=>
(
this
.
iconList
=
res
))
},
methods
:
{
uploadImg
(
e
)
{
...
...
@@ -84,7 +84,7 @@ export default {
++
flag
filesList
.
push
({
name
:
e
.
target
.
files
[
0
].
name
.
split
(
'.'
)[
0
],
type
:
0
,
type
:
1
,
url
:
res
.
data
.
data
})
if
(
flag
==
curFile
.
length
)
{
...
...
@@ -95,7 +95,7 @@ export default {
type
:
'success'
,
message
:
'操作成功'
})
getList
({
type
:
0
}).
then
(
res
=>
(
this
.
iconList
=
res
))
getList
({
type
:
1
}).
then
(
res
=>
(
this
.
iconList
=
res
))
}
else
{
this
.
$message
({
type
:
'error'
,
...
...
@@ -136,12 +136,12 @@ export default {
}).
then
(
res
=>
{
params
.
url
=
res
.
data
.
data
return
updateFile
(
params
,
this
.
baseURL
).
then
(
r
=>
{
if
(
r
.
data
.
data
)
{
if
(
r
)
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功'
})
getList
({
type
:
0
}).
then
(
res
=>
(
this
.
iconList
=
res
))
getList
({
type
:
1
}).
then
(
res
=>
(
this
.
iconList
=
res
))
}
else
{
this
.
$message
({
type
:
'error'
,
...
...
@@ -151,7 +151,6 @@ export default {
})
})
}
// updateFile()
}
}
}
...
...
src/views/customer/scenarioManagement/addScenario.vue
View file @
344b2fa
This diff is collapsed.
Click to expand it.
src/views/customer/scenarioManagement/index.vue
View file @
344b2fa
...
...
@@ -93,7 +93,7 @@ export default {
},
updateStatus
(
scope
)
{
const
text
=
scope
.
status
==
0
?
'上'
:
'下'
const
text
=
scope
.
status
==
=
0
?
'上'
:
'下'
this
.
$confirm
(
`确认要
${
text
}
架?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
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