This commit is contained in:
parent
f7e341bf08
commit
cf17b814a8
@ -17,7 +17,10 @@ import workOrdersDetail from './work-orders-detail.vue';
|
||||
import ordersModal from './orders-modal.vue';
|
||||
import {columns, querySchema} from './data';
|
||||
import {onMounted, ref} from "vue";
|
||||
import {workOrdersTypeList} from "#/api/property/businessManagement/workOrdersType";
|
||||
import {
|
||||
workOrdersTypeList,
|
||||
workOrdersTypeListAll
|
||||
} from "#/api/property/businessManagement/workOrdersType";
|
||||
|
||||
const ordersTypeList = ref<any[]>([]);
|
||||
const ordersType = ref<string>('0');
|
||||
@ -130,11 +133,10 @@ function handleMultiDelete() {
|
||||
|
||||
async function queryOrderType() {
|
||||
let params = {
|
||||
pageSize: 1000,
|
||||
pageNum: 1
|
||||
filterSubNodes:true
|
||||
}
|
||||
const res = await workOrdersTypeList(params)
|
||||
ordersTypeList.value = res.rows.map((item) => ({
|
||||
const res = await workOrdersTypeListAll(params)
|
||||
ordersTypeList.value = res.map((item) => ({
|
||||
label: item.orderTypeName,
|
||||
value: item.id,
|
||||
}));
|
||||
|
@ -94,6 +94,7 @@ async function handleEdit(row: Required<WorkOrdersTypeForm>) {
|
||||
}
|
||||
|
||||
async function handleDelete(row: Required<WorkOrdersTypeForm>) {
|
||||
console.log(row,'======row')
|
||||
await workOrdersTypeRemove(row.id);
|
||||
await tableApi.query();
|
||||
}
|
||||
@ -158,6 +159,7 @@ function handleMultiDelete() {
|
||||
danger
|
||||
v-access:code="['property:workOrdersType:remove']"
|
||||
@click.stop=""
|
||||
:disabled="row.children?.length>0"
|
||||
>
|
||||
{{ $t('pages.common.delete') }}
|
||||
</ghost-button>
|
||||
|
Loading…
Reference in New Issue
Block a user