巡检报告导出接口联调

This commit is contained in:
2026-01-05 15:26:15 +08:00
parent a8b781d48a
commit b6bfb92c6e
19 changed files with 550 additions and 131 deletions

View File

@@ -74,7 +74,7 @@ const model = reactive({
leader: '',
phone: '',
email: '',
areaCodes: '',
// areaCodes: '',
orderNum: ''
})
@@ -92,11 +92,11 @@ const items = [
return model.parentId !== 0
}
},
{
label: '数据来源',
prop: 'areaCodes',
type: 'tree'
},
// {
// label: '数据来源',
// prop: 'areaCodes',
// type: 'tree'
// },
{
label: '负责人',
prop: 'leader',
@@ -140,16 +140,16 @@ const getAllCheckedKeys = () => {
* 初始化赋值
*/
const initData = () => {
getAreaTree({ id: 331000 }).then(res => {
areaOptions.value = res.data
if (props.data.areaCodes && props.type !== 'add') {
props.data.areaCodes.split(',').forEach(item => {
nextTick(() => {
areaRef.value[0].setChecked(item, true, false)
})
})
}
})
// getAreaTree({ id: 331000 }).then(res => {
// areaOptions.value = res.data
// if (props.data.areaCodes && props.type !== 'add') {
// props.data.areaCodes.split(',').forEach(item => {
// nextTick(() => {
// areaRef.value[0].setChecked(item, true, false)
// })
// })
// }
// })
if (props.type !== 'add') {
Object.keys(model).forEach((key) => {
model[key] = props.data[key]
@@ -161,7 +161,7 @@ const initData = () => {
* 表单校验
*/
const validate = () => {
model.areaCodes = getAllCheckedKeys()
// model.areaCodes = getAllCheckedKeys()
form.value.validate().then((valid) => {
if (valid) {
submit()