111
Showing
3 changed files
with
77 additions
and
42 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -6,22 +6,44 @@ | ... | @@ -6,22 +6,44 @@ |
| 6 | <el-row :gutter="20"> | 6 | <el-row :gutter="20"> |
| 7 | <el-col :span="6"> | 7 | <el-col :span="6"> |
| 8 | <el-form-item label="权利类型"> | 8 | <el-form-item label="权利类型"> |
| 9 | <el-select v-model="queryForm.qllx" @change="queryClick" filterable class="width100" clearable | 9 | <el-select |
| 10 | placeholder="请选择权利类型"> | 10 | v-model="queryForm.qllx" |
| 11 | <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value"> | 11 | @change="queryClick" |
| 12 | filterable | ||
| 13 | class="width100" | ||
| 14 | clearable | ||
| 15 | placeholder="请选择权利类型" | ||
| 16 | > | ||
| 17 | <el-option | ||
| 18 | v-for="item in qllxs" | ||
| 19 | :key="item.value" | ||
| 20 | :label="item.label" | ||
| 21 | :value="item.value" | ||
| 22 | > | ||
| 12 | </el-option> | 23 | </el-option> |
| 13 | </el-select> | 24 | </el-select> |
| 14 | </el-form-item> | 25 | </el-form-item> |
| 15 | </el-col> | 26 | </el-col> |
| 16 | <el-col :span="6"> | 27 | <el-col :span="6"> |
| 17 | <el-form-item label="登记业务编码"> | 28 | <el-form-item label="登记业务编码"> |
| 18 | <el-input placeholder="请输入登记业务编码" @clear="queryClick" v-model="queryForm.djywbm" clearable> | 29 | <el-input |
| 30 | placeholder="请输入登记业务编码" | ||
| 31 | @clear="queryClick" | ||
| 32 | v-model="queryForm.djywbm" | ||
| 33 | clearable | ||
| 34 | > | ||
| 19 | </el-input> | 35 | </el-input> |
| 20 | </el-form-item> | 36 | </el-form-item> |
| 21 | </el-col> | 37 | </el-col> |
| 22 | <el-col :span="12" class="btnColRight"> | 38 | <el-col :span="12" class="btnColRight"> |
| 23 | <el-form-item> | 39 | <el-form-item> |
| 24 | <el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button> | 40 | <el-button |
| 41 | type="primary" | ||
| 42 | native-type="submit" | ||
| 43 | icon="el-icon-search" | ||
| 44 | @click="queryClick" | ||
| 45 | >查询</el-button | ||
| 46 | > | ||
| 25 | </el-form-item> | 47 | </el-form-item> |
| 26 | </el-col> | 48 | </el-col> |
| 27 | </el-row> | 49 | </el-row> |
| ... | @@ -29,38 +51,50 @@ | ... | @@ -29,38 +51,50 @@ |
| 29 | </div> | 51 | </div> |
| 30 | <!-- 表格 --> | 52 | <!-- 表格 --> |
| 31 | <div class="from-clues-content"> | 53 | <div class="from-clues-content"> |
| 32 | <lb-table :page-size="pageData.pageSize" class="loadingtext" :current-page.sync="pageData.currentPage" | 54 | <lb-table |
| 33 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | 55 | :page-size="pageData.pageSize" |
| 34 | :column="tableData.columns" :data="tableData.data"> | 56 | class="loadingtext" |
| 57 | :current-page.sync="pageData.currentPage" | ||
| 58 | :total="tableData.total" | ||
| 59 | @size-change="handleSizeChange" | ||
| 60 | @p-current-change="handleCurrentChange" | ||
| 61 | :column="tableData.columns" | ||
| 62 | :data="tableData.data" | ||
| 63 | > | ||
| 35 | </lb-table> | 64 | </lb-table> |
| 36 | </div> | 65 | </div> |
| 37 | <!-- <editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" /> --> | 66 | <!-- <editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" /> --> |
| 38 | <component-dialog :dialogVisible="dialogVisible" v-if="sqqlRule&&flag" :sqqlRule="sqqlRule" @update:dialogVisible="dialogVisibles"></component-dialog> | 67 | <component-dialog |
| 68 | :dialogVisible="dialogVisible" | ||
| 69 | v-if="sqqlRule && flag" | ||
| 70 | :sqqlRule="sqqlRule" | ||
| 71 | @update:dialogVisible="dialogVisibles" | ||
| 72 | ></component-dialog> | ||
| 39 | </div> | 73 | </div> |
| 40 | </template> | 74 | </template> |
| 41 | <script> | 75 | <script> |
| 42 | import table from "@/utils/mixin/table" | 76 | import table from "@/utils/mixin/table"; |
| 43 | import editDialog from "./components/editDialog.vue" | 77 | import editDialog from "./components/editDialog.vue"; |
| 44 | import componentDialog from "./sqywDetail.vue" | 78 | import componentDialog from "./sqywDetail.vue"; |
| 45 | import { datas, sendThis } from "./sqywgzdata" | 79 | import { datas, sendThis } from "./sqywgzdata"; |
| 46 | import { getSysSqdjywBysearch, getDjlxInfo } from "@/api/system.js" | 80 | import { getSysSqdjywBysearch, getDjlxInfo } from "@/api/system.js"; |
| 47 | export default { | 81 | export default { |
| 48 | name: "djbcx", | 82 | name: "djbcx", |
| 49 | components: { | 83 | components: { |
| 50 | editDialog, | 84 | editDialog, |
| 51 | componentDialog | 85 | componentDialog, |
| 52 | }, | 86 | }, |
| 53 | mixins: [table], | 87 | mixins: [table], |
| 54 | mounted () { | 88 | mounted() { |
| 55 | sendThis(this); | 89 | sendThis(this); |
| 56 | this.queryClick() | 90 | this.queryClick(); |
| 57 | }, | 91 | }, |
| 58 | data () { | 92 | data() { |
| 59 | return { | 93 | return { |
| 60 | flag:false, | 94 | flag: false, |
| 61 | //控制弹窗 显示 | 95 | //控制弹窗 显示 |
| 62 | dialogVisible: false, | 96 | dialogVisible: false, |
| 63 | qllxmc:"", | 97 | qllxmc: "", |
| 64 | isDialog: false, | 98 | isDialog: false, |
| 65 | queryForm: { | 99 | queryForm: { |
| 66 | qllx: "", | 100 | qllx: "", |
| ... | @@ -70,31 +104,33 @@ export default { | ... | @@ -70,31 +104,33 @@ export default { |
| 70 | tableData: { | 104 | tableData: { |
| 71 | total: 0, | 105 | total: 0, |
| 72 | columns: datas.columns(), | 106 | columns: datas.columns(), |
| 73 | data: [] | 107 | data: [], |
| 74 | }, | 108 | }, |
| 75 | detailList: [], | 109 | detailList: [], |
| 76 | bsmSqyw:"", | 110 | bsmSqyw: "", |
| 77 | sqqlRule:"", | 111 | sqqlRule: "", |
| 78 | } | 112 | }; |
| 79 | }, | 113 | }, |
| 80 | methods: { | 114 | methods: { |
| 81 | // 初始化数据 | 115 | // 初始化数据 |
| 82 | queryClick () { | 116 | queryClick() { |
| 83 | this.$startLoading(); | 117 | this.$startLoading(); |
| 84 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => { | 118 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then( |
| 85 | this.$endLoading(); | 119 | (res) => { |
| 86 | if (res.code === 200) { | 120 | this.$endLoading(); |
| 87 | let { total, records } = res.result | 121 | if (res.code === 200) { |
| 88 | this.tableData.total = total ? total : 0 | 122 | let { total, records } = res.result; |
| 89 | this.tableData.data = records ? records : [] | 123 | this.tableData.total = total ? total : 0; |
| 124 | this.tableData.data = records ? records : []; | ||
| 125 | } | ||
| 90 | } | 126 | } |
| 91 | }) | 127 | ); |
| 92 | }, | 128 | }, |
| 93 | //编辑 | 129 | //编辑 |
| 94 | editClick (row) { | 130 | editClick(row) { |
| 95 | this.flag=true; | 131 | this.flag = true; |
| 96 | this.sqqlRule = row; | 132 | this.sqqlRule = row; |
| 97 | this.dialogVisible = true; | 133 | this.dialogVisible = true; |
| 98 | // if (row.nodecode === 'B50') { | 134 | // if (row.nodecode === 'B50') { |
| 99 | // this.detailList = [] | 135 | // this.detailList = [] |
| 100 | // this.bsmSqyw = row.bsmSqyw | 136 | // this.bsmSqyw = row.bsmSqyw |
| ... | @@ -107,10 +143,10 @@ export default { | ... | @@ -107,10 +143,10 @@ export default { |
| 107 | // }) | 143 | // }) |
| 108 | // } | 144 | // } |
| 109 | }, | 145 | }, |
| 110 | //子组件传 过来的 数据 | 146 | //子组件传 过来的 数据 |
| 111 | dialogVisibles(v){ | 147 | dialogVisibles(v) { |
| 112 | this.dialogVisible = v; | 148 | this.dialogVisible = v; |
| 113 | } | 149 | }, |
| 114 | }, | 150 | }, |
| 115 | }; | 151 | }; |
| 116 | </script> | 152 | </script> | ... | ... |
-
Please register or sign in to post a comment