打印机本地或网络判断
This commit is contained in:
@@ -46,10 +46,10 @@
|
|||||||
{{devicesName(data.contentType)}}
|
{{devicesName(data.contentType)}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="u-m-t-32 u-flex u-row-right gap-20">
|
<view class="u-m-t-32 u-flex u-row-right gap-20" >
|
||||||
<my-button shape="circle" :width="140" :height="56" type="cancel" @tap="delTableHandleEvent()"
|
<my-button v-if="data.connectionType == 'network'" shape="circle" :width="140" :height="56" type="cancel" @tap="delTableHandleEvent()"
|
||||||
plain>删除</my-button>
|
plain>删除</my-button>
|
||||||
<my-button shape="circle" @click="toUrl" :width="140" :height="56" plain>编辑</my-button>
|
<my-button v-if="data.connectionType == 'network'" shape="circle" @click="toUrl" :width="140" :height="56" plain>编辑</my-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,9 @@
|
|||||||
async function init() {
|
async function init() {
|
||||||
const res =await Api.tbPrintMachineGet(pageData.query)
|
const res =await Api.tbPrintMachineGet(pageData.query)
|
||||||
pageData.hasAjax=true
|
pageData.hasAjax=true
|
||||||
pageData.list = res.filter(v=>v.address)
|
console.log(res,'调试')
|
||||||
|
pageData.list = res
|
||||||
|
// pageData.list = res.filter(v=>v.address)
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
init()
|
init()
|
||||||
|
|||||||
Reference in New Issue
Block a user