diff --git a/src/views/project/ProjectDetail.vue b/src/views/project/ProjectDetail.vue index ef4c62a..87944f3 100644 --- a/src/views/project/ProjectDetail.vue +++ b/src/views/project/ProjectDetail.vue @@ -1,342 +1,137 @@ - - + + + diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue index c032aaa..4e967af 100644 --- a/src/views/project/ProjectList.vue +++ b/src/views/project/ProjectList.vue @@ -80,7 +80,14 @@ export default { data() { return { // 查询参数 - queryParam: this.$route.query.queryParam || {}, + queryParam: { + projectName: null, + status: null, + startDate: null, + endDate: null, + trainWay: null, + type: '', + }, // 表头 columns: [ { title: '序号', key: 'id', dataIndex: 'id', width: 60, scopedSlots: { customRender: 'serial' } }, diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue index 23cf850..a985210 100644 --- a/src/views/project/ProjectStepForm.vue +++ b/src/views/project/ProjectStepForm.vue @@ -70,7 +70,7 @@ export default { data() { return { title: '', - currentTab: 1, + currentTab: 0, sourcePath: '', t: '', labelCol: { @@ -148,7 +148,7 @@ export default { }, //关闭页面,跳转list页面 close() { - console.log('close------', this.$route.query.t) + // console.log('close------', this.$route.query.t) this.$router.push({ path: '/project/list/' + this.$route.query.t, query: { diff --git a/src/views/project/form/ProjectUnitSelect.vue b/src/views/project/form/ProjectUnitSelect.vue index 53d79b0..45062d1 100644 --- a/src/views/project/form/ProjectUnitSelect.vue +++ b/src/views/project/form/ProjectUnitSelect.vue @@ -49,17 +49,6 @@ import { orgList } from '@/api/org/org' import { listToTree } from '@/utils/util' const treeData = [] -// { key: '0-0', title: '0-0' }, -// { -// key: '0-1', -// title: '0-1', -// children: [ -// { key: '0-1-0', title: '0-1-0' }, -// { key: '0-1-1', title: '0-1-1' }, -// ], -// }, -// { key: '0-2', title: '0-3' }, -// ] const transferDataSource = [] @@ -75,17 +64,6 @@ function isChecked(selectedKeys, eventKey) { return selectedKeys.indexOf(eventKey) !== -1 } -//打开就报错 -// function handleTreeData(data, targetKeys = []) { -// data.forEach((item) => { -// item['disabled'] = targetKeys.includes(item.key) -// if (item.children) { -// handleTreeData(item.children, targetKeys) -// } -// }) -// return data -// } - export default { // import引入的组件需要注入到对象中才能使用 components: {}, @@ -96,7 +74,6 @@ export default { form: this.projectForm, targetKeys: this.projectForm.unitIds || [], dataSource: transferDataSource, - // treeData() {return handleTreeData(treeData, this.targetKeys)}, treeData: [] } },