Compare commits
No commits in common. "57df5fe2206170aeffd4a55e8abb85989a30d9a0" and "616d806c2df607c6d8a944b12ff9dbd8b42a981d" have entirely different histories.
57df5fe220
...
616d806c2d
|
@ -192,7 +192,6 @@
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
let shiyongshouce = ref({})
|
|
||||||
const navList = ref([])
|
const navList = ref([])
|
||||||
const navList2 = ref([])
|
const navList2 = ref([])
|
||||||
const fileList = ref({})
|
const fileList = ref({})
|
||||||
|
@ -316,9 +315,6 @@
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
mybus.on('chageDataFrom', (obj) => {
|
mybus.on('chageDataFrom', (obj) => {
|
||||||
if (obj.attrType == '技术文档' && obj.attrValue != null) {
|
|
||||||
shiyongshouce.value = obj
|
|
||||||
}
|
|
||||||
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
||||||
(item) => item.attrType !== obj.attrType
|
(item) => item.attrType !== obj.attrType
|
||||||
)
|
)
|
||||||
|
@ -326,13 +322,6 @@
|
||||||
obj.attrValue = ''
|
obj.attrValue = ''
|
||||||
}
|
}
|
||||||
dataFrom.value.infoList.push(obj)
|
dataFrom.value.infoList.push(obj)
|
||||||
if (shiyongshouce.value.attrValue) {
|
|
||||||
dataFrom.value.infoList.map((syscitem, syscindex) => {
|
|
||||||
if (syscitem.attrType == '技术文档') {
|
|
||||||
dataFrom.value.infoList[syscindex] = shiyongshouce.value
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
console.log('数据变更=================》', obj, dataFrom.value.infoList)
|
console.log('数据变更=================》', obj, dataFrom.value.infoList)
|
||||||
})
|
})
|
||||||
mybus.on('chageFileList', (obj) => {
|
mybus.on('chageFileList', (obj) => {
|
||||||
|
|
|
@ -286,7 +286,7 @@
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
mybus.on('chageDataFrom', (obj) => {
|
mybus.on('chageDataFrom', (obj) => {
|
||||||
if (obj.attrType == '技术文档' && obj.attrValue != null) {
|
if (obj.attrType == '使用手册' && obj.attrValue != null) {
|
||||||
shiyongshouce.value = obj
|
shiyongshouce.value = obj
|
||||||
}
|
}
|
||||||
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
||||||
|
@ -298,7 +298,7 @@
|
||||||
dataFrom.value.infoList.push(obj)
|
dataFrom.value.infoList.push(obj)
|
||||||
if (shiyongshouce.value.attrValue) {
|
if (shiyongshouce.value.attrValue) {
|
||||||
dataFrom.value.infoList.map((syscitem, syscindex) => {
|
dataFrom.value.infoList.map((syscitem, syscindex) => {
|
||||||
if (syscitem.attrType == '技术文档') {
|
if (syscitem.attrType == '使用手册') {
|
||||||
dataFrom.value.infoList[syscindex] = shiyongshouce.value
|
dataFrom.value.infoList[syscindex] = shiyongshouce.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -298,7 +298,7 @@
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
mybus.on('chageDataFrom', (obj) => {
|
mybus.on('chageDataFrom', (obj) => {
|
||||||
if (obj.attrType == '技术文档' && obj.attrValue != null) {
|
if (obj.attrType == '使用手册' && obj.attrValue != null) {
|
||||||
shiyongshouce.value = obj
|
shiyongshouce.value = obj
|
||||||
}
|
}
|
||||||
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
||||||
|
@ -310,7 +310,7 @@
|
||||||
dataFrom.value.infoList.push(obj)
|
dataFrom.value.infoList.push(obj)
|
||||||
if (shiyongshouce.value.attrValue) {
|
if (shiyongshouce.value.attrValue) {
|
||||||
dataFrom.value.infoList.map((syscitem, syscindex) => {
|
dataFrom.value.infoList.map((syscitem, syscindex) => {
|
||||||
if (syscitem.attrType == '技术文档') {
|
if (syscitem.attrType == '使用手册') {
|
||||||
dataFrom.value.infoList[syscindex] = shiyongshouce.value
|
dataFrom.value.infoList[syscindex] = shiyongshouce.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
import * as fontJs from '/public/static/js/font.js'
|
import * as fontJs from '/public/static/js/font.js'
|
||||||
import { filesUpload } from '@/api/personalCenter'
|
import { filesUpload } from '@/api/personalCenter'
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
let text = ref('')
|
let text = ''
|
||||||
let iconfontJs = fontJs
|
let iconfontJs = fontJs
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: { type: Array, default: null },
|
data: { type: Array, default: null },
|
||||||
|
@ -44,12 +44,11 @@
|
||||||
// formData.append('name', this.route.currentRoute.query.id + '.md')
|
// formData.append('name', this.route.currentRoute.query.id + '.md')
|
||||||
// FileSaver.saveAs(blob, '开发指南.md')
|
// FileSaver.saveAs(blob, '开发指南.md')
|
||||||
filesUpload(formData).then((resData) => {
|
filesUpload(formData).then((resData) => {
|
||||||
const res = resData.data.data
|
const res = resData
|
||||||
text.value = res
|
|
||||||
mybus.emit('showTextFunctionEmit', false)
|
mybus.emit('showTextFunctionEmit', false)
|
||||||
let infoList = ref({
|
let infoList = ref({
|
||||||
attrType: '技术文档',
|
attrType: '使用手册',
|
||||||
attrValue: res,
|
attrValue: res.data.data,
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
})
|
})
|
||||||
mybus.emit('chageDataFrom', infoList.value)
|
mybus.emit('chageDataFrom', infoList.value)
|
||||||
|
|
|
@ -246,7 +246,7 @@
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
mybus.on('chageDataFrom', (obj) => {
|
mybus.on('chageDataFrom', (obj) => {
|
||||||
if (obj.attrType == '技术文档' && obj.attrValue != null) {
|
if (obj.attrType == '使用手册' && obj.attrValue != null) {
|
||||||
shiyongshouce.value = obj
|
shiyongshouce.value = obj
|
||||||
}
|
}
|
||||||
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
||||||
|
@ -258,7 +258,7 @@
|
||||||
dataFrom.value.infoList.push(obj)
|
dataFrom.value.infoList.push(obj)
|
||||||
if (shiyongshouce.value.attrValue) {
|
if (shiyongshouce.value.attrValue) {
|
||||||
dataFrom.value.infoList.map((syscitem, syscindex) => {
|
dataFrom.value.infoList.map((syscitem, syscindex) => {
|
||||||
if (syscitem.attrType == '技术文档') {
|
if (syscitem.attrType == '使用手册') {
|
||||||
dataFrom.value.infoList[syscindex] = shiyongshouce.value
|
dataFrom.value.infoList[syscindex] = shiyongshouce.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -146,18 +146,8 @@
|
||||||
:list="props.fileList"
|
:list="props.fileList"
|
||||||
tip="支持文件类型,大小不超过100M"
|
tip="支持文件类型,大小不超过100M"
|
||||||
></upload>
|
></upload>
|
||||||
<upload
|
|
||||||
v-else-if="item.name == '使用手册'"
|
|
||||||
type="文件"
|
|
||||||
btnName="上传附件"
|
|
||||||
:maxCount="1"
|
|
||||||
:data="item"
|
|
||||||
:busType="2"
|
|
||||||
:list="props.fileList2"
|
|
||||||
tip="支持文件类型,大小不超过100M"
|
|
||||||
></upload>
|
|
||||||
<div
|
<div
|
||||||
v-else-if="item.type == 'richText'"
|
v-else-if="item.name == '使用手册'"
|
||||||
@click="showTextFunction()"
|
@click="showTextFunction()"
|
||||||
>
|
>
|
||||||
上传附件
|
上传附件
|
||||||
|
|
|
@ -138,7 +138,6 @@
|
||||||
let obj = props.dataList.infoList.filter(
|
let obj = props.dataList.infoList.filter(
|
||||||
(item) => item.attrType === '技术文档'
|
(item) => item.attrType === '技术文档'
|
||||||
)[0]
|
)[0]
|
||||||
debugger
|
|
||||||
console.log('dataFrom.value.link', obj.attrValue)
|
console.log('dataFrom.value.link', obj.attrValue)
|
||||||
window.open(
|
window.open(
|
||||||
window.SITE_CONFIG.previewUrl +
|
window.SITE_CONFIG.previewUrl +
|
||||||
|
@ -150,7 +149,6 @@
|
||||||
let obj = props.dataList.infoList.filter(
|
let obj = props.dataList.infoList.filter(
|
||||||
(item) => item.attrType === '使用手册'
|
(item) => item.attrType === '使用手册'
|
||||||
)[0]
|
)[0]
|
||||||
debugger
|
|
||||||
console.log('dataFrom.value.link', obj.attrValue)
|
console.log('dataFrom.value.link', obj.attrValue)
|
||||||
window.open(
|
window.open(
|
||||||
window.SITE_CONFIG.previewUrl +
|
window.SITE_CONFIG.previewUrl +
|
||||||
|
|
Loading…
Reference in New Issue