上传文件更改

prod
吕天方 1 year ago
parent e7cbf6f532
commit f600a8a581

@ -220,7 +220,7 @@ export default {
// //
form: { form: {
enterpriseDirectoryList: [], enterpriseDirectoryList: [],
approvalOptions: '通过' approvalOptions: ''
}, },
// //
rules: { rules: {
@ -290,7 +290,6 @@ export default {
}, },
/** 切换审批项 */ /** 切换审批项 */
toggleOptions(value) { toggleOptions(value) {
console.log(value);
this.queryParams.approvalStatusStr = value this.queryParams.approvalStatusStr = value
this.handleQuery(); this.handleQuery();
}, },
@ -302,7 +301,7 @@ export default {
// //
reset() { reset() {
this.form = { this.form = {
approvalOptions: '通过', approvalOptions: '',
approvalStatus: '1', approvalStatus: '1',
approvalAttachment: '', approvalAttachment: '',
}; };
@ -322,7 +321,10 @@ export default {
this.fileList = [] this.fileList = []
this.fileList.push(file) this.fileList.push(file)
this.form.fileList = this.fileList this.form.fileList = this.fileList
this.uploadList.push(response.data) let data = {}
data.name = response.originalFilename;
data.url = response.url;
this.uploadList.push(data)
console.log('this.fileList: ', this.fileList); console.log('this.fileList: ', this.fileList);
}) })
}, },

@ -370,7 +370,7 @@ export default {
window.removeEventListener('resize', this.cancalDebounce); window.removeEventListener('resize', this.cancalDebounce);
}, },
created() { created() {
console.log(this.$store.state.user.enterpriseId); // console.log(this.$store.state.user.enterpriseId);
this.getList(); this.getList();
}, },
methods: { methods: {

Loading…
Cancel
Save