升级avue版本

This commit is contained in:
liaoanqi
2022-12-12 09:35:03 +08:00
parent 71f83fdf96
commit 65b111a7cb
37 changed files with 138 additions and 51 deletions

View File

@@ -8,7 +8,7 @@
"lint": "eslint --ext .js,.vue src"
},
"dependencies": {
"@smallwei/avue": "2.0.2",
"@smallwei/avue": "2.8.27",
"axios": "0.18.1",
"core-js": "3.6.5",
"crypto-js": "^4.1.1",

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
indexLabel: '序号',

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
selection: true,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
selection: true,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
selection: true,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
menu: false, // 移除操作栏
selection: true,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',

View File

@@ -1,4 +1,6 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
// selection: true,
index: false,

View File

@@ -82,7 +82,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/admin/indexImg/page'),
@@ -103,6 +103,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
@@ -140,8 +143,8 @@ export default {
})
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {

View File

@@ -90,7 +90,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/admin/message/page'),
@@ -108,6 +108,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
@@ -193,8 +196,8 @@ export default {
.catch(() => { })
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {

View File

@@ -228,7 +228,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
page = (page === undefined ? this.page : page)
this.dataListLoading = true
this.$http({
@@ -251,6 +251,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 清除数据

View File

@@ -63,7 +63,7 @@ export default {
mounted () {
},
methods: {
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/prod/prodComm/page'),
@@ -76,6 +76,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -113,8 +116,8 @@ export default {
refreshChange () {
this.getDataList(this.page)
},
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
}
}
}

View File

@@ -74,7 +74,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/prod/prod/page'),
@@ -98,6 +98,9 @@ export default {
}
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -137,8 +140,8 @@ export default {
.catch(() => { })
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {

View File

@@ -82,7 +82,7 @@ export default {
mounted () {
},
methods: {
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/prod/prodTag/page'),
@@ -95,6 +95,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -132,8 +135,8 @@ export default {
refreshChange () {
this.getDataList(this.page)
},
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
}
}
}

View File

@@ -84,7 +84,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/prod/spec/page'),
@@ -102,6 +102,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -142,8 +145,8 @@ export default {
.catch(() => { })
},
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
}
}
}

View File

@@ -81,7 +81,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/admin/hotSearch/page'),
@@ -96,6 +96,9 @@ export default {
this.page.currentPage = data.current
this.dataList = data.records
this.dataListLoading = false
if (done) {
done()
}
})
},
// 多选回调
@@ -110,8 +113,8 @@ export default {
})
},
// 点击查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 删除
deleteHandle (row, index) {

View File

@@ -81,7 +81,7 @@ export default {
mounted () {
},
methods: {
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/shop/notice/page'),
@@ -94,6 +94,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -131,8 +134,8 @@ export default {
refreshChange () {
this.getDataList(this.page)
},
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
}
}
}

View File

@@ -74,7 +74,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/shop/pickAddr/page'),
@@ -92,6 +92,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -136,8 +139,8 @@ export default {
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {

View File

@@ -75,7 +75,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/shop/transport/page'),
@@ -93,6 +93,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -135,8 +138,8 @@ export default {
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 刷新回调用
refreshChange () {

View File

@@ -85,7 +85,7 @@ export default {
}
},
methods: {
getDataList (page, params) {
getDataList (page, params, done) {
this.$http({
url: this.$http.adornUrl('/admin/area/list'),
method: 'get',

View File

@@ -61,7 +61,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/sys/config/page'),
@@ -79,11 +79,14 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {

View File

@@ -31,7 +31,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/sys/log/page'),
@@ -49,11 +49,14 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
}
}
}

View File

@@ -66,7 +66,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/sys/role/page'),
@@ -84,11 +84,14 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {

View File

@@ -65,7 +65,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/sys/user/page'),
@@ -83,11 +83,14 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {

View File

@@ -64,7 +64,7 @@ export default {
AddOrUpdate
},
methods: {
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/user/addr/page'),
@@ -77,6 +77,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -114,8 +117,8 @@ export default {
refreshChange () {
this.getDataList(this.page)
},
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
}
}
}

View File

@@ -70,7 +70,7 @@ export default {
},
methods: {
// 获取数据列表
getDataList (page, params) {
getDataList (page, params, done) {
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/admin/user/page'),
@@ -88,6 +88,9 @@ export default {
this.dataList = data.records
this.page.total = data.total
this.dataListLoading = false
if (done) {
done()
}
})
},
// 新增 / 修改
@@ -126,8 +129,8 @@ export default {
.catch(() => { })
},
// 条件查询
searchChange (params) {
this.getDataList(this.page, params)
searchChange (params, done) {
this.getDataList(this.page, params, done)
},
// 多选变化
selectionChange (val) {