lohir
2024-10-23 d95b36a88357d018f76d926e9074c521eb8335a7
src/views/system/data-manage/data-detail/index.vue
@@ -79,6 +79,11 @@
        <el-form-item label="关键词" prop="bayonetNumber">
          <el-input v-model="queryParams.keyword" placeholder="关键词搜索" clearable @input="handleQuery"/>
        </el-form-item>
        <el-form-item :label="this.optionsName" prop="option">
          <el-select  v-model="queryParams.option" size="small" clearable>
            <el-option v-for="option in options" :key="option.value" :label="option.label" :value="option.value"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="时间" prop="date">
            <el-date-picker
              v-model="queryParams.date"
@@ -197,6 +202,7 @@
        url: process.env.VUE_APP_BASE_API + "/platform/resourceSecurity/importData"
      },
      imageResourceSecurity: [],
      options: [],
      resourceForm: {},
      resourceOpen: false,
      totalKiosks: 1157,
@@ -229,6 +235,7 @@
        keyword: '',
        date: '',
        dataType: 0,
        option: null,
      },
      // 表单参数
      form: {},
@@ -258,7 +265,11 @@
      index: null
    };
  },
  mounted() {
    //修改页签名
    const obj = Object.assign({},this.$route,{title: this.$route.query.ruleName})
    this.$tab.updatePage(obj);
    // 获取当前日期
    const today = new Date();
@@ -269,31 +280,39 @@
    // 拼接成 yyyy-MM-dd 格式
    this.queryParams.date = `${year}-${month}-${day}`;
    if (this.$route.query.type === '1') {
      let data = videoData.table.filter(item => item.index === this.$route.query.index)[0]
      this.tableHead = data.columns;
      this.cardList = data.card;
      this.showList = data.showList;
      this.options = data.options;
      this.optionsName = data.optionsName;
    }
    if (this.$route.query.type === '2') {
      let data = carData.table.filter(item => item.index === this.$route.query.index)[0]
      this.tableHead = data.columns;
      this.cardList = data.card;
      this.showList = data.showList;
      this.options = data.options;
      this.optionsName = data.optionsName;
    }
    if (this.$route.query.type === '3') {
      let data = faceData.table.filter(item => item.index === this.$route.query.index)[0]
      this.tableHead = data.columns;
      this.cardList = data.card;
      this.showList = data.showList;
      this.options = data.options;
      this.optionsName = data.optionsName;
    }
    if (this.$route.query.type === '4') {
      let data = equipment.table.filter(item => item.index === this.$route.query.index)[0]
      this.tableHead = data.columns;
      this.cardList = data.card;
      this.showList = data.showList;
      this.options = data.options;
      this.optionsName = data.optionsName;
    }
    this.getDicts(this.$route.query.dict)
    this.getList();
  },
  methods: {