| | |
| | | |
| | | <el-table v-loading="loading" :data="unitList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="主键" align="center" prop="id" /> |
| | | <el-table-column label="单位编码" align="center" prop="unitCode" /> |
| | | <el-table-column label="单位名称" align="center" prop="unitName" /> |
| | | <el-table-column label="单位联系人" align="center" prop="unitContact" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listUnit, getUnit, delUnit, addUnit, updateUnit } from "@/api/system/unit"; |
| | | import { listUnit, getUnit, delUnit, addUnit, updateUnit } from "@/api/platform/unit"; |
| | | |
| | | export default { |
| | | name: "Unit", |
| | |
| | | this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1]; |
| | | } |
| | | listUnit(this.queryParams).then(response => { |
| | | this.unitList = response.rows; |
| | | console.log(response) |
| | | this.unitList = response.data; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |