升级avue版本

master
liaoanqi 3 years ago
parent 930de3fac0
commit 6ef142e64d

@ -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",

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -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) {

@ -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) {

@ -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()
}
})
},
//

@ -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)
}
}
}

@ -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) {

@ -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)
}
}
}

@ -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)
}
}
}

@ -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) {

@ -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)
}
}
}

@ -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) {

@ -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 () {

@ -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',

@ -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) {

@ -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)
}
}
}

@ -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) {

@ -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) {

@ -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)
}
}
}

@ -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) {

Loading…
Cancel
Save