no message

main
liu 2025-08-21 16:12:17 +08:00
parent 31e1990fc5
commit bc06ef3de2
1 changed files with 20 additions and 1 deletions

View File

@ -78,6 +78,12 @@
width="200"
trigger="hover"
>
<vue-qrcode
:value="getQrContent(baseApi + scope.row.downloadUrl)"
:options="qrOptions"
tag="img"
class="qr-code"
/>
<a
slot="reference"
:href="baseApi + scope.row.downloadUrl "
@ -120,10 +126,11 @@ import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import { mapGetters } from 'vuex'
import { getToken } from '@/utils/auth'
import VueQrcode from '@chenfengyuan/vue-qrcode'
const defaultForm = { id: null, name: '', versionCode: '', versionName: '', modifyContent: '' }
export default {
name: 'AppUpdate',
components: { pagination, crudOperation, udOperation },
components: { VueQrcode, pagination, crudOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: 'app_update', url: 'api/sysAppUpdate', idField: 'id', sort: 'id,desc', crudMethod: { ...crudSysAppUpdate }})
@ -131,6 +138,11 @@ export default {
data() {
return {
headers: { 'Authorization': getToken() },
qrOptions: {
width: 160, //
margin: 0, //
errorCorrectionLevel: 'H' //
},
permission: {
edit: ['admin', 'sysAppUpdate:edit'],
del: ['admin', 'sysAppUpdate:del']
@ -159,6 +171,13 @@ export default {
[CRUD.HOOK.beforeRefresh]() {
return true
},
getQrContent(location) {
//
return `${location}`
//
// return location.boxType;
},
upload() {
this.$refs.upload.submit()
},