文件上传限制,巡检详情日期参数
This commit is contained in:
@@ -99,6 +99,7 @@ import { getInspectionMain } from '@/api/insepction.js'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
|
||||
const taskid = ref('')
|
||||
let date = ''
|
||||
const info = ref({
|
||||
planName: '',
|
||||
remindTime: '',
|
||||
@@ -114,7 +115,7 @@ const baseFormData = ref([])
|
||||
|
||||
function init() {
|
||||
if (!taskid.value) return
|
||||
getInspectionMain(taskid.value)
|
||||
getInspectionMain(taskid.value, date)
|
||||
.then(res => {
|
||||
info.value = res.data
|
||||
if (!res.data.routes) return
|
||||
@@ -154,6 +155,8 @@ function init() {
|
||||
|
||||
onLoad(options => {
|
||||
taskid.value = options.id
|
||||
date = options.date
|
||||
console.log(date)
|
||||
init()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user