|
|
|
@ -22,33 +22,33 @@ const dialog = useDialog()
|
|
|
|
|
const confrimModalRef = ref(null)
|
|
|
|
|
const batchModalRef = ref(null)
|
|
|
|
|
const totalCount = ref(0)
|
|
|
|
|
const CustomSettingModalRef = ref(null);
|
|
|
|
|
|
|
|
|
|
const CustomSettingModalRef = ref(null)
|
|
|
|
|
|
|
|
|
|
const sortBy: PictureSortParam = {
|
|
|
|
|
orderbyname: "asc",
|
|
|
|
|
orderbyvalue: "fromuptime",
|
|
|
|
|
};
|
|
|
|
|
orderbyname: 'asc',
|
|
|
|
|
orderbyvalue: 'fromuptime',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setBatch(value: boolean) {
|
|
|
|
|
batch.value = value;
|
|
|
|
|
batch.value = value
|
|
|
|
|
if (value === false) {
|
|
|
|
|
selectItems.value.forEach((item) => (item.checked = false));
|
|
|
|
|
selectItems.value.length = 0;
|
|
|
|
|
selectItems.value.forEach(item => (item.checked = false))
|
|
|
|
|
selectItems.value.length = 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function onCheckChange(checked: any, item: any) {
|
|
|
|
|
const index = selectItems.value.indexOf(item);
|
|
|
|
|
item.checked = checked;
|
|
|
|
|
const index = selectItems.value.indexOf(item)
|
|
|
|
|
item.checked = checked
|
|
|
|
|
|
|
|
|
|
if (index === -1 && checked) selectItems.value.push(item);
|
|
|
|
|
else selectItems.value.splice(index, 1);
|
|
|
|
|
if (index === -1 && checked)
|
|
|
|
|
selectItems.value.push(item)
|
|
|
|
|
else selectItems.value.splice(index, 1)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const showActions = computed(() => {
|
|
|
|
|
return selectItems.value.length > 0 && batch;
|
|
|
|
|
});
|
|
|
|
|
return selectItems.value.length > 0 && batch
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const taskpagination = reactive({
|
|
|
|
|
pageNo: 1,
|
|
|
|
@ -180,16 +180,16 @@ function reject(idOrDesc: string, backId: string, isOther: boolean) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showModal(modalRef: any) {
|
|
|
|
|
const modal = unref(modalRef)! as any;
|
|
|
|
|
modal.showModal();
|
|
|
|
|
const modal = unref(modalRef)! as any
|
|
|
|
|
modal.showModal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function forwardHandler() {
|
|
|
|
|
taskStore.forward();
|
|
|
|
|
taskStore.forward()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function backHandler() {
|
|
|
|
|
taskStore.back();
|
|
|
|
|
taskStore.back()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
watch(() => [taskStore.activeId, taskStore.refresh], async (newValue, oldValue) => {
|
|
|
|
@ -207,9 +207,9 @@ watch(() => [taskStore.activeId, taskStore.refresh], async (newValue, oldValue)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const currentTaskId = computed(() => {
|
|
|
|
|
const index = taskStore.getCurrentIndex;
|
|
|
|
|
return taskStore.getApprovalList[index]?.formid || "";
|
|
|
|
|
});
|
|
|
|
|
const index = taskStore.getCurrentIndex
|
|
|
|
|
return taskStore.getApprovalList[index]?.formid || ''
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function overTaskHandle() {
|
|
|
|
|
const item = taskDetailInfo.value
|
|
|
|
@ -219,12 +219,12 @@ function overTaskHandle() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function leaveTaskHandler() {
|
|
|
|
|
overTask.value = null;
|
|
|
|
|
overTask.value = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showActionsModal() {
|
|
|
|
|
const modal = unref(CustomSettingModalRef)! as any;
|
|
|
|
|
modal.showModal();
|
|
|
|
|
const modal = unref(CustomSettingModalRef)! as any
|
|
|
|
|
modal.showModal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
@ -359,7 +359,9 @@ function previewHandler(event: MouseEvent) {
|
|
|
|
|
@update:checked="onCheckChange($event, item)"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="percent">96%</div>
|
|
|
|
|
<div class="percent">
|
|
|
|
|
96%
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</n-scrollbar>
|
|
|
|
@ -368,7 +370,9 @@ function previewHandler(event: MouseEvent) {
|
|
|
|
|
|
|
|
|
|
<div class="info-header">
|
|
|
|
|
<div class="left_box">
|
|
|
|
|
<div class="title">填报信息</div>
|
|
|
|
|
<div class="title">
|
|
|
|
|
填报信息
|
|
|
|
|
</div>
|
|
|
|
|
<SvgIcon size="12" name="collapse" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right_box" @click="showActionsModal">
|
|
|
|
@ -444,13 +448,8 @@ function previewHandler(event: MouseEvent) {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
color: #FFF;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
=======
|
|
|
|
|
color: #fff;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
>>>>>>> al
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|