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,67 +65,47 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
|
||||||
import {ref} from 'vue'
|
|
||||||
import VueUploadComponent from 'vue-upload-component'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'UploadForm',
|
|
||||||
data: function () {
|
|
||||||
return {
|
|
||||||
report_type: "",
|
|
||||||
files: [],
|
|
||||||
upload: ref(null),
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
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) {
|
|
||||||
// Get response data
|
|
||||||
console.log('response', newFile.response)
|
|
||||||
if (newFile.xhr) {
|
|
||||||
// Get the response status code
|
|
||||||
console.log('status', newFile.xhr.status)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Pretreatment
|
|
||||||
* @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) {
|
|
||||||
// Filter non-image file
|
|
||||||
if (!/\.(txt)$/i.test(newFile.name)) {
|
|
||||||
return prevent()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create a blob field
|
<script setup>
|
||||||
newFile.blob = ''
|
import { ref, defineProps } from 'vue'
|
||||||
let URL = window.URL || window.webkitURL
|
import {VueUploadComponent as FileUpload} from 'vue-upload-component'
|
||||||
if (URL && URL.createObjectURL) {
|
|
||||||
newFile.blob = URL.createObjectURL(newFile.file)
|
const report_type = ref('')
|
||||||
}
|
const files = ref([])
|
||||||
console.log(URL)
|
const upload = ref(null)
|
||||||
},
|
|
||||||
kindChange(opt, file) {
|
const inputFile = (newFile, oldFile) => {
|
||||||
// Change the file kind metadata, (both, as found, as left) for the uploaded file
|
if (newFile && oldFile && !newFile.active && oldFile.active) {
|
||||||
file.kind = opt
|
// Get response data
|
||||||
console.log(file)
|
console.log('response', newFile.response)
|
||||||
|
if (newFile.xhr) {
|
||||||
|
// Get the response status code
|
||||||
|
console.log('status', newFile.xhr.status)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const inputFilter = (newFile, oldFile, prevent) => {
|
||||||
|
if (newFile && !oldFile) {
|
||||||
|
// Filter non-image file
|
||||||
|
if (!/\.(txt)$/i.test(newFile.name)) {
|
||||||
|
return prevent()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create a blob field
|
||||||
|
newFile.blob = ''
|
||||||
|
const URL = window.URL || window.webkitURL
|
||||||
|
if (URL && URL.createObjectURL) {
|
||||||
|
newFile.blob = URL.createObjectURL(newFile.file)
|
||||||
|
}
|
||||||
|
console.log(URL)
|
||||||
|
}
|
||||||
|
|
||||||
|
const kindChange = (opt, file) => {
|
||||||
|
// Change the file kind metadata, (both, as found, as left) for the uploaded file
|
||||||
|
file.kind = opt
|
||||||
|
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