whychw
2021-02-27 92fd667ebe59d3e32d74b41483c8f631c9841dc3
U 4WM 组合界面设定电压电流多传一个参数
2个文件已修改
11 ■■■■■ 已修改文件
src/api/services/electric/index.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/rectifier/group.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/services/electric/index.js
@@ -245,9 +245,10 @@
    },
    /**
     * 设定电压和电流
     * 参数:id, num, val
     * 参数:id, num, val, input
     * input 为输入框输入值
     */
    giveVal(id, dev_name, num, val) {
    giveVal(id, dev_name, num, val, input) {
        let data = {
            electric_id: id,
            dev_name: dev_name,
@@ -258,10 +259,12 @@
            case 13:
                // 设定电压确认
                data.givevol = val;
                data.groupgivevol = input;
            break;
            case 14:
                // 设定电流确认
                data.givecurr = val;
                data.groupgivecurr = input;
            break;
        }
        return axios({
src/views/rectifier/group.vue
@@ -847,7 +847,7 @@
          this.giveVal.vol = form.dcvol;
          // 设置给定的电压值
          this.giveVal.volset = this.getVal(form.dcvol, 'vol');
          this.$api.electric.giveVal(this.item1.data.electric_id, this.itemName, 13, this.giveVal.volset).then((res) => {
          this.$api.electric.giveVal(this.item1.data.electric_id, this.itemName, 13, this.giveVal.volset, this.giveVal.vol).then((res) => {
            res = JSON.parse(res.data.result);
            if (res.code) {
              this.$message({
@@ -889,7 +889,7 @@
          // 设置给定电流的值
          this.giveVal.currset = this.getVal(form.dccurr, 'curr');
          this.$api.electric.giveVal(this.item1.data.electric_id, this.itemName, 14, this.giveVal.currset).then((res) => {
          this.$api.electric.giveVal(this.item1.data.electric_id, this.itemName, 14, this.giveVal.currset, this.giveVal.curr).then((res) => {
            res = JSON.parse(res.data.result);
            if (res.code) {
              this.$message({