[update] 冻结

This commit is contained in:
zhaomeijing
2022-06-09 18:01:48 +08:00
parent 3de6b0f4a3
commit dbb02e949a
@@ -41,7 +41,7 @@ import { Base64 } from 'js-base64'
export default {
name: 'file',
props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile','detailDate'],
props: ['disableds', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile','detailDate'],
data() {
return {
visible: false,
@@ -56,9 +56,15 @@ export default {
isLoding: false,
cut: '',
template: {},
disabled: false
}
},
created() {
this.detailDate.list.forEach((item) => {
if(item.type == 'file' && item.isLock == '1') {
this.disabled = true
}
})
console.log(this.detailDate,'detailDate')
const token = Vue.ls.get(ACCESS_TOKEN)
this.headers = { 'X-Access-Token': token }
@@ -124,12 +130,6 @@ export default {
window.open(url, '_blank')
},
handleChange(info) {
// this.detailDate.list.forEach((item) => {
// if(item.isLock === '1'){
// this.$message.warning(this.$t('Frozenstatus'))
// return
// }
// })
if(info.fileList.length > 1) {
this.$message.warning(this.$t('onlyOnefileUploaded'))
return