Merge branch 'test' into fix/styleProblem

pull/90/head
wendong551 1 year ago
commit 49c2fe1b8e

@ -34,7 +34,7 @@ export const useAsideConfigStore = defineStore({
return this.customConfig return this.customConfig
}, },
getAsideValue(): any { getAsideValue(): any {
return this.asideValue return this.asideValue || {}
}, },
getSearchValue(): any { getSearchValue(): any {
return this.searchValue return this.searchValue

@ -64,12 +64,12 @@ const columns: DataTableColumns<RowData> = [
title: '任务ID', title: '任务ID',
key: 'id', key: 'id',
fixed: 'left', fixed: 'left',
width: 180, width: 200,
ellipsis: { ellipsis: {
tooltip: true, tooltip: true,
}, },
render(row: any) { render(row: any) {
return row.fromtaskname return row.fromtaskid
}, },
}, },
{ {

@ -248,9 +248,7 @@ async function getColumns() {
// #endregion // #endregion
columnsRef.value.push(actionsColumns as any) columnsRef.value.push(actionsColumns as any)
console.log(columnsRef.value, 'columnsRef111')
formatColumns() formatColumns()
console.log(columnsRef.value, 'columnsRef222')
} }
async function formatColumns() { async function formatColumns() {
@ -278,7 +276,7 @@ async function formatColumns() {
'text-color': '#507AFD', 'text-color': '#507AFD',
'onClick': () => goDetail(row), 'onClick': () => goDetail(row),
}, },
{ default: () => row.fromtaskname }, { default: () => row.fromtaskid },
) )
}, },
} }
@ -463,7 +461,7 @@ const dialog = useDialog()
const message = useMessage() const message = useMessage()
const finalStore = useFinal() const finalStore = useFinal()
async function query(page: number, pageSize: number, filterId?: any) { async function query(page: number, pageSize: number, filterId?: any,taskName?:string) {
const asideParmas = unref(finalStore.getAsideValue) const asideParmas = unref(finalStore.getAsideValue)
// 使使 // 使使
const params = filterId ? { userSearchId: filterId } : asideParmas const params = filterId ? { userSearchId: filterId } : asideParmas
@ -472,6 +470,7 @@ async function query(page: number, pageSize: number, filterId?: any) {
pageSize, pageSize,
currPage: page, currPage: page,
sortname: 'states', sortname: 'states',
taskName:taskName,
...params, ...params,
}) })
const { data, pageCount, totalCount } = result const { data, pageCount, totalCount } = result
@ -570,7 +569,7 @@ function exportHandler() {
'更新时间', '更新时间',
] ]
const filterVal = [ const filterVal = [
'id', 'pictureid',
'name', 'name',
'approvalnode', 'approvalnode',
'approvalstatus', 'approvalstatus',
@ -801,8 +800,11 @@ async function refreshHandler(searchId?: any) {
} }
function filterTableData(keyword) { function filterTableData(keyword) {
pagination.page = 1;
pagination.pageSize = 10;
if (keyword) if (keyword)
tableData.value = tableData.value.filter(item => item.id.includes(keyword)) // tableData.value = tableData.value.filter(item => item.id.includes(keyword))
query(pagination.page, pagination.pageSize,'',keyword)
else else
query(pagination.page, pagination.pageSize) query(pagination.page, pagination.pageSize)
} }

@ -5,9 +5,10 @@ import Content from './content/Content.vue'
import ListContent from './content/ListContent.vue' import ListContent from './content/ListContent.vue'
const showList = ref(false); const showList = ref(false);
const contentRef = ref(null); const contentRef:any = ref(null);
const inputChange = (keyword)=>{ const inputChange = (keyword)=>{
contentRef.value.filterTableData(keyword) contentRef.value.filterTableData(keyword)
} }
</script> </script>

@ -54,6 +54,7 @@ function selectHandler(item: SearchEntity) {
// //
const searchName = () => { const searchName = () => {
configStore.setSearchValue(searchKeyword.value); configStore.setSearchValue(searchKeyword.value);
emit('inputChange',searchKeyword.value);
} }
const close = () => { const close = () => {

@ -387,7 +387,7 @@ async function commitHandler(settingParam) {
modal.showModal(); modal.showModal();
createPackage(params).then((res) => { createPackage(params).then((res) => {
if (res.code === "OK") { if (res.code === "OK") {
message.success(res.data); message.success(res.message);
packageIdRef.value = res.data.id; packageIdRef.value = res.data.id;
modal.closeModal(); modal.closeModal();
finishModal.showModal(); finishModal.showModal();

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { defineOptions, ref } from 'vue'; import { defineOptions, onMounted, ref, onBeforeUnmount } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
defineOptions({ name: 'ShortcutModal' }) defineOptions({ name: 'ShortcutModal' })
@ -36,7 +36,17 @@ function cancel() {
closeModal() closeModal()
emit('cancel', true) emit('cancel', true)
} }
const time = ref();
onMounted(() => {
time.value = setInterval(() => {
// console.log("00000000-----------");
show.value && refresh();
}, 5000);
});
onBeforeUnmount(() => {
clearInterval(time.value);
time.value = null;
});
defineExpose({ defineExpose({
showModal, showModal,
closeModal closeModal
@ -45,7 +55,8 @@ defineExpose({
<template> <template>
<div class="removeMask"> <div class="removeMask">
<n-modal v-model:show="show" :show-mask="false" :mask-closable="false" transform-origin="center" style="position: fixed;right: 0;bottom: 0;"> <!-- <n-modal v-model:show="show" :show-mask="false" :mask-closable="false" transform-origin="center" style="position: fixed;right: 0;bottom: 0;"> -->
<div v-if="show" style="position: fixed;right: 0;bottom: 0; float: left; z-index: 999;" >
<n-card :style="cardStyle" :bordered="false" size="huge" role="dialog" aria-modal="true" style="padding: 8px 8px 0 8px;"> <n-card :style="cardStyle" :bordered="false" size="huge" role="dialog" aria-modal="true" style="padding: 8px 8px 0 8px;">
<div class="wrapper"> <div class="wrapper">
<div class="title">查重进度</div> <div class="title">查重进度</div>
@ -63,7 +74,8 @@ defineExpose({
</div> </div>
</div> </div>
</n-card> </n-card>
</n-modal> </div>
<!-- </n-modal> -->
</div> </div>
</template> </template>

Loading…
Cancel
Save