[update] 冻结
This commit is contained in:
@@ -41,7 +41,7 @@ import { Base64 } from 'js-base64'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'file',
|
name: 'file',
|
||||||
props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile','detailDate'],
|
props: ['disableds', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile','detailDate'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -56,9 +56,15 @@ export default {
|
|||||||
isLoding: false,
|
isLoding: false,
|
||||||
cut: '',
|
cut: '',
|
||||||
template: {},
|
template: {},
|
||||||
|
disabled: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.detailDate.list.forEach((item) => {
|
||||||
|
if(item.type == 'file' && item.isLock == '1') {
|
||||||
|
this.disabled = true
|
||||||
|
}
|
||||||
|
})
|
||||||
console.log(this.detailDate,'detailDate')
|
console.log(this.detailDate,'detailDate')
|
||||||
const token = Vue.ls.get(ACCESS_TOKEN)
|
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||||
this.headers = { 'X-Access-Token': token }
|
this.headers = { 'X-Access-Token': token }
|
||||||
@@ -124,12 +130,6 @@ export default {
|
|||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
},
|
},
|
||||||
handleChange(info) {
|
handleChange(info) {
|
||||||
// this.detailDate.list.forEach((item) => {
|
|
||||||
// if(item.isLock === '1'){
|
|
||||||
// this.$message.warning(this.$t('Frozenstatus'))
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
if(info.fileList.length > 1) {
|
if(info.fileList.length > 1) {
|
||||||
this.$message.warning(this.$t('onlyOnefileUploaded'))
|
this.$message.warning(this.$t('onlyOnefileUploaded'))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user