Commit feeace0d by liu.jiani

202107121505

parent 7074f7fc
import { postFileRequest } from '@/utils/request-gateway'
const DeviceApi = {
uploadFile: '/api/tbStLayerData/uploadExcel', // 查询设备树接口
uploadFile: '/api/tbStLayerData/uploadExcel',
}
// 查询设备树
export function uploadFile (parameter) {
return postFileRequest(DeviceApi.uploadFile, parameter)
}
......
......@@ -161,7 +161,8 @@ export default {
this.curType = 'upload'
},
changeCurType(item) {
this.curType = item.type
this.curType = item.type
this.$emit('changeCurTypeFunc',this.curType)
},
exceedFile(files, fileList) {
this.$message.warning(
......@@ -221,7 +222,6 @@ export default {
this.$emit("uploadFileFlagFunc", false);
this.$message.warning("请输入图层名称后上传");
} else {
this.fileList = []
this.uploadFlag = false;
this.imageUrl = false;
......@@ -460,7 +460,6 @@ export default {
}
.downloading{
width: 92px;
width: 92px;
margin: 0 10px;
cursor: pointer;
font-family: "Microsoft YaHei";
......
......@@ -4,10 +4,11 @@
<header-one
:uploadFileFlag="uploadFileFlag"
@uploadFileFlagFunc="uploadFileFlagFunc"
@changeCurTypeFunc="changeCurTypeFunc"
></header-one>
</div>
<div class="decision-content">
<creat-active-main :uploadFileFlag="uploadFileFlag"></creat-active-main>
<creat-active-main :uploadFileFlag="uploadFileFlag" :curType="curType"></creat-active-main>
</div>
<div class="decision-button"></div>
</div>
......@@ -31,7 +32,8 @@ export default {
},
value: "",
activeName: "",
uploadFileFlag: false
uploadFileFlag: false,
curType:''
};
},
......@@ -40,7 +42,10 @@ export default {
methods: {
uploadFileFlagFunc(flag) {
this.uploadFileFlag = flag;
}
},
changeCurTypeFunc(type) {
this.curType = type;
},
}
};
</script>
......
......@@ -103,6 +103,15 @@ export default {
uploadFileFlag: {
type: Boolean,
default: false
},
curType: {
type: String,
default: ''
},
},
watch: {
curType(newV,oldV) {
console.log(newV,oldV)
}
},
data() {
......
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