feat: 自定义筛选列逻辑优化,图审弹窗逻辑补全

pull/61/head
刘释隆 1 year ago
parent 9f9392ee67
commit ef1bfb679c

@ -257,7 +257,12 @@ const moveEnd = () => {
<span style="font-size: 20px; color: #333333; font-weight: Medium">{{
currentlySelectedAdvanced
}}</span>
<SvgIcon :style="{ marginLeft: '5px' }" name="down" size="14" color="#999999"/>
<SvgIcon
:style="{ marginLeft: '5px' }"
name="down"
size="14"
color="#999999"
/>
</div>
</template>
<n-spin :show="loading">
@ -265,7 +270,7 @@ const moveEnd = () => {
<n-form :rules="rules" ref="ruleformRef" :model="ruleForm">
<n-form-item path="keyword">
<n-input
:style="{ '--n-border': '0px' }"
:style="{ '--n-border': '0px', '--n-display': 'block' }"
placeholder="请输入关键字"
@input="inputHandler"
:value="ruleForm.keyword"
@ -429,4 +434,7 @@ const moveEnd = () => {
align-items: center;
}
}
::v-deep(.wrapper-left-popover .n-form-item){
display: block !important;
}
</style>

@ -40,6 +40,9 @@ onMounted(async () => {
Boolean(userFieldUnFixed?.find((v2) => v2 == v.name)),
};
offList.value.push(item);
if(item.checked){
selectIds.value.push(item.id);
}
});
});
@ -131,21 +134,18 @@ function onCheckAllChange(value) {
ids.push(item.id);
}
}
selectIds.value = value ? ids : [];
}
function onCheckChange(checked: any, item: any) {
const index = selectIds.value.indexOf(item.id);
item.checked = checked;
if (index === -1 && checked) selectIds.value.push(item.id);
else selectIds.value.splice(index, 1);
}
const indeterminate = computed(() => {
return offList.value.length > 0 && offList.value.length > selectIds.value.length;
return selectIds.value.length > 0 && offList.value.length > selectIds.value.length;
});
</script>

@ -11,6 +11,7 @@ const emit = defineEmits<{
(e: "reject", params: any);
(e: "notPass", params: any);
}>();
const message = useMessage()
const dialog = useDialog();
@ -33,25 +34,35 @@ function showModal(id) {
}
async function getDetail(id) {
console.log('getDetail',id)
// const userInfo = storage.get(CURRENT_USER);
// const nodeType = userInfo.nodeType;
// id = "264626184091111068";
const res = await aiApprovaltools({ taskid: id });
if (res.code === "OK") {
state.detail = res.data;
show.value = true;
if(Number(res.data.similarComplete) > 0){
show.value = true;
}
}
}
const handleReject = async () => {
const res = await audit()
// const res = await setTF({
// taskchildpictureids: state.detail.taskIdList.join(","),
// packageid: state.packageid,
// iztrueorfalse: 0,
// });
// console.log(res, "handleReject");
const param = {
result: false,
comment: '',
disposeType: '',
disposeTypeId: '',
failCauseId: '',
failCauseName: '',
flowTaskInfoList: state.detail.flowTaskInfoList,
}
const res = await audit(param)
if(res.code == 'OK'){
message.success(res.message)
}else{
message.error(res.message)
}
closeModal();
};
async function clearMark() {
@ -138,7 +149,7 @@ defineExpose({
</div>
<div class="time_box">
任务包生成时间
{{ format(detail?.createtime || 0, "yyyy-MM-dd HH:mm:ss") }}
{{ format(detail?.createTime || 0, "yyyy-MM-dd HH:mm:ss") }}
</div>
</div>
</div>

Loading…
Cancel
Save