i do declare
This commit is contained in:
parent
d05a980adb
commit
9e999d5bce
1784
benchtop-fe/package-lock.json
generated
1784
benchtop-fe/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -11,6 +11,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdi/font": "^7.2.96",
|
"@mdi/font": "^7.2.96",
|
||||||
"@vuepic/vue-datepicker": "^7.0.0",
|
"@vuepic/vue-datepicker": "^7.0.0",
|
||||||
|
"vls": "^0.8.5",
|
||||||
|
"volar-service-vetur": "^0.0.13",
|
||||||
"vue": "^3.3.4",
|
"vue": "^3.3.4",
|
||||||
"vue-upload-component": "^3.1.8"
|
"vue-upload-component": "^3.1.8"
|
||||||
},
|
},
|
||||||
|
@ -37,22 +37,15 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script setup>
|
||||||
|
import { ref, defineProps } from 'vue'
|
||||||
|
|
||||||
import VueDatePicker from '@vuepic/vue-datepicker';
|
import VueDatePicker from '@vuepic/vue-datepicker';
|
||||||
import '@vuepic/vue-datepicker/dist/main.css';
|
import '@vuepic/vue-datepicker/dist/main.css';
|
||||||
|
const calibration_model = ref( "")
|
||||||
export default {
|
const calibration_serial = ref( "")
|
||||||
components: {VueDatePicker},
|
const calibration_cert_id = ref( "")
|
||||||
name: 'NewCalibrationDeviceForm',
|
const calibration_due_date = ref( "")
|
||||||
data() {
|
const calibration_date = ref( "")
|
||||||
return {
|
const flow = ref( ['year', 'month', 'calendar'])
|
||||||
calibration_model: "",
|
|
||||||
calibration_serial: "",
|
|
||||||
calibration_cert_id: "",
|
|
||||||
calibration_due_date: "",
|
|
||||||
calibration_date: "",
|
|
||||||
flow: ['year', 'month', 'calendar']
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
@ -33,17 +33,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
export default {
|
import { ref, defineProps } from 'vue'
|
||||||
name: 'CustomerForm',
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
customer_name: "",
|
|
||||||
onsite_cal: false,
|
|
||||||
control_doc: "",
|
|
||||||
technician: "",
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
const customer_name = ref("")
|
||||||
}
|
const onsite_cal = ref(false)
|
||||||
|
const control_doc = ref("")
|
||||||
|
const technician = ref("")
|
||||||
</script>
|
</script>
|
@ -34,16 +34,11 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script setup>
|
||||||
export default {
|
import { ref, defineProps } from 'vue'
|
||||||
name: 'EnvironmentForm',
|
|
||||||
data() {
|
const accuracy = ref(0.05)
|
||||||
return {
|
const barometric_pressure = ref(1013.25)
|
||||||
accuracy: 0.05,
|
const temperature = ref(50.0)
|
||||||
barometric_pressure: 1013.25,
|
const humidity = ref(50.0)
|
||||||
temperature: 50.0,
|
|
||||||
humidity: 50.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
@ -50,24 +50,18 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script setup>
|
||||||
|
import { ref, defineProps } from 'vue'
|
||||||
|
|
||||||
import VueDatePicker from '@vuepic/vue-datepicker';
|
import VueDatePicker from '@vuepic/vue-datepicker';
|
||||||
import '@vuepic/vue-datepicker/dist/main.css';
|
import '@vuepic/vue-datepicker/dist/main.css';
|
||||||
|
|
||||||
export default {
|
const channel = ref("")
|
||||||
components: {VueDatePicker},
|
const serial_number = ref("")
|
||||||
name: 'NewInstrumentForm',
|
const instrument_model = ref("")
|
||||||
data() {
|
const transducer_model = ref("")
|
||||||
return {
|
const transducer_span = ref("")
|
||||||
channel: "",
|
const instrument_calibration_due_date = ref("")
|
||||||
serial_number: "",
|
const instrument_calibration_date = ref("")
|
||||||
instrument_model: "",
|
const flow = ['year', 'month', 'calendar']
|
||||||
transducer_model: "",
|
|
||||||
transducer_span: "",
|
|
||||||
instrument_calibration_due_date: "",
|
|
||||||
instrument_calibration_date: "",
|
|
||||||
flow: ['year', 'month', 'calendar']
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
@ -65,30 +65,17 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
|
||||||
import {ref} from 'vue'
|
|
||||||
import VueUploadComponent from 'vue-upload-component'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'UploadForm',
|
<script setup>
|
||||||
data: function () {
|
import { ref, defineProps } from 'vue'
|
||||||
return {
|
import {VueUploadComponent as FileUpload} from 'vue-upload-component'
|
||||||
report_type: "",
|
|
||||||
files: [],
|
const report_type = ref('')
|
||||||
upload: ref(null),
|
const files = ref([])
|
||||||
}
|
const upload = ref(null)
|
||||||
},
|
|
||||||
components: {
|
const inputFile = (newFile, oldFile) => {
|
||||||
FileUpload: VueUploadComponent
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
/**
|
|
||||||
* Has changed
|
|
||||||
* @param Object|undefined newFile Read only
|
|
||||||
* @param Object|undefined oldFile Read only
|
|
||||||
* @return undefined
|
|
||||||
*/
|
|
||||||
inputFile(newFile, oldFile) {
|
|
||||||
if (newFile && oldFile && !newFile.active && oldFile.active) {
|
if (newFile && oldFile && !newFile.active && oldFile.active) {
|
||||||
// Get response data
|
// Get response data
|
||||||
console.log('response', newFile.response)
|
console.log('response', newFile.response)
|
||||||
@ -97,15 +84,9 @@ export default {
|
|||||||
console.log('status', newFile.xhr.status)
|
console.log('status', newFile.xhr.status)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
/**
|
|
||||||
* Pretreatment
|
const inputFilter = (newFile, oldFile, prevent) => {
|
||||||
* @param Object|undefined newFile Read and write
|
|
||||||
* @param Object|undefined oldFile Read only
|
|
||||||
* @param Function prevent Prevent changing
|
|
||||||
* @return undefined
|
|
||||||
*/
|
|
||||||
inputFilter(newFile, oldFile, prevent) {
|
|
||||||
if (newFile && !oldFile) {
|
if (newFile && !oldFile) {
|
||||||
// Filter non-image file
|
// Filter non-image file
|
||||||
if (!/\.(txt)$/i.test(newFile.name)) {
|
if (!/\.(txt)$/i.test(newFile.name)) {
|
||||||
@ -115,17 +96,16 @@ export default {
|
|||||||
|
|
||||||
// Create a blob field
|
// Create a blob field
|
||||||
newFile.blob = ''
|
newFile.blob = ''
|
||||||
let URL = window.URL || window.webkitURL
|
const URL = window.URL || window.webkitURL
|
||||||
if (URL && URL.createObjectURL) {
|
if (URL && URL.createObjectURL) {
|
||||||
newFile.blob = URL.createObjectURL(newFile.file)
|
newFile.blob = URL.createObjectURL(newFile.file)
|
||||||
}
|
}
|
||||||
console.log(URL)
|
console.log(URL)
|
||||||
},
|
}
|
||||||
kindChange(opt, file) {
|
|
||||||
|
const kindChange = (opt, file) => {
|
||||||
// Change the file kind metadata, (both, as found, as left) for the uploaded file
|
// Change the file kind metadata, (both, as found, as left) for the uploaded file
|
||||||
file.kind = opt
|
file.kind = opt
|
||||||
console.log(file)
|
console.log(file)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
5
benchtop-fe/volar.config.js
Normal file
5
benchtop-fe/volar.config.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module.exports = {
|
||||||
|
services: [
|
||||||
|
require('volar-service-vetur').create(),
|
||||||
|
],
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user