Commit d27561b4 authored by 李苏's avatar 李苏 💬

调整

parent 025692c5
......@@ -135,9 +135,7 @@
"label": "bmmc",
"value": "bmid"
}
},
],
queryParams: [
[{
......@@ -177,7 +175,6 @@
type: 'input',
value: ''
},
{
label: '序列号',
prop: 'xlh',
......@@ -194,18 +191,14 @@
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
],
[
{
[{
label: '案件信息',
prop: 'ajxx',
span: 4,
type: 'input',
value: ''
},
]
}, ]
],
}
......
<template>
<div class="min_full">
<canvas class="full" id="three"></canvas>
<!-- <canvas class="full" id="three"></canvas> -->
</div>
</template>
......@@ -18,7 +18,7 @@
export default {
mounted() {
this.$nextTick(() => {
this.init()
// this.init()
})
},
methods: {
......@@ -36,12 +36,13 @@
const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 1, 10)
camera.position.set(0, 1, 5);
camera.position.set(0, 20, 5);
/* 设置光源*/
/* 加载器*/
const loader = new GLTFLoader();
loader.load('/wcy/fanart/scene.gltf', function(gltf) {
loader.load('/wcy/ag/cp/scene.gltf', function(gltf) {
console.log(gltf,'加载成功')
scene.add(gltf.scene);
renderer.render(scene, camera)
const controls = new OrbitControls(camera, renderer.domElement);
......
......@@ -96,8 +96,8 @@
if (this.b64) {
this.loading = true
var mimeString
function dataURItoBlob(dataURI) {
var name = `高拍仪图片.png`
function dataURItoBlob(dataURI){
var byteString = atob(dataURI.split(',')[1]);
mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
var ab = new ArrayBuffer(byteString.length);
......@@ -110,13 +110,14 @@
});
}
// 将Base64数据转换为Blob对象
let name = `${new Date()}.png`
var blob = dataURItoBlob(this.b64);
var formData = new FormData();
formData.append('file', blob)
formData.append('file', blob,name)
formData.append('type', mimeString)
formData.append('name', name)
formData.append('groupid', this.app.singleItem.id)
formData.append('folder', '')
uploadAttachDownload(formData, this.app.baseUrl).then(res => {
if (res.success) {
this.$success('上传成功')
......
......@@ -76,10 +76,6 @@
}
})
})
}else{
this.$warning('请填入日期')
}
......
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