Commit e7faccba by wangweidong

土工试验Lims

parent 2aa68ee8
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<Row> <Row>
<!--操作--> <!--操作-->
<Col span="24"> <Col span="24">
<btn-list :msg="btn" @on-result-change="_btnClick" class="contHide"></btn-list> <btn-list :msg="btn" class="contHide" @on-result-change="_btnClick"></btn-list>
</Col> </Col>
<!--内容--> <!--内容-->
<Col span="24"> <Col span="24">
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
:table-height="tableHeight" :table-height="tableHeight"
:get-page="getPage" :get-page="getPage"
:form-id="formId" :form-id="formId"
@on-result-change="_tableResultChange"
select-data select-data
is-edit is-edit
hide-page> hide-page
@on-result-change="_tableResultChange">
<vxe-table-column <vxe-table-column
v-for="item in pageColumns" v-for="item in pageColumns"
:key="item.key" :key="item.key"
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
<template v-slot:edit="scope"> <template v-slot:edit="scope">
<div v-if="item.key==='prepareWay'" @click="_handleRow(scope)"> <div v-if="item.key==='prepareWay'" @click="_handleRow(scope)">
<AutoComplete v-model="scope.row.prepareWay" :down-data="preparationWayData" :way-data="wayData" <AutoComplete v-model="scope.row.prepareWay" :down-data="preparationWayData" :way-data="wayData"
:handle-obj="scope" @on-result-change="_preparationChange" clearable :handle-obj="scope" clearable placeholder="输入或选择制备方式"
placeholder="输入或选择制备方式"></AutoComplete> @on-result-change="_preparationChange"></AutoComplete>
</div> </div>
<div v-else-if="item.key==='unit'" @click="_handleRow(scope)"> <div v-else-if="item.key==='unit'" @click="_handleRow(scope)">
<el-input v-model="scope.row.unit" name="unit" placeholder="输入或选择单位"> <el-input v-model="scope.row.unit" name="unit" placeholder="输入或选择单位">
...@@ -46,13 +46,13 @@ ...@@ -46,13 +46,13 @@
<span v-else-if="item.key==='type'">{{ scope.row[item.key]===0? '检样':'备样' }}</span> <span v-else-if="item.key==='type'">{{ scope.row[item.key]===0? '检样':'备样' }}</span>
<div v-else-if="item.key==='keepWay'" @click="_handleRow(scope)"> <div v-else-if="item.key==='keepWay'" @click="_handleRow(scope)">
<AutoComplete v-model="scope.row.keepWay" :handle-obj="scope" :down-data="saveWayData" <AutoComplete v-model="scope.row.keepWay" :handle-obj="scope" :down-data="saveWayData"
@on-result-change="_saveChange" clearable clearable placeholder="输入或选择保存方式"
placeholder="输入或选择保存方式" show-key="name"></AutoComplete> show-key="name" @on-result-change="_saveChange"></AutoComplete>
</div> </div>
<div v-else-if="item.key==='keepContainer'" @click="_handleRow(scope)"> <div v-else-if="item.key==='keepContainer'" @click="_handleRow(scope)">
<AutoComplete v-model="scope.row.keepContainer" :handle-obj="scope" :down-data="packList" <AutoComplete v-model="scope.row.keepContainer" :handle-obj="scope" :down-data="packList"
@on-result-change="_packSaveChange" clearable clearable placeholder="输入或选择保存容器"
placeholder="输入或选择保存容器" show-key="name"></AutoComplete> show-key="name" @on-result-change="_packSaveChange"></AutoComplete>
</div> </div>
<!-- <div v-else-if="item.key==='prepareDate'" @click="_handleTimeRow(scope)">--> <!-- <div v-else-if="item.key==='prepareDate'" @click="_handleTimeRow(scope)">-->
<!-- <el-date-picker--> <!-- <el-date-picker-->
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
<!-- </el-date-picker>--> <!-- </el-date-picker>-->
<!-- </div>--> <!-- </div>-->
<div v-else-if="item.key==='prepareDate'" @click="_handleRow(scope)"> <div v-else-if="item.key==='prepareDate'" @click="_handleRow(scope)">
<el-date-picker @change="timeChange(scope.row)" v-model="scope.row.prepareDate" type="datetime" format="yyyy-MM-dd HH:mm" style="width:100%;" <el-date-picker v-model="scope.row.prepareDate" type="datetime" format="yyyy-MM-dd HH:mm" style="width:100%;" placeholder="请选择日期"
placeholder="请选择日期"></el-date-picker> @change="timeChange(scope.row)"></el-date-picker>
</div> </div>
<!-- <div v-else-if="item.key==='prepareDate' && isAccurate === '是'" @click="_handleRow(scope)">--> <!-- <div v-else-if="item.key==='prepareDate' && isAccurate === '是'" @click="_handleRow(scope)">-->
<!-- <date-picker :editable="false" :transfer="true" v-model="scope.row.prepareDate" type="datetime"--> <!-- <date-picker :editable="false" :transfer="true" v-model="scope.row.prepareDate" type="datetime"-->
...@@ -90,12 +90,12 @@ ...@@ -90,12 +90,12 @@
<!-- </el-date-picker>--> <!-- </el-date-picker>-->
<!-- </div>--> <!-- </div>-->
<div v-else-if="item.key==='preparer'" @click="_handleRow(scope)"> <div v-else-if="item.key==='preparer'" @click="_handleRow(scope)">
<el-input v-model="scope.row.preparer" @focus="_handleRow(scope)" <el-input v-model="scope.row.preparer" placeholder="制备人"
placeholder="制备人" size="small" name="preparer"></el-input> size="small" name="preparer" @focus="_handleRow(scope)"></el-input>
</div> </div>
<div v-else-if="item.key==='remark'" @click="_handleRow(scope)"> <div v-else-if="item.key==='remark'" @click="_handleRow(scope)">
<el-input v-model="scope.row.remark" @focus="_handleRow(scope)" placeholder="备注" <el-input v-model="scope.row.remark" placeholder="备注" size="small"
size="small"></el-input> @focus="_handleRow(scope)"></el-input>
</div> </div>
<span v-else>{{scope.row[item.key]}}</span> <span v-else>{{scope.row[item.key]}}</span>
</template> </template>
...@@ -124,6 +124,8 @@ ...@@ -124,6 +124,8 @@
<!--打印标签--> <!--打印标签-->
<!--选择人员--> <!--选择人员-->
</Modal> </Modal>
<!--下载插件-->
<downloadPlugin ref="downloadPlugin" />
</div> </div>
</template> </template>
...@@ -131,10 +133,14 @@ ...@@ -131,10 +133,14 @@
import AutoComplete from '../../../components/base/AutoCompletes' import AutoComplete from '../../../components/base/AutoCompletes'
import Global from '../../../api/config' import Global from '../../../api/config'
import { soilEntrust } from '../../../api' import { soilEntrust } from '../../../api'
import { getLodop } from '../../../plugins/clodop/LodopFuncs'
// eslint-disable-next-line no-unused-vars
import downloadPlugin from '../../../plugins/download/downloadPlugin'
let LODOP
export default { export default {
components: { components: {
AutoComplete AutoComplete,
downloadPlugin
}, },
data() { data() {
return { return {
...@@ -146,7 +152,6 @@ export default { ...@@ -146,7 +152,6 @@ export default {
footerList: [], footerList: [],
list: [ list: [
{ name: '取消', type: '', id: '' }, { name: '取消', type: '', id: '' },
// {name: '仅流转微生物', type: 'primary', id: ''},
{ name: '制备完成', type: 'primary', id: '' } { name: '制备完成', type: 'primary', id: '' }
], ],
btn: [ btn: [
...@@ -510,7 +515,7 @@ export default { ...@@ -510,7 +515,7 @@ export default {
switch (msg) { switch (msg) {
case '打印标签': case '打印标签':
if (this.selectData.length > 0) { if (this.selectData.length > 0) {
this.$refs.printer._open() this._printMessage()
} else { } else {
this.$Message.warning('请至少选择一条数据') this.$Message.warning('请至少选择一条数据')
} }
...@@ -520,6 +525,71 @@ export default { ...@@ -520,6 +525,71 @@ export default {
break break
} }
}, },
// 下载插件
_pluginDownload() {
this.$refs.downloadPlugin._open()
},
_printMessage: function() {
LODOP = getLodop()
if (LODOP === 'undefined' || LODOP === undefined) {
this._pluginDownload()
return false
}
if (LODOP.GET_PRINTER_COUNT() === 0) {
this.$Messager.warning('系统未关联打印机,请确认....')
return false
}
const data = this.selectData
for (let i = 0; i < data.length; i++) {
LODOP.PRINT_INITA(
'0mm',
'0mm',
'60.01mm',
'40.01mm',
'打印控件功能演示_Lodop功能_打印图片3'
)
LODOP.ADD_PRINT_BARCODE(
'0.08mm',
'18.39mm',
'58.87mm',
'24.74mm',
'QRCode',
data[i].sampleCode + '-' + data[i].groupName
)
LODOP.ADD_PRINT_TEXT(
130,
13,
186,
20,
this._formatDate(data[i].prepareDate)
)
LODOP.SET_PRINT_STYLEA(0, 'Alignment', 2)
LODOP.ADD_PRINT_TEXT(113, 13, 187, 20, data[i].groupName)
LODOP.SET_PRINT_STYLEA(0, 'Alignment', 2)
LODOP.ADD_PRINT_TEXT(95, 12, 188, 20, data[i].sampleCode)
LODOP.SET_PRINT_STYLEA(0, 'Alignment', 2)
LODOP.PRINT_DESIGN()
}
},
// 时间戳转换方法 date:时间戳数字
_formatDate(time) {
const date = new Date(time)
const YY = date.getFullYear() + '-'
const MM =
(date.getMonth() + 1 < 10
? '0' + (date.getMonth() + 1)
: date.getMonth() + 1) + '-'
const DD = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
const hh =
(date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
const mm =
(date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) +
':'
const ss =
date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
return YY + MM + DD + ' ' + hh + mm + ss
},
_printerResult(data) { _printerResult(data) {
this.$refs.printNumber._open(this.selectData, data.printerVal) this.$refs.printNumber._open(this.selectData, data.printerVal)
}, },
......
...@@ -348,7 +348,7 @@ export default { ...@@ -348,7 +348,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
switch (res) { switch (res) {
case '管理样品': case '管理样品':
this._editModal(data.id, data.type, data.cname) this._editModal(data.id, data.type, data.entrustCode)
break break
case '项目管理': case '项目管理':
this.$refs.itemManageModal._open(data.id) this.$refs.itemManageModal._open(data.id)
......
...@@ -94,13 +94,7 @@ export default { ...@@ -94,13 +94,7 @@ export default {
id: '', id: '',
name: '管理样品' name: '管理样品'
}, },
// {
// type: 'md-create',
// id: '',
// name: '编辑协议'
// },
{ type: 'md-cloud', id: '', name: '附件' }, { type: 'md-cloud', id: '', name: '附件' },
// { type: 'md-trash', id: '', name: '删除' },
{ {
type: 'ios-clock', type: 'ios-clock',
id: '', id: '',
...@@ -354,7 +348,7 @@ export default { ...@@ -354,7 +348,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
switch (res) { switch (res) {
case '管理样品': case '管理样品':
this._editModal(data.id, data.type, data.cname) this._editModal(data.id, data.type, data.entrustCode)
break break
case '项目管理': case '项目管理':
this.$refs.itemManageModal._open(data.id) this.$refs.itemManageModal._open(data.id)
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id)">{{scope.row[item.key]}}</a></div> <div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id)">{{scope.row[item.key]}}</a></div>
<div v-else-if="item.key ==='shape'">{{scope.row['shape']}} {{scope.row['shapeRemark']}}</div> <div v-else-if="item.key ==='shape'">{{scope.row['shape']}} {{scope.row['shapeRemark']}}</div>
<div v-else-if="item.date"> <div v-else-if="item.date">
{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}} {{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):''}}
</div> </div>
<div v-else>{{scope.row[item.key]}}</div> <div v-else>{{scope.row[item.key]}}</div>
</template> </template>
...@@ -66,6 +66,11 @@ export default { ...@@ -66,6 +66,11 @@ export default {
{ title: '试样编号', key: 'sampleCode', width: 100, fixed: 'left' }, { title: '试样编号', key: 'sampleCode', width: 100, fixed: 'left' },
{ title: '试样深度', key: 'sampleDepth', width: 95 }, { title: '试样深度', key: 'sampleDepth', width: 95 },
{ title: '现场编号', key: 'siteNo', width: 100 }, { title: '现场编号', key: 'siteNo', width: 100 },
{ title: '接收人', key: 'receiver', width: 120 },
{ title: '接收时间', key: 'receiveTime', width: 145, date: true },
{ title: '收样存储位置', key: 'receiveLocation', width: 140 },
{ title: '发放人', key: 'sender', width: 120 },
{ title: '发放时间', key: 'sendTime', width: 144, date: true },
{ title: '土质描述', key: 'sampleDescribe', width: 185 }, { title: '土质描述', key: 'sampleDescribe', width: 185 },
{ title: '样品包装类型', key: 'samplePack', width: 120 } { title: '样品包装类型', key: 'samplePack', width: 120 }
], ],
......
<template> <template>
<div> <div>
<Modal v-model="showSampleModal" @on-visible-change="_visibleChange" width="818" <Modal v-model="showSampleModal" @on-visible-change="_visibleChange" width="1000"
class="zIndex-900 modal-footer-none"> class="zIndex-900 modal-footer-none">
<p slot="header"> {{name}}--管理样品</p> <p slot="header"> {{name}}--管理样品</p>
<div> <div>
......
<template> <template>
<div> <div>
<Modal v-model="showSampleModal" @on-visible-change="_visibleChange" width="818" <Modal v-model="showSampleModal" @on-visible-change="_visibleChange" width="1100"
class="zIndex-900 modal-footer-none"> class="zIndex-900 modal-footer-none">
<p slot="header"> {{name}}--管理样品</p> <p slot="header"> {{name}}--管理样品</p>
<div> <div>
......
...@@ -66,11 +66,12 @@ export default { ...@@ -66,11 +66,12 @@ export default {
selectIds: [], selectIds: [],
getPage: {}, getPage: {},
pageColumns: [ pageColumns: [
{ title: '试样编号', key: 'sampleCode', width: 100, fixed: 'left' }, { title: '试样编号', key: 'sampleCode', width: 120, fixed: 'left' },
{ title: '试样深度', key: 'sampleDepth', width: 95 }, { title: '试样深度', key: 'sampleDepth', width: 120 },
{ title: '现场编号', key: 'siteNo', width: 100 }, { title: '现场编号', key: 'siteNo', width: 120 },
{ title: '土质描述', key: 'sampleDescribe', width: 185 }, { title: '土质描述', key: 'sampleDescribe', width: 205 },
{ title: '样品包装类型', key: 'samplePack', width: 120 } { title: '样品包装类型', key: 'samplePack', width: 120 },
{ title: '备注', key: 'remark', width: 210 }
], ],
iconMsg: [{ type: 'ios-list', id: '', name: '试验项目' }], iconMsg: [{ type: 'ios-list', id: '', name: '试验项目' }],
type: '', type: '',
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id)">{{scope.row[item.key]}}</a></div> <div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id)">{{scope.row[item.key]}}</a></div>
<div v-else-if="item.key ==='shape'">{{scope.row['shape']}} {{scope.row['shapeRemark']}}</div> <div v-else-if="item.key ==='shape'">{{scope.row['shape']}} {{scope.row['shapeRemark']}}</div>
<div v-else-if="item.date"> <div v-else-if="item.date">
{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}} {{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):''}}
</div> </div>
<div v-else>{{scope.row[item.key]}}</div> <div v-else>{{scope.row[item.key]}}</div>
</template> </template>
...@@ -77,6 +77,9 @@ export default { ...@@ -77,6 +77,9 @@ export default {
{ title: '试样编号', key: 'sampleCode', width: 100, fixed: 'left' }, { title: '试样编号', key: 'sampleCode', width: 100, fixed: 'left' },
{ title: '试样深度', key: 'sampleDepth', width: 95 }, { title: '试样深度', key: 'sampleDepth', width: 95 },
{ title: '现场编号', key: 'siteNo', width: 100 }, { title: '现场编号', key: 'siteNo', width: 100 },
{ title: '接收人', key: 'receiver', width: 120 },
{ title: '接收时间', key: 'receiveTime', width: 140, date: true },
{ title: '收样存储位置', key: 'receiveLocation', width: 140 },
{ title: '土质描述', key: 'sampleDescribe', width: 185 }, { title: '土质描述', key: 'sampleDescribe', width: 185 },
{ title: '样品包装类型', key: 'samplePack', width: 120 } { title: '样品包装类型', key: 'samplePack', width: 120 }
], ],
......
...@@ -107,12 +107,8 @@ export default { ...@@ -107,12 +107,8 @@ export default {
{ title: '水深(米)', key: 'waterDepth', width: 120 }, { title: '水深(米)', key: 'waterDepth', width: 120 },
{ title: '钻孔名称', key: 'boreholeName', width: 120 }, { title: '钻孔名称', key: 'boreholeName', width: 120 },
{ title: '进度', key: 'progress', width: 120, status: true }, { title: '进度', key: 'progress', width: 120, status: true },
// { title: '工程号', key: 'projectNo', width: 120 },
// { title: '报告编号', key: 'reportCode', width: 120 },
{ title: '制表日期', key: 'tabulateDate', width: 120, date: true }, { title: '制表日期', key: 'tabulateDate', width: 120, date: true },
{ title: '制表人', key: 'tabulater', width: 120 }, { title: '制表人', key: 'tabulater', width: 120 },
// { title: '批准日期', key: 'approveDate', width: 120, date: true },
// { title: '批准人', key: 'approver', width: 120 },
{ title: '检验类别', key: 'testType', width: 120 } { title: '检验类别', key: 'testType', width: 120 }
], ],
searchOpen: false, searchOpen: false,
...@@ -211,7 +207,7 @@ export default { ...@@ -211,7 +207,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
switch (res) { switch (res) {
case '管理样品': case '管理样品':
this._editModal(data.id, data.type, data.cname) this._editModal(data.id, data.type, data.entrustCode)
break break
case '项目管理': case '项目管理':
this.$refs.itemManageModal._open(data.id) this.$refs.itemManageModal._open(data.id)
......
<template> <template>
<div> <div>
<Modal v-model="showSampleModal" width="818" <Modal v-model="showSampleModal" width="1100"
class="zIndex-900 modal-footer-none"> class="zIndex-900 modal-footer-none">
<div> <div>
<!--内容--> <!--内容-->
<Row> <Row>
<!--查询--> <!--查询-->
<Col span="24" style="padding-bottom: 5px"> <Col span="24" style="padding-bottom: 5px">
<Form id="search-wait" :label-width="90" v-show="searchOpen" inline onsubmit="return false"> <Form v-show="searchOpen" id="search-wait" :label-width="90" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item label="试样编号:" class="search-item"> <Form-item label="试样编号:" class="search-item">
<Input @on-enter="_formSearch" v-model="formObj.sampleCode" name="sampleCode" placeholder="请输入样品编号" clearable></Input> <Input v-model="formObj.sampleCode" name="sampleCode" placeholder="请输入样品编号" clearable @on-enter="_formSearch"></Input>
<input name="contractId" type="hidden"> <input name="contractId" type="hidden">
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button @click="_formSearch" type="primary">搜索</Button> <Button type="primary" @click="_formSearch">搜索</Button>
</Form-item> </Form-item>
</Form> </Form>
</Col> </Col>
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" @on-result-change="_btnClick" :show-search-btn="true" class="contHide"> <btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide" @on-result-change="_btnClick">
<!--<template slot="processTask">--> <!--<template slot="processTask">-->
<!--<div class="fr process-task">--> <!--<div class="fr process-task">-->
<!--<Button @click="_exportReceiveRecord">导出交接记录</Button>--> <!--<Button @click="_exportReceiveRecord">导出交接记录</Button>-->
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
<Col span="24"> <Col span="24">
<PTVXETable <PTVXETable
ref="pageTable" ref="pageTable"
:tableHeight="tableHeight" :table-height="tableHeight"
@on-result-change="_tableResultChange" :get-page="getPage"
:getPage="getPage"
:icon-msg="iconMsg" :icon-msg="iconMsg"
select-data> select-data
@on-result-change="_tableResultChange">
<vxe-table-column <vxe-table-column
v-for="item in pageColumns" v-for="item in pageColumns"
:key="item.key" :key="item.key"
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id)">{{scope.row[item.key]}}</a></div> <div v-if="item.detail"><a @click.stop="_detailModal(scope.row.id)">{{scope.row[item.key]}}</a></div>
<div v-else-if="item.key ==='shape'">{{scope.row['shape']}} {{scope.row['shapeRemark']}}</div> <div v-else-if="item.key ==='shape'">{{scope.row['shape']}} {{scope.row['shapeRemark']}}</div>
<div v-else-if="item.date"> <div v-else-if="item.date">
{{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd'):''}} {{scope.row[item.key]?$dateformat(scope.row[item.key],'yyyy-mm-dd HH:MM:ss'):''}}
</div> </div>
<div v-else>{{scope.row[item.key]}}</div> <div v-else>{{scope.row[item.key]}}</div>
</template> </template>
...@@ -75,9 +75,12 @@ export default { ...@@ -75,9 +75,12 @@ export default {
pageColumns: [ pageColumns: [
{ title: '试样编号', key: 'sampleCode', width: 100, fixed: 'left' }, { title: '试样编号', key: 'sampleCode', width: 100, fixed: 'left' },
{ title: '试样深度', key: 'sampleDepth', width: 95 }, { title: '试样深度', key: 'sampleDepth', width: 95 },
{ title: '现场编号', key: 'siteNo', width: 100 }, { title: '检测科室', key: 'groupName', width: 95 },
{ title: '土质描述', key: 'sampleDescribe', width: 185 }, { title: '土质描述', key: 'sampleDescribe', width: 185 },
{ title: '样品包装类型', key: 'samplePack', width: 120 } { title: '样品描述', key: 'describeDetail', width: 185 },
{ title: '样品包装类型', key: 'samplePack', width: 120 },
{ title: '样品制备人', key: 'preparer', width: 120 },
{ title: '样品制备时间', key: 'prepareDate', width: 135, date: true }
], ],
iconMsg: [{ type: 'ios-list', id: '', name: '试验项目' }], iconMsg: [{ type: 'ios-list', id: '', name: '试验项目' }],
type: '', type: '',
......
...@@ -12,10 +12,6 @@ ...@@ -12,10 +12,6 @@
<WaitScan ref="waitScanModal"></WaitScan> <WaitScan ref="waitScanModal"></WaitScan>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<!-- <keep-alive>-->
<!-- &lt;!&ndash; eslint-disable-next-line vue/require-component-is &ndash;&gt;-->
<!-- <component ref="refModal" :is="currentComponent"></component>-->
<!-- </keep-alive>-->
</div> </div>
</Modal> </Modal>
</div> </div>
......
<template>
<div>
<Modal v-model="showBackModal" class="zIndex-1100 modal-footer-none">
<p slot="header">{{modalTitle}}</p>
<div>
<p @click="_download">未安装打印控件,点此<span style="color: blue;cursor:pointer">下载</span>,安装完请刷新当前页面</p>
</div>
</Modal>
</div>
</template>
<script>
/**
* 打印下载 exe
*/
export default {
data() {
return {
modalTitle: '下载',
showBackModal: false
}
},
methods: {
_open() {
this.showBackModal = true
},
_cancel() {
this.showBackModal = false
},
_download() {
window.open(
'http://static.patzn.com/clodop/CLodop_Setup_for_Win32NT.exe',
'_blank'
)
this._cancel()
}
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment