From 965f7a2479a2cf7c1c56fb298e7fbb855c89e212 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期五, 12 八月 2022 19:05:57 +0800 Subject: [PATCH] lct --- src/views/intellectInspect/inspectBasic/discriminate/components/RFIDDialog.vue | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/views/intellectInspect/inspectBasic/discriminate/components/RFIDDialog.vue b/src/views/intellectInspect/inspectBasic/discriminate/components/RFIDDialog.vue index 6de5818..4540a29 100644 --- a/src/views/intellectInspect/inspectBasic/discriminate/components/RFIDDialog.vue +++ b/src/views/intellectInspect/inspectBasic/discriminate/components/RFIDDialog.vue @@ -5,12 +5,12 @@ <el-row :gutter="35"> <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20"> <el-form-item label="RFID名称" prop="rfidName"> - <el-input class="input-length" v-model.trim="RFIDForm.rfidName" placeholder="请输入RFID名称" clearable></el-input> + <el-input class="input-add" v-model.trim="RFIDForm.rfidName" placeholder="请输入RFID名称" clearable></el-input> </el-form-item> </el-col> <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20"> <el-form-item label="RFID编码" prop="rfid"> - <el-input class="input-length" v-model.trim="RFIDForm.rfid" placeholder="请输入RFID编码" clearable></el-input> + <el-input class="input-add" v-model.trim="RFIDForm.rfid" placeholder="请输入RFID编码" clearable></el-input> </el-form-item> </el-col> </el-row> @@ -18,7 +18,7 @@ <template #footer> <span class="dialog-footer"> <el-button @click="isShowRFIDDialog = !isShowRFIDDialog" size="default">取 消</el-button> - <el-button type="primary" @click="submitRFID" v-throttle size="default">确 实</el-button> + <el-button type="primary" @click="submitRFID" v-throttle size="default">确 定</el-button> </span> </template> </el-dialog> @@ -65,13 +65,13 @@ RFIDFormRef.value.clearValidate(); }); if (type === '新增') { - state.title = '新增巡检指标'; + state.title = '新增RFID'; state.RFIDForm = { rfid: '', rfidName: '' }; } else { - state.title = '修改巡检指标'; + state.title = '修改RFID'; state.RFIDForm = JSON.parse(JSON.stringify(value)); } }; @@ -80,12 +80,12 @@ const submitRFID = async () => { RFIDFormRef.value.validate(async (valid: Boolean) => { if (valid) { - if (state.title === '新增巡检指标') { + if (state.title === '新增RFID') { let res = await RFIDApi().addRFID(state.RFIDForm); if (res.data.code === '200') { ElMessage({ type: 'success', - message: '巡检指标新增成功', + message: 'RFID新增成功', duration: 2000 }); state.isShowRFIDDialog = false; @@ -101,7 +101,7 @@ if (res.data.code === '200') { ElMessage({ type: 'success', - message: '巡检指标修改成功', + message: 'RFID修改成功', duration: 2000 }); state.isShowRFIDDialog = false; @@ -132,8 +132,4 @@ }; </script> -<style scoped> -.input-length { - width: 85%; -} -</style> +<style scoped></style> -- Gitblit v1.9.2