mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
fix:删除在线课编辑的清空
This commit is contained in:
@@ -43,7 +43,7 @@ export default defineComponent({
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const isLogin = ref(false);
|
const isLogin = ref(false);
|
||||||
// console.log("router", router.getRoutes(), route);
|
// console.log("router", router.getRoutes(), route);
|
||||||
console.log("版本0.9.1------------");
|
console.log("版本0.9.2------------");
|
||||||
const routes = computed(() => {
|
const routes = computed(() => {
|
||||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-21 14:32:52
|
* @Date: 2022-11-21 14:32:52
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-06 09:02:40
|
* @LastEditTime: 2022-12-06 17:14:47
|
||||||
* @FilePath: /fe-manage/src/api/config.js
|
* @FilePath: /fe-manage/src/api/config.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -55,10 +55,10 @@ http.interceptors.response.use(
|
|||||||
if (code === 0 || code === 200) {
|
if (code === 0 || code === 200) {
|
||||||
return response;
|
return response;
|
||||||
} else {
|
} else {
|
||||||
// if (code === 1000) {
|
if (code === 1000) {
|
||||||
// window.open("https://u-pre.boe.com/web/", '_self');
|
window.open("https://u-pre.boe.com/web/", '_self');
|
||||||
// // window.open("http://111.231.196.214:12013/manage/login", '_self');
|
// window.open("http://111.231.196.214:12013/manage/login", '_self');
|
||||||
// }
|
}
|
||||||
console.log("api %o", msg);
|
console.log("api %o", msg);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_notice">
|
<div class="main_notice" v-if="!edit">
|
||||||
<div class="mntc_left">
|
<div class="mntc_left">
|
||||||
<div class="notice_icon"></div>
|
<div class="notice_icon"></div>
|
||||||
<span style="color: rgba(0, 0, 0, 0.65); margin-right: 17px"
|
<span style="color: rgba(0, 0, 0, 0.65); margin-right: 17px"
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
};
|
};
|
||||||
const handelChangePage = (page) => {
|
const handelChangePage = (page) => {
|
||||||
state.currentPage = page;
|
state.currentPage = page;
|
||||||
state.selectedRowKeys = []
|
state.selectedRowKeys = [];
|
||||||
getAllOnlineText();
|
getAllOnlineText();
|
||||||
};
|
};
|
||||||
const getTableDate = (tableData) => {
|
const getTableDate = (tableData) => {
|
||||||
@@ -365,9 +365,12 @@ export default {
|
|||||||
state.tableDataTotal = res.data.data.count;
|
state.tableDataTotal = res.data.data.count;
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
console.log("获取在线课列表数据", res);
|
console.log("获取在线课列表数据", res);
|
||||||
for(let i=0;i<res.data.data.list.length;i++){
|
for (let i = 0; i < res.data.data.list.length; i++) {
|
||||||
if(Number(res.data.data.list[i].onlineClassesId) == props.EditOnlineId){
|
if (
|
||||||
state.selectedRowKeys = [i+1]
|
Number(res.data.data.list[i].onlineClassesId) ==
|
||||||
|
props.EditOnlineId
|
||||||
|
) {
|
||||||
|
state.selectedRowKeys = [i + 1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getTableDate(arr);
|
getTableDate(arr);
|
||||||
|
|||||||
Reference in New Issue
Block a user