21b826f4 by 任超
2 parents 18cbafaa 8658247a
...@@ -164,3 +164,12 @@ export function judgeUserTaskPermission (params) { ...@@ -164,3 +164,12 @@ export function judgeUserTaskPermission (params) {
164 params 164 params
165 }) 165 })
166 } 166 }
167
168 // 获取申请书数据
169 export function getPrintApplicationInfo (data) {
170 return request({
171 url: SERVER.SERVERAPI + '/rest/business/workFlow/getPrintApplicationInfo',
172 method: 'post',
173 data
174 })
175 }
......
...@@ -171,3 +171,48 @@ export function setAllRead () { ...@@ -171,3 +171,48 @@ export function setAllRead () {
171 method: 'get' 171 method: 'get'
172 }) 172 })
173 } 173 }
174
175 //获取打印模板列表
176 export function selectPrintTemplateList (data) {
177 return request({
178 url: SERVER.SERVERAPI + '/rest/system/print/selectPrintTemplateList',
179 method: 'post',
180 data
181 })
182 }
183
184 //新增打印模板列表
185 export function addPrintTemplate (data) {
186 return request({
187 url: SERVER.SERVERAPI + '/rest/system/print/addPrintTemplate',
188 method: 'post',
189 data
190 })
191 }
192
193 //编辑打印模板列表
194 export function editPrintTemplate (data) {
195 return request({
196 url: SERVER.SERVERAPI + '/rest/system/print/editPrintTemplate',
197 method: 'post',
198 data
199 })
200 }
201
202 //删除打印模板列表
203 export function delPrintTemplate (params) {
204 return request({
205 url: SERVER.SERVERAPI + '/rest/system/print/delPrintTemplate',
206 method: 'get',
207 params: params
208 })
209 }
210
211 //根据模板编号获取打印模板
212 export function getPrintTemplateByCode (params) {
213 return request({
214 url: SERVER.SERVERAPI + '/rest/system/print/getPrintTemplateByCode',
215 method: 'get',
216 params: params
217 })
218 }
......
...@@ -12,9 +12,9 @@ export default { ...@@ -12,9 +12,9 @@ export default {
12 ...mapGetters(['dictData']), 12 ...mapGetters(['dictData']),
13 }, 13 },
14 mounted () { 14 mounted () {
15 if (this.fetchData) { 15 // if (this.fetchData) {
16 this.fetchData() 16 // this.fetchData()
17 } 17 // }
18 if (this.queryClick) { 18 if (this.queryClick) {
19 this.queryClick() 19 this.queryClick()
20 } 20 }
...@@ -27,9 +27,9 @@ export default { ...@@ -27,9 +27,9 @@ export default {
27 }, 27 },
28 handleCurrentChange (val) { 28 handleCurrentChange (val) {
29 this.pageData.currentPage = val 29 this.pageData.currentPage = val
30 if (this.fetchData) { 30 // if (this.fetchData) {
31 this.fetchData() 31 // this.fetchData()
32 } 32 // }
33 console.log('this.queryClick,', this.queryClick, 'this.fetchData', this.fetchData); 33 console.log('this.queryClick,', this.queryClick, 'this.fetchData', this.fetchData);
34 if (this.queryClick) { 34 if (this.queryClick) {
35 this.queryClick() 35 this.queryClick()
......
1 <template>
2 <dialogBox title="打印模板" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="30%"
3 @closeDialog="closeDialog" v-model="myValue">
4 <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules">
5 <el-row>
6 <el-col :span="24">
7 <el-form-item label="模板编码:" prop="tmpno">
8 <el-input v-model="ruleForm.tmpno" :disabled="editFlag"></el-input>
9 </el-form-item>
10 </el-col>
11 </el-row>
12 <el-row>
13 <el-col :span="24">
14 <el-form-item label="模板名称:" prop="tmpname">
15 <el-input v-model="ruleForm.tmpname" :disabled="editFlag"></el-input>
16 </el-form-item>
17 </el-col>
18 </el-row>
19 <el-row>
20 <el-col :span="12">
21 <el-form-item label="模板设计:">
22 <el-button type="primary" @click="designByPRGData(ruleForm.tmpcontent)">模板设计</el-button>
23 <i class="el-icon-loading" style="font-size:24px;margin-left:10px;" v-if="loadStatus == '1'"></i>
24 <i class="el-icon-circle-check" style="font-size:24px;margin-left:10px;color:green" v-if="loadStatus == '2'"></i>
25 </el-form-item>
26 </el-col>
27 </el-row>
28 <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" v-show="false">
29 <embed id="LODOP_EM" type="application/x-print-lodop" width=820 height=450 pluginspage="install_lodop32.exe"/>
30 </object>
31 <textarea rows="0" id="S1" cols="0" v-show="false"></textarea>
32 </el-form>
33 </dialogBox>
34 </template>
35
36 <script>
37 import { getLodop } from "@/utils/LodopFuncs"
38 import { mapGetters } from 'vuex'
39 import {addPrintTemplate,editPrintTemplate} from "@/api/system.js"
40 export default {
41 computed: {
42 ...mapGetters(['dictData']),
43 },
44 props: {
45 value: { type: Boolean, default: false },
46 },
47 data () {
48 return {
49 myValue: this.value,
50 editFlag: false,
51 //打印模板设计保存状态 0:未操作 1:保存中 2:已保存
52 loadStatus: '0',
53 //表单提交数据
54 ruleForm: {
55 tmpno: '',
56 tmpname: '',
57 tmpfont: '',
58 tmpfontsize: '',
59 tmpcontent: ''
60 },
61 rules: {
62 tmpno: [
63 { required: true, message: '模板编号不能为空', trigger: 'blur' }
64 ],
65 tmpname: [
66 { required: true, message: '模板名称不能为空', trigger: 'blur' }
67 ],
68 },
69 }
70 },
71 watch: {
72 value (val) {
73 this.myValue = val
74 }
75 },
76 methods: {
77 //表单提交
78 submitForm () {
79 if(this.loadStatus == '1'){
80 return this.$message.error("模板设计保存中,请等待...")
81 }
82 this.$refs.ruleForm.validate(valid => {
83 if (valid) {
84 if(this.editFlag){
85 this.editTemplate();
86 }else{
87 this.addTemplate();
88 }
89 } else {
90 // console.log('error submit!!');
91 return false;
92 }
93 });
94 },
95 //新增
96 addTemplate(){
97 addPrintTemplate(this.ruleForm).then(res => {
98 if(res.code == 200){
99 this.$parent.fetchData();
100 this.$message.success('保存成功');
101 this.closeDialog();
102 }else{
103 this.$message.error(res.message)
104 }
105 })
106 },
107 //编辑
108 editTemplate() {
109 editPrintTemplate(this.ruleForm).then(res => {
110 if(res.code == 200){
111 this.$parent.fetchData();
112 this.$message.success('保存成功');
113 this.closeDialog();
114 }else{
115 this.$message.error(res.message)
116 }
117 })
118 },
119 closeDialog () {
120 this.$emit("input", false);
121 this.ruleForm = {
122 tmpno: '',
123 tmpname: '',
124 tmpfont: '',
125 tmpfontsize: '',
126 tmpcontent: ''
127 },
128 this.loadStatus = '0'
129 this.editFlag = false;
130 },
131 getDetailInfo(item){
132 this.ruleForm = item;
133 this.editFlag = true;
134 },
135 //设计打印模板
136 designByPRGData() {
137 let that = this;
138 that.loadStatus = '1';
139 let LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
140 LODOP.ADD_PRINT_DATA("ProgramData",this.ruleForm.tmpcontent); //装载模板
141 //窗口关闭后,回调函数中保存的设计代码
142 if (LODOP.CVERSION)
143 CLODOP.On_Return = function (TaskID, printList) {
144 if (LODOP.CVERSION)
145 LODOP.On_Return = function (TaskID, Value) {
146 document.getElementById("S1").value = Value;
147 };
148 document.getElementById("S1").value = LODOP.GET_VALUE(
149 "ProgramData",
150 0
151 );
152 setTimeout(() => {
153 that.ruleForm.tmpcontent = document.getElementById("S1").value;
154 that.loadStatus = '2';
155 }, 1000);
156 };
157 LODOP.PRINT_DESIGN(); //打印设计或者打印维护需要放到最后
158 }
159 }
160 }
161 </script>
162 <style scoped lang="scss">
163 @import "~@/styles/mixin.scss";
164
165 .font-red {
166 color: red
167 }
168
169 .middle-margin-bottom {
170 margin-top: 20px
171 }
172 </style>
...@@ -23,38 +23,38 @@ class data extends filter { ...@@ -23,38 +23,38 @@ class data extends filter {
23 } 23 }
24 }, 24 },
25 { 25 {
26 prop: "mbmc", 26 prop: "tmpno",
27 label: "模板编码", 27 label: "模板编码",
28 }, 28 },
29 { 29 {
30 prop: "mblx", 30 prop: "tmpname",
31 label: "模板类型", 31 label: "模板名称",
32 }, 32 },
33 { 33 {
34 prop: "zt", 34 prop: "tmpfont",
35 label: "字体", 35 label: "模板字体",
36 }, 36 },
37 { 37 {
38 prop: "ztdx", 38 prop: "tmpfontsize",
39 label: "字体大小", 39 label: "模板字体大小",
40 }, 40 },
41 { 41 {
42 prop: "zjczsj", 42 prop: "updatetime",
43 label: "最近操作时间", 43 label: "最近操作时间",
44 }, 44 },
45 { 45 {
46 prop: "zjczr", 46 prop: "updater",
47 label: "最近操作人", 47 label: "最近操作人",
48 }, 48 },
49 { 49 {
50 label: '操作', 50 label: '操作',
51 width: '150',
52 align: 'center', 51 align: 'center',
53 fixed: 'right',
54 render: (h, scope) => { 52 render: (h, scope) => {
55 return ( 53 return (
56 <div> 54 <div>
57 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.editClick(scope) }}>设置打印模板</el-button> 55 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openEditDialog(scope.row) }}>编辑</el-button>
56 {/* <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.DesignByPRGData(scope.row) }}>设计</el-button> */}
57 {/* <el-button type="text" icon="el-icon-delete" onClick={() => { vm.removeTemplate(scope.row) }}>删除</el-button> */}
58 </div> 58 </div>
59 ) 59 )
60 } 60 }
......
1 <template> 1 <template>
2 <div class="dymbgl from-clues-content"> 2 <div class="from-clues">
3 <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :heightNum="215" :total="tableData.total" 3 <div class="from-clues-header">
4 <el-form>
5 <el-row>
6 <el-col :span="24" class="btnColRight">
7 <el-form-item>
8 <el-button type="primary" @click="fetchData">查询</el-button>
9 <el-button type="primary" @click="openAddDialog">新增</el-button>
10 </el-form-item>
11 </el-col>
12 </el-row>
13 </el-form>
14 </div>
15 <div class="from-clues-content">
16 <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :heightNum="215" :total="tableData.total"
4 @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" 17 @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
5 :data="tableData.data"> 18 :data="tableData.data"></lb-table>
6 </lb-table> 19 </div>
20 <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" v-show="false">
21 <embed id="LODOP_EM" type="application/x-print-lodop" width=820 height=450 pluginspage="install_lodop32.exe"/>
22 </object>
7 <textarea rows="0" id="S1" cols="0" v-show="false"></textarea> 23 <textarea rows="0" id="S1" cols="0" v-show="false"></textarea>
24 <editDialog ref="editDialog" v-model="isDialog" />
8 </div> 25 </div>
9 </template> 26 </template>
10 <script> 27 <script>
11 import { getLodop } from "@/utils/LodopFuncs" 28 import { getLodop } from "@/utils/LodopFuncs"
12 import table from "@/utils/mixin/table" 29 import table from "@/utils/mixin/table"
13 import { datas, sendThis } from "./dymbgl" 30 import { datas, sendThis } from "./dymbgl"
31 import editDialog from "./components/editDialog.vue";
32 import {selectPrintTemplateList,delPrintTemplate} from "@/api/system.js"
14 export default { 33 export default {
15 name: "djbcx", 34 name: "dymbgl",
16 mixins: [table], 35 mixins: [table],
17 mounted () { 36 components: {editDialog},
18 sendThis(this);
19 },
20 data () { 37 data () {
21 return { 38 return {
22 isDialog: false, 39 isDialog: false,
...@@ -24,34 +41,82 @@ export default { ...@@ -24,34 +41,82 @@ export default {
24 tableData: { 41 tableData: {
25 total: 0, 42 total: 0,
26 columns: datas.columns(), 43 columns: datas.columns(),
27 data: [ 44 data: []
28 {
29 slsj: "2022-5-12",
30 }
31 ]
32 }, 45 },
46 printItem: "",
33 printList: { 47 printList: {
34 year: '', 48
35 month: '',
36 day: '',
37 bh: '', // 编号
38 xzq: '',
39 xh: '',
40 d: '',
41 h: '',
42
43 qlr: '',
44 ywr: '',
45 zl: '',
46 bdcdyh: '',
47 qt: '',
48 fj: '',
49 zmsx: "证明事项",
50 }, 49 },
51 } 50 }
52 }, 51 },
52 mounted(){
53 sendThis(this);
54 this.fetchData()
55 },
53 methods: { 56 methods: {
54 fetchData () { 57 fetchData () {
58 selectPrintTemplateList({...this.pageData}).then(res => {
59 if(res.code == 200){
60 let { total, records } = res.result
61 this.tableData.total = total ? total : 0
62 this.tableData.data = records ? records : []
63 }
64 })
65 },
66 //打开新增弹窗
67 openAddDialog(){
68 this.isDialog = true;
69 },
70 //打开编辑弹窗
71 openEditDialog(item){
72 this.isDialog = true;
73 this.$nextTick(() => {
74 this.$refs.editDialog.getDetailInfo(item);
75 })
76 },
77 //删除数据
78 removeTemplate(item){
79 this.$confirm("确定要删除吗, 是否继续?", "提示", {
80 confirmButtonText: "确定",
81 cancelButtonText: "取消",
82 type: "warning",
83 }).then(() => {
84 delPrintTemplate({bsmTmp: item.bsmTmp}).then((res) => {
85 if (res.code == 200) {
86 this.$message.success("删除成功");
87 this.fetchData();
88 } else {
89 this.$message.error(res.message);
90 }
91 });
92 })
93 .catch(() => {
94 this.$message({
95 type: "info",
96 message: "已取消删除",
97 });
98 });
99 },
100 //设计打印模板
101 DesignByPRGData(item) {
102 let LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
103 LODOP.ADD_PRINT_DATA("ProgramData",item.tmpcontent); //装载模板
104 //窗口关闭后,回调函数中保存的设计代码
105 if (LODOP.CVERSION)
106 CLODOP.On_Return = function (TaskID, printList) {
107 if (LODOP.CVERSION)
108 LODOP.On_Return = function (TaskID, Value) {
109 document.getElementById("S1").value = Value;
110 };
111 document.getElementById("S1").value = LODOP.GET_VALUE(
112 "ProgramData",
113 0
114 );
115 setTimeout(() => {
116 item.tmpcontent = document.getElementById("S1").value;
117 }, 1000);
118 };
119 LODOP.PRINT_DESIGN(); //打印设计或者打印维护需要放到最后
55 }, 120 },
56 editClick () { 121 editClick () {
57 let LODOP = getLodop(); 122 let LODOP = getLodop();
...@@ -95,18 +160,9 @@ export default { ...@@ -95,18 +160,9 @@ export default {
95 }; 160 };
96 LODOP.PRINT_DESIGN(); //打印设计或者打印维护需要放到最后 161 LODOP.PRINT_DESIGN(); //打印设计或者打印维护需要放到最后
97 }, 162 },
98 handlePrint () {
99 let LODOP = getLodop();
100 // LODOP.ADD_PRINT_DATA("ProgramData", getSession("printValue"));
101 LODOP.PREVIEW();
102 },
103 }, 163 },
104 }; 164 };
105 </script> 165 </script>
106 <style scoped lang="scss"> 166 <style scoped lang="scss">
107 @import "~@/styles/public.scss"; 167 @import "~@/styles/public.scss";
108
109 .dymbgl {
110 margin-top: -1px;
111 }
112 </style> 168 </style>
......
...@@ -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) {
......
...@@ -179,8 +179,6 @@ export default { ...@@ -179,8 +179,6 @@ export default {
179 //再次打印 179 //再次打印
180 openInvalidDiglog(item) { 180 openInvalidDiglog(item) {
181 this.bsmSz = item.bsmSz; 181 this.bsmSz = item.bsmSz;
182 console.log(item);
183
184 this.invalidDiglog = true; 182 this.invalidDiglog = true;
185 }, 183 },
186 closeInvalidDiglog() { 184 closeInvalidDiglog() {
......
...@@ -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)
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
5 <el-tab-pane :label="item.qlr + '(' + item.bdcqzh + ')'" :name="item.bsmBdcqz" v-for="(item,index) in headTabBdcqz" :key="index"></el-tab-pane> 5 <el-tab-pane :label="item.qlr + '(' + item.bdcqzh + ')'" :name="item.bsmBdcqz" v-for="(item,index) in headTabBdcqz" :key="index"></el-tab-pane>
6 </el-tabs> 6 </el-tabs>
7 <!-- <div class="zsyl-title">{{bdcqz.bdcqzlx == '1' ? '不动产权证书' : '不动产权证明'}}</div> --> 7 <!-- <div class="zsyl-title">{{bdcqz.bdcqzlx == '1' ? '不动产权证书' : '不动产权证明'}}</div> -->
8 <div class="no-data">暂无数据</div>
8 <img :src="previewImage" class="imgClass"> 9 <img :src="previewImage" class="imgClass">
9 </div> 10 </div>
10 </template> 11 </template>
...@@ -137,4 +138,11 @@ export default { ...@@ -137,4 +138,11 @@ export default {
137 padding: 5px 0px; 138 padding: 5px 0px;
138 font-size: 20px; 139 font-size: 20px;
139 } 140 }
141
142 .no-data{
143 font-size:18px;
144 display: flex;
145 text-align: center;
146 justify-content: center;
147 }
140 </style> 148 </style>
......
1 import { getWorkFlowImage } from "@/api/workflow/jsydsyqFlow.js"; 1 import { getWorkFlowImage } from "@/api/workflow/jsydsyqFlow.js";
2 import { popupDialog } from "@/utils/popup.js"; 2 import { popupDialog } from "@/utils/popup.js";
3 import { getPrintTemplateByCode } from "@/api/system";
4 import { getLodop } from "@/utils/LodopFuncs"
3 import { 5 import {
4 leftMenu, 6 leftMenu,
5 stepExpandInfo, 7 stepExpandInfo,
...@@ -132,7 +134,21 @@ export default { ...@@ -132,7 +134,21 @@ export default {
132 }, '1070px') 134 }, '1070px')
133 break; 135 break;
134 case "B6": 136 case "B6":
135 popupDialog("打印申请书", "workflow/components/printApplication", {}, '1070px') 137 //根据编号获取对应信息
138 getPrintTemplateByCode({tmpno: 'dysqs'}).then(res => {
139 if(res.code == 200){
140 //打开模板设计
141 let LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
142 LODOP.ADD_PRINT_DATA("ProgramData",res.result.tmpcontent); //装载模板
143
144 //todo 调取后端接口获取数据 循环set
145
146 LODOP.SET_PRINT_STYLEA("qlrmc","CONTENT","计划大河风流看");
147 LODOP.PREVIEW();
148 }else{
149 this.$message.error(res.message)
150 }
151 })
136 break; 152 break;
137 case "B7": 153 case "B7":
138 this.$popup("证书领取", "workflow/components/zslq", { 154 this.$popup("证书领取", "workflow/components/zslq", {
......
...@@ -68,6 +68,10 @@ ...@@ -68,6 +68,10 @@
68 </div> 68 </div>
69 </div> 69 </div>
70 </div> 70 </div>
71 <!-- 打印模板需要此模块 -->
72 <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" v-show="false">
73 <embed id="LODOP_EM" type="application/x-print-lodop" width=820 height=450 pluginspage="install_lodop32.exe"/>
74 </object>
71 <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" /> 75 <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" />
72 </div> 76 </div>
73 </template> 77 </template>
......
...@@ -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
......