fix: 修复typescript一些编译报错
This commit is contained in:
@@ -79,31 +79,31 @@
|
||||
|
||||
<el-table-column align="center" label="订单来源">
|
||||
<template #default="scope">
|
||||
<el-tag>{{ scope.row.sourceType | orderSourceFilter }}</el-tag>
|
||||
<el-tag>{{ scope.row.sourceType }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="订单状态">
|
||||
<template #default="scope">
|
||||
<el-tag>{{ scope.row.status | orderStatusFilter }}</el-tag>
|
||||
<el-tag>{{ scope.row.status }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" prop="orderPrice" label="订单金额">
|
||||
<template #default="scope">
|
||||
{{ scope.row.totalAmount | moneyFormatter }}
|
||||
{{ scope.row.totalAmount }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" prop="payPrice" label="支付金额">
|
||||
<template #default="scope">
|
||||
{{ scope.row.payAmount | moneyFormatter }}
|
||||
{{ scope.row.payAmount }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="支付方式">
|
||||
<template #default="scope">
|
||||
<el-tag>{{ scope.row.payType | payTypeFilter }}</el-tag>
|
||||
<el-tag>{{ scope.row.payType }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ const state = reactive({
|
||||
parentId: '',
|
||||
name: '',
|
||||
sort: 1,
|
||||
status: 1
|
||||
status: 1
|
||||
},
|
||||
// 表单参数校验
|
||||
rules: {
|
||||
@@ -269,16 +269,17 @@ function resetForm() {
|
||||
parentId: '',
|
||||
name: '',
|
||||
sort: 1,
|
||||
status: 1
|
||||
status: 1
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加部门
|
||||
*/
|
||||
function handleAdd() {
|
||||
function handleAdd(row: any) {
|
||||
resetForm()
|
||||
loadDeptOptions()
|
||||
state.formData.parentId = row.id
|
||||
state.dialog = {
|
||||
title: '添加部门',
|
||||
visible: true
|
||||
@@ -340,7 +341,7 @@ function handleDelete(row: any) {
|
||||
deleteDept(ids).then(() => {
|
||||
handleQuery()
|
||||
ElMessage.success('删除成功')
|
||||
}).catch(()=> {
|
||||
}).catch(() => {
|
||||
console.log(`删除失败`)
|
||||
})
|
||||
}).catch(() =>
|
||||
|
||||
Reference in New Issue
Block a user