mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
szx-1090需求
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -35,6 +35,22 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
<a-form-item class="select">
|
||||||
|
<a-select
|
||||||
|
v-model:value="searchParam.trainOrgId"
|
||||||
|
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>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<div style="display: flex; margin-bottom: 20px">
|
||||||
<a-button @click="searchSubmit()" type="primary" class="resetbtn"
|
<a-button @click="searchSubmit()" type="primary" class="resetbtn"
|
||||||
>查询
|
>查询
|
||||||
@@ -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,7 +513,7 @@ 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";
|
||||||
@@ -560,6 +576,7 @@ export default {
|
|||||||
affiliationOrgLists: [],
|
affiliationOrgLists: [],
|
||||||
locking: 1,
|
locking: 1,
|
||||||
},
|
},
|
||||||
|
filterOrgListSearch: [],
|
||||||
});
|
});
|
||||||
const PlaceOfPayList = ref([
|
const PlaceOfPayList = ref([
|
||||||
{ value: "1", label: "一级审批" },
|
{ value: "1", label: "一级审批" },
|
||||||
@@ -1176,6 +1193,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
|
||||||
|
}
|
||||||
|
queryTrainOrgPor(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 +1247,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