挂载添加deptid
This commit is contained in:
parent
cfded4f558
commit
c5bd98c8fc
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-13 10:22:27
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-13 17:44:04
|
||||
* @LastEditTime: 2022-06-14 11:06:06
|
||||
* @Description: 算法上架
|
||||
-->
|
||||
<template>
|
||||
|
@ -78,7 +78,15 @@
|
|||
const data = ref({})
|
||||
const refData = ref({})
|
||||
const submitFlag = ref(true)
|
||||
const dataFrom = ref({ infoList: [], delFlag: 0, type: '组件服务' })
|
||||
const dataFrom = ref({
|
||||
infoList: [],
|
||||
delFlag: 0,
|
||||
type: '组件服务',
|
||||
deptId: '',
|
||||
})
|
||||
getUser().then((res) => {
|
||||
dataFrom.value.deptId = res.data.data.deptId
|
||||
})
|
||||
const back = () => {
|
||||
navList.value.forEach((val, index) => {
|
||||
if (val.key === showView.value && index > 0) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-13 10:22:27
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-13 17:44:41
|
||||
* @LastEditTime: 2022-06-14 11:05:51
|
||||
* @Description: 应用上架
|
||||
-->
|
||||
<template>
|
||||
|
@ -73,7 +73,15 @@
|
|||
const data = ref({})
|
||||
const refData = ref({})
|
||||
const submitFlag = ref(true)
|
||||
const dataFrom = ref({ infoList: [], delFlag: 0, type: '应用资源' })
|
||||
const dataFrom = ref({
|
||||
infoList: [],
|
||||
delFlag: 0,
|
||||
type: '应用资源',
|
||||
deptId: '',
|
||||
})
|
||||
getUser().then((res) => {
|
||||
dataFrom.value.deptId = res.data.data.deptId
|
||||
})
|
||||
const back = () => {
|
||||
navList.value.forEach((val, index) => {
|
||||
if (val.key === showView.value && index > 0) {
|
||||
|
@ -127,9 +135,9 @@
|
|||
if (res3.data.code == 0) {
|
||||
message.success('上架成功!')
|
||||
submitFlag.value = true
|
||||
window.setTimeout(() => {
|
||||
window.close()
|
||||
}, 1000)
|
||||
// window.setTimeout(() => {
|
||||
// window.close()
|
||||
// }, 1000)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-01 17:49:38
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-13 14:55:22
|
||||
* @LastEditTime: 2022-06-14 10:48:43
|
||||
* @Description: 能力上架
|
||||
-->
|
||||
<template>
|
||||
|
@ -17,7 +17,7 @@
|
|||
import Algorithm from '@/views/capacityOnTheShelf/Algorithm'
|
||||
import Application from '@/views/capacityOnTheShelf/Application'
|
||||
import { ref } from 'vue'
|
||||
const type = ref('algorithm')
|
||||
const type = ref('application')
|
||||
window.sessionStorage.setItem('preview', JSON.stringify({}))
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
|
|
Loading…
Reference in New Issue