西海岸:我的申请增加设备申请
This commit is contained in:
parent
7594c9cb51
commit
05d2ad1a45
|
@ -129,8 +129,12 @@ let typeList = ref([
|
||||||
'能力下架',
|
'能力下架',
|
||||||
'能力需求',
|
'能力需求',
|
||||||
'需求评论',
|
'需求评论',
|
||||||
'设备申请'
|
|
||||||
])
|
])
|
||||||
|
// 西海岸-设备申请
|
||||||
|
let isXiHaiAn = whoShow.itShowXiHaiAn;
|
||||||
|
if (isXiHaiAn) {
|
||||||
|
typeList.value.push('设备申请')
|
||||||
|
}
|
||||||
const typeStrObj = {
|
const typeStrObj = {
|
||||||
'能力上架': 'resourcemountapply',
|
'能力上架': 'resourcemountapply',
|
||||||
'能力下架': 'resourcundercarriageapply',
|
'能力下架': 'resourcundercarriageapply',
|
||||||
|
@ -141,6 +145,9 @@ let tabList = ref(['全部', '审核中', '审核完成'])
|
||||||
const contentList = reactive({ data: [] })
|
const contentList = reactive({ data: [] })
|
||||||
let tabIndex = ref(0)
|
let tabIndex = ref(0)
|
||||||
let typeIndex = ref(0)
|
let typeIndex = ref(0)
|
||||||
|
let typeName = ref(typeList.value[0])
|
||||||
|
console.log('typeName------------>', typeName);
|
||||||
|
|
||||||
const videoVisible = ref(false)
|
const videoVisible = ref(false)
|
||||||
const numFlag = ref(true)
|
const numFlag = ref(true)
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
|
@ -182,6 +189,7 @@ const changeType = (item, index) => {
|
||||||
ended.value = ''
|
ended.value = ''
|
||||||
page.value = 1
|
page.value = 1
|
||||||
typeIndex.value = index
|
typeIndex.value = index
|
||||||
|
typeName.value = item
|
||||||
getApplyList()
|
getApplyList()
|
||||||
}
|
}
|
||||||
let name = ref('')
|
let name = ref('')
|
||||||
|
@ -379,7 +387,7 @@ const getApplyList = () => {
|
||||||
if (ended.value === '') {
|
if (ended.value === '') {
|
||||||
delete params.ended
|
delete params.ended
|
||||||
}
|
}
|
||||||
if (typeIndex.value == 0) {
|
if (typeName.value == '能力申请') {
|
||||||
getTabilityapplication(params).then((res) => {
|
getTabilityapplication(params).then((res) => {
|
||||||
contentList.data = []
|
contentList.data = []
|
||||||
console.log('获取我的申请===============>', res.data.data)
|
console.log('获取我的申请===============>', res.data.data)
|
||||||
|
@ -388,9 +396,16 @@ const getApplyList = () => {
|
||||||
showType.value = '能力申请'
|
showType.value = '能力申请'
|
||||||
initNum2()
|
initNum2()
|
||||||
})
|
})
|
||||||
} else if (typeIndex.value !== 1) {
|
} else if (typeName.value == '能力评价') {
|
||||||
let typeName = typeList.value[typeIndex.value]
|
contentList.data = []
|
||||||
processDefinitionKey.value = typeStrObj[typeName]
|
num.value = []
|
||||||
|
showType.value = ''
|
||||||
|
} else if (typeName.value == '设备申请') {
|
||||||
|
contentList.data = []
|
||||||
|
num.value = []
|
||||||
|
showType.value = ''
|
||||||
|
} else if (Object.keys(typeStrObj).includes(typeName.value)) {
|
||||||
|
processDefinitionKey.value = typeStrObj[typeName.value]
|
||||||
params.processDefinitionKey = processDefinitionKey.value;
|
params.processDefinitionKey = processDefinitionKey.value;
|
||||||
getMyProcessInstancePage(params).then((res) => {
|
getMyProcessInstancePage(params).then((res) => {
|
||||||
contentList.data = []
|
contentList.data = []
|
||||||
|
|
Loading…
Reference in New Issue