|
@@ -78,7 +78,7 @@
|
78
|
78
|
|
79
|
79
|
<script>
|
80
|
80
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
81
|
|
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint} from '@/api/config'
|
|
81
|
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList} from '@/api/config'
|
82
|
82
|
|
83
|
83
|
export default {
|
84
|
84
|
name: "printTemplate",
|
|
@@ -217,7 +217,8 @@ export default {
|
217
|
217
|
},
|
218
|
218
|
|
219
|
219
|
changeFuncPrint(val){
|
220
|
|
- var is_open = ""
|
|
220
|
+ console.log("val22222",val)
|
|
221
|
+ var is_open = 0
|
221
|
222
|
if(val == true){
|
222
|
223
|
is_open = 1
|
223
|
224
|
}
|
|
@@ -227,17 +228,37 @@ export default {
|
227
|
228
|
var params = {
|
228
|
229
|
is_open:is_open,
|
229
|
230
|
}
|
|
231
|
+
|
230
|
232
|
changeFuncPrint(params).then(response=>{
|
231
|
|
-
|
|
233
|
+ if(response.data.state == 1){
|
|
234
|
+ var dataPrint = response.data.data.dataPrint
|
|
235
|
+ this.$message.success("保存成功")
|
|
236
|
+ this.getDataPrintList()
|
|
237
|
+ }
|
|
238
|
+ })
|
|
239
|
+ },
|
|
240
|
+
|
|
241
|
+ getDataPrintList(){
|
|
242
|
+ getDataPrintList().then(response=>{
|
|
243
|
+ if(response.data.state ==1){
|
|
244
|
+ var dataPrint = response.data.data.dataPrint
|
|
245
|
+ console.log("列表数据",dataPrint)
|
|
246
|
+ if(dataPrint.is_open == 1){
|
|
247
|
+ this.is_open_print = true
|
|
248
|
+ }
|
|
249
|
+ if(dataPrint.is_open == 0){
|
|
250
|
+ this.is_open_print = false
|
|
251
|
+ }
|
|
252
|
+ }
|
232
|
253
|
})
|
233
|
254
|
}
|
234
|
255
|
|
235
|
256
|
},
|
236
|
257
|
created() {
|
237
|
258
|
this.getInitIsOpenConfig()
|
238
|
|
- this.getMonitorConfig()
|
239
|
|
- this.getOrderConfig()
|
240
|
|
-
|
|
259
|
+ // this.getMonitorConfig()
|
|
260
|
+ // this.getOrderConfig()
|
|
261
|
+ this.getDataPrintList()
|
241
|
262
|
}
|
242
|
263
|
};
|
243
|
264
|
</script>
|