瀏覽代碼

-修改:5s管理页面按钮

jiangbiao 2 年之前
父節點
當前提交
73dad00ce8
共有 2 個文件被更改,包括 35 次插入2 次删除
  1. 16 1
      ui/src/views/production/record/index.vue
  2. 19 1
      ui/src/views/production/region/index.vue

+ 16 - 1
ui/src/views/production/record/index.vue

@@ -161,7 +161,7 @@
       </el-table-column>
       <el-table-column label="整改结果" align="center" prop="changeResult" :show-overflow-tooltip="true"/>
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
             size="mini"
@@ -170,6 +170,21 @@
             @click="openDetail(scope.row.id)"
             v-hasPermi="['production:record:edit']"
           >整改记录
+          </el-button><el-button
+          size="mini"
+          type="text"
+          icon="el-icon-edit"
+          @click="handleUpdate(scope.row)"
+          v-hasPermi="['production:inspection:edit']"
+        >修改
+        </el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['production:inspection:remove']"
+          >删除
           </el-button>
         </template>
       </el-table-column>

+ 19 - 1
ui/src/views/production/region/index.vue

@@ -119,7 +119,7 @@
         </template>
       </el-table-column>
       <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
-      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" fixed="right" width="180" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
             size="mini"
@@ -129,6 +129,22 @@
             v-hasPermi="['production:region:edit']"
           >下载
           </el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['production:inspection:edit']"
+          >修改
+          </el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['production:inspection:remove']"
+          >删除
+          </el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -534,6 +550,8 @@ export default {
       const id = row.id || this.ids
       getRegion(id).then(response => {
         this.form = response.data;
+        if (this.form.staffId != null)
+          this.form.staffId = this.form.staffId.split(",");
         this.open = true;
         this.title = "修改区域列台账";
       });