|
@@ -112,7 +112,7 @@
|
|
|
二维码
|
|
|
</permission-button>
|
|
|
<permission-button type="primary" size="mini" @click="cotyClubLink($event, row)">
|
|
|
- 复制链接
|
|
|
+ 复制注册链接
|
|
|
</permission-button>
|
|
|
<permission-button
|
|
|
type="primary"
|
|
@@ -168,6 +168,7 @@ import { fecthAuthList, changeAuthStatus, removeAuth, authImportExcel, setStarCl
|
|
|
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: { FileUpload, QrcodeClub, ClubListSelector },
|
|
@@ -247,14 +248,38 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 复制链接
|
|
|
- cotyClubLink($event, row) {
|
|
|
+ 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
|
|
|
)
|
|
|
},
|
|
|
|
|
|
+ // cotyClubLink($event, row) {
|
|
|
+ // // http://192.168.2.92:8888/114/app/record/club/detail
|
|
|
+ // let name = 'app'
|
|
|
+ // if (this.authUserId === 12) {
|
|
|
+ // name = 'ross'
|
|
|
+ // }
|
|
|
+ // handleClipboard(
|
|
|
+ // `${process.env.VUE_APP_WWW_HOST}/${this.authUserId}/${name}/form/link-register?type=link&authId=${row.authId}`,
|
|
|
+ // '链接已复制到粘贴板',
|
|
|
+ // $event
|
|
|
+ // )
|
|
|
+ // },
|
|
|
+
|
|
|
// 上传文件
|
|
|
submitUpload() {
|
|
|
this.$refs.dialogForm.validate((valid) => {
|