故障码字典
This commit is contained in:
parent
1c02c50481
commit
4d990026fa
@ -65,7 +65,7 @@
|
||||
</div>
|
||||
<div class="tabsPart">
|
||||
<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>
|
||||
</div>
|
||||
@ -343,7 +343,7 @@ const update3 = (file: any) => {
|
||||
.then((res: any) => {
|
||||
if (res.success) {
|
||||
ElMessage.success('更新成功')
|
||||
getRunLog()
|
||||
getfaultCodeDict()
|
||||
} else {
|
||||
ElMessage.error(res.msg)
|
||||
}
|
||||
@ -356,6 +356,7 @@ const update3 = (file: any) => {
|
||||
// 导出
|
||||
const download3 = () => {
|
||||
console.log(currentRow)
|
||||
console.log('🚀 ~ download3 ~ currentRow:', currentRow)
|
||||
exportfaultCodeDict({ id: currentRow.value.id }).then((res: any) => {
|
||||
const downloadUrl = window.URL.createObjectURL(res)
|
||||
const a = document.createElement('a')
|
||||
@ -561,14 +562,14 @@ const handleCurrentChange2 = (val: any) => {
|
||||
const handleSizeChange3 = (val: any) => {
|
||||
paginationOptions3.pageSize = val
|
||||
paginationOptions3.current = 1
|
||||
runLogpageData.value = runLogData.value.slice(0, paginationOptions1.pageSize)
|
||||
faultCodeDictpageData.value = faultCodeDictData.value.slice(0, paginationOptions3.pageSize)
|
||||
}
|
||||
// 当前页改变时触发
|
||||
const handleCurrentChange3 = (val: any) => {
|
||||
paginationOptions3.current = val
|
||||
const start = (paginationOptions3.current - 1) * paginationOptions3.pageSize
|
||||
const end = start + paginationOptions3.pageSize
|
||||
runLogpageData.value = runLogData.value.slice(start, end)
|
||||
faultCodeDictpageData.value = faultCodeDictData.value.slice(start, end)
|
||||
}
|
||||
|
||||
const getList = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user