Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
cust_web
Commits
1a29ebc9
Commit
1a29ebc9
authored
Dec 21, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了分页返参
parent
6997a75f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
122 deletions
+25
-122
index.vue
src/views/contentManagement/activity/index.vue
+10
-49
index.vue
src/views/contentManagement/banner/index.vue
+1
-20
index.vue
src/views/contentManagement/notice/index.vue
+10
-49
index.vue
src/views/system/dict/index.vue
+2
-2
index.vue
src/views/system/role/index.vue
+1
-1
index.vue
src/views/system/user/index.vue
+1
-1
No files found.
src/views/contentManagement/activity/index.vue
View file @
1a29ebc9
...
@@ -324,6 +324,7 @@ import { error } from 'autoprefixer/lib/utils'
...
@@ -324,6 +324,7 @@ import { error } from 'autoprefixer/lib/utils'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
listCmsApplication
}
from
'@/api/contentManagement/application'
import
{
listCmsApplication
}
from
'@/api/contentManagement/application'
import
{
listCmsBanner
}
from
'@/api/contentManagement/banner'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
// components: {
// components: {
...
@@ -591,57 +592,17 @@ export default {
...
@@ -591,57 +592,17 @@ export default {
this
.
total2
=
this
.
gridData1
.
length
this
.
total2
=
this
.
gridData1
.
length
this
.
loadData1
()
this
.
loadData1
()
},
},
/** 查询活动管理列表 */
loadData
()
{
loadData
()
{
// 列表渲染数据
this
.
loading
=
true
var
data
=
[]
listCmsActivity
(
this
.
queryParams
).
then
(
const
_this
=
this
response
=>
{
this
.
tableData
=
[]
// 处理分页数据里的url
_this
.
fullscreenLoading
=
true
this
.
tableData
=
response
.
data
const
params
=
{
this
.
total
=
response
.
total
page
:
_this
.
queryParams
.
page
,
this
.
loading
=
false
rows
:
_this
.
queryParams
.
rows
,
flag
:
_this
.
queryParams
.
flag
,
// plate: _this.queryParams.plate,
beginTime
:
_this
.
queryParams
.
beginTime
,
endTime
:
_this
.
queryParams
.
endTime
}
listCmsActivity
(
params
).
then
(
response
=>
{
if
(
this
.
$store
.
getters
.
type
===
'1'
)
{
// 开启
// 遍历rows
for
(
var
i
=
0
;
i
<
response
.
rows
.
length
;
i
++
)
{
if
(
response
.
rows
[
i
].
path
!==
undefined
)
{
// rows里的数据是path
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
path
)
response
.
rows
[
i
].
path
=
newUrl
}
if
(
response
.
rows
[
i
].
url
!==
undefined
)
{
// rows里的数据是url
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
url
)
response
.
rows
[
i
].
url
=
newUrl
}
if
(
response
.
rows
[
i
].
avatarUrl
!==
undefined
)
{
// rows里的数据是avatarUrl
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
avatarUrl
)
response
.
rows
[
i
].
avatarUrl
=
newUrl
}
}
}
// console.log('res.rows:', res.rows)
_this
.
total
=
response
.
total
// 总记录数
_this
.
bussid
=
[]
response
.
rows
.
forEach
(
item
=>
{
item
.
srclist
=
[]
item
.
srclist
.
push
(
item
.
pictureId
)
})
_this
.
tableData
=
response
.
rows
_this
.
fullscreenLoading
=
false
if
(
response
.
rows
.
length
===
0
)
{
_this
.
tableDataTips
=
'暂无数据'
}
}
this
.
pageKey
++
)
}).
catch
(
function
()
{
_this
.
fullscreenLoading
=
false
console
.
log
(
error
)
})
_this
.
dataIsReady
=
true
_this
.
uploadList
.
fm
=
this
.
interfaceUrl
+
'BLesson/picImport'
},
},
/** 查看报名人数 */
/** 查看报名人数 */
handleClick
(
row
)
{
handleClick
(
row
)
{
...
...
src/views/contentManagement/banner/index.vue
View file @
1a29ebc9
...
@@ -381,27 +381,8 @@ export default {
...
@@ -381,27 +381,8 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
listCmsBanner
(
this
.
queryParams
).
then
(
listCmsBanner
(
this
.
queryParams
).
then
(
response
=>
{
response
=>
{
if
(
this
.
$store
.
getters
.
type
===
'1'
)
{
// 开启
// 遍历rows
for
(
var
i
=
0
;
i
<
response
.
rows
.
length
;
i
++
)
{
if
(
response
.
rows
[
i
].
path
!==
undefined
)
{
// rows里的数据是path
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
path
)
response
.
rows
[
i
].
path
=
newUrl
}
if
(
response
.
rows
[
i
].
url
!==
undefined
)
{
// rows里的数据是url
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
url
)
response
.
rows
[
i
].
url
=
newUrl
}
if
(
response
.
rows
[
i
].
avatarUrl
!==
undefined
)
{
// rows里的数据是avatarUrl
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
avatarUrl
)
response
.
rows
[
i
].
avatarUrl
=
newUrl
}
}
}
console
.
log
(
'response.rows:'
,
response
.
rows
)
// 处理分页数据里的url
// 处理分页数据里的url
this
.
cmsBannerList
=
response
.
rows
this
.
cmsBannerList
=
response
.
data
// console.log('this.cmsBannerList:', this.cmsBannerList)
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
}
}
...
...
src/views/contentManagement/notice/index.vue
View file @
1a29ebc9
...
@@ -180,6 +180,7 @@ import { updateResponseUrl } from '@/utils/updateUrl'
...
@@ -180,6 +180,7 @@ import { updateResponseUrl } from '@/utils/updateUrl'
import
{
error
}
from
'autoprefixer/lib/utils'
import
{
error
}
from
'autoprefixer/lib/utils'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
listCmsActivity
}
from
'@/api/contentManagement/activity'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
// components: {
// components: {
...
@@ -369,57 +370,17 @@ export default {
...
@@ -369,57 +370,17 @@ export default {
this
.
queryParams
.
endTime
=
''
this
.
queryParams
.
endTime
=
''
}
}
},
},
/** 查询公告管理列表 */
loadData
()
{
loadData
()
{
// 列表渲染数据
this
.
loading
=
true
var
data
=
[]
listCmsNotice
(
this
.
queryParams
).
then
(
const
_this
=
this
response
=>
{
this
.
tableData
=
[]
// 处理分页数据里的url
_this
.
fullscreenLoading
=
true
this
.
tableData
=
response
.
data
const
params
=
{
this
.
total
=
response
.
total
page
:
_this
.
queryParams
.
page
,
this
.
loading
=
false
rows
:
_this
.
queryParams
.
rows
,
flag
:
_this
.
queryParams
.
flag
,
// plate: _this.queryParams.plate,
beginTime
:
_this
.
queryParams
.
beginTime
,
endTime
:
_this
.
queryParams
.
endTime
}
listCmsNotice
(
params
).
then
(
response
=>
{
if
(
this
.
$store
.
getters
.
type
===
'1'
)
{
// 开启
// 遍历rows
for
(
var
i
=
0
;
i
<
response
.
rows
.
length
;
i
++
)
{
if
(
response
.
rows
[
i
].
path
!==
undefined
)
{
// rows里的数据是path
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
path
)
response
.
rows
[
i
].
path
=
newUrl
}
if
(
response
.
rows
[
i
].
url
!==
undefined
)
{
// rows里的数据是url
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
url
)
response
.
rows
[
i
].
url
=
newUrl
}
if
(
response
.
rows
[
i
].
avatarUrl
!==
undefined
)
{
// rows里的数据是avatarUrl
const
newUrl
=
updateResponseUrl
(
response
.
rows
[
i
].
avatarUrl
)
response
.
rows
[
i
].
avatarUrl
=
newUrl
}
}
}
// console.log('res.rows:', res.rows)
_this
.
total
=
response
.
total
// 总记录数
_this
.
bussid
=
[]
response
.
rows
.
forEach
(
item
=>
{
item
.
srclist
=
[]
item
.
srclist
.
push
(
item
.
pictureId
)
})
_this
.
tableData
=
response
.
rows
_this
.
fullscreenLoading
=
false
if
(
response
.
rows
.
length
===
0
)
{
_this
.
tableDataTips
=
'暂无数据'
}
}
this
.
pageKey
++
)
}).
catch
(
function
()
{
_this
.
fullscreenLoading
=
false
console
.
log
(
error
)
})
_this
.
dataIseady
=
true
_this
.
uploadList
.
fm
=
this
.
interfaceUrl
+
'BLesson/picImport'
},
},
// 修改状态
// 修改状态
handleStatusChange
(
row
)
{
handleStatusChange
(
row
)
{
...
...
src/views/system/dict/index.vue
View file @
1a29ebc9
...
@@ -318,8 +318,8 @@ export default {
...
@@ -318,8 +318,8 @@ export default {
/** 查询字典类型列表 */
/** 查询字典类型列表 */
getList
()
{
getList
()
{
listType
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
response
=>
{
listType
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
response
=>
{
this
.
options
=
response
.
rows
this
.
options
=
response
.
data
this
.
typeList
=
response
.
rows
this
.
typeList
=
response
.
data
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
}
}
...
...
src/views/system/role/index.vue
View file @
1a29ebc9
...
@@ -454,7 +454,7 @@ export default {
...
@@ -454,7 +454,7 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
listRole
(
this
.
queryParams
).
then
(
listRole
(
this
.
queryParams
).
then
(
response
=>
{
response
=>
{
this
.
roleList
=
response
.
rows
this
.
roleList
=
response
.
data
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
}
}
...
...
src/views/system/user/index.vue
View file @
1a29ebc9
...
@@ -689,7 +689,7 @@ export default {
...
@@ -689,7 +689,7 @@ export default {
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
listUser
(
this
.
queryParams
).
then
(
response
=>
{
listUser
(
this
.
queryParams
).
then
(
response
=>
{
this
.
userList
=
response
.
rows
this
.
userList
=
response
.
data
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
}
}
...
...
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