智慧园区前端大屏
linwe
2024-11-13 1b29075752cff967d98eb8dd4263a6c11d60c43b
src/views/rt/components/box/dataContent.vue
@@ -21,8 +21,8 @@
let currentIndex = ref(0)
// 园区 企业
const tilteList = ref([
  { label: "吉水化工园区", value: "0", id: "1" },
  { label: "吉水化工园区企业", value: "0", id: "2" }
  { label: "园区救援队伍", value: "0", id: "1" },
  { label: "企业救援队伍", value: "0", id: "2" }
]);
const pages = {
@@ -33,24 +33,8 @@
onMounted(() => {
  getLists(formInline);
  // getCompanyPages();
});
// function getCompanyPages(param = {}) {
//   param.current = pages.page;
//   param.size = pages.pageSize;
//   getPage(param).then(res => {
//     let companyList = res.data.data.records
//     companyList.forEach(item => {
//       tilteList.value.push({
//         label: item.name,
//         value: item.id,
//         id: item.id
//       })
//     })
//   }).catch(err => {
//   })
// }
function handleClick(item, index) {
  currentIndex.value = index
@@ -118,16 +102,7 @@
  getList(param)
    .then((res) => {
      const data = res.data.data;
      // data.records.forEach((element) => {
      //   if (element.type == 1) {
      //     element.ownership = "园区";
      //   } else {
      //     element.ownership = "企业";
      //   }
      // });
      tableData.value = data.records;
      // pages.total = data.total;
      // loading.value = false;
    })
    .catch((err) => {
      loading.value = false;
@@ -140,21 +115,6 @@
  <public-content>
    <template #content>
      <div class="content_box">
        <!-- <el-form :inline="true" :model="formInline" class="demo-form-inline">
          <el-form-item label="姓名">
            <el-input v-model="formInline.perInCha" placeholder="请输入姓名" clearable style="width: 120px" />
          </el-form-item>
          <el-form-item label="归属">
            <el-select v-model="formInline.type" placeholder="请选择" clearable style="width: 120px">
              <el-option label="园区" value="1" />
              <el-option label="企业" value="2" />
            </el-select>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="onSubmit">查询</el-button>
            <el-button type="" @click="clearBtn">重置</el-button>
          </el-form-item>
        </el-form> -->
        <div class="list_box">
          <ul>