28 lines
601 B
JavaScript
28 lines
601 B
JavaScript
|
import { findDataInfo } from "../../../api/documentManagement"
|
||
|
export default{
|
||
|
data(){
|
||
|
return{
|
||
|
|
||
|
|
||
|
}
|
||
|
},
|
||
|
mounted(){
|
||
|
// this.fetchDataInfo()
|
||
|
|
||
|
|
||
|
if (this.$route.query.id) {
|
||
|
this.fetchDataInfo({id:this.$route.query.id})
|
||
|
}
|
||
|
|
||
|
},
|
||
|
methods:{
|
||
|
async fetchDataInfo(params){
|
||
|
const res = await findDataInfo(params)
|
||
|
if (res && res.code === 200) {
|
||
|
this.modifyData = res.data
|
||
|
this.addParams.content = this.modifyData.content
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|