Browse Source

打印功能恢复

360view
bianyaqi 2 years ago
parent
commit
3007ccce4c
  1. 6
      public/index.html
  2. 3
      src/components/360View/commonForm/optometryForm.vue

6
public/index.html

@ -34,13 +34,13 @@
<script>
// http://192.168.0.146:9002/huimu-admin'
window.SITE_CONFIG['apiURL'] = 'http://192.168.4.24:8036/xiangan-crf';
</script>
</script>q
<% } %>
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script>
//http://121.36.16.195:9002/huimu-admin/swagger-ui/index.html
window.SITE_CONFIG['apiURL'] = 'http://192.168.4.24:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.4.24:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
</script>
<% } %>
<!-- 测试环境 -->

3
src/components/360View/commonForm/optometryForm.vue

@ -1,7 +1,7 @@
<template>
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always">
<div v-if="!onlyRead" class="btnBox">
<el-button size="small" @click="doPrint">打印</el-button>
<el-button v-print="print" size="small">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
</div>
@ -403,7 +403,6 @@ export default {
}],
print: {
id: 'optomeFunc'
// preview: true
}
}
},

Loading…
Cancel
Save