| | |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <div v-if="configForm.fileType == '.mdb'" class="search_thing" style="margin-bottom: 14px;"> |
| | | <div class="search_label">委托字段:</div> |
| | | <el-input size="small" placeholder="请输入" clearable |
| | | v-model="configForm.mdbEntrustCode"></el-input> |
| | | </div> |
| | | <div v-if="configForm.fileType == '.mdb'" class="search_thing" style="margin-bottom: 14px;"> |
| | | <div class="search_label">样品字段:</div> |
| | | <el-input size="small" placeholder="请输入" clearable |
| | | v-model="configForm.mdbSampleCode"></el-input> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row> |
| | | <el-button @click="dialogVisible4=false">取 消</el-button> |
| | |
| | | this.tableList = res.data |
| | | this.tableList.forEach(i => { |
| | | i.sample = i.sample.replaceAll('"', '').replaceAll("],", ';').replaceAll("[", '').replaceAll('"', '').replaceAll(']', '') |
| | | console.log(`output->i.sample`,i.sample) |
| | | }) |
| | | if(this.tableList[0]) { |
| | | this.$set(this.configForm, 'fileType', this.tableList[0].fileType) |
| | |
| | | this.$axios.post(this.$api.deviceScope.saveDataAcquisitionConfiguration + "?deviceId=" + this.deviceId, obj, {headers: { |
| | | 'Content-Type': 'application/json' |
| | | }}).then(res => { |
| | | this.tableList = res.data |
| | | this.dialogVisible4 = false |
| | | this.upLoad4 = false |
| | | this.init() |
| | | this.$message.success('操作成功') |
| | | if(res.code == 200) { |
| | | this.tableList = res.data |
| | | this.dialogVisible4 = false |
| | | this.init() |
| | | this.$message.success('操作成功') |
| | | } |
| | | this.upLoad4 = false |
| | | }).catch(err => { |
| | | this.upLoad4 = false |
| | | }) |