去除素材分组得分页,防止素材分组过多显示不完全
This commit is contained in:
@ -8,6 +8,14 @@ export function getPage(query) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getList(query) {
|
||||||
|
return request({
|
||||||
|
url: 'api/materialgroup/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function addObj(obj) {
|
export function addObj(obj) {
|
||||||
return request({
|
return request({
|
||||||
url: 'api/materialgroup',
|
url: 'api/materialgroup',
|
||||||
|
|||||||
@ -145,7 +145,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getPage as materialgroupPage, addObj as materialgroupAdd, delObj as materialgroupDel, putObj as materialgroupEdit } from '@/api/tools/materialgroup'
|
import { getList as materialgroupPage, addObj as materialgroupAdd, delObj as materialgroupDel, putObj as materialgroupEdit } from '@/api/tools/materialgroup'
|
||||||
import { getPage, addObj, delObj, putObj } from '@/api/tools/material'
|
import { getPage, addObj, delObj, putObj } from '@/api/tools/material'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@ -266,7 +266,7 @@ export default {
|
|||||||
sort: 'create_time,desc'// 降序字段
|
sort: 'create_time,desc'// 降序字段
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
this.materialgroupLoading = false
|
this.materialgroupLoading = false
|
||||||
const materialgroupList = response.content
|
const materialgroupList = response
|
||||||
materialgroupList.unshift({
|
materialgroupList.unshift({
|
||||||
id: '-1',
|
id: '-1',
|
||||||
name: '全部分组'
|
name: '全部分组'
|
||||||
|
|||||||
@ -146,7 +146,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getPage as materialgroupPage, addObj as materialgroupAdd, delObj as materialgroupDel, putObj as materialgroupEdit } from '@/api/tools/materialgroup'
|
import { getList as materialgroupPage, addObj as materialgroupAdd, delObj as materialgroupDel, putObj as materialgroupEdit } from '@/api/tools/materialgroup'
|
||||||
import { getPage, addObj, delObj, putObj } from '@/api/tools/material'
|
import { getPage, addObj, delObj, putObj } from '@/api/tools/material'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@ -262,7 +262,7 @@ export default {
|
|||||||
sort: 'create_time,desc'// 降序字段
|
sort: 'create_time,desc'// 降序字段
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
this.materialgroupLoading = false
|
this.materialgroupLoading = false
|
||||||
const materialgroupList = response.content
|
const materialgroupList = response
|
||||||
materialgroupList.unshift({
|
materialgroupList.unshift({
|
||||||
id: '-1',
|
id: '-1',
|
||||||
name: '全部分组'
|
name: '全部分组'
|
||||||
|
|||||||
@ -139,7 +139,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getPage as materialgroupPage, addObj as materialgroupAdd, delObj as materialgroupDel, putObj as materialgroupEdit } from '@/api/tools/materialgroup'
|
import { getList as materialgroupPage, addObj as materialgroupAdd, delObj as materialgroupDel, putObj as materialgroupEdit } from '@/api/tools/materialgroup'
|
||||||
import { getPage, addObj, delObj, putObj } from '@/api/tools/material'
|
import { getPage, addObj, delObj, putObj } from '@/api/tools/material'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@ -258,7 +258,7 @@ export default {
|
|||||||
sort: 'create_time,desc'// 降序字段
|
sort: 'create_time,desc'// 降序字段
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
this.materialgroupLoading = false
|
this.materialgroupLoading = false
|
||||||
const materialgroupList = response.content
|
const materialgroupList = response
|
||||||
materialgroupList.unshift({
|
materialgroupList.unshift({
|
||||||
id: '-1',
|
id: '-1',
|
||||||
name: '全部分组'
|
name: '全部分组'
|
||||||
|
|||||||
Reference in New Issue
Block a user