@@ -60,7 +68,7 @@ const svgName = computed(() => {
}
&-selected {
- color: #507AFD;
+ color: #507afd;
}
}
@@ -74,7 +82,7 @@ const svgName = computed(() => {
align-items: center;
&:before {
- content: '';
+ content: "";
width: 6px;
height: 6px;
background: #fe9800;
@@ -104,7 +112,6 @@ const svgName = computed(() => {
position: absolute;
bottom: 0px;
}
-
}
../types
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index b5ddfa7..c30dc08 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -198,17 +198,9 @@ function backHandler() {
taskStore.back();
}
-watch(
- () => [taskStore.activeId],
- async (newValue, oldValue) => {
- const packageid = taskStore.getPackageid
- const taskId = taskStore.getActiveId
-
- if (isEmpty(taskId)) return;
- const useInfo = userStore.getUserInfo;
-
+async function getTableData(){
+ const useInfo = userStore.getUserInfo;
let listData = [];
- taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid);
const reviewType = 3; //类型
let res = await getAllfieldList(reviewType);
let fieldList = (res as any)?.data;
@@ -225,6 +217,18 @@ watch(
listData.push(item);
}
});
+ taskTableData.value = _.chunk(listData, 2);
+}
+
+watch(
+ () => [taskStore.activeId],
+ async (newValue, oldValue) => {
+ const packageid = taskStore.getPackageid
+ const taskId = taskStore.getActiveId
+
+ if (isEmpty(taskId)) return;
+ taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid);
+ getTableData();
// TODO mock备份 确认逻辑无误后删除
// let showFieldData = taskDetailInfo.value.ocrPicture;
// let showFieldKeys = Object.keys(showFieldData);
@@ -245,7 +249,6 @@ watch(
// }
// }
// }
- taskTableData.value = _.chunk(listData, 2);
if (!isEmpty(packageid)) {
const { data, total } = await getTaskDetailPictureList(
packageid,
@@ -503,7 +506,7 @@ function getPercent(pictureid: string) {
@reject="rejectHandler"
@approval="approvalHandler"
/>
-
+
diff --git a/src/views/task/modal/CustomSettingModal.vue b/src/views/task/modal/CustomSettingModal.vue
index fd30069..5674e08 100644
--- a/src/views/task/modal/CustomSettingModal.vue
+++ b/src/views/task/modal/CustomSettingModal.vue
@@ -2,7 +2,7 @@
import { getAllfieldList, getfieldList, savefield } from "@/api/home/filter";
import { ReportInfoConfig } from "@/config/workorder";
import { useUser } from "@/store/modules/user";
-import { defineProps, onMounted, ref } from "vue";
+import { defineEmits, defineProps, onMounted, ref } from "vue";
const props = defineProps({
reviewType: {
@@ -95,6 +95,7 @@ function showModal() {
function closeModal() {
show.value = false;
}
+const emit = defineEmits(['onOk'])
async function handleSumbit(e: MouseEvent) {
const userStore = useUser();
@@ -109,9 +110,8 @@ async function handleSumbit(e: MouseEvent) {
savefield(props.reviewType, userInfo.id, userField);
e.preventDefault();
closeModal();
- setTimeout(()=>{
- window.location.reload();
- },3000)
+ emit('onOk')
+
}
defineExpose({