管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-21 c2a697c7399dcfb3ebae5333f05f91f488d2cb41
src/components/mapsdk.vue
@@ -360,7 +360,7 @@
            <span>属性信息</span>
            <div style="float: right; cursor: pointer">
              <el-link
                v-if="$store.state.propertiesName.tabDesc == '勘察工点'"
                v-if="$store.state.propertiesName.enName == 's_surveyworksite'"
                type="primary"
                :underline="false"
                @click="getPointInfo"
@@ -398,6 +398,7 @@
      </div>
      <!--勘察信息弹窗-->
      <div
        v-drag
        class="attributionPop"
        v-if="showAttribute"
      >
@@ -1340,6 +1341,7 @@
        tabName: tabName,
      };
      const res = await dataLib_selectFiles(obj);
      if (res.code != 200) {
        this.$message.error('附件查询失败');
        return
@@ -1414,12 +1416,13 @@
    },
    //勘察信息表
    getPointInfo() {
      this.showAttribute = !this.showAttribute;
      if (this.showAttribute) {
        let attrbuteOption = workSite;
        var name = attrbuteOption[0].table.replaceAll("_", "");
        this.getAttributeDomFiled(name);
      }
      let attrbuteOption = workSite;
      var name = attrbuteOption[0].table.replaceAll("_", "");
      this.getAttributeDomFiled(name);
    },
    //获取每个表字段名称及阈值
    async getAttributeDomFiled(res) {
@@ -1467,11 +1470,18 @@
        title: title,
        filter: "workname = " + "'" + title + "'",
      }
      const data = await dataQuery_selectByPage(parmams);
      if (data.code != 200) {
        this.$message.error("调用列表失败,请联系工作人员!");
        return;
      }
      if (!data.result.length) {
        this.$message.error("未查询到勘探信息数据");
        return
      }
      this.showAttribute = !this.showAttribute;
      var res_val = attributeFild;
      for (var i in data.result) {
        let val_Data = data.result[i];