| | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="地址" prop="webUrl" align="center" /> |
| | | <el-table-column label="地址" prop="webUrl" align="center" > |
| | | <template #default="scope"> |
| | | <span style="color:#1890ff; cursor: pointer" @click="openUrl(scope.row)">{{scope.row.webUrl}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="跳转方式" prop="carouselTarget" align="center" > |
| | | <template #default="scope"> |
| | | <span>{{scope.row.carouselTarget == 0 ? '新窗口打开' : '内部打开' }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="排序" prop="sort" align="center"/> |
| | | <!-- <el-table-column label="排序" prop="sort" align="center"/>--> |
| | | <el-table-column label="状态" prop="status" align="center" width="150"/> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" > |
| | | <template #default="scope"> |
| | |
| | | import {delCompany, getCompany} from "@/api/onlineEducation/company"; |
| | | import bannerDialog from './components/bannerDialog.vue' |
| | | import {delBanner, getBanner} from "@/api/onlineEducation/banner"; |
| | | import router from "@/router"; |
| | | const { proxy } = getCurrentInstance(); |
| | | const loading = ref(false); |
| | | const dialogRef = ref(); |
| | |
| | | }) |
| | | } |
| | | |
| | | const openUrl = (val) => { |
| | | let fixedUrl = ''; |
| | | if(val.webUrl.indexOf("http") != -1){ |
| | | fixedUrl = val.webUrl |
| | | }else{ |
| | | fixedUrl = "http://" +val.webUrl; |
| | | } |
| | | if(val.carouselTarget == 0){ |
| | | window.open(fixedUrl, '_blank') |
| | | }else { |
| | | router.push({ path: "/newPage", query: { url: fixedUrl } }); |
| | | } |
| | | } |
| | | </script> |