| | |
| | | <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> |
| | |
| | | <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"> |
| | |
| | | </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> |
| | |
| | | <!--<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> |
| | |
| | | /> |
| | | </div> |
| | | </el-card> |
| | | <AccidentName ref="showRef" /> |
| | | <AccidentName ref="showRef" @selectItem="onSelectItem"/> |
| | | <OpenAdd ref="addRef" @myAdd="onMyAdd" /> |
| | | <!-- <OpenEdit ref="editRef" />--> |
| | | <upData ref="upShow"></upData> |
| | |
| | | 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([]); |
| | | // 请求列表数据 |
| | |
| | | }); |
| | | // 重置 |
| | | const submitReset=()=>{ |
| | | listQuery.searchParams.accidentExpressId="" |
| | | listQuery.searchParams.accidentExpressId = '' |
| | | listQuery.searchParams.accidentName = '' |
| | | listApi(); |
| | | } |
| | | const warning = ref(true); |
| | |
| | | } |
| | | }); |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { |
| | | }); |
| | | }; |
| | | // 多选删除 |
| | | const onDeleteAll = () => { |
| | |
| | | } |
| | | }); |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { |
| | | }); |
| | | }; |
| | | // 分页 |
| | | const pageIndex = ref(); |
| | |
| | | onRowDel, |
| | | total, |
| | | onMyAdd, |
| | | onSelectItem |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |