|
@@ -164,13 +164,14 @@ import { IotInspectOrderApi, IotInspectOrderVO } from '@/api/pms/inspect/order'
|
|
|
//import IotInspectOrderForm from './IotInspectOrderForm.vue'
|
|
|
import {DICT_TYPE, getStrDictOptions} from "@/utils/dict";
|
|
|
import DeptTree from "@/views/system/user/DeptTree.vue";
|
|
|
+import {onMounted, ref} from "vue";
|
|
|
import {IotOpeationFillApi, IotOpeationFillVO} from "@/api/pms/iotopeationfill";
|
|
|
import {useUserStore} from "@/store/modules/user";
|
|
|
const { push } = useRouter()
|
|
|
-const { params, name } = useRoute() // 查询参数
|
|
|
-const deptId= params.deptId;
|
|
|
-const orderStatus = params.orderStatus;
|
|
|
-const createTime = params.createTime;
|
|
|
+const { query} = useRoute() // 查询参数
|
|
|
+const deptId= query.deptId;
|
|
|
+const orderStatus = query.orderStatus;
|
|
|
+const createTime = query.createTime;
|
|
|
/** 巡检工单 列表 */
|
|
|
defineOptions({ name: 'IotOpeationFill1' })
|
|
|
|
|
@@ -278,7 +279,7 @@ const handleExport = async () => {
|
|
|
}
|
|
|
|
|
|
/** 初始化 **/
|
|
|
-onMounted(() => {
|
|
|
+onMounted(async () => {
|
|
|
if(deptId != null){
|
|
|
queryParams.deptId = deptId;
|
|
|
}
|