| | |
| | | <el-table-column prop="storageUrl" align="center" min-width="100" show-overflow-tooltip label="存储地址"></el-table-column> |
| | | <el-table-column prop="ip" align="center" label="IP地址"></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="inspectionItemSubclass" align="center" label="检验项子项" min-width="100"></el-table-column> |
| | | <el-table-column prop="referx" align="center" label="参照X"></el-table-column> |
| | | <el-table-column prop="x" align="center" label="X"></el-table-column> |
| | | <el-table-column prop="refery" align="center" label="参照Y"></el-table-column> |
| | |
| | | </div> |
| | | <div class="fomItem2"> |
| | | <el-form-item class="fomItemInput1" label="公式:"> |
| | | <!-- <formula :returnFormula="evalResult"/> --> |
| | | <el-input type="textarea" autosi:autosize="{ minRows: 2, maxRows: 4}"ze placeholder="请输入内容" v-model="configForm.formula" @change="evalResult"> </el-input> |
| | | </el-form-item> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import formula from '../../tool/formula.vue' |
| | | export default { |
| | | name: "dataAcquisitionConfig", |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | | components: { |
| | | formula |
| | | }, |
| | | props: { |
| | | deviceId: { |
| | | type: Number, |
| | |
| | | specialSpanList: [], |
| | | spanConfig: { |
| | | special: { |
| | | main: "inspectionItemSubClass", |
| | | main: "inspectionItemSubclass", |
| | | rows:[ |
| | | { |
| | | name:'deviceName', |
| | |
| | | index:6 |
| | | }, |
| | | { |
| | | name:'inspectionItemSubClass', |
| | | name:'inspectionItemSubclass', |
| | | index:7 |
| | | }, |
| | | { |
| | | name:'inspectionItemSubClass', |
| | | name:'inspectionItemSubclass', |
| | | index:12 |
| | | }, |
| | | { |
| | | name:'inspectionItemSubClass', |
| | | name:'inspectionItemSubclass', |
| | | index:13 |
| | | } |
| | | ] |
| | |
| | | dataConfig (row) { |
| | | this.configForm = { |
| | | deviceId: row.deviceId, |
| | | insProductItem: row.inspectionItemSubClass.trim() |
| | | inspectionItem: row.inspectionItem.trim(), |
| | | inspectionItemSubclass: row.inspectionItemSubclass |
| | | } |
| | | this.dialogVisible3 = true |
| | | this.$axios.get(this.$api.deviceScope.queryDataAcquisitionConfiguration + "?deviceId=" + this.deviceId + "&insProductItem=" + row.inspectionItemSubClass.trim() + "&isDevice=" + true).then(res => { |
| | | this.$axios.get(this.$api.deviceScope.queryDataAcquisitionConfiguration + "?deviceId=" + this.deviceId + |
| | | "&inspectionItem=" + row.inspectionItem.trim() + |
| | | "&isDevice=" + true + |
| | | "&inspectionItemSubclass=" + row.inspectionItemSubclass.trim()).then(res => { |
| | | const data = res.data |
| | | if(data[0]) { |
| | | this.domains.splice(0, 1) |
| | |
| | | } |
| | | i.formula = this.configForm.formula |
| | | i.deviceId = this.deviceId |
| | | i.insProductItem = this.configForm.insProductItem |
| | | i.inspectionItem = this.configForm.inspectionItem |
| | | i.inspectionItemSubclass = this.configForm.inspectionItemSubclass |
| | | }) |
| | | this.$axios.post(this.$api.deviceScope.saveDataAcquisitionConfiguration + "?deviceId=" + this.deviceId, {dataConfigList: this.domains, isDevice: false},{headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | id: '' |
| | | }); |
| | | }, |
| | | evalResult () { |
| | | evalResult (val) { |
| | | this.configForm.formula = val |
| | | // 根据公式计算出结果 |
| | | }, |
| | | sizeChange(val) { |