| | |
| | | <div class="form-section-title">基本信息</div> |
| | | <el-row :gutter="12"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="仪器名称:" prop="deviceName"> |
| | | <el-form-item label="设备名称:" prop="deviceName"> |
| | | <el-select v-if="currentStep === 0" v-model="selectedDeviceId" clearable filterable |
| | | placeholder="请选择设备" size="small" style="width: 100%" @change="changeMachineName"> |
| | | <el-option v-for="item in equipOptions" :key="item.id" :label="item.label + '-' + item.value" |
| | |
| | | if (!this.form.fileUrl) { |
| | | return |
| | | } |
| | | const isImage = /\.(jpg|jpeg|png|gif)$/i.test(this.form.fileUrl) |
| | | window.open(this.javaApi + (isImage ? '/img/' : '/word/') + this.form.fileUrl, '_blank') |
| | | return this.$download.saveAs(this.form.fileUrl, this.form.fileName) |
| | | }, |
| | | }, |
| | | computed: { |