| | |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border |
| | | tooltip-effect="dark" height="100%"> |
| | | <el-table-column type="index" label="序号" align="center" width="65"></el-table-column> |
| | | <el-table-column prop="deviceName" align="center" min-width="100" label="设备名称"></el-table-column> |
| | | <el-table-column prop="deviceName" align="center" min-width="100" label="设备名称" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="sample" align="center" label="检验对象" show-overflow-tooltip |
| | | min-width="150"></el-table-column> |
| | | <el-table-column prop="inspectionItemClass" align="center" label="检验项分类" min-width="120"></el-table-column> |
| | | <el-table-column prop="inspectionItem" align="center" label="检验项" min-width="100"></el-table-column> |
| | | <el-table-column prop="inspectionItemSubclass" align="center" label="检验子项" min-width="100"></el-table-column> |
| | | <el-table-column prop="referx" align="center" label="参照X" min-width="100"></el-table-column> |
| | | <el-table-column prop="x" align="center" label="X"></el-table-column> |
| | | <el-table-column prop="refery" align="center" label="参照Y" min-width="100"></el-table-column> |
| | | <el-table-column prop="y" align="center" label="Y"></el-table-column> |
| | | <el-table-column prop="anotherName" align="center" label="别名" min-width="100"></el-table-column> |
| | | <el-table-column prop="matchingName" align="center" label="匹配名称" min-width="100"></el-table-column> |
| | | <el-table-column prop="formula" align="center" label="公式"></el-table-column> |
| | | <el-table-column prop="inspectionItemClass" align="center" label="检验项分类" min-width="120" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="inspectionItem" align="center" label="检验项" min-width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="inspectionItemSubclass" align="center" label="检验子项" min-width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="referx" align="center" label="参照X" min-width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="x" align="center" label="X" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="refery" align="center" label="参照Y" min-width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="y" align="center" label="Y" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="anotherName" align="center" label="别名" min-width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="matchingName" align="center" label="匹配名称" min-width="100" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="formula" align="center" label="公式" show-overflow-tooltip></el-table-column> |
| | | <el-table-column fixed="right" label="操作" width="120" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" @click="dataConfig(scope.row)">数采配置</el-button> |
| | |
| | | :content="formula.content" :key="key" placement="top"> |
| | | <label>{{ formula.label }}()</label> |
| | | </el-tooltip> |
| | | <el-input type="textarea" autosi:autosize="{ minRows: 2, maxRows: 4}" ze placeholder="请输入内容" |
| | | <el-input type="textarea" autosize:autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入内容" |
| | | v-model="configForm.formula" @change="evalResult"> |
| | | </el-input> |
| | | </template> |
| | |
| | | <div class="search_thing" style="margin-bottom: 14px;"> |
| | | <div class="search_label">数据库密码:</div> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="configForm.dbPassword"></el-input> |
| | | </div> |
| | | <div v-if="configForm.fileType === '.mysql'" class="search_thing" style="margin-bottom: 14px;"> |
| | | <div class="search_label"><span style="color:red;margin-right: 4px;">*</span>数据库表:</div> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="configForm.dbTable"></el-input> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row> |
| | |
| | | dbFileName: "", |
| | | fiberOpticRibbon: "", |
| | | dbUserName: "", |
| | | dbPassword: "" |
| | | dbPassword: "", |
| | | dbTable: "" |
| | | }, |
| | | domains: [ |
| | | { |
| | |
| | | { label: "db", value: ".db" }, |
| | | { label: "mdb", value: ".mdb" }, |
| | | { label: "word", value: ".docx" }, |
| | | { label: "excel", value: ".xlsx" }, |
| | | { label: "excel", value: ".xls" }, |
| | | { label: "excelxlsx", value: ".xlsx" }, |
| | | { label: "excelxls", value: ".xls" }, |
| | | { label: "txt", value: ".txt" }, |
| | | { label: "mysql", value: ".mysql" }, |
| | | { label: "mqtt", value: ".mqtt" }, |
| | | { label: "png", value: ".png" } |
| | | ], |
| | | spanList: [], |
| | |
| | | this.$set(this.configForm, "dbFileName", res.data.dbFileName); |
| | | this.$set(this.configForm, "fiberOpticRibbon", res.data.fiberOpticRibbon); |
| | | this.$set(this.configForm, "dbUserName", res.data.dbUserName); |
| | | this.$set(this.configForm, "dbPassword", res.data.dbPassword) |
| | | this.$set(this.configForm, "dbPassword", res.data.dbPassword); |
| | | this.$set(this.configForm, "dbTable", res.data.dbTable); |
| | | }) |
| | | }, |
| | | // 提交文件配置 |
| | |
| | | dbFileName: this.configForm.dbFileName, |
| | | fiberOpticRibbon: this.configForm.fiberOpticRibbon, |
| | | dbUserName: this.configForm.dbUserName, |
| | | dbPassword: this.configForm.dbPassword |
| | | dbPassword: this.configForm.dbPassword, |
| | | dbTable: this.configForm.dbTable |
| | | }); |
| | | this.upLoad4 = true; |
| | | saveDeviceFileConfiguration({ deviceId: this.deviceId, ...obj }).then(res => { |
| | |
| | | structureItemParameterId: row.structureItemParameterId |
| | | }).then(res => { |
| | | const data = res.data; |
| | | console.log("数采配置--",data) |
| | | if (data[0]) { |
| | | this.domains.splice(0, 1); |
| | | let formula = data[0].formula |
| | |
| | | } |
| | | } |
| | | } |
| | | if (isIncludes === false && this.configForm.formula !== "" && this.configForm.formula !== undefined) { |
| | | if (isIncludes === false && this.configForm.formula !== "" && this.configForm.formula !== null && this.configForm.formula !== undefined) { |
| | | i.formula = "(" + this.configForm.formula + ")"; |
| | | } else { |
| | | i.formula = this.configForm.formula; |