巡检报告导出接口联调
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -12,7 +12,7 @@ import { ref, reactive } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { getDept, delDept, listDeptExcludeChild } from '@/api/system'
|
||||
import { handleTree } from '@/utils/common'
|
||||
import FilterComponent from '@/components/Filter/index.vue'
|
||||
import FilterComponent from '@/components/Filter/index2.vue'
|
||||
import TableComponent from '@/components/Table/index.vue'
|
||||
import DialogComponent from '@/components/Dialog/index.vue'
|
||||
import DetailComponent from './detail.vue'
|
||||
|
||||
Reference in New Issue
Block a user