|
@@ -7,7 +7,7 @@
|
|
|
'Authorization': 'Bearer ' + token
|
|
|
}" action="http://xxgl.zzxcx.net/xxgl-admin/file/info" :data="{
|
|
|
id: priceId,
|
|
|
- type:type
|
|
|
+ type: type
|
|
|
|
|
|
}" :on-preview="handlePreview" :on-success="handleSuccess" :on-remove="handleRemove" :before-remove="beforeRemove"
|
|
|
multiple :on-exceed="handleExceed" :file-list="fileList">
|
|
@@ -67,7 +67,7 @@ export default {
|
|
|
fileList: [],
|
|
|
token: getToken(),
|
|
|
priceId: 0,
|
|
|
- type:0,
|
|
|
+ type: 0,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
// 非单个禁用
|
|
@@ -231,9 +231,27 @@ export default {
|
|
|
return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
},
|
|
|
getFileList() {
|
|
|
- getFileList({
|
|
|
- priceId: this.$route.query.id
|
|
|
- }).then(response => {
|
|
|
+ let type = this.$route.query.type
|
|
|
+ let id = this.$route.query.id
|
|
|
+ let params = {
|
|
|
+
|
|
|
+ }
|
|
|
+ switch (type) {
|
|
|
+ case '1':
|
|
|
+ params.fileId = id
|
|
|
+ break;
|
|
|
+ case '2':
|
|
|
+ params.engineId = id
|
|
|
+ break;
|
|
|
+ case '3':
|
|
|
+ params.controllerId = id
|
|
|
+ break;
|
|
|
+ case '4':
|
|
|
+ params.fdjId = id
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
+ getFileList(params).then(response => {
|
|
|
this.tableData = response.rows
|
|
|
|
|
|
});
|
|
@@ -247,7 +265,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.priceId = this.$route.query.id
|
|
|
- this.type = this.$route.query.type
|
|
|
+ this.type = this.$route.query.type
|
|
|
this.getFileList()
|
|
|
|
|
|
},
|