|
@@ -27,10 +27,10 @@
|
|
|
v-model="record">
|
|
v-model="record">
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="height: 10px;background: #f1f2f3" v-if="btnTitle == '隐藏'"></div>
|
|
|
|
|
- <div style="margin: 10px;font-weight: bold;" v-if="btnTitle == '隐藏'">{{$t(`上传附件`)}}</div>
|
|
|
|
|
- <div class="drawer__panel" v-if="btnTitle == '隐藏'">
|
|
|
|
|
- <uploadFile ref="upload" :folderid="folderid" accept=".text,.doc,.xls"
|
|
|
|
|
|
|
+ <div style="height: 10px;background: #f1f2f3" v-if="btnType == '隐藏'"></div>
|
|
|
|
|
+ <div style="margin: 10px;font-weight: bold;" v-if="btnType == '隐藏'">{{$t(`上传附件`)}}</div>
|
|
|
|
|
+ <div class="drawer__panel" v-if="btnType == '隐藏'">
|
|
|
|
|
+ <uploadFile ref="upload" :folderid="folderid"
|
|
|
:bindData="{ownertable:'sa_service_improvement_record',ownerid:sa_service_improvement_recordid,usetype:'default'}"
|
|
:bindData="{ownertable:'sa_service_improvement_record',ownerid:sa_service_improvement_recordid,usetype:'default'}"
|
|
|
@onSuccess="uploadSuccess" :id="data.sa_service_improvement_recordid"></uploadFile>
|
|
@onSuccess="uploadSuccess" :id="data.sa_service_improvement_recordid"></uploadFile>
|
|
|
<fileTable ref="list" style="margin-top: 20px;" :id="sa_service_improvement_recordid"></fileTable>
|
|
<fileTable ref="list" style="margin-top: 20px;" :id="sa_service_improvement_recordid"></fileTable>
|
|
@@ -67,19 +67,28 @@ export default {
|
|
|
onShow(){
|
|
onShow(){
|
|
|
this.drawerShow = true
|
|
this.drawerShow = true
|
|
|
this.list[0] = this.data
|
|
this.list[0] = this.data
|
|
|
|
|
+ this.listFiles = []
|
|
|
if (this.btnTitle == '编辑'){
|
|
if (this.btnTitle == '编辑'){
|
|
|
this.sa_service_improvement_recordid = this.itemData.sa_service_improvement_recordid
|
|
this.sa_service_improvement_recordid = this.itemData.sa_service_improvement_recordid
|
|
|
}else {
|
|
}else {
|
|
|
- this.sa_service_improvement_recordid = 9999999999
|
|
|
|
|
|
|
+ this.sa_service_improvement_recordid = 99999999999
|
|
|
}
|
|
}
|
|
|
this.record = this.content
|
|
this.record = this.content
|
|
|
|
|
+ this.$refs.list.listData()
|
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
|
+ let listFiles = this.$refs.list.list
|
|
|
|
|
+ console.log(listFiles,4444)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
uploadSuccess(res){
|
|
uploadSuccess(res){
|
|
|
console.log(res.data,'附件列表')
|
|
console.log(res.data,'附件列表')
|
|
|
this.$refs['upload'].dialogUploadVisible = false
|
|
this.$refs['upload'].dialogUploadVisible = false
|
|
|
this.$refs.list.listData()
|
|
this.$refs.list.listData()
|
|
|
- let listFiles = this.$refs.list.list
|
|
|
|
|
- console.log(listFiles,4444)
|
|
|
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
|
+ let listFiles = this.$refs.list.list
|
|
|
|
|
+ console.log(listFiles,4444)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
/*if(typeof res.attinfos == 'string') {
|
|
/*if(typeof res.attinfos == 'string') {
|
|
|
this.$refs.list.listData()
|
|
this.$refs.list.listData()
|
|
|
} else {
|
|
} else {
|
|
@@ -102,10 +111,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
this.tool.showMessage(res,()=>{
|
|
|
- // if (this.btnTitle != '编辑'){
|
|
|
|
|
- // this.listFiles = this.$refs.list.list
|
|
|
|
|
- // this.batchBinding(res.data)
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (this.btnTitle != '编辑'){
|
|
|
|
|
+ // this.listFiles = this.$refs.list.list
|
|
|
|
|
+ // this.batchBinding(res.data.sa_service_improvement_recordid)
|
|
|
|
|
+ }
|
|
|
this.drawerShow = false
|
|
this.drawerShow = false
|
|
|
this.$emit('addSuccess',this.data.sa_service_improvement_planid)
|
|
this.$emit('addSuccess',this.data.sa_service_improvement_planid)
|
|
|
})
|
|
})
|