课程简介引用

This commit is contained in:
曹磊 2024-05-23 22:20:33 +08:00
parent 2a754a3937
commit e3e6e1c4ca
4 changed files with 19 additions and 19 deletions

View File

@ -70,7 +70,7 @@
<studentPjjgTeaList :queryParam="{ pageSize: 3, ...tkzjParam,kcbh:'' }" style="max-height: 106px;"/>
</a-card>
<ZyCjwtModal ref="ZyCjwtModalPage" @success="handleCjwtOk" />
<ZyJxdgListModal ref="ZyJxdgListModalPage" />
<ZyJxdgListModal ref="ZyJxdgListModalPage" @success="getKcjsJxdg" />
</div>
</template>
@ -188,7 +188,7 @@ const baseApiUrl = globSetting.domainUrl;
}
//
function getKcjsJxdg(){
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => {
defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh,xqxn:xqxn } }).then((res) => {
if(res){
jxdgInfo.value = res;
}

View File

@ -62,7 +62,7 @@
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
const { rwbh,xqxn } = query;//
const queryParam = ref<any>({rwbh, xqxn ,ggStatus:'1'});
const queryParam = ref<any>({ rwbh,xqxn ,ggStatus:'1'});
const current = ref<number>(0);
const total = ref<number>(0);
const pageNo = ref<number>(0);

View File

@ -38,13 +38,12 @@
import ZyJxdgModal from './components/ZyJxdgModal.vue'
import { defHttp } from '/@/utils/http/axios';
import { useRouter } from 'vue-router';
const queryParam = ref<any>({});
const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref();
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
const { rwbh,xqxn } = query;//
const queryParam = ref<any>({ rwbh,xqxn });
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
@ -88,7 +87,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
@ -97,10 +96,10 @@
// registerModal.value.edit(record);
defHttp.post({url: '/zyJxdg/zyJxdg/editJxdgyy', params: {kcjs:record.kcjs,rwbh,xqxn }}).then(res => {
console.log(`🚀 ~ defHttp.post ~ res:`, res)
});
}
/**
* 详情
*/
@ -108,28 +107,28 @@
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess);
}
/**
* 批量删除事件
*/
async function batchHandleDelete() {
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
}
/**
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
}
/**
* 操作栏
*/
@ -141,7 +140,7 @@
},
];
}
/**
* 下拉操作栏
*/
@ -166,7 +165,7 @@
function searchQuery() {
reload();
}
/**
* 重置
*/
@ -180,7 +179,7 @@
console.log(`🚀 ~ init ~ record:`, record)
reload();
}
defineExpose({
init,

View File

@ -7,7 +7,7 @@ ZyJxdgList<template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import ZyJxdgList from './ZyJxdgList.vue'
const title = ref<string>('');
const width = ref<string>('80%');
const visible = ref<boolean>(false);
@ -15,7 +15,7 @@ ZyJxdgList<template>
const registerForm = ref();
const emit = defineEmits(['register', 'success']);
/**
* 编辑
* @param record
@ -27,7 +27,7 @@ ZyJxdgList<template>
registerForm.value.init(record);
});
}
/**
* 确定按钮点击事件
*/
@ -40,7 +40,7 @@ ZyJxdgList<template>
*/
function submitCallback() {
handleCancel();
emit('success');
// emit('success');
}
/**
@ -48,6 +48,7 @@ ZyJxdgList<template>
*/
function handleCancel() {
visible.value = false;
emit('success');
}
defineExpose({