gjj
2025-03-18 850fbeddcd514476756acde45c3136eabe087240
标段筛选去重
4 files modified
47 ■■■■■ changed files
src/assets/css/element-ui-override.scss 19 ●●●●● patch | view | raw | blame | history
src/views/Home.vue 4 ●●●● patch | view | raw | blame | history
src/views/ProjectView.vue 10 ●●●●● patch | view | raw | blame | history
vite.config.js 14 ●●●●● patch | view | raw | blame | history
src/assets/css/element-ui-override.scss
@@ -34,26 +34,20 @@
.el-table {
  background-color: #000a1f;
  &::before {
    background-color: unset;
  }
  .el-table__header {
    thead {
      color: #fff;
      tr {
        border-bottom: unset;
        th.el-table__cell.is-leaf {
          border-bottom: unset;
        }
        th {
          font-weight: 600;
        }
        .el-table__cell {
          padding: 6px 0;
          background-color: #5e616e;
@@ -61,7 +55,6 @@
      }
    }
  }
  .el-table__body {
    tbody {
      tr.el-table__row {
@@ -80,7 +73,6 @@
      }
    }
  }
  // &--striped {
  //   .el-table__body {
  //     tr.el-table__row--striped {
@@ -101,7 +93,6 @@
        background-color: #3661eb;
      }
    }
    .btn-prev {
      background-color: #3661eb;
      color: #fff;
@@ -110,7 +101,6 @@
        color: rgba(246, 247, 250, 0.5);
      }
    }
    .btn-next {
      background-color: #3661eb;
      color: #f6f7fa;
@@ -121,6 +111,7 @@
    }
  }
}
.el-select,
.el-input__inner{
  height: 32px;
@@ -129,12 +120,4 @@
  color: #fff;
  border: none;
  outline: none;
}
 //未选中框时右侧文字
  .el-checkbox__label{
    color: #fff;
 }
 //选中框时右侧文字
  .el-checkbox__input.is-checked+.el-checkbox__label{
   color: #fff;
 }
src/views/Home.vue
@@ -193,9 +193,9 @@
   if (this.isFullScreen) {
      const clientX = document.documentElement.clientWidth || document.body.clientWidth
      const clientY = document.documentElement.clientHeight || document.body.clientHeight
      this.fullScreenPanoStyle = `width: 100%; height: 100%; z-index: 100; `
      if (this.currentView === '720') {
        this.fullScreenStyle = `width: ${clientX - 40}px; height: ${clientY - 120}px; margin:20px; position: fixed; top: 80px; left: 0;z-index: 100;background-color: #fff;overflow: hidden;`
      if (this.currentView === '720') {
        this.fullScreenPanoStyle = `width: 100%; height: 100%; z-index: 100; `
      } else if(this.currentView === 'model'){
        this.fullScreenModelStyle = `width: ${clientX - 40}px; height: ${clientY - 120}px; margin:20px; position: fixed; top: 80px; left: 0;z-index: 100;background-color: #fff;overflow: hidden;`
      }
src/views/ProjectView.vue
@@ -269,7 +269,9 @@
                newArray.push({ text: item.Bind, value: item.Bind })
              }
            })
            this.bindFilters = newArray
            this.bindFilters = this.arrayFilter(newArray, 'value')
            console.log(newArray, this.bindFilters);
          } else {
            this.tableData = []
          }
@@ -277,6 +279,12 @@
        }
      });
    },
    // 数组去重
    arrayFilter (arr, key) {
      const res = new Map()
      return arr.filter(arr => !res.has(arr[key]) && res.set(arr[key], 1))
    },
    getParticipatingNumber() {
      const data = {
        "organizeId": this.projectId
vite.config.js
@@ -2,7 +2,7 @@
 * @Author: gjj Ganjj@probim.com.cn
 * @Date: 2025-02-14 14:32:19
 * @LastEditors: gjj Ganjj@probim.com.cn
 * @LastEditTime: 2025-03-17 11:38:32
 * @LastEditTime: 2025-03-17 14:42:01
 * @FilePath: \北京交通大学\vite.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
@@ -42,6 +42,11 @@
                    additionalData: "@import '@css/sass.scss';",
                },
            },
            loaderOptions: {
                postcss: {
                    plugins: [postcss]
                }
            }
        },
        server: {
            proxy: {
@@ -65,13 +70,6 @@
            config.module.rule("css").test(/\.css$/).oneOf("vue").use("px2rem-loader").loader("px2rem-loader").options({
                remUnit: 192,
            }).end();
        },
        css: {
            loaderOptions: {
                postcss: {
                    plugins: [postcss]
                }
            }
        },
        build: {
            minify: "esbuild",