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

调整

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