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

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

@ -11,6 +11,7 @@ const emit = defineEmits<{
(e: "reject", params: any); (e: "reject", params: any);
(e: "notPass", params: any); (e: "notPass", params: any);
}>(); }>();
const message = useMessage()
const dialog = useDialog(); const dialog = useDialog();
@ -33,25 +34,35 @@ function showModal(id) {
} }
async function getDetail(id) { async function getDetail(id) {
console.log('getDetail',id)
// const userInfo = storage.get(CURRENT_USER); // const userInfo = storage.get(CURRENT_USER);
// const nodeType = userInfo.nodeType; // const nodeType = userInfo.nodeType;
// id = "264626184091111068"; // id = "264626184091111068";
const res = await aiApprovaltools({ taskid: id }); const res = await aiApprovaltools({ taskid: id });
if (res.code === "OK") { if (res.code === "OK") {
state.detail = res.data; state.detail = res.data;
if(Number(res.data.similarComplete) > 0){
show.value = true; show.value = true;
} }
} }
}
const handleReject = async () => { const handleReject = async () => {
const res = await audit() const param = {
// const res = await setTF({ result: false,
// taskchildpictureids: state.detail.taskIdList.join(","), comment: '',
// packageid: state.packageid, disposeType: '',
// iztrueorfalse: 0, disposeTypeId: '',
// }); failCauseId: '',
// console.log(res, "handleReject"); 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() { async function clearMark() {
@ -138,7 +149,7 @@ defineExpose({
</div> </div>
<div class="time_box"> <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> </div>
</div> </div>

Loading…
Cancel
Save