|
@@ -8,6 +8,20 @@
|
|
|
<a-input v-model.trim="queryParam.plantitle" placeholder="请输入名称/类型名称"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <a-form-item label="类型">
|
|
|
+ <a-tree-select
|
|
|
+ style="width: 100%"
|
|
|
+ :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
+ :treeData="treeData"
|
|
|
+ :treeNodeFilterProp="'title'"
|
|
|
+ :showSearch="true"
|
|
|
+ v-model="queryParam.planid"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ </a-tree-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :md="8 || 24" :sm="24">
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
@@ -40,7 +54,7 @@
|
|
|
</template>
|
|
|
</span>
|
|
|
</s-table>
|
|
|
- <base-form ref="baseModal" @ok="handleOk"/>
|
|
|
+ <base-form ref="baseModal" @ok="handleOk"/>
|
|
|
<detail ref="detailModal" />
|
|
|
</a-card>
|
|
|
</template>
|
|
@@ -51,11 +65,10 @@ import BaseForm from './modules/BaseForm'
|
|
|
import Detail from './modules/Detail'
|
|
|
import {
|
|
|
getPlanDetailPage,
|
|
|
- fetchPlanDetail,
|
|
|
- deletePlanDetails
|
|
|
+ fetchPlanDetail
|
|
|
} from '@/api/qykh/plandetails'
|
|
|
-import DictCache from '@/utils/dict'
|
|
|
|
|
|
+import { fetchPlanTree } from '@/api/qykh/plan'
|
|
|
export default {
|
|
|
name: 'PlanDetailList',
|
|
|
components: {
|
|
@@ -66,6 +79,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ treeData: [],
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
},
|
|
@@ -73,10 +87,7 @@ export default {
|
|
|
columns: [
|
|
|
{
|
|
|
title: '序号',
|
|
|
- dataIndex: 'index',
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1}`
|
|
|
- }
|
|
|
+ dataIndex: 'id'
|
|
|
},
|
|
|
{
|
|
|
title: '标题',
|
|
@@ -134,6 +145,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
+ fetchPlanTree().then(res => {
|
|
|
+ this.treeData = res.data
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
tableOption () {
|
|
@@ -183,7 +197,7 @@ export default {
|
|
|
this.queryParam = {
|
|
|
}
|
|
|
this.$refs.table.refresh(true)
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|