| | |
| | | } |
| | | }, |
| | | toDetail(item) { |
| | | // read({ id: item.id }).then(res => { |
| | | |
| | | // }) |
| | | let urlList = ['/strainReportLibrary/reportLibraryOne', '/strainReportLibrary/reportLibraryOne', '/strain-library/strain-library-manage' |
| | | , '/strain/pedigree-vhart', '/strain/breeding-record', '/strain/validation/primitive-cell', |
| | | '/strainReportLibrary/reportLibraryOne', '/strainReportLibrary/reportLibraryOne', '/deliveryAssessment/projectTeamIntegral', |
| | | ] |
| | | read({ id: item.id }).then(res => { |
| | | let url = urlList[item.noticeType * 1 - 1] |
| | | this.$router.push({ |
| | | path: url, |
| | | }); |
| | | }) |
| | | |
| | | |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | justify-content: center; |
| | | align-items: center; |
| | | min-height: 320px; |
| | | |
| | | .module-item { |
| | | width: 320px; |
| | | height: 320px; |
| | |
| | | return axios.get('/notice/list', { ...data }) |
| | | } |
| | | export const read = (data) => { |
| | | return axios.get(`/open/t-notice/read?id=${data.id}`, { ...data }) |
| | | return axios.get(`open/notice/editStatus?id=${data.id}`, { ...data }) |
| | | } |
| | |
| | | onSuccess: (res) => { |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | name: file.name, |
| | | name: file.name + new Date().getTime(), |
| | | url: getFullUrl(res.msg || res.data || ''), |
| | | uid: new Date().getTime() |
| | | }; |