Commit 28347897 by 李进峰

update

parent 56912ebf
- 基本地址 - 基本地址
...@@ -143,8 +143,9 @@ curl --location --request GET 'http://tx-gz18.heyqiwu.cn/api/juben/work/operate/ ...@@ -143,8 +143,9 @@ curl --location --request GET 'http://tx-gz18.heyqiwu.cn/api/juben/work/operate/
onRequestCloseModal: handleClose onRequestCloseModal: handleClose
}" }"
/> />
<div> </div>
</template> </template>
<script>
import Uppy from '@uppy/core' import Uppy from '@uppy/core'
import Tus from '@uppy/tus' import Tus from '@uppy/tus'
import zh_CN from '@uppy/locales/lib/zh_CN' import zh_CN from '@uppy/locales/lib/zh_CN'
...@@ -169,17 +170,6 @@ export default { ...@@ -169,17 +170,6 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getData();
this.fileUpload1 = new Uppy({ id: 'fileUpload1', autoProceed: false, debug: true, locale: zh_CN})
.use(Tus, { endpoint: filetusdUploadUrl })
.on('complete', (result) => {
console.log("this:", this);
console.log("result:", result);
let files = result.successful;
let file = files[0];
this.updateDia.uploadFileObj.fileUrl = file["uploadURL"];
this.updateDia.uploadFileObj.fileName = file["name"];
})
}, },
methods:{ methods:{
openUppy(){ openUppy(){
...@@ -190,6 +180,16 @@ export default { ...@@ -190,6 +180,16 @@ export default {
} }
}, },
created() { created() {
this.fileUpload1 = new Uppy({ id: 'fileUpload1', autoProceed: false, debug: true, locale: zh_CN})
.use(Tus, { endpoint: filetusdUploadUrl })
.on('complete', (result) => {
console.log("this:", this);
console.log("result:", result);
let files = result.successful;
let file = files[0];
this.updateDia.uploadFileObj.fileUrl = file["uploadURL"];
this.updateDia.uploadFileObj.fileName = file["name"];
})
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment