故障码字典

This commit is contained in:
geting 2024-12-02 16:46:21 +08:00
parent 1c02c50481
commit 4d990026fa

View File

@ -65,7 +65,7 @@
</div> </div>
<div class="tabsPart"> <div class="tabsPart">
<el-table :data="faultCodeDictpageData" class="tablePart"> <el-table :data="faultCodeDictpageData" class="tablePart">
<el-table-column prop="variable" label="编码" align="center"> </el-table-column> <el-table-column prop="code" label="编码" align="center"> </el-table-column>
<el-table-column prop="description" label="描述" align="center"> </el-table-column> <el-table-column prop="description" label="描述" align="center"> </el-table-column>
</el-table> </el-table>
</div> </div>
@ -343,7 +343,7 @@ const update3 = (file: any) => {
.then((res: any) => { .then((res: any) => {
if (res.success) { if (res.success) {
ElMessage.success('更新成功') ElMessage.success('更新成功')
getRunLog() getfaultCodeDict()
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
@ -356,6 +356,7 @@ const update3 = (file: any) => {
// //
const download3 = () => { const download3 = () => {
console.log(currentRow) console.log(currentRow)
console.log('🚀 ~ download3 ~ currentRow:', currentRow)
exportfaultCodeDict({ id: currentRow.value.id }).then((res: any) => { exportfaultCodeDict({ id: currentRow.value.id }).then((res: any) => {
const downloadUrl = window.URL.createObjectURL(res) const downloadUrl = window.URL.createObjectURL(res)
const a = document.createElement('a') const a = document.createElement('a')
@ -561,14 +562,14 @@ const handleCurrentChange2 = (val: any) => {
const handleSizeChange3 = (val: any) => { const handleSizeChange3 = (val: any) => {
paginationOptions3.pageSize = val paginationOptions3.pageSize = val
paginationOptions3.current = 1 paginationOptions3.current = 1
runLogpageData.value = runLogData.value.slice(0, paginationOptions1.pageSize) faultCodeDictpageData.value = faultCodeDictData.value.slice(0, paginationOptions3.pageSize)
} }
// //
const handleCurrentChange3 = (val: any) => { const handleCurrentChange3 = (val: any) => {
paginationOptions3.current = val paginationOptions3.current = val
const start = (paginationOptions3.current - 1) * paginationOptions3.pageSize const start = (paginationOptions3.current - 1) * paginationOptions3.pageSize
const end = start + paginationOptions3.pageSize const end = start + paginationOptions3.pageSize
runLogpageData.value = runLogData.value.slice(start, end) faultCodeDictpageData.value = faultCodeDictData.value.slice(start, end)
} }
const getList = () => { const getList = () => {