| | |
| | | import getLodop from "@/utils/lodop"; |
| | | import { bigEval } from "@/utils/bigEval"; |
| | | import { getDicts } from "@/api/system/dict/data"; |
| | | import Big from "big.js"; |
| | | export default { |
| | | components: { |
| | | fiberOpticConfig, |
| | |
| | | let arr1 = []; |
| | | arr0.forEach((m) => { |
| | | let index = code.findIndex((b) => m.includes(b)); |
| | | // console.log("index--》", index); |
| | | if (index > -1) { |
| | | let arr = m.split(code[index]).filter((b) => !!b); |
| | | let calcNum = this.$Big( |
| | | let calcNum = new Big( |
| | | bigEval(this.replaceAll(arr[0], symbolItem, value)) |
| | | ); |
| | | let num = calcNum.toFixed( |
| | |
| | | if (index > -1) { |
| | | let arr = ask.split(code[index]).filter((b) => !!b); |
| | | console.log("特殊值替换--》", arr); |
| | | let calcNum = this.$Big( |
| | | let calcNum = new Big( |
| | | bigEval(this.replaceAll(arr[0], symbolItem, value)) |
| | | ); |
| | | let num = calcNum.toFixed( |