From 06713afdb80bc876ffc6a09442049a08eb8a2364 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期四, 09 五月 2024 14:36:28 +0800
Subject: [PATCH] -

---
 jcdm-ui/src/views/main/em/inspectionItems/index.vue |  112 ++++++++++++++++++++------------------------------------
 1 files changed, 40 insertions(+), 72 deletions(-)

diff --git a/jcdm-ui/src/views/main/em/inspectionItems/index.vue b/jcdm-ui/src/views/main/em/inspectionItems/index.vue
index 0530345..aa6548b 100644
--- a/jcdm-ui/src/views/main/em/inspectionItems/index.vue
+++ b/jcdm-ui/src/views/main/em/inspectionItems/index.vue
@@ -18,26 +18,16 @@
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
-<!--          <el-form-item label="椤圭洰绫诲瀷" prop="itemsType">-->
-<!--            <el-select v-model="queryParams.itemsType" placeholder="璇烽�夋嫨椤圭洰绫诲瀷" clearable>-->
-<!--              <el-option-->
-<!--                v-for="dict in dict.type.${dictType}"-->
-<!--                :key="dict.value"-->
-<!--                :label="dict.label"-->
-<!--                :value="dict.value"-->
-<!--              />-->
-<!--            </el-select>-->
-<!--          </el-form-item>-->
-<!--          <el-form-item label="鏄惁鍚敤" prop="status">-->
-<!--            <el-select v-model="queryParams.status" placeholder="璇烽�夋嫨鏄惁鍚敤" clearable>-->
-<!--              <el-option-->
-<!--                v-for="dict in dict.type.${dictType}"-->
-<!--                :key="dict.value"-->
-<!--                :label="dict.label"-->
-<!--                :value="dict.value"-->
-<!--              />-->
-<!--            </el-select>-->
-<!--          </el-form-item>-->
+          <el-form-item label="椤圭洰绫诲瀷" prop="itemsType">
+            <el-select v-model="queryParams.itemsType" placeholder="璇烽�夋嫨椤圭洰绫诲瀷" clearable>
+              <el-option
+                v-for="dict in dict.type.spotmaintenance"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              />
+            </el-select>
+          </el-form-item>
           <el-form-item style="float: right">
             <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
             <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
@@ -94,20 +84,23 @@
 
         <el-table border v-loading="loading" :data="inspectionItemsList" @selection-change="handleSelectionChange">
           <el-table-column type="selection" width="55" align="center" />
-          <el-table-column label="ID" align="center" prop="id" />
-          <el-table-column label="椤圭洰缂栧彿" align="center" prop="itemsCode">
-          </el-table-column>
           <el-table-column label="椤圭洰鍚嶇О" align="center" prop="itemsName">
           </el-table-column>
+          <el-table-column label="椤圭洰缂栧彿" align="center" prop="itemsCode">
+          </el-table-column>
           <el-table-column label="椤圭洰绫诲瀷" align="center" prop="itemsType">
+            <template slot-scope="scope">
+              <dict-tag :options="dict.type.spotmaintenance" :value="scope.row.itemsType"/>
+            </template>
           </el-table-column>
           <el-table-column label="鏄惁鍚敤" align="center" prop="status">
-          </el-table-column>
-          <el-table-column label="鏍囧噯" align="center" prop="standard">
+            <template slot-scope="scope">
+              <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.status"/>
+            </template>
           </el-table-column>
           <el-table-column label="椤圭洰鍐呭" align="center" prop="itemsContent">
           </el-table-column>
-          <el-table-column label="澶囨敞" align="center" prop="remark">
+          <el-table-column label="鏍囧噯" align="center" prop="standard">
           </el-table-column>
           <el-table-column label="鍒涘缓浜�" align="center" prop="createUser">
           </el-table-column>
@@ -116,28 +109,6 @@
           <el-table-column label="鏇存柊浜�" align="center" prop="updateUser">
           </el-table-column>
           <el-table-column label="鏇存柊鏃堕棿" align="center" prop="updateTime">
-          </el-table-column>
-          <el-table-column fixed="right" width="200" label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
-            <template slot-scope="scope">
-              <el-button
-                size="mini"
-                type="success"
-                plain
-                style="width: 72px"
-                icon="el-icon-edit"
-                @click="handleUpdate(scope.row)"
-                v-hasPermi="['em:inspectionItems:edit']"
-              >淇敼</el-button>
-              <el-button
-                size="mini"
-                type="danger"
-                plain
-                style="width: 72px"
-                icon="el-icon-delete"
-                @click="handleDelete(scope.row)"
-                v-hasPermi="['em:inspectionItems:remove']"
-              >鍒犻櫎</el-button>
-            </template>
           </el-table-column>
         </el-table>
     </el-card>
@@ -157,39 +128,35 @@
         {{titleName}}
       </span>
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-        <el-form-item label="椤圭洰缂栧彿" prop="itemsCode">
-          <el-input v-model="form.itemsCode" placeholder="璇疯緭鍏ラ」鐩紪鍙�" />
-        </el-form-item>
         <el-form-item label="椤圭洰鍚嶇О" prop="itemsName">
           <el-input v-model="form.itemsName" placeholder="璇疯緭鍏ラ」鐩悕绉�" />
         </el-form-item>
+        <el-form-item label="椤圭洰缂栧彿" prop="itemsCode">
+          <el-input v-model="form.itemsCode" placeholder="璇疯緭鍏ラ」鐩紪鍙�" />
+        </el-form-item>
         <el-form-item label="椤圭洰绫诲瀷" prop="itemsType">
-<!--          <el-select v-model="form.itemsType" placeholder="璇烽�夋嫨椤圭洰绫诲瀷">-->
-<!--            <el-option-->
-<!--              v-for="dict in dict.type.${dictType}"-->
-<!--              :key="dict.value"-->
-<!--              :label="dict.label"-->
-<!--              :value="dict.value"-->
-<!--            ></el-option>-->
-<!--          </el-select>-->
+          <el-radio-group v-model="form.itemsType">
+            <el-radio
+              v-for="dict in dict.type.spotmaintenance"
+              :key="dict.value"
+              :label="dict.value"
+            >{{dict.label}}</el-radio>
+          </el-radio-group>
         </el-form-item>
         <el-form-item label="鏄惁鍚敤" prop="status">
-<!--          <el-radio-group v-model="form.status">-->
-<!--            <el-radio-->
-<!--              v-for="dict in dict.type.${dictType}"-->
-<!--              :key="dict.value"-->
-<!--              :label="dict.value"-->
-<!--            >{{dict.label}}</el-radio>-->
-<!--          </el-radio-group>-->
+          <el-radio-group v-model="form.status">
+            <el-radio
+              v-for="dict in dict.type.sys_yes_no"
+              :key="dict.value"
+              :label="dict.value"
+            >{{dict.label}}</el-radio>
+          </el-radio-group>
+        </el-form-item>
+        <el-form-item label="椤圭洰鍐呭"prop="itemsContent"  >
+          <el-input v-model="form.itemsContent" placeholder="璇疯緭鍏ラ」鐩唴瀹�"/>
         </el-form-item>
         <el-form-item label="鏍囧噯" prop="standard">
           <el-input v-model="form.standard" placeholder="璇疯緭鍏ユ爣鍑�" />
-        </el-form-item>
-        <el-form-item label="椤圭洰鍐呭">
-          <editor v-model="form.itemsContent" :min-height="192"/>
-        </el-form-item>
-        <el-form-item label="澶囨敞" prop="remark">
-          <el-input v-model="form.remark" placeholder="璇疯緭鍏ュ娉�" />
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -205,6 +172,7 @@
 
 export default {
   name: "InspectionItems",
+  dicts: ['sys_yes_no','spotmaintenance'],
   data() {
     return {
       // 閬僵灞�

--
Gitblit v1.9.3