feat(queryData):综合查询组件添加单元类型
Showing
3 changed files
with
11 additions
and
5 deletions
... | @@ -111,6 +111,12 @@ | ... | @@ -111,6 +111,12 @@ |
111 | default: function () { | 111 | default: function () { |
112 | return false | 112 | return false |
113 | } | 113 | } |
114 | }, | ||
115 | dylxs: { | ||
116 | type: Array, | ||
117 | default: function () { | ||
118 | return ['zd'] | ||
119 | } | ||
114 | } | 120 | } |
115 | }, | 121 | }, |
116 | mounted() { | 122 | mounted() { |
... | @@ -123,7 +129,6 @@ | ... | @@ -123,7 +129,6 @@ |
123 | this.queryData = { | 129 | this.queryData = { |
124 | bdcdyh: "", | 130 | bdcdyh: "", |
125 | bdcqzh: "", | 131 | bdcqzh: "", |
126 | dylxs: ['zd'], | ||
127 | qlrmc: "", | 132 | qlrmc: "", |
128 | qszt: "2", | 133 | qszt: "2", |
129 | xmmc: "", | 134 | xmmc: "", |
... | @@ -133,6 +138,7 @@ | ... | @@ -133,6 +138,7 @@ |
133 | this.getData(this.queryData) | 138 | this.getData(this.queryData) |
134 | }, | 139 | }, |
135 | getData: function (data) { | 140 | getData: function (data) { |
141 | data['dylxs'] = this.dylxs; | ||
136 | getSearchList(data).then(res => { | 142 | getSearchList(data).then(res => { |
137 | this.Data = res.result.records | 143 | this.Data = res.result.records |
138 | }) | 144 | }) | ... | ... |
... | @@ -335,7 +335,7 @@ | ... | @@ -335,7 +335,7 @@ |
335 | </div> | 335 | </div> |
336 | </el-dialog> | 336 | </el-dialog> |
337 | 337 | ||
338 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" | 338 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" :dylxs="['dz']" |
339 | @close="close"></query-data> | 339 | @close="close"></query-data> |
340 | <div class="header-button"> | 340 | <div class="header-button"> |
341 | <el-button type="primary" @click="save">保存</el-button> | 341 | <el-button type="primary" @click="save">保存</el-button> |
... | @@ -505,7 +505,7 @@ | ... | @@ -505,7 +505,7 @@ |
505 | </div> | 505 | </div> |
506 | </el-dialog> | 506 | </el-dialog> |
507 | 507 | ||
508 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" | 508 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" :dylxs="['h']" |
509 | @close="close"></query-data> | 509 | @close="close"></query-data> |
510 | <div class="header-button"> | 510 | <div class="header-button"> |
511 | <el-button type="primary" @click="save">保存</el-button> | 511 | <el-button type="primary" @click="save">保存</el-button> | ... | ... |
... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
77 | <td><input type="text" class="formInput" v-model="item.zl" readonly="readonly"/></td> | 77 | <td><input type="text" class="formInput" v-model="item.zl" readonly="readonly"/></td> |
78 | </tr> | 78 | </tr> |
79 | </table> | 79 | </table> |
80 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" | 80 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" :dylxs="['dz']" |
81 | @close="close"></query-data> | 81 | @close="close"></query-data> |
82 | </div> | 82 | </div> |
83 | </el-tab-pane> | 83 | </el-tab-pane> |
... | @@ -117,7 +117,7 @@ | ... | @@ -117,7 +117,7 @@ |
117 | <td><input type="text" class="formInput" v-model="item.zl" readonly="readonly"/></td> | 117 | <td><input type="text" class="formInput" v-model="item.zl" readonly="readonly"/></td> |
118 | </tr> | 118 | </tr> |
119 | </table> | 119 | </table> |
120 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" | 120 | <query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" :dylxs="['h']" |
121 | @close="close"></query-data> | 121 | @close="close"></query-data> |
122 | </div> | 122 | </div> |
123 | </el-tab-pane> | 123 | </el-tab-pane> | ... | ... |
-
Please register or sign in to post a comment