-
+
+
-
+
-
{{ item.name }}
-
+
{{ format(item.sendTime, "dd") }}
@@ -190,8 +172,8 @@ function getMore() {
{{ item.titile }}
-
审批节点:{{ item.tag.nodeName }}
-
+
@@ -256,6 +238,7 @@ function getMore() {
.content {
display: flex;
+
.slider {
.icon {
width: 17px;
@@ -276,6 +259,7 @@ function getMore() {
align-items: center;
justify-content: space-between;
cursor: pointer;
+
&-active {
background: rgba(80, 122, 253, 0.1);
}
@@ -291,6 +275,7 @@ function getMore() {
font-weight: 600;
color: #333333;
margin-left: 12px;
+
&-active {
color: #507afd;
}
@@ -472,5 +457,4 @@ function getMore() {
// ::v-deep(.n-divider:not(.n-divider--vertical)) {
// margin-top: 12px;
// margin-bottom: 12px;
-// }
-
+// }
diff --git a/src/views/task/aside/Aside.vue b/src/views/task/aside/Aside.vue
index 16a90f6..d837b8d 100644
--- a/src/views/task/aside/Aside.vue
+++ b/src/views/task/aside/Aside.vue
@@ -21,8 +21,13 @@ import { getAllfieldList, getfieldList } from '@/api/home/filter'
import { useTaskStore } from '@/store/modules/task'
import emitter from '@/utils/mitt'
import { useConfig } from '@/store/modules/asideConfig'
-import { getConditionList } from "@/api/home/filter";
+import { getConditionList } from "@/api/home/filter";
import type { FilterSearchParam } from "/#/api";
+import { useRoute } from 'vue-router'
+
+
+const route = useRoute()
+const searchContent = route.query.searchContent as string;
const CustomFieldModalRef = ref(null)
const collapse = ref(false)
const taskStore = useTaskStore()
@@ -130,25 +135,25 @@ async function getshowFieldList() {
onMounted(() => {
getshowFieldList()
- window.addEventListener("keydown", handleKeydown);
- init()
+ window.addEventListener("keydown", handleKeydown);
+ init()
})
-async function init(){
+async function init() {
try {
const searchParam: FilterSearchParam = {
search_searchname: { value: "", op: "like", type: "string" },
};
- const result = await getConditionList(1, searchParam,2);
+ const result = await getConditionList(1, searchParam, 2);
const { data } = result;
- if(data[0]){
+ if (data[0]) {
AdvanceFilterRef.value.setCurrentlySelectedAdvanced(data[0].searchname);
setTimeout(() => {
- filterHandler(data[0].id)
+ filterHandler(data[0].id)
}, 1000);
- //filterHandler(data[0].id);
+ //filterHandler(data[0].id);
}
// pagination.pageNo += 1
-
+
} catch (error) {
return [];
} finally {
@@ -156,7 +161,8 @@ async function init(){
//currentlySelectedAdvanced.value="邱霞"
}
function handleKeydown(event) {
- if (event.key === "s") setShowSearch(true)}
+ if (event.key === "s") setShowSearch(true)
+}
// 滚动容器,让key对应模块处于可视区域
function scrollHandler(key: string) {
const element = document.querySelector(`#${key}`)
@@ -200,6 +206,18 @@ defineExpose({
setAsideItemName,
})
+const initSerach = () => {
+ if (searchContent) {
+ setShowSearch(true);
+ const id_param = searchContent.match(/-\d+-/);
+ if (id_param) {
+ search.value = id_param[0].slice(1, -1);
+ inputHandler(id_param[0].slice(1, -1));
+ }
+ }
+}
+initSerach();
+
const handleOk = (item: any) => {
if (item) {
AdvanceFilterRef.value.setCurrentlySelectedAdvanced(item.searchname);
@@ -212,19 +230,14 @@ const handleOk = (item: any) => {
- 审批节点:{{ item.tag.sendUserName }}
+
审批状态:{{ getStateText(item.tag.states) }}
+
-
-
+
+
+
-
+
-
+
diff --git a/src/views/task/aside/TaskList.vue b/src/views/task/aside/TaskList.vue
index 0e5eb93..acb1bba 100644
--- a/src/views/task/aside/TaskList.vue
+++ b/src/views/task/aside/TaskList.vue
@@ -76,7 +76,7 @@ async function fetchList() {
watch(
() => taskStore.activeId,
(newVal) => {
- // activeId.value = newVal
+ activeId.value = newVal
},
)
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index 15f6c00..7b738b9 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -760,6 +760,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
isFullScreen
? {
height: '596px',
+
}
: {}
"
@@ -803,13 +804,15 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
? imgbigshow
? {
position: 'relative',
- flex: 0.75,
+ //width: '70vw',
+ flex: 1,
+ // flex: 0.75,
'background-image': `url(${taskDetailInfo?.ocrPicture?.imgurl})`,
}
: {
height: '92vh',
- flex: 1,
-
+ //flex: 1,
+
'background-image': `url(${taskDetailInfo?.ocrPicture?.imgurl})`,
}
: {
@@ -820,7 +823,7 @@ function sortHandler(orderby: "similarityScore" | "createdate") {
@mouseleave="leaveTaskHandler"
@click="previewHandler"
>
-
-
+
-
-
+
-
+
+
-
-
+
+
-
{{ taskDetailInfo.fromtaskname }}
-
-
相似图片({{ totalCount }})
+
+
-
+
- {{ item[0].value }}
+ {{ item[0].value }}
{{ item[1].label }}
@@ -55,10 +55,10 @@ function getrowvalue(row) {
:class="item[1].blue ? 'blue' : ''"
@click="getrowvalue(item[1])"
>
-
+
- {{ item[1].value }}
+ {{ item[1].value }}
diff --git a/src/views/task/index.vue b/src/views/task/index.vue
index da75ee2..467e92d 100644
--- a/src/views/task/index.vue
+++ b/src/views/task/index.vue
@@ -33,7 +33,7 @@ function setAsideItemName(text) {
top:0
}
:deep(.ip_box){
- z-index: 105;
+ z-index: 50;
}
.main {
display: flex;
diff --git a/src/views/task/modal/CustomFieldModal.vue b/src/views/task/modal/CustomFieldModal.vue
index aedb35c..4aaccbf 100644
--- a/src/views/task/modal/CustomFieldModal.vue
+++ b/src/views/task/modal/CustomFieldModal.vue
@@ -163,11 +163,12 @@ function onCheckAllChange(value) {
function onCheckChange(checked: any, item: any) {
const index = selectIds.value.indexOf(item.id);
- if (index == -1 && selectIds.value.length >= 6) {
- item.checked = false;
- message.error("自定义任务卡片字段一共勾选数量不能超过6个");
- return;
- }
+ // TODO 禁止选中六个以上字段代码 提示逻辑
+ // if (index == -1 && selectIds.value.length >= 6) {
+ // item.checked = false;
+ // message.error("自定义任务卡片字段一共勾选数量不能超过6个");
+ // return;
+ // }
item.checked = checked;
const currentIndex = offList.value.findIndex((v) => v.id == item.id);
offList.value[currentIndex].checked = checked;
@@ -355,6 +356,10 @@ function queryData(value, type) {
}
}
}
+
+const moreThanSix = computed(() => {
+ return selectIds.value.length >= 6;
+});
@@ -411,7 +416,7 @@ function queryData(value, type) {
diff --git a/src/views/worksheet/aside/Aside.vue b/src/views/worksheet/aside/Aside.vue
index e151339..d93aad1 100644
--- a/src/views/worksheet/aside/Aside.vue
+++ b/src/views/worksheet/aside/Aside.vue
@@ -18,7 +18,11 @@ import { useWindowSizeFn } from '@/hooks/event/useWindowSizeFn'
import { useUser } from '@/store/modules/user'
import { useWorkOrder } from '@/store/modules/workOrder'
import { getViewportOffset } from '@/utils/domUtils'
+import { useRoute } from 'vue-router'
+const route = useRoute()
+const searchContent = route.query.searchContent;
+console.log(searchContent);
defineOptions({ name: 'AsideContent' })
const emit = defineEmits(['ApprovalOver'])
@@ -36,7 +40,7 @@ function collapseHandler() {
const mousetrap = inject('mousetrap') as any
mousetrap.bind('[', collapseHandler)
-const searchKeyword = ref('')
+const searchKeyword = ref(searchContent ? searchContent : '')
const asideWidth = computed(() => {
return collapse.value ? 0 : 308
@@ -157,15 +161,15 @@ const inputHandler = debounce((word) => {
function ApprovalOver(packageId) {
emit('ApprovalOver', packageId)
}
+
+if (searchContent) {
+ showSearch.value = true
+ inputHandler(searchContent)
+}
-
+
@@ -179,46 +183,23 @@ function ApprovalOver(packageId) {
所有任务包
-
+
@@ -237,6 +218,7 @@ function ApprovalOver(packageId) {
padding: 12px 16px;
width: 100%;
overflow: hidden;
+
.warpper {
display: flex;
justify-content: space-between;
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index 6aba9dc..0d531b2 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -905,7 +905,7 @@ defineExpose({
.left {
flex: 0.6;
- background-size: 632px 346px;
+ background-size: auto 346px;
background-position: center;
background-repeat: no-repeat;
-
-
+
+
-
+
-
+