From 6d313a4a6f9f9d7ea65ec50ab0d4491e595edb97 Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期二, 15 十月 2024 09:47:26 +0800 Subject: [PATCH] -打印bug修改 --- 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