挂载添加deptid

This commit is contained in:
a0049873 2022-06-14 11:06:32 +08:00
parent cfded4f558
commit c5bd98c8fc
3 changed files with 25 additions and 9 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-13 10:22:27 * @Date: 2022-06-13 10:22:27
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-13 17:44:04 * @LastEditTime: 2022-06-14 11:06:06
* @Description: 算法上架 * @Description: 算法上架
--> -->
<template> <template>
@ -78,7 +78,15 @@
const data = ref({}) const data = ref({})
const refData = ref({}) const refData = ref({})
const submitFlag = ref(true) 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 = () => { const back = () => {
navList.value.forEach((val, index) => { navList.value.forEach((val, index) => {
if (val.key === showView.value && index > 0) { if (val.key === showView.value && index > 0) {

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-13 10:22:27 * @Date: 2022-06-13 10:22:27
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-13 17:44:41 * @LastEditTime: 2022-06-14 11:05:51
* @Description: 应用上架 * @Description: 应用上架
--> -->
<template> <template>
@ -73,7 +73,15 @@
const data = ref({}) const data = ref({})
const refData = ref({}) const refData = ref({})
const submitFlag = ref(true) 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 = () => { const back = () => {
navList.value.forEach((val, index) => { navList.value.forEach((val, index) => {
if (val.key === showView.value && index > 0) { if (val.key === showView.value && index > 0) {
@ -127,9 +135,9 @@
if (res3.data.code == 0) { if (res3.data.code == 0) {
message.success('上架成功!') message.success('上架成功!')
submitFlag.value = true submitFlag.value = true
window.setTimeout(() => { // window.setTimeout(() => {
window.close() // window.close()
}, 1000) // }, 1000)
} }
}) })
}) })

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-01 17:49:38 * @Date: 2022-06-01 17:49:38
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-06-13 14:55:22 * @LastEditTime: 2022-06-14 10:48:43
* @Description: 能力上架 * @Description: 能力上架
--> -->
<template> <template>
@ -17,7 +17,7 @@
import Algorithm from '@/views/capacityOnTheShelf/Algorithm' import Algorithm from '@/views/capacityOnTheShelf/Algorithm'
import Application from '@/views/capacityOnTheShelf/Application' import Application from '@/views/capacityOnTheShelf/Application'
import { ref } from 'vue' import { ref } from 'vue'
const type = ref('algorithm') const type = ref('application')
window.sessionStorage.setItem('preview', JSON.stringify({})) window.sessionStorage.setItem('preview', JSON.stringify({}))
</script> </script>
<style scoped lang="less"> <style scoped lang="less">