|
@@ -70,7 +70,9 @@ export default {
|
|
|
async getTreeData () {
|
|
|
const { code, returnData } = await getQueryData(20, { 1: 1 })
|
|
|
if (code == 0 && returnData?.length) {
|
|
|
- const result = listToTree(_.cloneDeep(returnData), 'superiorid', 'id')
|
|
|
+ const alldata = _.cloneDeep(returnData)
|
|
|
+ const checkdata = alldata.filter(item => item.type != 'parameter')
|
|
|
+ const result = listToTree(_.cloneDeep(checkdata), 'superiorid', 'id')
|
|
|
const resall = [{
|
|
|
name: '全部',
|
|
|
id: 0,
|