|
@@ -107,9 +107,11 @@
|
|
|
<permission-button type="primary" size="mini" @click="$_navigationTo(`device-list?id=${row.authId}`)">
|
|
|
设备认证
|
|
|
</permission-button>
|
|
|
- <permission-button type="primary" size="mini" :disabled="row.status !== 1" @click="createClubQrcode(row)"> 二维码 </permission-button>
|
|
|
+ <permission-button type="primary" size="mini" :disabled="row.status !== 1" @click="createClubQrcode(row)">
|
|
|
+ 二维码
|
|
|
+ </permission-button>
|
|
|
<permission-button type="primary" size="mini" @click="cotyClubLink($event, row)">
|
|
|
- 复制链接
|
|
|
+ 复制注册链接
|
|
|
</permission-button>
|
|
|
<permission-button
|
|
|
type="primary"
|
|
@@ -124,12 +126,7 @@
|
|
|
</el-table>
|
|
|
|
|
|
<!-- 页码 -->
|
|
|
- <pagination
|
|
|
- :total="total"
|
|
|
- :page.sync="listQuery.pageNum"
|
|
|
- :limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
|
|
|
|
|
|
<!-- 对话框区域 -->
|
|
|
<el-dialog :title="dialogTitle" :visible.sync="showAddAuthDialog" width="30%" @close="dialogClosed">
|
|
@@ -186,6 +183,7 @@ import Pagination from '@/components/Pagination' // secondary package based on e
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { debounce, downloadWithUrl } from '@/utils/tools'
|
|
|
import handleClipboard from '@/utils/clipboard'
|
|
|
+import { routePrefixMap } from '@/utils/config'
|
|
|
export default {
|
|
|
name: 'ComplexTable',
|
|
|
components: { Pagination, FileUpload, PermissionButton, Qrcode },
|
|
@@ -267,10 +265,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 复制链接
|
|
|
- cotyClubLink($event, row) {
|
|
|
- // http://192.168.2.92:8888/114/app/record/club/detail
|
|
|
+ async cotyClubLink($event, row) {
|
|
|
+ console.log(row)
|
|
|
+ if (row.productNum === 0) {
|
|
|
+ return this.$confirm('请在该机构下完善至少一条设备认证,再复制该注册链接', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {})
|
|
|
+ }
|
|
|
+ const routePrefix = routePrefixMap[this.authUserId] ? routePrefixMap[this.authUserId] : `/${this.authUserId}/app`
|
|
|
handleClipboard(
|
|
|
- `${process.env.VUE_APP_WWW_HOST}/${this.authUserId}/app/form/link-register?type=link&authId=${row.authId}`,
|
|
|
+ `${process.env.VUE_APP_WWW_HOST}${routePrefix}/form/club-bind?authId=${row.authId}`,
|
|
|
'链接已复制到粘贴板',
|
|
|
$event
|
|
|
)
|