Merge remote-tracking branch 'origin/develop'

This commit is contained in:
yuping
2022-12-30 16:25:21 +08:00
10 changed files with 73 additions and 39 deletions

View File

@@ -593,8 +593,8 @@ export default {
state.duration = result.duration; state.duration = result.duration;
if (result.beginTime && result.endTime) { if (result.beginTime && result.endTime) {
state.chooseTime = [ state.chooseTime = [
dayjs(result.beginTime, "YYYY-MM-DD"), dayjs(result.beginTime, "YYYY-MM-DD HH-mm"),
dayjs(result.endTime, "YYYY-MM-DD"), dayjs(result.endTime, "YYYY-MM-DD HH-mm"),
]; ];
} else { } else {
state.chooseTime = []; state.chooseTime = [];

View File

@@ -5,11 +5,15 @@
return triggerNode.parentNode || document.body; return triggerNode.parentNode || document.body;
} }
" "
v-model:value="id" v-model:value="labelValue"
style="width: 100%" style="width: 100%"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
placeholder="请选择归属组织" placeholder="请选择归属组织"
:labelInValue="true"
allow-clear allow-clear
v-model:treeExpandedKeys="stuTreeExpandedKeys"
:loading="orgLoading"
:load-data="onLoadData"
:tree-data="options" :tree-data="options"
:fieldNames="{ :fieldNames="{
children: 'treeChildList', children: 'treeChildList',
@@ -23,30 +27,50 @@
</a-tree-select> </a-tree-select>
</template> </template>
<script setup> <script setup>
import {computed, defineEmits, defineProps} from "vue"; import {defineEmits, defineProps, ref, watch} from "vue";
import {useStore} from "vuex"; import {request, useBoeApi} from "@/api/request";
import {ORG_CHILD_LIST, ORG_LIST} from "@/api/ThirdApi";
const store = useStore();
const props = defineProps({ const props = defineProps({
value: String, value: String,
name: String,
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false default: false
} }
}) })
const emit = defineEmits({}) const emit = defineEmits({})
const stuTreeExpandedKeys = ref([])
const options = computed(() => store.state.orgtreeList) const labelValue = ref({})
const {
const id = computed(() => { data: options,
return props.value loading: orgLoading,
} = useBoeApi(ORG_LIST, {keyword: ''}, {
init: true,
result: (res) => res.result.map(e => ({...e, isLeaf: false})),
}) })
function change(key, obj, {triggerNode: {props: {namePath}}}) { watch(props, () => {
emit('update:name', obj[0]) stuTreeExpandedKeys.value = []
if (labelValue.value.value !== props.value) {
labelValue.value = {value: props.value, label: props.name}
}
if (labelValue.value.label !== props.name) {
labelValue.value = {value: props.value, label: props.name}
}
})
function onLoadData(treeNode) {
return request(ORG_CHILD_LIST, {keyword: '', orgId: treeNode.id}).then(r => {
treeNode.dataRef.treeChildList = r.result.directChildList
options.value = [...options.value]
})
}
function change({label,value}, obj, {triggerNode: {props: {namePath}}}) {
emit('update:name', label)
emit('update:fullName', namePath) emit('update:fullName', namePath)
emit('update:value', key) emit('update:value', value)
} }
</script> </script>

View File

@@ -28,7 +28,7 @@
<a-form-item label="姓名"> <a-form-item label="姓名">
<a-input <a-input
v-model:value="nameSearch.keyword" v-model:value="nameSearch.keyword"
style="width: 270px; height: 40px; border-radius: 8px" style="width: 270px; height: 40px; border-radius: 8px"
placeholder="请输入姓名" placeholder="请输入姓名"
@change="peopleName" @change="peopleName"
@@ -67,6 +67,8 @@
allow-clear allow-clear
tree-default-expand-all tree-default-expand-all
:tree-data="treeData" :tree-data="treeData"
:loading="orgLoading"
:load-data="onLoadData"
v-model:selectedKeys="stuTreeSelectKeys" v-model:selectedKeys="stuTreeSelectKeys"
v-model:expandedKeys="stuTreeExpandedKeys" v-model:expandedKeys="stuTreeExpandedKeys"
:fieldNames="{ :fieldNames="{
@@ -393,12 +395,10 @@
</template> </template>
<script setup> <script setup>
import {computed, defineEmits, defineProps, ref, watch} from "vue"; import {computed, defineEmits, defineProps, ref, watch} from "vue";
import {useStore} from "vuex"; import {request, useBoeApi, useBoeApiPage} from "@/api/request";
import {useBoeApiPage} from "@/api/request"; import {AUDIENCE_LIST, ORG_CHILD_LIST, ORG_LIST, USER_LIST} from "@/api/ThirdApi";
import {AUDIENCE_LIST, USER_LIST} from "@/api/ThirdApi";
import {saveStu} from "@/api/index1"; import {saveStu} from "@/api/index1";
const store = useStore();
const emit = defineEmits({}); const emit = defineEmits({});
const props = defineProps({ const props = defineProps({
type: Number, type: Number,
@@ -457,7 +457,14 @@ const {
// const { // const {
// data: orgData, // data: orgData,
// fetch: searchOrg, // fetch: searchOrg,
// } = useBoeApi(ORG_LIST, searchOrgName.value) // } = useBoeApiPage(ORG_LIST, searchOrgName.value)
const {
data: treeData,
loading: orgLoading,
} = useBoeApi(ORG_LIST, {keyword: ''}, {
init: true,
result: (res) => res.result.map(e => ({...e,isLeaf:false})),
})
const { const {
data: audiData, data: audiData,
fetch: searchAudi, fetch: searchAudi,
@@ -578,9 +585,13 @@ const closeDrawer = () => {
visiable.value = false; visiable.value = false;
stuData.value = []; stuData.value = [];
nameSearch.value.keyword = ""; nameSearch.value.keyword = "";
}; };
function onLoadData(treeNode){
return request(ORG_CHILD_LIST, {keyword:'',orgId:treeNode.id}).then(r => {
treeNode.dataRef.treeChildList = r.result.directChildList
treeData.value = [...treeData.value]
})
}
const closeChangeModal = () => { const closeChangeModal = () => {
stageVisible.value = false; stageVisible.value = false;
}; };
@@ -588,9 +599,9 @@ const openDrawer = () => {
visiable.value = true; visiable.value = true;
}; };
//获取组织树 //获取组织树
const treeData = computed(() => { // const treeData = computed(() => {
return store.state.orgtreeList ? store.state.orgtreeList : []; // return store.state.orgtreeList ? store.state.orgtreeList : [];
}); // });
function onSearchStu() { function onSearchStu() {
nameSearch.value.page = 1; nameSearch.value.page = 1;
@@ -654,6 +665,7 @@ const auditChangePagination = (page) => {
audienceName.value.page = page; audienceName.value.page = page;
searchAudi(); searchAudi();
}; };
//重置 //重置
function peopleName(name) { function peopleName(name) {
console.log('people-name', name.target.value) console.log('people-name', name.target.value)

View File

@@ -958,7 +958,7 @@
<span style="color: #999999">{{ remark }}</span> <span style="color: #999999">{{ remark }}</span>
</div> </div>
</div> </div>
<div class="set_content" v-if="isPass"> <div class="set_content" v-if="passInfo">
<div class="setc_name"><span>审核意见:</span></div> <div class="setc_name"><span>审核意见:</span></div>
<div class="setc_main"> <div class="setc_main">
<span style="color: #333333">{{ passInfo }}</span> <span style="color: #333333">{{ passInfo }}</span>
@@ -3351,13 +3351,10 @@ export default {
console.log("get task", res.data.data); console.log("get task", res.data.data);
if (res.data.code === 200) { if (res.data.code === 200) {
// 判断当前审核是否通过 // 判断当前审核是否通过
if ( if (res.data.data.projectAuditLogDtoList && res.data.data.projectAuditLogDtoList.length) {
res.data.data.status == -5 &&
res.data.data.projectAuditLogDtoList !== null
) {
console.log("审核信息是什么", res.data.data.projectAuditLogDtoList); console.log("审核信息是什么", res.data.data.projectAuditLogDtoList);
let dataset = res.data.data.projectAuditLogDtoList; let dataset = res.data.data.projectAuditLogDtoList;
state.passInfo = dataset[dataset.length - 1]; state.passInfo = dataset[dataset.length - 1].description;
/** /**
for (let i = 0; i < dataset.length; i++) { for (let i = 0; i < dataset.length; i++) {

View File

@@ -46,7 +46,7 @@
@del="handleDel" @del="handleDel"
/> />
</div> </div>
<div class="opinion name2"> <!-- <div class="opinion name2">
<div class="namebox"> <div class="namebox">
<div class="inname" style="margin-top: 13px">您的其他意见</div> <div class="inname" style="margin-top: 13px">您的其他意见</div>
</div> </div>
@@ -58,7 +58,7 @@
:maxlength="200" :maxlength="200"
/> />
</div> </div>
</div> </div> -->
<div class="footer"> <div class="footer">
<div class="btn"> <div class="btn">
<a-button <a-button

View File

@@ -22,7 +22,7 @@
v-model:value="curItem.valueAsk" v-model:value="curItem.valueAsk"
placeholder="请输入标题名称" placeholder="请输入标题名称"
show-count show-count
:maxlength="20" :maxlength="100"
style="border-radius: 8px" style="border-radius: 8px"
/> />
</div> </div>
@@ -33,6 +33,7 @@
</div> </div>
<div class="in"> <div class="in">
<a-textarea <a-textarea
:maxlength="100"
v-model:value="curItem.valueAskDesc" v-model:value="curItem.valueAskDesc"
style="height: 148px" style="height: 148px"
/> />

View File

@@ -10,7 +10,7 @@
<a-input <a-input
v-model:value="curItem.inputVal" v-model:value="curItem.inputVal"
show-count show-count
:maxlength="30" :maxlength="100"
style="border-radius: 8px" style="border-radius: 8px"
/> />
</div> </div>

View File

@@ -22,7 +22,7 @@
v-model:value="curItem.valueMutil" v-model:value="curItem.valueMutil"
placeholder="请输入题干名称" placeholder="请输入题干名称"
show-count show-count
:maxlength="20" :maxlength="100"
style="border-radius: 8px" style="border-radius: 8px"
/> />
</div> </div>

View File

@@ -22,7 +22,7 @@
v-model:value="curItem.valuePin" v-model:value="curItem.valuePin"
placeholder="请输入标题名称" placeholder="请输入标题名称"
show-count show-count
:maxlength="20" :maxlength="100"
style="border-radius: 8px" style="border-radius: 8px"
/> />
</div> </div>

View File

@@ -22,7 +22,7 @@
v-model:value="curItem.valueSingle" v-model:value="curItem.valueSingle"
placeholder="请输入题干名称" placeholder="请输入题干名称"
show-count show-count
:maxlength="20" :maxlength="100"
style="border-radius: 8px" style="border-radius: 8px"
/> />
</div> </div>