mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
讲师费用管理,页面跳转,刷新页面
This commit is contained in:
@@ -173,7 +173,6 @@ const expenseList = ref([])
|
|||||||
const searchList = ref([])
|
const searchList = ref([])
|
||||||
const timesList = ref([])
|
const timesList = ref([])
|
||||||
const clickItem = (item,i) => {
|
const clickItem = (item,i) => {
|
||||||
console.log("clickItem gx item",item,i);
|
|
||||||
indexList.value = i
|
indexList.value = i
|
||||||
resetData(i,false)
|
resetData(i,false)
|
||||||
}
|
}
|
||||||
@@ -197,8 +196,6 @@ watch(()=>props.visible,(val)=>{
|
|||||||
).then(res=>{
|
).then(res=>{
|
||||||
if(res.data.code === 200){
|
if(res.data.code === 200){
|
||||||
forData.value = res.data.data;
|
forData.value = res.data.data;
|
||||||
console.log("getListByAffiliation gx forData.value ",forData.value)
|
|
||||||
console.log("getListByAffiliation gx forData.value value",forData.value)
|
|
||||||
//todo1 , 只有一个处理 初始化 处理数据 ,进行 激活处理
|
//todo1 , 只有一个处理 初始化 处理数据 ,进行 激活处理
|
||||||
if(forData.value.length == 1){
|
if(forData.value.length == 1){
|
||||||
activeList.value.push(0);
|
activeList.value.push(0);
|
||||||
@@ -472,8 +469,6 @@ const columns = [
|
|||||||
const closeDrawer = () => emit("update:visible", false);
|
const closeDrawer = () => emit("update:visible", false);
|
||||||
const activeList = ref([])
|
const activeList = ref([])
|
||||||
const setList = (item) => {
|
const setList = (item) => {
|
||||||
console.log("setList gx item",item)
|
|
||||||
console.log("setList gx activeList",activeList)
|
|
||||||
const index = activeList.value.findIndex(listItem => listItem === item);
|
const index = activeList.value.findIndex(listItem => listItem === item);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
activeList.value.splice(index, 1);
|
activeList.value.splice(index, 1);
|
||||||
|
|||||||
@@ -267,6 +267,11 @@ export default {
|
|||||||
watch(() => props.key, (val) => {
|
watch(() => props.key, (val) => {
|
||||||
console.log(val, 'valllllll')
|
console.log(val, 'valllllll')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watch(() => props.activeKey, (activeKey) => {
|
||||||
|
console.log(activeKey, 'activeKey props')
|
||||||
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// const search = sessionStorage.getItem('searchApprlval')
|
// const search = sessionStorage.getItem('searchApprlval')
|
||||||
// console.log(search,'search')
|
// console.log(search,'search')
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
||||||
<a-tab-pane key="2" tab="审批中心">
|
<a-tab-pane key="2" tab="审批中心">
|
||||||
<LecturerApproval ref="lecturerApproval"/>
|
<LecturerApproval :activeKey="state.activeKey" ref="lecturerApproval"/>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</div>
|
</div>
|
||||||
@@ -30,7 +30,6 @@ export default {
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const userInfo = computed(() => store.state.userInfo)
|
const userInfo = computed(() => store.state.userInfo)
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const lecturerApproval = ref();
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
activeKey: '1',
|
activeKey: '1',
|
||||||
})
|
})
|
||||||
@@ -49,11 +48,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const activeKeyFn = () => {
|
const activeKeyFn = () => {
|
||||||
console.log("activeKeyFn lecturerApproval",lecturerApproval)
|
|
||||||
state.activeKey = '2'
|
state.activeKey = '2'
|
||||||
//刷新页面数据getTableDate()
|
|
||||||
lecturerApproval.getTableDate()
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user