|
@@ -20,24 +20,14 @@
|
|
|
</file-list>
|
|
|
<!--富文本-->
|
|
|
<file-text ref="text" v-if="uploadType == '3'">
|
|
|
- <Editor
|
|
|
- ref="editor"
|
|
|
- slot="editor"
|
|
|
- :content="cacheInfo.content.content"
|
|
|
- :id="uploadCacheData.sat_sharematerialid"
|
|
|
- ></Editor>
|
|
|
+ <Editor ref="editor" slot="editor" :content="cacheInfo.content.content"
|
|
|
+ :id="uploadCacheData.sat_sharematerialid"></Editor>
|
|
|
</file-text>
|
|
|
</el-col>
|
|
|
<!-- 授权范围 -->
|
|
|
<el-col :span="10">
|
|
|
- <scopeOfauth
|
|
|
- style="margin-left:10px;"
|
|
|
- :defaultData="defaultData"
|
|
|
- :dataid="authId"
|
|
|
- appidname="sat_sharematerialid"
|
|
|
- obiectName="sat_sharematerial"
|
|
|
- @onChecked="onChecked"
|
|
|
- />
|
|
|
+ <scopeOfauth style="margin-left:10px;" :defaultData="defaultData" :dataid="authId"
|
|
|
+ appidname="sat_sharematerialid" obiectName="sat_sharematerial" @onChecked="onChecked" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -127,13 +117,19 @@ export default {
|
|
|
this.uploadCacheData.sat_sharematerialid = data.sat_sharematerialid
|
|
|
this.uploadCacheData.attinfos = data.attinfos
|
|
|
this.authId = this.$route.query.id
|
|
|
- setTimeout(this.randerData, 100)
|
|
|
+ setTimeout(this.randerData, 1000)
|
|
|
if (data.title != '') this.uploadCacheData.status = "完成"
|
|
|
this.query_auth()
|
|
|
},
|
|
|
/* 更新附件列表数据 */
|
|
|
randerData () {
|
|
|
- if (this.uploadType != 3) this.$refs.attFileList.randerData(this.uploadCacheData.attinfos)
|
|
|
+ if (this.uploadType != 3) {
|
|
|
+ // console.log(222222222222222222, this.$refs.attFileList.randerData);
|
|
|
+
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.attFileList.randerData(this.uploadCacheData.attinfos)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
deleteFile (id) {
|
|
|
this.uploadCacheData.attinfos = this.uploadCacheData.attinfos.filter(v => v.linksid != id)
|