From dc422a1d76bf2b35646bc13868d6db2643b728e3 Mon Sep 17 00:00:00 2001 From: hbzgyjh Date: Fri, 10 Dec 2021 16:06:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AF=A6=E6=83=85=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/ProjectDetail.vue | 435 +++++-------------- src/views/project/ProjectList.vue | 9 +- src/views/project/ProjectStepForm.vue | 4 +- src/views/project/form/ProjectUnitSelect.vue | 23 - 4 files changed, 125 insertions(+), 346 deletions(-) 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: [] } },