|
|
@@ -55,7 +55,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="文档上传" prop="Diseaseinfo">
|
|
|
- <el-upload style="margin-top: 10px;" multiple="true" action="" :limit="1" ref="refuploadattach" :http-request="uploadrequest"
|
|
|
+ <el-upload style="margin-top: 10px;" multiple action="" :limit="1" ref="refuploadattach" :http-request="uploadrequest"
|
|
|
class="attach-uploader" :show-file-list="true" :before-upload="beforeAvatarUpload" >
|
|
|
<i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
@@ -66,7 +66,7 @@
|
|
|
<div style="overflow: auto;">
|
|
|
<template>
|
|
|
<el-row>
|
|
|
- <el-col :span="24" v-for="(v,K) in maintainlogattrlist" :key="v">
|
|
|
+ <el-col :span="24" v-for="(v,K) in maintainlogattrlist" :key="v.name">
|
|
|
<span>
|
|
|
<el-button size="small" type="text" icon="el-icon-delete" title="删除" @click="deletedatafile(K)" ></el-button>
|
|
|
</span>
|
|
|
@@ -138,8 +138,8 @@
|
|
|
label: 'ItemName',
|
|
|
children: 'children'
|
|
|
},
|
|
|
- orgtreelist: [],
|
|
|
- JLDirectoryIds: [], //文档结构
|
|
|
+ orgtreelist: [], //文档结构
|
|
|
+ JLDirectoryIds: [], //文档结构Id
|
|
|
list: [],
|
|
|
typeList: [], //文档类别列表
|
|
|
uploadform: {
|
|
|
@@ -229,7 +229,11 @@
|
|
|
})
|
|
|
.then(res => {
|
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,ItemName')
|
|
|
- // _this.getfinaljiedian(_this.uploadform.DirectoryId)
|
|
|
+ //显示原来文档结构
|
|
|
+ let arr = []
|
|
|
+ arr.push(_this.orgtreelist[0].id)
|
|
|
+ arr.push(_this.orgtreelist[0].children[0].id)
|
|
|
+ _this.JLDirectoryIds = arr
|
|
|
})
|
|
|
.catch(err => {
|
|
|
// handle error
|
|
|
@@ -239,31 +243,6 @@
|
|
|
clickachment(url, uid) {
|
|
|
window.open(`http://${url}`)
|
|
|
},
|
|
|
- //文档结构回显
|
|
|
- getfinaljiedian(Id) {
|
|
|
- let _this = this
|
|
|
- this.$axios.get('/items/treeitemsdetailparentlist/' + Id, {})
|
|
|
- .then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- // 选中状态
|
|
|
- _this.JLDirectoryIds = []
|
|
|
- for (var i = pidarr.length - 1; i >= 0; i--) {
|
|
|
- if (pidarr[i] !== '0') {
|
|
|
- _this.JLDirectoryIds.push(parseInt(pidarr[i]))
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '出现错误!'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- // handle error
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
//保存编辑信息
|
|
|
save() {
|
|
|
let _this = this
|