|
@@ -10,9 +10,9 @@
|
|
|
</template>
|
|
|
确认生成报告?
|
|
|
</n-popconfirm>
|
|
|
- <n-button type="primary" @click="showUploadModal"
|
|
|
- >上传验证报告</n-button
|
|
|
- >
|
|
|
+ <n-button type="primary" @click="showUploadModal">上传验证报告</n-button>
|
|
|
+ <n-button type="primary" @click="setCopy">复制</n-button>
|
|
|
+ <n-button type="primary" @click="setPaste">粘贴</n-button>
|
|
|
</n-space>
|
|
|
</template>
|
|
|
</n-page-header>
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
getTaskDataClassList,
|
|
|
getVerifyTemplateMapDataList,
|
|
|
generateReport,
|
|
|
- generateKey,
|
|
|
+ generateKey,TempCopy
|
|
|
} from '@/api';
|
|
|
import * as qiniu from 'qiniu-js';
|
|
|
import { getToken } from '@/utils/storage/sessionToken';
|
|
@@ -100,7 +100,7 @@ import { useWindowSize } from '@vueuse/core';
|
|
|
import { NButton } from 'naive-ui';
|
|
|
import { nextTick, onBeforeUnmount, onUpdated } from 'vue';
|
|
|
import FormList from '@/components/FormList.vue';
|
|
|
-
|
|
|
+import { useStore } from 'vuex';
|
|
|
const { height } = useWindowSize();
|
|
|
const message = useMessage();
|
|
|
|
|
@@ -129,7 +129,30 @@ const queryData = reactive({
|
|
|
|
|
|
//
|
|
|
const classList = ref([]);
|
|
|
-
|
|
|
+const store = useStore()
|
|
|
+//复制
|
|
|
+const setCopy = ()=>{
|
|
|
+ message.success("复制成功")
|
|
|
+ store.commit('setTaskId',queryData.T_task_id)
|
|
|
+
|
|
|
+}
|
|
|
+//粘贴
|
|
|
+const setPaste = async ()=>{
|
|
|
+ console.log('粘贴',store.state.TaskId,queryData.T_task_id)
|
|
|
+ if(store.state.TaskId==''){
|
|
|
+ message.error('请先复制模板,在进行粘贴哦')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const resIt = await TempCopy({
|
|
|
+ T_copy_task_id: store.state.TaskId,
|
|
|
+ T_paste_task_id: queryData.T_task_id,
|
|
|
+ T_source:2
|
|
|
+ })
|
|
|
+ if(resIt.data.Code==200){
|
|
|
+ message.success('粘贴成功')
|
|
|
+ getTemplateList()
|
|
|
+ }
|
|
|
+}
|
|
|
// 模态框数据源
|
|
|
const modal = reactive({
|
|
|
showModal: false,
|