update bug修复
This commit is contained in:
@@ -12,11 +12,7 @@
|
|||||||
<el-button type="primary" :disabled="disabled">选择文件</el-button>
|
<el-button type="primary" :disabled="disabled">选择文件</el-button>
|
||||||
<template #file="{ file, index }">
|
<template #file="{ file, index }">
|
||||||
<div class="file-item">
|
<div class="file-item">
|
||||||
<div class="file-icon">
|
<img :src="fileUploadAllocationIconFun(file.name)" class="img" />
|
||||||
<el-icon :size="16">
|
|
||||||
<Document />
|
|
||||||
</el-icon>
|
|
||||||
</div>
|
|
||||||
<div class="file-name">
|
<div class="file-name">
|
||||||
{{ file.name }}
|
{{ file.name }}
|
||||||
</div>
|
</div>
|
||||||
@@ -40,9 +36,9 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import { Document, View, Delete, Download } from '@element-plus/icons-vue';
|
import { View, Delete, Download } from '@element-plus/icons-vue';
|
||||||
import FilePreview from '@/components/common/filePreview/index.vue';
|
import FilePreview from '@/components/common/filePreview/index.vue';
|
||||||
import { downloadFileById } from '@/utils/file';
|
import { downloadFileById, fileUploadAllocationIconFun } from '@/utils/file';
|
||||||
import { isArray } from 'lodash-es';
|
import { isArray } from 'lodash-es';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -109,12 +105,6 @@ const removeFun = (index: number) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
.file-icon {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
color: var(--el-text-color-secondary);
|
|
||||||
}
|
|
||||||
.file-name {
|
.file-name {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -123,6 +113,11 @@ const removeFun = (index: number) => {
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
}
|
}
|
||||||
|
.img {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
.file-options {
|
.file-options {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -19,7 +19,12 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div> -->
|
</div> -->
|
||||||
<el-upload :show-file-list="false" :accept="accept" multiple :before-upload="beforeUploadFun">
|
<el-upload
|
||||||
|
:show-file-list="false"
|
||||||
|
:accept="accept"
|
||||||
|
multiple
|
||||||
|
:before-upload="beforeUploadFun"
|
||||||
|
>
|
||||||
<el-button>上传文件</el-button>
|
<el-button>上传文件</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<el-button class="ml12" type="primary" @click="downLoadFun">下载文件</el-button>
|
<el-button class="ml12" type="primary" @click="downLoadFun">下载文件</el-button>
|
||||||
@@ -37,7 +42,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #fileType="{ row }">
|
<template #fileType="{ row }">
|
||||||
<fileTypeChange :id="row.id" v-model="row.fileType"></fileTypeChange>
|
<fileTypeChange :id="row.id" v-model="row.fileType" :disabled="disabled"></fileTypeChange>
|
||||||
</template>
|
</template>
|
||||||
</BaseTable>
|
</BaseTable>
|
||||||
|
|
||||||
@@ -77,6 +82,10 @@ const props = defineProps({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// const env = import.meta.env;
|
// const env = import.meta.env;
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
:tableName="tableName"
|
:tableName="tableName"
|
||||||
:colNum="2"
|
:colNum="2"
|
||||||
:rule-data="ruleData"
|
:rule-data="ruleData"
|
||||||
showDisabled
|
:showDisabled="disabled"
|
||||||
|
:formAttrs="formAttrs"
|
||||||
>
|
>
|
||||||
<template #form-flowTemplate>
|
<template #form-flowTemplate>
|
||||||
<flowTemplateSelect v-model="selectedFlowTemplate" />
|
<flowTemplateSelect v-model="selectedFlowTemplate" />
|
||||||
@@ -41,6 +42,14 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
const tableFormRef = ref();
|
const tableFormRef = ref();
|
||||||
|
const formAttrs = ref({
|
||||||
|
confidence: {
|
||||||
|
min: 0,
|
||||||
|
max: 1,
|
||||||
|
precision: 2,
|
||||||
|
step: 0.01,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const localDetail = ref<any>({});
|
const localDetail = ref<any>({});
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ watch(
|
|||||||
difficult.value = approveContents?.difficult.toString();
|
difficult.value = approveContents?.difficult.toString();
|
||||||
if (taskId.value) {
|
if (taskId.value) {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
baseTableRef.value.resetFun();
|
baseTableRef.value?.resetFun();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -904,7 +904,7 @@ const initProjectTaskAchievementStatistics = async ({
|
|||||||
titleList,
|
titleList,
|
||||||
key,
|
key,
|
||||||
}: any) => {
|
}: any) => {
|
||||||
console.log('XData', XData);
|
// console.log('XData', XData);
|
||||||
dom.commonChartRef.disposeEchartsByKey('chart-' + key);
|
dom.commonChartRef.disposeEchartsByKey('chart-' + key);
|
||||||
dom.commonChartRef.option = {
|
dom.commonChartRef.option = {
|
||||||
title: {
|
title: {
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
<task3DModel
|
<task3DModel
|
||||||
:task-id="currentTaskInfo?.uuid"
|
:task-id="currentTaskInfo?.uuid"
|
||||||
:show-left-options="showLeftOptions"
|
:show-left-options="showLeftOptions"
|
||||||
|
:disabled="!showLeftOptions"
|
||||||
></task3DModel>
|
></task3DModel>
|
||||||
</div>
|
</div>
|
||||||
<div class="tabs-component" v-if="activeName === 'report'">
|
<div class="tabs-component" v-if="activeName === 'report'">
|
||||||
@@ -263,7 +264,7 @@ watch(
|
|||||||
if (newVal) {
|
if (newVal) {
|
||||||
currentTaskInfo.value = newVal;
|
currentTaskInfo.value = newVal;
|
||||||
|
|
||||||
currentTaskInfo.value.achieveStatus = currentTaskInfo.value.achieveStatus.toString();
|
currentTaskInfo.value.achieveStatus = currentTaskInfo.value.achieveStatus?.toString();
|
||||||
currentTaskInfo.value.expStatus = currentTaskInfo.value.expStatus ? '1' : '0';
|
currentTaskInfo.value.expStatus = currentTaskInfo.value.expStatus ? '1' : '0';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ const queryTaskCompletionByWorkspace = async () => {
|
|||||||
series: seriesData,
|
series: seriesData,
|
||||||
};
|
};
|
||||||
taskCompletionAtWorkstations.value = { ...option };
|
taskCompletionAtWorkstations.value = { ...option };
|
||||||
console.log('taskCompletionAtWorkstations.value', taskCompletionAtWorkstations.value);
|
// console.log('taskCompletionAtWorkstations.value', taskCompletionAtWorkstations.value);
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
:task-id="currentTaskInfo?.uuid"
|
:task-id="currentTaskInfo?.uuid"
|
||||||
:task-info="currentTaskInfo"
|
:task-info="currentTaskInfo"
|
||||||
:formAttrs="formAttrs"
|
:formAttrs="formAttrs"
|
||||||
|
:disabled="true"
|
||||||
>
|
>
|
||||||
</taskInfo>
|
</taskInfo>
|
||||||
</div>
|
</div>
|
||||||
@@ -30,6 +31,7 @@
|
|||||||
v-if="activeTab === 'model-3d'"
|
v-if="activeTab === 'model-3d'"
|
||||||
:task-id="currentTaskInfo?.uuid"
|
:task-id="currentTaskInfo?.uuid"
|
||||||
:show-left-options="showLeftOptions"
|
:show-left-options="showLeftOptions"
|
||||||
|
:disabled="true"
|
||||||
></task3DModel>
|
></task3DModel>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|||||||
Reference in New Issue
Block a user