课程简介引用

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;"/> <studentPjjgTeaList :queryParam="{ pageSize: 3, ...tkzjParam,kcbh:'' }" style="max-height: 106px;"/>
</a-card> </a-card>
<ZyCjwtModal ref="ZyCjwtModalPage" @success="handleCjwtOk" /> <ZyCjwtModal ref="ZyCjwtModalPage" @success="handleCjwtOk" />
<ZyJxdgListModal ref="ZyJxdgListModalPage" /> <ZyJxdgListModal ref="ZyJxdgListModalPage" @success="getKcjsJxdg" />
</div> </div>
</template> </template>
@ -188,7 +188,7 @@ const baseApiUrl = globSetting.domainUrl;
} }
// //
function getKcjsJxdg(){ 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){ if(res){
jxdgInfo.value = res; jxdgInfo.value = res;
} }

View File

@ -62,7 +62,7 @@
const { currentRoute } = useRouter(); const { currentRoute } = useRouter();
const { query } = unref(currentRoute); const { query } = unref(currentRoute);
const { rwbh,xqxn } = query;// 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 current = ref<number>(0);
const total = ref<number>(0); const total = ref<number>(0);
const pageNo = ref<number>(0); const pageNo = ref<number>(0);

View File

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

View File

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