月球大数据地理空间分析展示平台-【中台】
Surpriseplus
2023-09-08 78345e3940e5252c63e2e52b57a1fd18af982a2b
src/views/resourceQuery/resourceQuery.vue
@@ -179,7 +179,7 @@
            </div>
            <div class="attribute">
              <span class="attribute_title">存储位置:</span>
              <span class="attribute_content">{{ e.path }}</span>
              <span class="attribute_content">{{ e.dirName }}</span>
            </div>
            <div class="attribute">
              <span class="attribute_title">生产时间:</span>
@@ -376,6 +376,31 @@
      if (data.code != 200) return
      var std = [];
      var result = data.result;
      e.createUser = e.createName;
      e.depcode = e.depName
      e.dircode = e.dirName;
      e.updateUser = e.updateName;
      e.verid = e.verName;
      if (e.sensortype > 0) {
        for (var i in this.sensorOption) {
          if (this.sensorOption[i].value == e.sensortype) {
            e.sensortype = this.sensorOption[i].name
          }
        }
      } else {
        e.sensortype = null
      }
      if (e.mataType > 0) {
        for (var i in this.metaOption) {
          if (this.metaOption[i].value == e.mataType) {
            e.mataType = this.metaOption[i].name
          }
        }
      } else {
        e.mataType = null
      }
      for (var i in result) {
        for (var key in e) {
          if (result[i].field == key) {
@@ -400,23 +425,29 @@
      Viewer.entities.removeAll()
    },
    async setQueryRetrieval() {
      var obj = JSON.parse(JSON.stringify(this.form))
      if (this.geoWkt) {
        this.form.wkt = encr(this.geoWkt)
        obj.wkt = encr(this.geoWkt)
      } else {
        this.form.wkt = null;
        obj.wkt = null;
      }
      if (this.acqTime) {
        this.form.endDate = this.setFromDate(this.acqTime[0])
        this.form.startDate = this.setFromDate(this.acqTime[1])
        obj.endDate = this.setFromDate(this.acqTime[0])
        obj.startDate = this.setFromDate(this.acqTime[1])
      } else {
        this.form.endDate = null
        this.form.startDate = null
        obj.endDate = null
        obj.startDate = null
      }
      const data = await select_meta_ByPageAndCount(this.form);
      if (obj.sensorType == 0) {
        obj.sensorType = ''
      }
      if (obj.mataType == 0) {
        obj.mataType = ''
      }
      const data = await select_meta_ByPageAndCount(obj);
      if (data.code != 200) return
      this.form.count = data.count;
      var result = data.result;
      for (var i in result) {
        if (result[i].createTime) {
          result[i].createTime = this.setFromDate(result[i].createTime)