zhaojiale
2022-08-04 eb1e752969a7fb6adf4a0a1299c6343c2bf228da
工伤申报查询条件
已修改1个文件
57 ■■■■ 文件已修改
src/views/accidentManagementSystem/workInjuryDeclaration/index.vue 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/accidentManagementSystem/workInjuryDeclaration/index.vue
@@ -4,7 +4,8 @@
            <div class="system-user-search mb15">
                <el-form ref="ruleFormRef" size="default" label-width="80px" :inline="true">
                    <el-form-item prop="telephone">
                        <el-input v-model="listQuery.searchParams.accidentExpressId" placeholder="请选择应急物资" class="input-with-select">
                        <el-input v-model="listQuery.searchParams.accidentName" placeholder="请选择事故快报" :disabled="true"
                                  class="input-with-select">
                            <template #append>
                                <el-button :icon="Search" @click="daiInpt" />
                            </template>
@@ -17,13 +18,22 @@
            <div class="button_Line">
                <div class="button_Left">
                    <el-button size="default" type="primary" @click="onOpenAdd">
                        <el-icon> <Plus /> </el-icon>新建
                        <el-icon>
                            <Plus/>
                        </el-icon>
                        新建
                    </el-button>
                    <el-button size="default" type="warning" plain :disabled="warning">
                        <el-icon> <Edit /> </el-icon>修改
                        <el-icon>
                            <Edit/>
                        </el-icon>
                        修改
                    </el-button>
                    <el-button size="default" type="danger" plain @click="onDeleteAll" :disabled="danger">
                        <el-icon> <Delete /> </el-icon>删除
                        <el-icon>
                            <Delete/>
                        </el-icon>
                        删除
                    </el-button>
                </div>
                <div class="button_Right">
@@ -44,7 +54,8 @@
                    </el-button>
                </div>
            </div>
            <el-table :data="tableData" style="width: 100%" ref="multipleTableRef" @selection-change="handleSelectionChange">
            <el-table :data="tableData" style="width: 100%" ref="multipleTableRef"
                      @selection-change="handleSelectionChange">
                <el-table-column type="selection" width="55" />
                <el-table-column prop="declareUserName" label="申报人名称" show-overflow-tooltip sortable></el-table-column>
                <el-table-column prop="deptName" label="申报人部门" show-overflow-tooltip sortable></el-table-column>
@@ -58,10 +69,16 @@
                            <!--<el-icon style="margin-right: 5px"> <Upload /> </el-icon>上报-->
                        <!--</el-button>-->
                        <el-button size="small" text type="primary" @click="onEdit('详情',scope.row.id)">
                          <el-icon style="margin-right: 5px"> <View /> </el-icon>查看
                            <el-icon style="margin-right: 5px">
                                <View/>
                            </el-icon>
                            查看
                        </el-button>
                        <el-button size="small" text type="primary" @click="onEdit('修改',scope.row.id)">
                            <el-icon style="margin-right: 5px"> <EditPen /> </el-icon>修改
                            <el-icon style="margin-right: 5px">
                                <EditPen/>
                            </el-icon>
                            修改
                        </el-button>
                        <el-button size="small" text type="primary" @click="onRowDel(scope.row.id)"> 删除 </el-button>
                    </template>
@@ -81,7 +98,7 @@
                />
            </div>
        </el-card>
        <AccidentName ref="showRef" />
        <AccidentName ref="showRef" @selectItem="onSelectItem"/>
        <OpenAdd ref="addRef" @myAdd="onMyAdd" />
<!--        <OpenEdit ref="editRef" />-->
        <upData ref="upShow"></upData>
@@ -143,6 +160,12 @@
                accidentExpressId: "",
            },
        });
            //搜索条件回填
            const onSelectItem = (item: any) => {
                console.log('item', item[0].accidentName);
                listQuery.searchParams.accidentExpressId = item[0].id
                listQuery.searchParams.accidentName = item[0].accidentName
            };
        // 定义表格数据
        const tableData = ref([]);
        // 请求列表数据
@@ -162,7 +185,8 @@
        });
    // 重置
  const submitReset=()=>{
    listQuery.searchParams.accidentExpressId=""
                listQuery.searchParams.accidentExpressId = ''
                listQuery.searchParams.accidentName = ''
    listApi();
  }
    const warning = ref(true);
@@ -247,7 +271,8 @@
                  }
                });
          })
          .catch(() => {});
                    .catch(() => {
                    });
    };
    // 多选删除
    const onDeleteAll = () => {
@@ -277,7 +302,8 @@
                  }
                });
          })
          .catch(() => {});
                    .catch(() => {
                    });
    };
    // 分页
    const pageIndex = ref();
@@ -316,6 +342,7 @@
      onRowDel,
      total,
      onMyAdd,
                onSelectItem
        };
    },
});
@@ -325,21 +352,25 @@
    padding: 20px;
    background-color: #fff;
}
.tableForm {
    margin-top: 10px;
}
/*按钮行*/
.button_Line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
//分页
.pages {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}
::v-deep .el-pagination .el-pager li {
    margin: 0 5px;
    background-color: #f4f4f5;
@@ -347,10 +378,12 @@
    min-width: 30px;
    border-radius: 2px;
}
::v-deep .el-pagination .el-pager li.is-active {
    background-color: #409eff;
    color: #fff;
}
::v-deep .el-pagination .btn-prev {
    margin: 0 5px;
    background-color: #f4f4f5;
@@ -358,9 +391,11 @@
    min-width: 30px;
    border-radius: 2px;
}
::v-deep .el-pagination button:disabled {
    color: #c0c4cc;
}
::v-deep .el-pagination .btn-next {
    margin: 0 5px;
    background-color: #f4f4f5;