zxl
2025-03-20 ac1f8e130c8753d0a69f1e83d698c46d13c63044
src/views/codingRuler/index.vue
@@ -1,5 +1,6 @@
<template>
  <div class="app-container">
    <div v-loading="loading">
    <div class="slot">
      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="75px">
        <el-form-item label="项目码类型" prop="projectCodeType">
@@ -38,8 +39,6 @@
        </div>
      </div>
    </div>
    <el-table
      :data="tableData"
      row-key="id"
@@ -123,7 +122,6 @@
        </template>
      </el-table-column>
    </el-table>
    <pagination
      v-show="total>0"
      :total="total"
@@ -131,7 +129,6 @@
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
        <el-dialog width="45%" :title="dialogTitle" @close="closeDialog" :visible.sync="open" :show-close="true"  :close-on-click-modal="true"  :destroy-on-close="true">
          <el-form :model="codingRulerForm" :rules="rules" ref="codingRulerForm">
            <el-form-item label="项目码类型" :label-width="formLabelWidth" prop="projectCodeType">
@@ -216,6 +213,7 @@
          </div>
        </el-dialog>
  </div>
  </div>
</template>
<script>
@@ -281,10 +279,7 @@
      open: false,
      // 选中数组
      ids: [],
      // //左符号
      // leftOption:[],
      // //右符号
      // rightOption:[],
      loading:false,
    }
  },
  computed:{
@@ -332,9 +327,11 @@
    },
    // 获取表格数据
    getList(){
      this.loading = true;
      getCodingRulers(this.queryParams).then(res =>{
        this.tableData = res.data;
        this.total = res.total;
        this.loading = false;
      })
    },