1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
| <template>
| <CommPage
| :formInfo="formInfo"
| :tableHeader="tableHeader"
| :queryFlag="queryFlag"
| :phaseFlag="phaseFlag"
| :pageType="pageType"
| @setOrGetFormInfo="setOrGetFormInfo"
| ></CommPage>
| </template>
| <script>
| /**
| * 登记赎楼信息
| */
| import CommPage from './components/CommPage'
|
| import { supplementUploadHeader } from '@comprehensive/utils/tableHeaders'
| import { supplementUploadSearch } from '@comprehensive/utils/formItems'
|
| export default {
| components: {
| CommPage
| },
| data() {
| return {
| queryFlag: '02',
|
| phaseFlag: '15',
|
| pageType: 5,
|
| // 搜索表单字段及描述
| formInfo: [...supplementUploadSearch],
| tableHeader: [...supplementUploadHeader]
| }
| },
| methods: {
| // 更新表单数据或查找某项数据
| setOrGetFormInfo(nameKey, newInfo) {
| let { formInfo } = this
| let index = formInfo.findIndex(({ name }) => name === nameKey)
| let result = {}
| if (!isNaN(index)) {
| this.$set(this.formInfo, index, { ...formInfo[index], ...newInfo })
| result = this.formInfo[index]
| }
| if (typeof newInfo === 'undefined') {
| return result
| }
| }
| }
| }
| </script>
| <style lang="postcss" scoped></style>
|
|