4e9c0faf by renchao@pashanhoo.com

style:增加注释

1 parent 00517d7a
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 16:31:56
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 --> 8 <!-- 表单部分 -->
...@@ -33,84 +38,84 @@ ...@@ -33,84 +38,84 @@
33 </div> 38 </div>
34 </template> 39 </template>
35 <script> 40 <script>
36 import table from "@/utils/mixin/table" 41 import table from "@/utils/mixin/table"
37 import { getQlxxDictList, getChildDictList, refreshDictCache } from "@/api/user.js" 42 import { getQlxxDictList, getChildDictList, refreshDictCache } from "@/api/user.js"
38 import { datas, sendThis } from "./dictionaries" 43 import { datas, sendThis } from "./dictionaries"
39 import editDialog from "./components/editDialog.vue" 44 import editDialog from "./components/editDialog.vue"
40 export default { 45 export default {
41 name: "dictionaries", 46 name: "dictionaries",
42 components: { 47 components: {
43 editDialog 48 editDialog
44 }, 49 },
45 mixins: [table], 50 mixins: [table],
46 mounted () { 51 mounted () {
47 sendThis(this); 52 sendThis(this);
48 }, 53 },
49 data () { 54 data () {
50 return { 55 return {
51 details: { 56 details: {
52 bsmDict: '', 57 bsmDict: '',
53 isenable: 1, 58 isenable: 1,
54 rowData: {} 59 rowData: {}
55 }, 60 },
56 ruleForm: { 61 ruleForm: {
57 dcode: '', 62 dcode: '',
58 dname: '' 63 dname: ''
59 }, 64 },
60 tableData: { 65 tableData: {
61 total: 0, 66 total: 0,
62 columns: datas.columns(), 67 columns: datas.columns(),
63 data: [] 68 data: []
69 }
64 } 70 }
65 }
66 },
67 methods: {
68 // 初始化数据
69 queryClick () {
70 this.$startLoading();
71 getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => {
72 this.$endLoading();
73 let { records, total } = res.result
74 this.tableData.data = records ? records : []
75 this.tableData.total = total ? total : 0
76 })
77 }, 71 },
78 handleRefresh () { 72 methods: {
79 this.$confirm('是否确认刷新', '提示', { 73 // 初始化数据
80 confirmButtonText: '确定', 74 queryClick () {
81 cancelButtonText: '取消', 75 this.$startLoading();
82 type: 'warning' 76 getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => {
83 }).then(() => { 77 this.$endLoading();
84 this.$startLoading() 78 let { records, total } = res.result
85 refreshDictCache().then(res => { 79 this.tableData.data = records ? records : []
86 if (res.code == 200) { 80 this.tableData.total = total ? total : 0
87 let refech = this.$store.dispatch('dict/generateDic')
88 this.$endLoading()
89 refech && this.$message({
90 message: '刷新成功',
91 type: 'success'
92 });
93 } else {
94 this.$message.error(res.message)
95 }
96 }) 81 })
97 }).catch(() => { 82 },
98 this.$message({ 83 handleRefresh () {
99 type: 'info', 84 this.$confirm('是否确认刷新', '提示', {
100 message: '取消刷新' 85 confirmButtonText: '确定',
86 cancelButtonText: '取消',
87 type: 'warning'
88 }).then(() => {
89 this.$startLoading()
90 refreshDictCache().then(res => {
91 if (res.code == 200) {
92 let refech = this.$store.dispatch('dict/generateDic')
93 this.$endLoading()
94 refech && this.$message({
95 message: '刷新成功',
96 type: 'success'
97 });
98 } else {
99 this.$message.error(res.message)
100 }
101 })
102 }).catch(() => {
103 this.$message({
104 type: 'info',
105 message: '取消刷新'
106 });
101 }); 107 });
102 }); 108 },
103 }, 109 // 修改
104 // 修改 110 editClick (row, val) {
105 editClick (row, val) { 111 this.details.rowData = row
106 this.details.rowData = row 112 this.details.isenable = val
107 this.details.isenable = val 113 this.details.bsmDict = row.bsmDict
108 this.details.bsmDict = row.bsmDict 114 this.$popupDialog("字典信息", "system/dictionaries/components/editDialog", this.details)
109 this.$popupDialog("字典信息", "system/dictionaries/components/editDialog", this.details) 115 }
110 } 116 }
111 } 117 }
112 }
113 </script> 118 </script>
114 <style scoped lang="scss"> 119 <style scoped lang="scss">
115 @import "~@/styles/public.scss"; 120 @import "~@/styles/public.scss";
116 </style> 121 </style>
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 16:42:26
5 -->
1 <template> 6 <template>
2 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> 7 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules">
3 <el-row> 8 <el-row>
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 16:31:05
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 --> 8 <!-- 表单部分 -->
...@@ -198,7 +203,7 @@ ...@@ -198,7 +203,7 @@
198 "/djbworkFrameview?bsmSlsq=" + 203 "/djbworkFrameview?bsmSlsq=" +
199 item.bsmSlsq + 204 item.bsmSlsq +
200 "&bestepid=" + 205 "&bestepid=" +
201 item.bestepid+ 206 item.bestepid +
202 "&bsmBusiness=" + 207 "&bsmBusiness=" +
203 "&viewtype=1" 208 "&viewtype=1"
204 ); 209 );
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 14:47:30
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 --> 8 <!-- 表单部分 -->
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 14:47:36
5 -->
1 <template> 6 <template>
2 <!-- 抵押权利信息查询 --> 7 <!-- 抵押权利信息查询 -->
3 <div class="from-clues"> 8 <div class="from-clues">
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:23:28
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <el-tabs type="card" v-model="activeName" @tab-click="handleTabClick" v-if="!isJump"> 8 <el-tabs type="card" v-model="activeName" @tab-click="handleTabClick" v-if="!isJump">
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:23:44
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 国有建设用地使用权 --> 8 <!-- 表单部分 国有建设用地使用权 -->
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:23:51
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 --> 8 <!-- 表单部分 -->
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:26:40
5 -->
1 <template> 6 <template>
2 <!-- 主体权利信息查询 --> 7 <!-- 主体权利信息查询 -->
3 <div class="from-clues"> 8 <div class="from-clues">
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:26:46
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 --> 8 <!-- 表单部分 -->
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:26:51
5 -->
1 <template> 6 <template>
2 <!-- 主体权利信息查询 --> 7 <!-- 主体权利信息查询 -->
3 <div class="from-clues"> 8 <div class="from-clues">
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:26:55
5 -->
1 <template> 6 <template>
2 <!-- 主体权利信息查询 --> 7 <!-- 主体权利信息查询 -->
3 <div class="from-clues"> 8 <div class="from-clues">
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:27:00
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 --> 8 <!-- 表单部分 -->
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:27:13
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 国有建设用地使用权 --> 8 <!-- 表单部分 国有建设用地使用权 -->
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:27:16
5 -->
1 <template> 6 <template>
2 <div class="from-clues"> 7 <div class="from-clues">
3 <!-- 表单部分 --> 8 <!-- 表单部分 -->
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:27:19
5 -->
1 <template> 6 <template>
2 <!-- 主体权利信息查询 --> 7 <!-- 主体权利信息查询 -->
3 <div class="from-clues"> 8 <div class="from-clues">
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:27:26
5 -->
1 <template> 6 <template>
2 <!-- 主体权利信息查询 --> 7 <!-- 主体权利信息查询 -->
3 <div class="from-clues"> 8 <div class="from-clues">
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-13 15:27:34
5 -->
1 <template> 6 <template>
2 <!-- 主体权利信息查询 --> 7 <!-- 主体权利信息查询 -->
3 <div class="from-clues"> 8 <div class="from-clues">
......