diff --git a/src/views/modules/system/importantErrorConfig.vue b/src/views/modules/system/importantErrorConfig.vue index ac4d142..abb84bf 100644 --- a/src/views/modules/system/importantErrorConfig.vue +++ b/src/views/modules/system/importantErrorConfig.vue @@ -5,8 +5,8 @@ - - + + @@ -18,7 +18,7 @@ 查询 重置 - 新增 + 新增白名单 @@ -48,7 +48,7 @@ prop="errorDesc" header-align="center" align="left" - label="错误描述关键词" + label="白名单关键词(可忽略的错误)" min-width="200" show-overflow-tooltip> @@ -140,8 +140,8 @@ - - + + @@ -149,7 +149,7 @@ - + @@ -203,7 +203,7 @@ export default { { required: true, message: '请输入工厂编码', trigger: 'blur' } ], errorDesc: [ - { required: true, message: '请输入错误描述关键词', trigger: 'blur' } + { required: true, message: '请输入白名单关键词', trigger: 'blur' } ], active: [ { required: true, message: '请选择是否启用', trigger: 'change' } @@ -241,7 +241,7 @@ export default { } }).catch(error => { this.dataListLoading = false - console.error('查询重要错误配置列表失败:', error) + console.error('查询错误白名单列表失败:', error) this.$alert('查询失败', '错误', { confirmButtonText: '确定' }) }) }, @@ -274,7 +274,7 @@ export default { // 新增配置 - rqrq addConfig() { - this.dialogTitle = '新增重要错误配置' + this.dialogTitle = '新增错误白名单' this.dialogType = 'add' this.formData = { site: this.$store.state.user.site || '55', @@ -290,7 +290,7 @@ export default { // 修改配置 - rqrq editConfig(row) { - this.dialogTitle = '修改重要错误配置' + this.dialogTitle = '修改错误白名单' this.dialogType = 'edit' this.formData = Object.assign({}, row) this.dialogVisible = true @@ -318,7 +318,7 @@ export default { this.$alert(data.msg || '操作失败', '错误') } }).catch(error => { - console.error('保存重要错误配置失败:', error) + console.error('保存错误白名单失败:', error) this.$alert('保存失败', '错误', { confirmButtonText: '确定' }) }).finally(() => { this.saveLoading = false @@ -329,7 +329,7 @@ export default { // 删除配置 - rqrq deleteConfig(row) { // 二次确认 - rqrq - this.$confirm(`确定要删除错误描述 "${row.errorDesc}" 的配置吗?`, '提示', { + this.$confirm(`确定要删除白名单 "${row.errorDesc}" 吗?删除后该类错误将被标记为重要错误`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' @@ -344,7 +344,7 @@ export default { this.$alert(data.msg || '删除失败', '错误') } }).catch(error => { - console.error('删除重要错误配置失败:', error) + console.error('删除错误白名单失败:', error) this.$message.error('删除失败') }).finally(() => { this.deleteLoading = false