Ver código fonte

Merge branch 'master' of http://git.cc-lotus.info/community/ruyi-ui

asd123a20 2 anos atrás
pai
commit
1e619eaa13
2 arquivos alterados com 18 adições e 18 exclusões
  1. 5 5
      src/api/community/dangyuan.js
  2. 13 13
      src/views/community/dangyuan/index.vue

+ 5 - 5
src/api/community/dangyuan.js

@@ -1,6 +1,6 @@
 import request from '@/utils/request'
 
-// 查询党员报列表
+// 查询党员报列表
 export function listDangyuan(query) {
   return request({
     url: '/community/dangyuan/list',
@@ -9,7 +9,7 @@ export function listDangyuan(query) {
   })
 }
 
-// 查询党员报详细
+// 查询党员报详细
 export function getDangyuan(dangyuanId) {
   return request({
     url: '/community/dangyuan/' + dangyuanId,
@@ -17,7 +17,7 @@ export function getDangyuan(dangyuanId) {
   })
 }
 
-// 新增党员报
+// 新增党员报
 export function addDangyuan(data) {
   return request({
     url: '/community/dangyuan',
@@ -26,7 +26,7 @@ export function addDangyuan(data) {
   })
 }
 
-// 修改党员报
+// 修改党员报
 export function updateDangyuan(data) {
   return request({
     url: '/community/dangyuan',
@@ -35,7 +35,7 @@ export function updateDangyuan(data) {
   })
 }
 
-// 删除党员报
+// 删除党员报
 export function delDangyuan(dangyuanId) {
   return request({
     url: '/community/dangyuan/' + dangyuanId,

+ 13 - 13
src/views/community/dangyuan/index.vue

@@ -25,7 +25,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="报位置" prop="reportLocation">
+      <el-form-item label="报位置" prop="reportLocation">
         <el-input
           v-model="queryParams.reportLocation"
           placeholder="请输入工作单位"
@@ -43,8 +43,8 @@
       <el-table-column label="姓名" align="center" prop="name" />
       <el-table-column label="性别" align="center" prop="sex" />
       <el-table-column label="工作单位" align="center" prop="workUnit" />
-      <el-table-column label="报位置" align="center" prop="reportLocation" />
-      <el-table-column label="报类别" align="center" prop="reportType" />
+      <el-table-column label="报位置" align="center" prop="reportLocation" />
+      <el-table-column label="报类别" align="center" prop="reportType" />
       <el-table-column label="居住地" align="center" prop="residence" />
       <el-table-column label="联系方式" align="center" prop="phone" />
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -66,7 +66,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"
@@ -75,7 +75,7 @@
       @pagination="getList"
     />
 
-    <!-- 添加或修改党员报对话框 -->
+    <!-- 添加或修改党员报对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-form-item label="姓名" prop="name">
@@ -87,11 +87,11 @@
         <el-form-item label="工作单位" prop="workUnit">
           <el-input disabled v-model="form.workUnit" placeholder="请输入工作单位" />
         </el-form-item>
-        <el-form-item label="报位置" prop="reportLocation">
-          <el-input disabled v-model="form.reportLocation" placeholder="请输入报位置" />
+        <el-form-item label="报位置" prop="reportLocation">
+          <el-input disabled v-model="form.reportLocation" placeholder="请输入报位置" />
         </el-form-item>
-        <el-form-item label="报类别" prop="reportType">
-          <el-input disabled v-model="form.reportType" placeholder="请输入报位置" />
+        <el-form-item label="报类别" prop="reportType">
+          <el-input disabled v-model="form.reportType" placeholder="请输入报位置" />
         </el-form-item>
         <el-form-item label="居住地" prop="residence">
           <el-input disabled v-model="form.residence" placeholder="请输入居住地" />
@@ -138,7 +138,7 @@ export default {
       showSearch: true,
       // 总条数
       total: 0,
-      // 党员报表格数据
+      // 党员报表格数据
       dangyuanList: [],
       // 弹出层标题
       title: "",
@@ -169,7 +169,7 @@ export default {
     this.getList();
   },
   methods: {
-    /** 查询党员报列表 */
+    /** 查询党员报列表 */
     getList() {
       this.loading = true;
       listDangyuan(this.queryParams).then(response => {
@@ -226,13 +226,13 @@ export default {
         const data = this.dict.type.baodao_type.find(j => j.value == response.data.reportType);
         this.form = { ...response.data, reportType: data.label, sex: response.data.sex == 1 ? '男' : '女' };
         this.open = true;
-        this.title = "党员报详情";
+        this.title = "党员报详情";
       });
     },
     /** 删除按钮操作 */
     handleDelete(row) {
       const dangyuanIds = row.dangyuanId || this.ids;
-      this.$modal.confirm('是否确认删除党员报名称为"' + row.name + '"的数据项?').then(function() {
+      this.$modal.confirm('是否确认删除党员报名称为"' + row.name + '"的数据项?').then(function() {
         return delDangyuan(dangyuanIds);
       }).then(() => {
         this.getList();