|
@@ -194,6 +194,14 @@
|
|
|
@click="handleRevenue(scope.row)"
|
|
@click="handleRevenue(scope.row)"
|
|
|
v-hasPermi="['company:company:revenue']"
|
|
v-hasPermi="['company:company:revenue']"
|
|
|
>分账配置</el-button>
|
|
>分账配置</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-login"
|
|
|
|
|
+ @click="handleLoginByUser(scope.row)"
|
|
|
|
|
+ v-hasPermi="['his:company:remove']"
|
|
|
|
|
+ >登录
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -902,6 +910,25 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.revenue.open = true
|
|
this.revenue.open = true
|
|
|
},
|
|
},
|
|
|
|
|
+ // A系统中的调用方法
|
|
|
|
|
+ handleLoginByUser(row) {
|
|
|
|
|
+ const bSystemUrl = "http://localhost:81/loginByUserName"
|
|
|
|
|
+
|
|
|
|
|
+ const params = new URLSearchParams({
|
|
|
|
|
+ username: row.userName,
|
|
|
|
|
+ t: Date.now()
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ // 修正:移除 /username
|
|
|
|
|
+ const editUrl = `${bSystemUrl}?${params}`
|
|
|
|
|
+ console.log('访问URL路劲:', editUrl);
|
|
|
|
|
+ // 直接在右侧打开
|
|
|
|
|
+ const left = (window.screenLeft ?? window.screen.left) + (window.outerWidth ?? 800) + 10
|
|
|
|
|
+ const top = window.screenTop ?? window.screen.top
|
|
|
|
|
+
|
|
|
|
|
+ window.open(editUrl, '_blank',
|
|
|
|
|
+ `width=1400,height=800,left=${left},top=${top},resizable=yes`)
|
|
|
|
|
+ },
|
|
|
handleRecharge(row) {
|
|
handleRecharge(row) {
|
|
|
const companyId = row.companyId
|
|
const companyId = row.companyId
|
|
|
this.rechargeForm.companyId = row.companyId
|
|
this.rechargeForm.companyId = row.companyId
|