|
@@ -219,7 +219,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="margin-top:20px">
|
|
|
-
|
|
|
+ <!--
|
|
|
<el-form>
|
|
|
<el-form-item label="选择文件" width="200px">
|
|
|
<input type="file" ref="myfile">
|
|
@@ -232,19 +232,20 @@
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
+ -->
|
|
|
<el-upload
|
|
|
ref="upload"
|
|
|
- class="upload-demo"
|
|
|
- action="/admin/up/uploadModelFile"
|
|
|
- :on-success="handleSuccess"
|
|
|
- :before-upload="beforeUpload"
|
|
|
- :headers="headers"
|
|
|
- :data="pdfData"
|
|
|
- drag
|
|
|
- multiple
|
|
|
- >
|
|
|
- <i class="el-icon-upload"></i>
|
|
|
- <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
+ class="upload-demo"
|
|
|
+ action="/admin/up/uploadModelFile"
|
|
|
+ :on-success="handleSuccess"
|
|
|
+ :before-upload="beforeUpload"
|
|
|
+ :headers="headers"
|
|
|
+ :data="pdfData"
|
|
|
+ drag
|
|
|
+ multiple
|
|
|
+ >
|
|
|
+ <i class="el-icon-upload"></i>
|
|
|
+ <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
|
|
@@ -278,10 +279,10 @@
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
pdfData: {
|
|
|
id: '',
|
|
|
- headInfId: ''
|
|
|
+ headInfId: '',
|
|
|
+ modelType: ''
|
|
|
},
|
|
|
headers: {
|
|
|
'ht-token':localStorage.getItem('auth-token')
|
|
@@ -413,6 +414,7 @@
|
|
|
methods: {
|
|
|
handleSuccess(response, file) {
|
|
|
this.$message.success('文件上传成功');
|
|
|
+ //刷新
|
|
|
location.reload();
|
|
|
},
|
|
|
beforeUpload(file) {
|
|
@@ -421,6 +423,7 @@
|
|
|
const _vm = this;
|
|
|
_vm.pdfData.id = this.id;
|
|
|
_vm.pdfData.headInfId = this.headInfId;
|
|
|
+ _vm.pdfData.modelType = this.model_type=='模型文件'?'1':'0';
|
|
|
return true;
|
|
|
},
|
|
|
handleMenuSelect(index) {
|