fix: 软件安装模板只保留[软件安装]
parent
8b8f87127f
commit
8b3f5e64cb
|
@ -132,7 +132,7 @@ export default defineComponent({
|
||||||
const nodePool = ref([])
|
const nodePool = ref([])
|
||||||
;(async function () {
|
;(async function () {
|
||||||
const res = await getTreeNodes({
|
const res = await getTreeNodes({
|
||||||
code: 'multiful'
|
code: 'software'
|
||||||
})
|
})
|
||||||
nodePool.value = res.data.map((item: any) => {
|
nodePool.value = res.data.map((item: any) => {
|
||||||
const { modules, ...others } = item
|
const { modules, ...others } = item
|
||||||
|
|
|
@ -31,7 +31,15 @@ export default defineComponent({
|
||||||
function getData() {
|
function getData() {
|
||||||
getScene({
|
getScene({
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 10000
|
rows: 9999,
|
||||||
|
params: JSON.stringify([
|
||||||
|
{
|
||||||
|
param: {
|
||||||
|
code: 'software'
|
||||||
|
},
|
||||||
|
sign: 'EQ'
|
||||||
|
}
|
||||||
|
])
|
||||||
}).then((data: any) => {
|
}).then((data: any) => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
const arr = data.data.rows
|
const arr = data.data.rows
|
||||||
|
|
|
@ -205,10 +205,18 @@ export default defineComponent({
|
||||||
exportTask(id)
|
exportTask(id)
|
||||||
}
|
}
|
||||||
const searchConfigs = ref(searchConfig)
|
const searchConfigs = ref(searchConfig)
|
||||||
;(async function () {
|
;(async function() {
|
||||||
const res: Base.IResponseList = await getScene({
|
const res: Base.IResponseList = await getScene({
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 10000
|
rows: 9999,
|
||||||
|
params: JSON.stringify([
|
||||||
|
{
|
||||||
|
param: {
|
||||||
|
code: 'software'
|
||||||
|
},
|
||||||
|
sign: 'EQ'
|
||||||
|
}
|
||||||
|
])
|
||||||
})
|
})
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
searchConfigs.value[3].data = res.data.rows
|
searchConfigs.value[3].data = res.data.rows
|
||||||
|
|
|
@ -40,11 +40,19 @@ export default {
|
||||||
async function getSceneList() {
|
async function getSceneList() {
|
||||||
const res = await getScene({
|
const res = await getScene({
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 9999
|
rows: 9999,
|
||||||
|
params: JSON.stringify([
|
||||||
|
{
|
||||||
|
param: {
|
||||||
|
code: 'software'
|
||||||
|
},
|
||||||
|
sign: 'EQ'
|
||||||
|
}
|
||||||
|
])
|
||||||
})
|
})
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
let count = 0
|
let count = 0
|
||||||
const sceneList = res.data.rows.map((item) => {
|
const sceneList = res.data.rows.map(item => {
|
||||||
count += item.templateCount
|
count += item.templateCount
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
|
@ -67,7 +75,7 @@ export default {
|
||||||
getSceneList()
|
getSceneList()
|
||||||
const tplRef = ref()
|
const tplRef = ref()
|
||||||
function selectMenu(data) {
|
function selectMenu(data) {
|
||||||
list.value.forEach((element) => {
|
list.value.forEach(element => {
|
||||||
if (element.id === data.id) {
|
if (element.id === data.id) {
|
||||||
element.selected = true
|
element.selected = true
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -12,11 +12,19 @@ export default {
|
||||||
]
|
]
|
||||||
getScene({
|
getScene({
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 10000
|
rows: 9999,
|
||||||
}).then((data) => {
|
params: JSON.stringify([
|
||||||
|
{
|
||||||
|
param: {
|
||||||
|
code: 'software'
|
||||||
|
},
|
||||||
|
sign: 'EQ'
|
||||||
|
}
|
||||||
|
])
|
||||||
|
}).then(data => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
const arr = data.data.rows
|
const arr = data.data.rows
|
||||||
arr.forEach((item) => {
|
arr.forEach(item => {
|
||||||
let index = 0
|
let index = 0
|
||||||
if (!item.internal) {
|
if (!item.internal) {
|
||||||
index = 1
|
index = 1
|
||||||
|
|
Loading…
Reference in New Issue