mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
Merge remote-tracking branch 'yx/250507-bugfix-shl'
This commit is contained in:
@@ -409,6 +409,13 @@ export default {
|
|||||||
key: 'updateName',
|
key: 'updateName',
|
||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 120,
|
width: 120,
|
||||||
|
customRender: (value) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{ value.record.updateName || '-' }
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
//晋级记录列表数据
|
//晋级记录列表数据
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model:value="selectData"
|
v-model:value="selectData"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
placeholder="请查询姓名或工号"
|
:placeholder="placeholder"
|
||||||
:options="isOpen?options:selectOptions"
|
:options="isOpen?options:selectOptions"
|
||||||
:filter-option="false"
|
:filter-option="false"
|
||||||
showSearch
|
showSearch
|
||||||
@@ -117,6 +117,10 @@ const props = defineProps({
|
|||||||
lecturer: {
|
lecturer: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
default: '请查询姓名或工号'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const emit = defineEmits(['update:value','update:lable','update:system','update:level','update:newlable','update:orgId','update:id','update:payrollPlaceCode','update:payrollPlaceName'])
|
const emit = defineEmits(['update:value','update:lable','update:system','update:level','update:newlable','update:orgId','update:id','update:payrollPlaceCode','update:payrollPlaceName'])
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
<a-button v-if="record.certStatus == '1'" type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
|
|
||||||
<a-button
|
<a-button
|
||||||
v-if="(record.isPermission === 'true' || record.isSuperPermission === 'true') && checkMenu('lecturerEdit')"
|
v-if="(record.isPermission === 'true' || record.isSuperPermission === 'true') && checkMenu('lecturerEdit')"
|
||||||
@@ -103,8 +103,6 @@
|
|||||||
type="link" @click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
type="link" @click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
||||||
<a-button v-if="record.isSuperPermission === 'true' && checkMenu('lecturerDel')" type="link"
|
<a-button v-if="record.isSuperPermission === 'true' && checkMenu('lecturerDel')" type="link"
|
||||||
@click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
@click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))"
|
|
||||||
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button> -->
|
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -175,7 +173,7 @@
|
|||||||
<!-- TODO GX01 -->
|
<!-- TODO GX01 -->
|
||||||
<SearchTeacher @tlevel="teacherTlevel" :lecturer="true" :disabled="!!id"
|
<SearchTeacher @tlevel="teacherTlevel" :lecturer="true" :disabled="!!id"
|
||||||
v-model:value="formParam.name" v-model:lable="formParam.orgNames" v-model:orgId="formParam.orgId"
|
v-model:value="formParam.name" v-model:lable="formParam.orgNames" v-model:orgId="formParam.orgId"
|
||||||
v-model:id="formParam.id" v-model:system="tSystemNames" v-model:level="formParam.tlevelId">
|
v-model:id="formParam.id" v-model:system="tSystemNames" v-model:level="formParam.tlevelId" placeholder="请查询姓名或工号(只可查询非讲师人员)">
|
||||||
</SearchTeacher>
|
</SearchTeacher>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<a-select-option :value="0">全部</a-select-option>
|
<a-select-option :value="0">全部</a-select-option>
|
||||||
<a-select-option :value="1">待提交</a-select-option>
|
<a-select-option :value="1">待提交</a-select-option>
|
||||||
<a-select-option :value="2">审核中</a-select-option>
|
<a-select-option :value="2">审核中</a-select-option>
|
||||||
<!-- <a-select-option :value="3">已完成</a-select-option> -->
|
<a-select-option :value="3">已完成</a-select-option>
|
||||||
<a-select-option :value="4">审核失败</a-select-option>
|
<a-select-option :value="4">审核失败</a-select-option>
|
||||||
<!-- <a-select-option :value="5">撤回</a-select-option> -->
|
<!-- <a-select-option :value="5">撤回</a-select-option> -->
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -769,9 +769,12 @@ export default {
|
|||||||
state.tableLoading = true;
|
state.tableLoading = true;
|
||||||
let objA = {
|
let objA = {
|
||||||
status: status?status:state.searchParam.status,
|
status: status?status:state.searchParam.status,
|
||||||
|
name: state.searchParam.name,
|
||||||
|
leaderName: state.searchParam.leaderName,
|
||||||
|
isParent: state.searchParam.isParent,
|
||||||
//TODO GX03
|
//TODO GX03
|
||||||
//审批未通过意外的数据
|
//审批未通过意外的数据
|
||||||
approvalType:1,
|
// approvalType:1,
|
||||||
moduleType:1,
|
moduleType:1,
|
||||||
};
|
};
|
||||||
console.log("执行 gx getTableDate objA",objA);
|
console.log("执行 gx getTableDate objA",objA);
|
||||||
|
|||||||
@@ -25,6 +25,22 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
<a-form-item class="select">
|
||||||
|
<a-select
|
||||||
|
v-model:value="searchParam.id"
|
||||||
|
style="width: 200px"
|
||||||
|
allowClear
|
||||||
|
showSearch
|
||||||
|
:filter-option="false"
|
||||||
|
@change="handleOrgChange"
|
||||||
|
@search="handleOrgSearch"
|
||||||
|
placeholder="请选择所有根节点列表"
|
||||||
|
>
|
||||||
|
<a-select-option v-for="item in filterOrgListSearch" :key="item.value" :value="item.value">
|
||||||
|
{{ item.label }}
|
||||||
|
</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</a-form-item>
|
||||||
<a-form-item class="select">
|
<a-form-item class="select">
|
||||||
<div>
|
<div>
|
||||||
<a-input
|
<a-input
|
||||||
@@ -488,7 +504,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="jsx">
|
<script lang="jsx">
|
||||||
import { reactive, toRefs, ref, watch } from "vue";
|
import {reactive, toRefs, ref, watch, onMounted} from "vue";
|
||||||
import { FolderAddOutlined } from "@ant-design/icons-vue";
|
import { FolderAddOutlined } from "@ant-design/icons-vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import dialog from "@/utils/dialog";
|
import dialog from "@/utils/dialog";
|
||||||
@@ -497,13 +513,14 @@ import {
|
|||||||
queryTrainOrg,
|
queryTrainOrg,
|
||||||
deleteTrainOrg,
|
deleteTrainOrg,
|
||||||
addReviewer,
|
addReviewer,
|
||||||
updateTrainOrg,
|
updateTrainOrg, queryTrainOrgPor,
|
||||||
} from "../../api/organization";
|
} from "../../api/organization";
|
||||||
import AddOrgContent from "../../components/project/AddOrgContent.vue";
|
import AddOrgContent from "../../components/project/AddOrgContent.vue";
|
||||||
import * as lecturer from "../../api/Lecturer.js";
|
import * as lecturer from "../../api/Lecturer.js";
|
||||||
import lockLecturer from "@/components/project/lockLecturer";
|
import lockLecturer from "@/components/project/lockLecturer";
|
||||||
import AddApprover from "@/components/project/AddApprover";
|
import AddApprover from "@/components/project/AddApprover";
|
||||||
import { checkMenu } from "@/utils/utils";
|
import { checkMenu } from "@/utils/utils";
|
||||||
|
import {getParentAapprovallist} from "@/api/lecturerFeeManagement";
|
||||||
export default {
|
export default {
|
||||||
name: "organizationList",
|
name: "organizationList",
|
||||||
components: {
|
components: {
|
||||||
@@ -537,6 +554,7 @@ export default {
|
|||||||
leaderName: null,
|
leaderName: null,
|
||||||
status: null,
|
status: null,
|
||||||
approvalType: null,
|
approvalType: null,
|
||||||
|
id: null,
|
||||||
pageNo: "1",
|
pageNo: "1",
|
||||||
pageSize: "10",
|
pageSize: "10",
|
||||||
},
|
},
|
||||||
@@ -560,6 +578,7 @@ export default {
|
|||||||
affiliationOrgLists: [],
|
affiliationOrgLists: [],
|
||||||
locking: 1,
|
locking: 1,
|
||||||
},
|
},
|
||||||
|
filterOrgListSearch: [],
|
||||||
});
|
});
|
||||||
const PlaceOfPayList = ref([
|
const PlaceOfPayList = ref([
|
||||||
{ value: "1", label: "一级审批" },
|
{ value: "1", label: "一级审批" },
|
||||||
@@ -1176,6 +1195,50 @@ export default {
|
|||||||
{ label: "根节点", value: "0" },
|
{ label: "根节点", value: "0" },
|
||||||
{ label: "子节点", value: "1" },
|
{ label: "子节点", value: "1" },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
orgLists()
|
||||||
|
})
|
||||||
|
const orgLists = () => {
|
||||||
|
const obj = {
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10000,
|
||||||
|
moduleType: 0,
|
||||||
|
isParent: 0
|
||||||
|
}
|
||||||
|
getParentAapprovallist(obj).then((res) => {
|
||||||
|
state.orgList = res.data.data?.map(item => {
|
||||||
|
return {
|
||||||
|
label: item.affiliationName,
|
||||||
|
value: item.id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
state.orgListSearch = res.data.data?.map(item => {
|
||||||
|
state.orgInput = item.affiliationName;
|
||||||
|
return {
|
||||||
|
label: item.affiliationName,
|
||||||
|
value: item.id
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
state.filterOrgListSearch = state.orgListSearch
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleOrgSearch = (value) => {
|
||||||
|
console.log("handleOrgSearch value: ",value)
|
||||||
|
//克隆数据
|
||||||
|
let temp = JSON.parse(JSON.stringify(state.orgListSearch));
|
||||||
|
//选择数据
|
||||||
|
state.filterOrgListSearch = temp.filter(item => item.label.includes(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleOrgChange = (value) => {
|
||||||
|
if(value == undefined || value == null){
|
||||||
|
state.filterOrgListSearch = state.orgListSearch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//回车
|
//回车
|
||||||
const enterPressHadlerSearch = (e) => {
|
const enterPressHadlerSearch = (e) => {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
@@ -1186,6 +1249,9 @@ export default {
|
|||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
enterPressHadlerSearch,
|
enterPressHadlerSearch,
|
||||||
TrainOrglist,
|
TrainOrglist,
|
||||||
|
orgLists,
|
||||||
|
handleOrgSearch,
|
||||||
|
handleOrgChange,
|
||||||
rules,
|
rules,
|
||||||
formRef,
|
formRef,
|
||||||
columns,
|
columns,
|
||||||
|
|||||||
Reference in New Issue
Block a user