feat:系统管理
Showing
4 changed files
with
33 additions
and
29 deletions
... | @@ -6,19 +6,19 @@ | ... | @@ -6,19 +6,19 @@ |
6 | <el-row> | 6 | <el-row> |
7 | <el-col :span="5"> | 7 | <el-col :span="5"> |
8 | <el-form-item label="查询编号"> | 8 | <el-form-item label="查询编号"> |
9 | <el-input placeholder="请输入编号" @clear="queryClick()" v-model="queryForm.cxbh" class="width100" clearable> | 9 | <el-input placeholder="请输入编号" @clear="queryClick" v-model="queryForm.cxbh" class="width100" clearable> |
10 | </el-input> | 10 | </el-input> |
11 | </el-form-item> | 11 | </el-form-item> |
12 | </el-col> | 12 | </el-col> |
13 | <el-col :span="5"> | 13 | <el-col :span="5"> |
14 | <el-form-item label="申请人"> | 14 | <el-form-item label="申请人"> |
15 | <el-input placeholder="请输入申请人" @clear="queryClick()" v-model="queryForm.sqr" class="width100" clearable> | 15 | <el-input placeholder="请输入申请人" @clear="queryClick" v-model="queryForm.sqr" class="width100" clearable> |
16 | </el-input> | 16 | </el-input> |
17 | </el-form-item> | 17 | </el-form-item> |
18 | </el-col> | 18 | </el-col> |
19 | <el-col :span="14" class="btnColRight"> | 19 | <el-col :span="14" class="btnColRight"> |
20 | <el-form-item> | 20 | <el-form-item> |
21 | <el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button> | 21 | <el-button type="primary" native-type="submit" @click="queryClick">查询</el-button> |
22 | <el-button @click="moreQueryClick()">高级查询</el-button> | 22 | <el-button @click="moreQueryClick()">高级查询</el-button> |
23 | </el-form-item> | 23 | </el-form-item> |
24 | </el-col> | 24 | </el-col> |
... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
27 | </div> | 27 | </div> |
28 | <!-- 表格 --> | 28 | <!-- 表格 --> |
29 | <div class="from-clues-content"> | 29 | <div class="from-clues-content"> |
30 | <lb-table :page-size="pageData.size" border class="loadingtext" @sort-change="handleSort" | 30 | <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort" |
31 | :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" | 31 | :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" |
32 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> | 32 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> |
33 | </lb-table> | 33 | </lb-table> | ... | ... |
... | @@ -6,17 +6,17 @@ | ... | @@ -6,17 +6,17 @@ |
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-input v-model="ruleForm.dcode" @clear="fetchData()" clearable placeholder="字典类型编码"></el-input> | 9 | <el-input v-model="ruleForm.dcode" @clear="queryClick" clearable placeholder="字典类型编码"></el-input> |
10 | </el-form-item> | 10 | </el-form-item> |
11 | </el-col> | 11 | </el-col> |
12 | <el-col :span="6"> | 12 | <el-col :span="6"> |
13 | <el-form-item label="字典类型名称"> | 13 | <el-form-item label="字典类型名称"> |
14 | <el-input v-model="ruleForm.dname" @clear="fetchData()" clearable placeholder="字典类型名称"></el-input> | 14 | <el-input v-model="ruleForm.dname" @clear="queryClick" clearable placeholder="字典类型名称"></el-input> |
15 | </el-form-item> | 15 | </el-form-item> |
16 | </el-col> | 16 | </el-col> |
17 | <el-col :span="12" class="btnColRight"> | 17 | <el-col :span="12" class="btnColRight"> |
18 | <el-form-item> | 18 | <el-form-item> |
19 | <el-button type="primary" native-type="submit" icon="el-icon-search" @click="fetchData">查询</el-button> | 19 | <el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button> |
20 | <el-button icon="el-icon-refresh" @click="handleRefresh">刷新缓存</el-button> | 20 | <el-button icon="el-icon-refresh" @click="handleRefresh">刷新缓存</el-button> |
21 | </el-form-item> | 21 | </el-form-item> |
22 | </el-col> | 22 | </el-col> |
... | @@ -25,9 +25,9 @@ | ... | @@ -25,9 +25,9 @@ |
25 | </div> | 25 | </div> |
26 | <!-- 表格 --> | 26 | <!-- 表格 --> |
27 | <div class="from-clues-content"> | 27 | <div class="from-clues-content"> |
28 | <lb-table :page-size="pageData.pageSize" :current-page.sync="pageData.currentPage" :total="tableData.total" | 28 | <lb-table :page-size="pageData.pageSize" class="loadingtext" :current-page.sync="pageData.currentPage" |
29 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 29 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
30 | :data="tableData.data"> | 30 | :column="tableData.columns" :data="tableData.data"> |
31 | </lb-table> | 31 | </lb-table> |
32 | </div> | 32 | </div> |
33 | <editDialog v-model="isDialog" :details="details" /> | 33 | <editDialog v-model="isDialog" :details="details" /> |
... | @@ -46,6 +46,7 @@ export default { | ... | @@ -46,6 +46,7 @@ export default { |
46 | mixins: [table], | 46 | mixins: [table], |
47 | mounted () { | 47 | mounted () { |
48 | sendThis(this); | 48 | sendThis(this); |
49 | this.queryClick() | ||
49 | }, | 50 | }, |
50 | data () { | 51 | data () { |
51 | return { | 52 | return { |
... | @@ -68,8 +69,10 @@ export default { | ... | @@ -68,8 +69,10 @@ export default { |
68 | }, | 69 | }, |
69 | methods: { | 70 | methods: { |
70 | // 初始化数据 | 71 | // 初始化数据 |
71 | fetchData () { | 72 | queryClick () { |
73 | this.$startLoading(); | ||
72 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { | 74 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { |
75 | this.$endLoading(); | ||
73 | let { records, total } = res.result | 76 | let { records, total } = res.result |
74 | this.tableData.data = records ? records : [] | 77 | this.tableData.data = records ? records : [] |
75 | this.tableData.total = total ? total : 0 | 78 | this.tableData.total = total ? total : 0 | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
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="fetchData()" class="width100" filterable clearable | 9 | <el-select v-model="queryForm.qllx" @change="queryClick" class="width100" filterable clearable |
10 | placeholder="请选择权利类型"> | 10 | placeholder="请选择权利类型"> |
11 | <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode"> | 11 | <el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode"> |
12 | </el-option> | 12 | </el-option> |
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="18" class="btnColRight"> | 16 | <el-col :span="18" class="btnColRight"> |
17 | <el-form-item> | 17 | <el-form-item> |
18 | <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button> | 18 | <el-button type="primary" icon="el-icon-search" @click="queryClick">查询</el-button> |
19 | <el-button @click="moreQueryClick()">高级查询</el-button> | 19 | <el-button @click="moreQueryClick()">高级查询</el-button> |
20 | </el-form-item> | 20 | </el-form-item> |
21 | </el-col> | 21 | </el-col> |
... | @@ -24,9 +24,9 @@ | ... | @@ -24,9 +24,9 @@ |
24 | </div> | 24 | </div> |
25 | <!-- 表格 --> | 25 | <!-- 表格 --> |
26 | <div class="from-clues-content"> | 26 | <div class="from-clues-content"> |
27 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" | 27 | <lb-table :page-size="pageData.size" class="loadingtext" :current-page.sync="pageData.current" |
28 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 28 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
29 | :data="tableData.data"> | 29 | :column="tableData.columns" :data="tableData.data"> |
30 | </lb-table> | 30 | </lb-table> |
31 | </div> | 31 | </div> |
32 | <editDialog v-model="isDialog" :details="details" /> | 32 | <editDialog v-model="isDialog" :details="details" /> |
... | @@ -46,6 +46,7 @@ export default { | ... | @@ -46,6 +46,7 @@ export default { |
46 | mixins: [table], | 46 | mixins: [table], |
47 | mounted () { | 47 | mounted () { |
48 | sendThis(this); | 48 | sendThis(this); |
49 | this.queryClick() | ||
49 | }, | 50 | }, |
50 | computed: { | 51 | computed: { |
51 | ...mapGetters(['dictData']) | 52 | ...mapGetters(['dictData']) |
... | @@ -66,9 +67,10 @@ export default { | ... | @@ -66,9 +67,10 @@ export default { |
66 | }, | 67 | }, |
67 | methods: { | 68 | methods: { |
68 | // 初始化数据 | 69 | // 初始化数据 |
69 | fetchData () { | 70 | queryClick () { |
71 | this.$startLoading(); | ||
70 | sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => { | 72 | sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => { |
71 | this.loading = false | 73 | this.$endLoading(); |
72 | let { records, total } = res.result | 74 | let { records, total } = res.result |
73 | this.tableData.data = records ? records : [] | 75 | this.tableData.data = records ? records : [] |
74 | this.tableData.total = total ? total : 0 | 76 | this.tableData.total = total ? total : 0 | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
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 v-model="queryForm.qllx" @change="queryClick" filterable class="width100" clearable |
10 | placeholder="请选择权利类型"> | 10 | placeholder="请选择权利类型"> |
11 | <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value"> | 11 | <el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value"> |
12 | </el-option> | 12 | </el-option> |
... | @@ -15,13 +15,13 @@ | ... | @@ -15,13 +15,13 @@ |
15 | </el-col> | 15 | </el-col> |
16 | <el-col :span="6"> | 16 | <el-col :span="6"> |
17 | <el-form-item label="登记业务编码"> | 17 | <el-form-item label="登记业务编码"> |
18 | <el-input placeholder="请输入登记业务编码" @clear="queryClick()" v-model="queryForm.djywbm" clearable> | 18 | <el-input placeholder="请输入登记业务编码" @clear="queryClick" v-model="queryForm.djywbm" clearable> |
19 | </el-input> | 19 | </el-input> |
20 | </el-form-item> | 20 | </el-form-item> |
21 | </el-col> | 21 | </el-col> |
22 | <el-col :span="12" class="btnColRight"> | 22 | <el-col :span="12" class="btnColRight"> |
23 | <el-form-item> | 23 | <el-form-item> |
24 | <el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick()">查询</el-button> | 24 | <el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button> |
25 | </el-form-item> | 25 | </el-form-item> |
26 | </el-col> | 26 | </el-col> |
27 | </el-row> | 27 | </el-row> |
... | @@ -29,9 +29,9 @@ | ... | @@ -29,9 +29,9 @@ |
29 | </div> | 29 | </div> |
30 | <!-- 表格 --> | 30 | <!-- 表格 --> |
31 | <div class="from-clues-content"> | 31 | <div class="from-clues-content"> |
32 | <lb-table :page-size="pageData.pageSize" :current-page.sync="pageData.currentPage" :total="tableData.total" | 32 | <lb-table :page-size="pageData.pageSize" class="loadingtext" :current-page.sync="pageData.currentPage" |
33 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 33 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
34 | :data="tableData.data"> | 34 | :column="tableData.columns" :data="tableData.data"> |
35 | </lb-table> | 35 | </lb-table> |
36 | </div> | 36 | </div> |
37 | <editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" /> | 37 | <editDialog v-model="isDialog" :detailList="detailList" :bsmSqyw="bsmSqyw" /> |
... | @@ -50,6 +50,7 @@ export default { | ... | @@ -50,6 +50,7 @@ export default { |
50 | mixins: [table], | 50 | mixins: [table], |
51 | mounted () { | 51 | mounted () { |
52 | sendThis(this); | 52 | sendThis(this); |
53 | this.queryClick() | ||
53 | }, | 54 | }, |
54 | data () { | 55 | data () { |
55 | return { | 56 | return { |
... | @@ -69,13 +70,11 @@ export default { | ... | @@ -69,13 +70,11 @@ export default { |
69 | } | 70 | } |
70 | }, | 71 | }, |
71 | methods: { | 72 | methods: { |
72 | //查询 | ||
73 | queryClick () { | ||
74 | this.fetchData(); | ||
75 | }, | ||
76 | // 初始化数据 | 73 | // 初始化数据 |
77 | fetchData () { | 74 | queryClick () { |
75 | this.$startLoading(); | ||
78 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => { | 76 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => { |
77 | this.$endLoading(); | ||
79 | if (res.code === 200) { | 78 | if (res.code === 200) { |
80 | let { total, records } = res.result | 79 | let { total, records } = res.result |
81 | this.tableData.total = total ? total : 0 | 80 | this.tableData.total = total ? total : 0 | ... | ... |
-
Please register or sign in to post a comment