|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed, onMounted, reactive, ref, unref, watch } from 'vue'
|
|
|
|
|
import { computed, onMounted, reactive, ref, unref, watch,defineProps } from 'vue'
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
import { chunk } from 'lodash-es'
|
|
|
|
|
import { useDialog, useMessage } from 'naive-ui'
|
|
|
|
@ -24,7 +24,13 @@ const total = ref(0)
|
|
|
|
|
const scrollContainer = ref(null)
|
|
|
|
|
const tableData = ref<any>([])
|
|
|
|
|
const finalStore = useFinal()
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
|
|
|
|
taskvalue: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: ""
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
let num = 1
|
|
|
|
|
const pagination = reactive({
|
|
|
|
|
page: 1,
|
|
|
|
@ -136,16 +142,19 @@ async function query(
|
|
|
|
|
const asideParmas = unref(finalStore.getAsideValue)
|
|
|
|
|
// 有过滤配置的时候优先使用过滤配置,不要使用左侧参数
|
|
|
|
|
// let params = filterId ? { userSearchId: filterId } : asideParmas
|
|
|
|
|
let params = asideParmas
|
|
|
|
|
params = params?.izshowall ? {} : params
|
|
|
|
|
|
|
|
|
|
let params = asideParmas;
|
|
|
|
|
if(params?.izshowall==false){
|
|
|
|
|
params.isFail=false
|
|
|
|
|
}
|
|
|
|
|
params = params?.izshowall ? {isFail:true} : params;
|
|
|
|
|
const result = await getFinalList({
|
|
|
|
|
sortorder: sortorder.value,
|
|
|
|
|
pageSize,
|
|
|
|
|
currPage: page,
|
|
|
|
|
sortname: sortname.value,
|
|
|
|
|
taskName,
|
|
|
|
|
isFail: true,
|
|
|
|
|
// isFail: true,
|
|
|
|
|
...params,
|
|
|
|
|
})
|
|
|
|
|
const { data, pageCount, totalCount } = result
|
|
|
|
@ -231,7 +240,8 @@ function showModal(modalRef: any) {
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
initRem()
|
|
|
|
|
initData(1, 20)
|
|
|
|
|
|
|
|
|
|
initData(1, 20,{},props.taskvalue)
|
|
|
|
|
})
|
|
|
|
|
const item = {
|
|
|
|
|
img: testImg,
|
|
|
|
@ -432,6 +442,7 @@ watch(
|
|
|
|
|
() => finalStore.asideValue,
|
|
|
|
|
(newVal, oldVal) => {
|
|
|
|
|
initData(1, 20)
|
|
|
|
|
num=1
|
|
|
|
|
},
|
|
|
|
|
{ deep: true },
|
|
|
|
|
)
|
|
|
|
@ -543,13 +554,13 @@ defineExpose({
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 3vw">
|
|
|
|
|
<SvgIcon name="magnifying-1" size="18" style="margin-right: 8px" />
|
|
|
|
|
<!--<SvgIcon name="magnifying-1" size="18" style="margin-right: 8px" />
|
|
|
|
|
<SvgIcon
|
|
|
|
|
style="cursor: pointer"
|
|
|
|
|
size="18"
|
|
|
|
|
name="column"
|
|
|
|
|
@click="showModal(customTabelRef)"
|
|
|
|
|
/>
|
|
|
|
|
/>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ref="scrollContainer" :class="tableData.length > 4 ? 'cotnet_wrapeer' : 'cotnet_wrapeertwo'" @scroll="checkBottom">
|
|
|
|
@ -960,8 +971,8 @@ defineExpose({
|
|
|
|
|
position: absolute;
|
|
|
|
|
text-align: center;
|
|
|
|
|
z-index: 3;
|
|
|
|
|
right: 0px;
|
|
|
|
|
top: -4px;
|
|
|
|
|
right: 2px;
|
|
|
|
|
top: -6px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
|
|
.val {
|
|
|
|
|