73dc09e3 by jiaozeping@pashanhoo.com

代码修改

1 parent 5d22d458
...@@ -51,8 +51,6 @@ export default { ...@@ -51,8 +51,6 @@ export default {
51 } 51 }
52 }, 52 },
53 methods: { 53 methods: {
54 fetchData () {
55 },
56 editClick () { 54 editClick () {
57 let LODOP = getLodop(); 55 let LODOP = getLodop();
58 LODOP.SET_PRINT_MODE("PRINT_SETUP_PROGRAM", true); 56 LODOP.SET_PRINT_MODE("PRINT_SETUP_PROGRAM", true);
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
21 </el-col> 21 </el-col>
22 <el-col :span="6" class="btnColRight"> 22 <el-col :span="6" class="btnColRight">
23 <el-form-item> 23 <el-form-item>
24 <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button> 24 <el-button type="primary" icon="el-icon-search" @click="queryClick">查询</el-button>
25 <el-button type="primary" icon="el-icon-search" @click="zslqClick()">证书领取</el-button> 25 <el-button type="primary" icon="el-icon-search" @click="zslqClick()">证书领取</el-button>
26 </el-form-item> 26 </el-form-item>
27 </el-col> 27 </el-col>
...@@ -64,8 +64,7 @@ export default { ...@@ -64,8 +64,7 @@ export default {
64 } 64 }
65 }, 65 },
66 methods: { 66 methods: {
67 // 列表渲染接口 67 queryClick () {
68 fetchData () {
69 this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq; 68 this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
70 getCertificateList(this.ruleForm).then(res => { 69 getCertificateList(this.ruleForm).then(res => {
71 if (res.code === 200) { 70 if (res.code === 200) {
......
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
119 issueCertificate(this.ruleForm).then(res => { 119 issueCertificate(this.ruleForm).then(res => {
120 if (res.code == 200) { 120 if (res.code == 200) {
121 this.$message.success('保存成功'); 121 this.$message.success('保存成功');
122 this.$parent.fetchData(); 122 this.$parent.queryClick();
123 this.$emit("input", false); 123 this.$emit("input", false);
124 } else { 124 } else {
125 this.$message.error(res.message) 125 this.$message.error(res.message)
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 </el-col> 18 </el-col>
19 <el-col :span="4" class="btnColRight"> 19 <el-col :span="4" 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-form-item> 22 </el-form-item>
23 </el-col> 23 </el-col>
24 </el-row> 24 </el-row>
...@@ -63,11 +63,7 @@ export default { ...@@ -63,11 +63,7 @@ export default {
63 }; 63 };
64 }, 64 },
65 methods: { 65 methods: {
66 init (e) { 66 queryClick(){
67 this.fetchData()
68 },
69 // 列表渲染接口
70 fetchData () {
71 getErrorLogList({ ...this.queryForm, ...this.pageData }).then(res => { 67 getErrorLogList({ ...this.queryForm, ...this.pageData }).then(res => {
72 if (res.code === 200) { 68 if (res.code === 200) {
73 let { total, records } = res.result 69 let { total, records } = res.result
...@@ -79,9 +75,6 @@ export default { ...@@ -79,9 +75,6 @@ export default {
79 } 75 }
80 }) 76 })
81 }, 77 },
82 queryClick(){
83 this.fetchData();
84 },
85 viewDetail(e){ 78 viewDetail(e){
86 this.$popup("错误日志", "xtjk/cwrz/components/viewDialog", { 79 this.$popup("错误日志", "xtjk/cwrz/components/viewDialog", {
87 formData: { 80 formData: {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 </el-col> 18 </el-col>
19 <el-col :span="4" class="btnColRight"> 19 <el-col :span="4" 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-form-item> 22 </el-form-item>
23 </el-col> 23 </el-col>
24 </el-row> 24 </el-row>
...@@ -63,11 +63,7 @@ export default { ...@@ -63,11 +63,7 @@ export default {
63 }; 63 };
64 }, 64 },
65 methods: { 65 methods: {
66 init (e) { 66 queryClick(){
67 this.fetchData()
68 },
69 // 列表渲染接口
70 fetchData () {
71 getOperationLogList({ ...this.queryForm, ...this.pageData }).then(res => { 67 getOperationLogList({ ...this.queryForm, ...this.pageData }).then(res => {
72 if (res.code === 200) { 68 if (res.code === 200) {
73 let { total, records } = res.result 69 let { total, records } = res.result
...@@ -76,9 +72,6 @@ export default { ...@@ -76,9 +72,6 @@ export default {
76 } 72 }
77 }) 73 })
78 }, 74 },
79 queryClick(){
80 this.fetchData();
81 },
82 viewDetail(e){ 75 viewDetail(e){
83 this.$popup("操作日志", "xtjk/czrz/components/viewDialog", { 76 this.$popup("操作日志", "xtjk/czrz/components/viewDialog", {
84 formData: { 77 formData: {
......
...@@ -157,11 +157,8 @@ export default { ...@@ -157,11 +157,8 @@ export default {
157 }; 157 };
158 }, 158 },
159 methods: { 159 methods: {
160 init (e) {
161 this.fetchData()
162 },
163 // 列表渲染接口 160 // 列表渲染接口
164 fetchData () { 161 queryClick () {
165 getServerInfo().then(res => { 162 getServerInfo().then(res => {
166 if (res.code === 200) { 163 if (res.code === 200) {
167 this.serverData = res.result 164 this.serverData = res.result
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
24 </el-col> 24 </el-col>
25 <el-col :span="2" class="btnColRight"> 25 <el-col :span="2" class="btnColRight">
26 <el-form-item> 26 <el-form-item>
27 <el-button type="primary" @click="fetchData()">查询</el-button> 27 <el-button type="primary" @click="queryClick">查询</el-button>
28 </el-form-item> 28 </el-form-item>
29 </el-col> 29 </el-col>
30 </el-row> 30 </el-row>
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
84 closeDialog () { 84 closeDialog () {
85 this.$emit("closeDialog") 85 this.$emit("closeDialog")
86 }, 86 },
87 fetchData () { 87 queryClick () {
88 this.queryForm.sqywbm = this.sqywInfo.djywbm; 88 this.queryForm.sqywbm = this.sqywInfo.djywbm;
89 selectCfdj({ ...this.queryForm, ...this.pageData }) 89 selectCfdj({ ...this.queryForm, ...this.pageData })
90 .then((res) => { 90 .then((res) => {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
33 </el-col> 33 </el-col>
34 <el-col :span="2" class="btnColRight"> 34 <el-col :span="2" class="btnColRight">
35 <el-form-item> 35 <el-form-item>
36 <el-button type="primary" @click="queryClick()">查询</el-button> 36 <el-button type="primary" @click="queryClick">查询</el-button>
37 </el-form-item> 37 </el-form-item>
38 </el-col> 38 </el-col>
39 </el-row> 39 </el-row>
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
89 closeDialog() { 89 closeDialog() {
90 this.$emit("closeDialog"); 90 this.$emit("closeDialog");
91 }, 91 },
92 fetchData() { 92 queryClick() {
93 this.queryForm.sqywbm = this.sqywInfo.djywbm; 93 this.queryForm.sqywbm = this.sqywInfo.djywbm;
94 selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { 94 selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => {
95 if (res.code === 200) { 95 if (res.code === 200) {
......
...@@ -12,7 +12,7 @@ export default { ...@@ -12,7 +12,7 @@ export default {
12 }, 12 },
13 queryClick () { 13 queryClick () {
14 this.pageData.currentPage = 1 14 this.pageData.currentPage = 1
15 this.fetchData(); 15 // this.fetchData();
16 } 16 }
17 } 17 }
18 } 18 }
......
...@@ -73,12 +73,8 @@ export default { ...@@ -73,12 +73,8 @@ export default {
73 methods: { 73 methods: {
74 // 查询 74 // 查询
75 queryClick () { 75 queryClick () {
76 this.fetchData();
77 }, 76 },
78 77
79 // 初始化数据
80 fetchData () {
81 },
82 }, 78 },
83 }; 79 };
84 </script> 80 </script>
......
...@@ -83,11 +83,8 @@ export default { ...@@ -83,11 +83,8 @@ export default {
83 methods: { 83 methods: {
84 // 查询 84 // 查询
85 queryClick() { 85 queryClick() {
86 this.fetchData();
87 }, 86 },
88 87
89 // 初始化数据
90 fetchData() {},
91 }, 88 },
92 }; 89 };
93 </script> 90 </script>
......
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
140 this.$emit("input", false); 140 this.$emit("input", false);
141 this.$refs['ruleForm'].resetFields(); 141 this.$refs['ruleForm'].resetFields();
142 this.resetTableFields(); 142 this.resetTableFields();
143 this.$parent.fetchData(); 143 this.$parent.queryClick();
144 } else { 144 } else {
145 this.$message.error(res.message) 145 this.$message.error(res.message)
146 } 146 }
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
27 27
28 <el-col :span="9" class="btnColRight"> 28 <el-col :span="9" class="btnColRight">
29 <el-form-item> 29 <el-form-item>
30 <el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button> 30 <el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
31 <el-button type="primary" @click="openDialog()">新增</el-button> 31 <el-button type="primary" @click="openDialog()">新增</el-button>
32 </el-form-item> 32 </el-form-item>
33 </el-col> 33 </el-col>
...@@ -96,19 +96,6 @@ export default { ...@@ -96,19 +96,6 @@ export default {
96 } 96 }
97 }, 97 },
98 methods: { 98 methods: {
99 init (e) {
100 this.fetchData()
101 },
102 // 列表渲染接口
103 fetchData () {
104 getZsglffList({ ...this.ruleForm, ...this.pageData }).then(res => {
105 if (res.code === 200) {
106 let { total, records } = res.result
107 this.tableData.total = total;
108 this.tableData.data = records ? records : []
109 }
110 })
111 },
112 openDialog (bsmBatch) { 99 openDialog (bsmBatch) {
113 if (bsmBatch) { 100 if (bsmBatch) {
114 this.$nextTick(() => { 101 this.$nextTick(() => {
...@@ -123,7 +110,13 @@ export default { ...@@ -123,7 +110,13 @@ export default {
123 this.isDialog = true; 110 this.isDialog = true;
124 }, 111 },
125 queryClick () { 112 queryClick () {
126 this.fetchData() 113 getZsglffList({ ...this.ruleForm, ...this.pageData }).then(res => {
114 if (res.code === 200) {
115 let { total, records } = res.result
116 this.tableData.total = total;
117 this.tableData.data = records ? records : []
118 }
119 })
127 }, 120 },
128 //确定证书分发 121 //确定证书分发
129 confrimVerify (item) { 122 confrimVerify (item) {
...@@ -135,7 +128,7 @@ export default { ...@@ -135,7 +128,7 @@ export default {
135 confirmZsff({ "bsmBatch": item.bsmBatch }).then(res => { 128 confirmZsff({ "bsmBatch": item.bsmBatch }).then(res => {
136 if (res.code == 200) { 129 if (res.code == 200) {
137 this.$message.success("分发成功") 130 this.$message.success("分发成功")
138 this.fetchData(); 131 this.queryClick();
139 } else { 132 } else {
140 this.$message.error(res.message) 133 this.$message.error(res.message)
141 } 134 }
...@@ -158,7 +151,7 @@ export default { ...@@ -158,7 +151,7 @@ export default {
158 if (res.code == 200) { 151 if (res.code == 200) {
159 this.$message.success("删除成功") 152 this.$message.success("删除成功")
160 this.handleDel() 153 this.handleDel()
161 this.fetchData() 154 this.queryClick()
162 } else { 155 } else {
163 this.$message.error(res.message) 156 this.$message.error(res.message)
164 } 157 }
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
147 this.$emit("input", false); 147 this.$emit("input", false);
148 this.$refs['ruleForm'].resetFields(); 148 this.$refs['ruleForm'].resetFields();
149 this.resetTableFields(); 149 this.resetTableFields();
150 this.$parent.fetchData(); 150 this.$parent.queryClick();
151 } else { 151 } else {
152 this.$message.error(res.message); 152 this.$message.error(res.message);
153 } 153 }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
25 </el-col> 25 </el-col>
26 <el-col :span="9" class="btnColRight"> 26 <el-col :span="9" class="btnColRight">
27 <el-form-item> 27 <el-form-item>
28 <el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button> 28 <el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
29 <el-button type="primary" @click="openDialog()">新增</el-button> 29 <el-button type="primary" @click="openDialog()">新增</el-button>
30 </el-form-item> 30 </el-form-item>
31 </el-col> 31 </el-col>
...@@ -93,16 +93,6 @@ export default { ...@@ -93,16 +93,6 @@ export default {
93 } 93 }
94 }, 94 },
95 methods: { 95 methods: {
96 // 列表渲染接口
97 fetchData () {
98 getZsglrkList({ ...this.ruleForm, ...this.pageData }).then(res => {
99 if (res.code === 200) {
100 let { total, records } = res.result
101 this.tableData.total = total;
102 this.tableData.data = records ? records : []
103 }
104 })
105 },
106 openDialog (bsmBatch) { 96 openDialog (bsmBatch) {
107 if (bsmBatch) { 97 if (bsmBatch) {
108 this.$nextTick(() => { 98 this.$nextTick(() => {
...@@ -116,7 +106,13 @@ export default { ...@@ -116,7 +106,13 @@ export default {
116 this.isDialog = true; 106 this.isDialog = true;
117 }, 107 },
118 queryClick () { 108 queryClick () {
119 this.fetchData() 109 getZsglrkList({ ...this.ruleForm, ...this.pageData }).then(res => {
110 if (res.code === 200) {
111 let { total, records } = res.result
112 this.tableData.total = total;
113 this.tableData.data = records ? records : []
114 }
115 })
120 }, 116 },
121 //删除证书入库数据 117 //删除证书入库数据
122 delZsrk (item) { 118 delZsrk (item) {
...@@ -129,7 +125,7 @@ export default { ...@@ -129,7 +125,7 @@ export default {
129 if (res.code == 200) { 125 if (res.code == 200) {
130 this.$message.success("删除成功") 126 this.$message.success("删除成功")
131 this.handleDel() 127 this.handleDel()
132 this.fetchData() 128 this.queryClick()
133 } else { 129 } else {
134 this.$message.error(res.message) 130 this.$message.error(res.message)
135 } 131 }
...@@ -151,7 +147,7 @@ export default { ...@@ -151,7 +147,7 @@ export default {
151 verifyZsrk({ "bsmBatch": item.bsmBatch }).then(res => { 147 verifyZsrk({ "bsmBatch": item.bsmBatch }).then(res => {
152 if (res.code == 200) { 148 if (res.code == 200) {
153 this.$message.success("审核成功") 149 this.$message.success("审核成功")
154 this.fetchData(); 150 this.queryClick();
155 } else { 151 } else {
156 this.$message.error(res.message) 152 this.$message.error(res.message)
157 } 153 }
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
6 <el-row> 6 <el-row>
7 <el-col :span="5"> 7 <el-col :span="5">
8 <el-form-item label="印刷序列号" prop="ysxlh"> 8 <el-form-item label="印刷序列号" prop="ysxlh">
9 <el-input v-model="ruleForm.ysxlh" @clear="fetchData()" clearable placeholder="请输入印刷序列号"></el-input> 9 <el-input v-model="ruleForm.ysxlh" clearable placeholder="请输入印刷序列号"></el-input>
10 </el-form-item> 10 </el-form-item>
11 </el-col> 11 </el-col>
12 <el-col :span="5"> 12 <el-col :span="5">
13 <el-form-item label="证书类型" prop="zslx"> 13 <el-form-item label="证书类型" prop="zslx">
14 <el-select v-model="ruleForm.zslx" @change="fetchData()" class="width100" placeholder="请选择证书类型" clearable> 14 <el-select v-model="ruleForm.zslx" class="width100" placeholder="请选择证书类型" clearable>
15 <el-option v-for="item in zslxArr" :key="item.value" :label="item.label" :value="item.value"> 15 <el-option v-for="item in zslxArr" :key="item.value" :label="item.label" :value="item.value">
16 </el-option> 16 </el-option>
17 </el-select> 17 </el-select>
...@@ -19,18 +19,18 @@ ...@@ -19,18 +19,18 @@
19 </el-col> 19 </el-col>
20 <el-col :span="5"> 20 <el-col :span="5">
21 <el-form-item label="业务号" label-width="60px" prop="ywh"> 21 <el-form-item label="业务号" label-width="60px" prop="ywh">
22 <el-input v-model="ruleForm.ywh" @clear="fetchData()" clearable placeholder="请输入业务号"></el-input> 22 <el-input v-model="ruleForm.ywh" clearable placeholder="请输入业务号"></el-input>
23 </el-form-item> 23 </el-form-item>
24 </el-col> 24 </el-col>
25 <el-col :span="6"> 25 <el-col :span="6">
26 <el-form-item label="不动产权证号" label-width="100px" prop="bdcqzh"> 26 <el-form-item label="不动产权证号" label-width="100px" prop="bdcqzh">
27 <el-input v-model="ruleForm.bdcqzh" @clear="fetchData()" placeholder="请输入不动产权证号"></el-input> 27 <el-input v-model="ruleForm.bdcqzh" placeholder="请输入不动产权证号"></el-input>
28 </el-form-item> 28 </el-form-item>
29 </el-col> 29 </el-col>
30 30
31 <el-col :span="3" class="btnColRight"> 31 <el-col :span="3" class="btnColRight">
32 <el-form-item> 32 <el-form-item>
33 <el-button type="primary" native-type="submit" icon="el-icon-search" @click="fetchData()">查询</el-button> 33 <el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button>
34 <el-button @click="moreQueryClick()">高级查询</el-button> 34 <el-button @click="moreQueryClick()">高级查询</el-button>
35 </el-form-item> 35 </el-form-item>
36 </el-col> 36 </el-col>
...@@ -80,8 +80,7 @@ export default { ...@@ -80,8 +80,7 @@ export default {
80 }; 80 };
81 }, 81 },
82 methods: { 82 methods: {
83 // 列表渲染接口 83 queryClick () {
84 fetchData () {
85 getZssyqkList({ ...this.ruleForm, ...this.pageData }).then(res => { 84 getZssyqkList({ ...this.ruleForm, ...this.pageData }).then(res => {
86 if (res.code === 200) { 85 if (res.code === 200) {
87 let { total, records } = res.result 86 let { total, records } = res.result
......