|
@@ -78,6 +78,8 @@ import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import addNewModal from './components/case/addModal.vue';
|
|
import addNewModal from './components/case/addModal.vue';
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
|
|
+import { useUserStore } from '/@/store/modules/user';
|
|
|
|
+
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: {
|
|
components: {
|
|
BasicTable,
|
|
BasicTable,
|
|
@@ -95,6 +97,7 @@ export default defineComponent({
|
|
const { createMessage } = useMessage();
|
|
const { createMessage } = useMessage();
|
|
const permissionStore = usePermissionStore();
|
|
const permissionStore = usePermissionStore();
|
|
const { getCheckPerm } = permissionStore;
|
|
const { getCheckPerm } = permissionStore;
|
|
|
|
+ const userStore = useUserStore();
|
|
const [register, { openModal }] = useModal();
|
|
const [register, { openModal }] = useModal();
|
|
const language = ref<string>('cn'); //未处理,0已处理(默认1)
|
|
const language = ref<string>('cn'); //未处理,0已处理(默认1)
|
|
const columns: BasicColumn[] = [
|
|
const columns: BasicColumn[] = [
|
|
@@ -303,7 +306,12 @@ export default defineComponent({
|
|
openModal(true, {...record,language});
|
|
openModal(true, {...record,language});
|
|
}
|
|
}
|
|
function handlePreview(record: Recordable) {
|
|
function handlePreview(record: Recordable) {
|
|
|
|
+ const host = userStore.isEnv
|
|
|
|
+ console.log('host',host)
|
|
let url = window.location.host == 'www.4dkankan.com'?`https://www.4dkankan.com/#/cases/detail/${record.id}`:`https://test.4dkankan.com/#/cases/detail/${record.id}`
|
|
let url = window.location.host == 'www.4dkankan.com'?`https://www.4dkankan.com/#/cases/detail/${record.id}`:`https://test.4dkankan.com/#/cases/detail/${record.id}`
|
|
|
|
+ if(host){
|
|
|
|
+ url = window.location.host.includes('test')?`https://testeur.4dkankan.com/#/cases/detail/${record.id}`:`https://eur.4dkankan.com/#/cases/detail/${record.id}`
|
|
|
|
+ }
|
|
window.open(url, "_blank")
|
|
window.open(url, "_blank")
|
|
}
|
|
}
|
|
async function handleWithdraw(record: Recordable) {
|
|
async function handleWithdraw(record: Recordable) {
|