|
|
@@ -73,7 +73,7 @@
|
|
|
<!-- 附件列表 -->
|
|
|
<div class="container normal-panel">
|
|
|
<attachmentList :attinfos="form.attinfos" @onSuccess="selectDetail" :onlyread="store.state.pageOnlyRead">
|
|
|
- <upload slot="upload" :folderid="folderid"
|
|
|
+ <upload slot="upload" :folderid="folderid" ref="upload"
|
|
|
:bindData="{ ownertable: 'SAT_COURSEWARE', ownerid: form.sat_coursewareid, usetype: 'default' }"
|
|
|
@onSuccess="onSubmit"></upload>
|
|
|
</attachmentList>
|
|
|
@@ -155,9 +155,14 @@ export default {
|
|
|
|
|
|
/*this.selectDetail()*/
|
|
|
this.insertCoursewareauth(() => {
|
|
|
- this.$router.push({path:'/archives_scdetails',query:{id:res.data.sat_coursewareid,rowindex:res.data.rowindex}})
|
|
|
+ if (Object.prototype.toString.call(callback).indexOf('Function') != -1) {
|
|
|
+ this.$router.push({path:'/archives_scdetails',query:{id:res.data.sat_coursewareid,rowindex:res.data.rowindex}})
|
|
|
+ callback(res)
|
|
|
+ } else {
|
|
|
+ this.$refs.upload.dialogUploadVisible = false
|
|
|
+ this.selectDetail()
|
|
|
+ }
|
|
|
})
|
|
|
- callback?callback(res):''
|
|
|
});
|
|
|
},
|
|
|
async selectDetail() {
|