فهرست منبع

办事事件列表更改字段

conghelong 1 سال پیش
والد
کامیت
dc969cd220
1فایلهای تغییر یافته به همراه13 افزوده شده و 22 حذف شده
  1. 13 22
      src/views/matter/matter.vue

+ 13 - 22
src/views/matter/matter.vue

@@ -55,14 +55,12 @@
           @click="handleDelete"
           @click="handleDelete"
         >删除</el-button>
         >删除</el-button>
       </el-col>
       </el-col>
-
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
     </el-row>
     <el-table v-loading="loading" :data="deptList" @selection-change="handleSelectionChange">
     <el-table v-loading="loading" :data="deptList" @selection-change="handleSelectionChange">
       <el-table-column label="事项标题" align="center" prop="title" />
       <el-table-column label="事项标题" align="center" prop="title" />
       <el-table-column label="主题类型" align="center" prop="type" />
       <el-table-column label="主题类型" align="center" prop="type" />
       <el-table-column label="所属部门" align="center" prop="department" />
       <el-table-column label="所属部门" align="center" prop="department" />
-
       <el-table-column label="是否展示" align="center" key="operation">
       <el-table-column label="是否展示" align="center" key="operation">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <el-switch
           <el-switch
@@ -103,7 +101,6 @@
             @click="handleDelete(scope.row)"
             @click="handleDelete(scope.row)"
           >删除</el-button>
           >删除</el-button>
           <el-button
           <el-button
-            v-if="scope.row.examine != 1"
             size="mini"
             size="mini"
             type="text"
             type="text"
             icon="el-icon-delete"
             icon="el-icon-delete"
@@ -166,11 +163,11 @@
             >{{dict.label}}</el-radio>
             >{{dict.label}}</el-radio>
           </el-radio-group>
           </el-radio-group>
         </el-form-item>
         </el-form-item>
-        <el-form-item label="电话" prop="address" style="width: 300px;">
-          <el-input v-model="form.address" placeholder="请输入电话" />
+        <el-form-item label="电话" prop="phone" style="width: 300px;">
+          <el-input v-model="form.phone" placeholder="请输入电话" />
         </el-form-item>
         </el-form-item>
-        <el-form-item label="地址" prop="phone" style="width: 300px;">
-          <el-input v-model="form.phone" placeholder="请输入地址" />
+        <el-form-item label="地址" prop="address" style="width: 300px;">
+          <el-input v-model="form.address" placeholder="请输入地址" />
         </el-form-item>
         </el-form-item>
         <el-form-item label="图片" prop="picture">
         <el-form-item label="图片" prop="picture">
           <image-upload v-model="form.picture" :fileSize="10" :limit="1"/>
           <image-upload v-model="form.picture" :fileSize="10" :limit="1"/>
@@ -238,11 +235,11 @@
             >{{dict.label}}</el-radio>
             >{{dict.label}}</el-radio>
           </el-radio-group>
           </el-radio-group>
         </el-form-item>
         </el-form-item>
-        <el-form-item label="电话" prop="address" style="width: 300px;" >
-          <el-input v-model="form.address" placeholder="请输入电话" :readonly="true" />
+        <el-form-item label="电话" prop="phone" style="width: 300px;" >
+          <el-input v-model="form.phone" placeholder="请输入电话" :readonly="true" />
         </el-form-item>
         </el-form-item>
-        <el-form-item label="地址" prop="phone" style="width: 300px;" >
-          <el-input v-model="form.phone" placeholder="请输入地址" :readonly="true" />
+        <el-form-item label="地址" prop="address" style="width: 300px;" >
+          <el-input v-model="form.address" placeholder="请输入地址" :readonly="true" />
         </el-form-item>
         </el-form-item>
         <el-form-item label="图片" prop="picture" >
         <el-form-item label="图片" prop="picture" >
           <image-upload v-model="form.picture" :fileSize="10" :limit="1"  />
           <image-upload v-model="form.picture" :fileSize="10" :limit="1"  />
@@ -377,14 +374,7 @@
           this.title = "详情";
           this.title = "详情";
         });
         });
       },
       },
-  //     getDept(row.id).then(response => {
-  //   this.form = response.data;
-  //   this.$nextTick(() => {
-  //     this.form.operation = this.form.operation.toString();
-  //   });
-  //   this.open = true;
-  //   this.title = "修改事项";
-  // });
+
       // 取消按钮
       // 取消按钮
       cancel() {
       cancel() {
         this.open = false;
         this.open = false;
@@ -453,6 +443,7 @@
                 this.getList();
                 this.getList();
               });
               });
             } else {
             } else {
+              this.form.examine = 3
               addDept(this.form).then(response => {
               addDept(this.form).then(response => {
                 this.$modal.msgSuccess("新增成功");
                 this.$modal.msgSuccess("新增成功");
                 this.open = false;
                 this.open = false;
@@ -487,13 +478,13 @@
       },
       },
       // 用户状态修改
       // 用户状态修改
       handleStatusChange(row) {
       handleStatusChange(row) {
-        let text = row.operation === "0" ? "启用" : "停用";
-        this.$modal.confirm('确认要"' + text + '""' + row.userName + '"用户吗?').then(function() {
+        let text = row.operation == "0" ? "展示" : "取消展示";
+        this.$modal.confirm('确认要"' + text  + "该" + '事项吗?').then(function() {
           return updateDept(row);
           return updateDept(row);
         }).then(() => {
         }).then(() => {
           this.$modal.msgSuccess(text + "成功");
           this.$modal.msgSuccess(text + "成功");
         }).catch(function() {
         }).catch(function() {
-          row.operation = row.operation === "0" ? "1" : "0";
+          row.operation = row.operation == "0" ? "1" : "0";
         });
         });
       },
       },
       /** 删除按钮操作 */
       /** 删除按钮操作 */