xiangpei
2024-03-05 8f944626296937a7dac6f7f7af4762654c06f982
运维单位管理
3个文件已修改
16 ■■■■ 已修改文件
src/api/platform/unit.js 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/unit/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/platform/unit.js
@@ -3,7 +3,7 @@
// 查询运维单位列表
export function listUnit(query) {
  return request({
    url: '/system/yw-unit/page',
    url: '/yw-unit/page',
    method: 'get',
    params: query
  })
@@ -12,7 +12,7 @@
// 查询运维单位详细
export function getUnit(id) {
  return request({
    url: '/system/yw-unit/' + id,
    url: '/yw-unit/' + id,
    method: 'get'
  })
}
@@ -20,7 +20,7 @@
// 新增运维单位
export function addUnit(data) {
  return request({
    url: '/system/yw-unit',
    url: '/yw-unit',
    method: 'post',
    data: data
  })
@@ -29,7 +29,7 @@
// 修改运维单位
export function updateUnit(data) {
  return request({
    url: '/system/yw-unit',
    url: '/yw-unit',
    method: 'put',
    data: data
  })
@@ -38,7 +38,7 @@
// 删除运维单位
export function delUnit(id) {
  return request({
    url: '/system/yw-unit/' + id,
    url: '/yw-unit/' + id,
    method: 'delete'
  })
}
src/main.js
@@ -76,7 +76,7 @@
  size: Cookies.get('size') || 'medium' // set element-ui default size
})
Vue.config.productionTip = false
Vue.config.productionTip = true
new Vue({
  el: '#app',
src/views/system/unit/index.vue
@@ -82,7 +82,6 @@
    <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" />
@@ -217,7 +216,8 @@
        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;
      });