|
|
@ -5,8 +5,8 @@ |
|
|
<el-form-item label="工厂编码"> |
|
|
<el-form-item label="工厂编码"> |
|
|
<el-input v-model="queryData.site" style="width: 120px" placeholder="工厂编码" clearable @keyup.enter.native="getDataList()"></el-input> |
|
|
<el-input v-model="queryData.site" style="width: 120px" placeholder="工厂编码" clearable @keyup.enter.native="getDataList()"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="错误描述"> |
|
|
|
|
|
<el-input v-model="queryData.searchErrorDesc" style="width: 200px" placeholder="错误描述关键词" clearable @keyup.enter.native="getDataList()"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item label="白名单关键词"> |
|
|
|
|
|
<el-input v-model="queryData.searchErrorDesc" style="width: 200px" placeholder="白名单关键词" clearable @keyup.enter.native="getDataList()"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="是否启用"> |
|
|
<el-form-item label="是否启用"> |
|
|
<el-select v-model="queryData.active" style="width: 120px" placeholder="全部" clearable> |
|
|
<el-select v-model="queryData.active" style="width: 120px" placeholder="全部" clearable> |
|
|
@ -18,7 +18,7 @@ |
|
|
<el-form-item label=" "> |
|
|
<el-form-item label=" "> |
|
|
<el-button type="primary" @click="getDataList()">查询</el-button> |
|
|
<el-button type="primary" @click="getDataList()">查询</el-button> |
|
|
<el-button @click="resetQuery()">重置</el-button> |
|
|
<el-button @click="resetQuery()">重置</el-button> |
|
|
<el-button type="primary" class="yzzButtonAn" @click="addConfig()">新增</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" class="yzzButtonAn" @click="addConfig()">新增白名单</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
@ -48,7 +48,7 @@ |
|
|
prop="errorDesc" |
|
|
prop="errorDesc" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="left" |
|
|
align="left" |
|
|
label="错误描述关键词" |
|
|
|
|
|
|
|
|
label="白名单关键词(可忽略的错误)" |
|
|
min-width="200" |
|
|
min-width="200" |
|
|
show-overflow-tooltip> |
|
|
show-overflow-tooltip> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -140,8 +140,8 @@ |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="错误描述关键词" prop="errorDesc"> |
|
|
|
|
|
<el-input v-model="formData.errorDesc" placeholder="请输入错误描述关键词(如:栈板不存在、WCS返回失败)"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item label="白名单关键词(配置可忽略的普通错误)" prop="errorDesc"> |
|
|
|
|
|
<el-input v-model="formData.errorDesc" placeholder="请输入白名单关键词(如:用户输入错误、格式不正确)"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -149,7 +149,7 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="备注说明"> |
|
|
<el-form-item label="备注说明"> |
|
|
<el-input v-model="formData.remark" type="textarea" :rows="3" resize='none' placeholder="请输入备注说明"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="formData.remark" type="textarea" :rows="3" resize='none' placeholder="请输入备注说明(如:该错误属于正常业务场景,可忽略)"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -203,7 +203,7 @@ export default { |
|
|
{ required: true, message: '请输入工厂编码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入工厂编码', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
errorDesc: [ |
|
|
errorDesc: [ |
|
|
{ required: true, message: '请输入错误描述关键词', trigger: 'blur' } |
|
|
|
|
|
|
|
|
{ required: true, message: '请输入白名单关键词', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
active: [ |
|
|
active: [ |
|
|
{ required: true, message: '请选择是否启用', trigger: 'change' } |
|
|
{ required: true, message: '请选择是否启用', trigger: 'change' } |
|
|
@ -241,7 +241,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
this.dataListLoading = false |
|
|
this.dataListLoading = false |
|
|
console.error('查询重要错误配置列表失败:', error) |
|
|
|
|
|
|
|
|
console.error('查询错误白名单列表失败:', error) |
|
|
this.$alert('查询失败', '错误', { confirmButtonText: '确定' }) |
|
|
this.$alert('查询失败', '错误', { confirmButtonText: '确定' }) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -274,7 +274,7 @@ export default { |
|
|
|
|
|
|
|
|
// 新增配置 - rqrq |
|
|
// 新增配置 - rqrq |
|
|
addConfig() { |
|
|
addConfig() { |
|
|
this.dialogTitle = '新增重要错误配置' |
|
|
|
|
|
|
|
|
this.dialogTitle = '新增错误白名单' |
|
|
this.dialogType = 'add' |
|
|
this.dialogType = 'add' |
|
|
this.formData = { |
|
|
this.formData = { |
|
|
site: this.$store.state.user.site || '55', |
|
|
site: this.$store.state.user.site || '55', |
|
|
@ -290,7 +290,7 @@ export default { |
|
|
|
|
|
|
|
|
// 修改配置 - rqrq |
|
|
// 修改配置 - rqrq |
|
|
editConfig(row) { |
|
|
editConfig(row) { |
|
|
this.dialogTitle = '修改重要错误配置' |
|
|
|
|
|
|
|
|
this.dialogTitle = '修改错误白名单' |
|
|
this.dialogType = 'edit' |
|
|
this.dialogType = 'edit' |
|
|
this.formData = Object.assign({}, row) |
|
|
this.formData = Object.assign({}, row) |
|
|
this.dialogVisible = true |
|
|
this.dialogVisible = true |
|
|
@ -318,7 +318,7 @@ export default { |
|
|
this.$alert(data.msg || '操作失败', '错误') |
|
|
this.$alert(data.msg || '操作失败', '错误') |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
console.error('保存重要错误配置失败:', error) |
|
|
|
|
|
|
|
|
console.error('保存错误白名单失败:', error) |
|
|
this.$alert('保存失败', '错误', { confirmButtonText: '确定' }) |
|
|
this.$alert('保存失败', '错误', { confirmButtonText: '确定' }) |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
this.saveLoading = false |
|
|
this.saveLoading = false |
|
|
@ -329,7 +329,7 @@ export default { |
|
|
// 删除配置 - rqrq |
|
|
// 删除配置 - rqrq |
|
|
deleteConfig(row) { |
|
|
deleteConfig(row) { |
|
|
// 二次确认 - rqrq |
|
|
// 二次确认 - rqrq |
|
|
this.$confirm(`确定要删除错误描述 "${row.errorDesc}" 的配置吗?`, '提示', { |
|
|
|
|
|
|
|
|
this.$confirm(`确定要删除白名单 "${row.errorDesc}" 吗?删除后该类错误将被标记为重要错误`, '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
@ -344,7 +344,7 @@ export default { |
|
|
this.$alert(data.msg || '删除失败', '错误') |
|
|
this.$alert(data.msg || '删除失败', '错误') |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
console.error('删除重要错误配置失败:', error) |
|
|
|
|
|
|
|
|
console.error('删除错误白名单失败:', error) |
|
|
this.$message.error('删除失败') |
|
|
this.$message.error('删除失败') |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
this.deleteLoading = false |
|
|
this.deleteLoading = false |
|
|
|