This commit is contained in:
2024-09-01 15:58:58 +08:00
parent fc1f68b69a
commit bdb8c55b2b
7 changed files with 49 additions and 33 deletions

View File

@@ -1,18 +1,18 @@
{ {
"name": "cdtmp", "name": "cdtmp",
"version": "0.0.2", "version": "0.0.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cdtmp", "name": "cdtmp",
"version": "0.0.2", "version": "0.0.3",
"dependencies": { "dependencies": {
"@arco-design/color": "^0.4.0", "@arco-design/color": "^0.4.0",
"@arco-design/web-vue": "^2.56.1", "@arco-design/web-vue": "^2.56.1",
"@tinymce/tinymce-vue": "^6.0.1", "@tinymce/tinymce-vue": "^6.0.1",
"@vueuse/core": "^11.0.3", "@vueuse/core": "^11.0.3",
"axios": "^1.7.5", "axios": "^1.7.7",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"echarts": "^5.5.1", "echarts": "^5.5.1",
"file2md5": "^1.3.0", "file2md5": "^1.3.0",
@@ -22,7 +22,7 @@
"monaco-editor": "^0.51.0", "monaco-editor": "^0.51.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pinia": "^2.2.2", "pinia": "^2.2.2",
"pinyin-match": "^1.2.5", "pinyin-match": "^1.2.6",
"postcss-import": "^16.1.0", "postcss-import": "^16.1.0",
"qs": "^6.13.0", "qs": "^6.13.0",
"tinymce": "^7.3.0", "tinymce": "^7.3.0",
@@ -38,17 +38,17 @@
"@types/node": "^22.5.1", "@types/node": "^22.5.1",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@types/qs": "^6.9.15", "@types/qs": "^6.9.15",
"@vitejs/plugin-vue": "^5.1.2", "@vitejs/plugin-vue": "^5.1.3",
"@vitejs/plugin-vue-jsx": "^4.0.1", "@vitejs/plugin-vue-jsx": "^4.0.1",
"@vue/babel-plugin-jsx": "^1.1.1", "@vue/babel-plugin-jsx": "^1.1.1",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"browserslist": "^4.23.0", "browserslist": "^4.23.0",
"caniuse-lite": "^1.0.30001653", "caniuse-lite": "^1.0.30001655",
"eslint": "^9.9.1", "eslint": "^9.9.1",
"eslint-plugin-vue": "^9.27.0", "eslint-plugin-vue": "^9.27.0",
"less": "^4.2.0", "less": "^4.2.0",
"less-loader": "^12.2.0", "less-loader": "^12.2.0",
"postcss": "^8.4.41", "postcss": "^8.4.42",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"tailwindcss": "^3.4.10", "tailwindcss": "^3.4.10",
"typescript": "^5.5.3", "typescript": "^5.5.3",
@@ -1439,9 +1439,9 @@
"integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==" "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow=="
}, },
"node_modules/@vitejs/plugin-vue": { "node_modules/@vitejs/plugin-vue": {
"version": "5.1.2", "version": "5.1.3",
"resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.1.2.tgz", "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.1.3.tgz",
"integrity": "sha512-nY9IwH12qeiJqumTCLJLE7IiNx7HZ39cbHaysEUd+Myvbz9KAqd2yq+U01Kab1R/H1BmiyM2ShTYlNH32Fzo3A==", "integrity": "sha512-3xbWsKEKXYlmX82aOHufFQVnkbMC/v8fLpWwh6hWOUrK5fbbtBh9Q/WWse27BFgSy2/e2c0fz5Scgya9h2GLhw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@@ -2092,9 +2092,9 @@
} }
}, },
"node_modules/axios": { "node_modules/axios": {
"version": "1.7.5", "version": "1.7.7",
"resolved": "https://registry.npmmirror.com/axios/-/axios-1.7.5.tgz", "resolved": "https://registry.npmmirror.com/axios/-/axios-1.7.7.tgz",
"integrity": "sha512-fZu86yCo+svH3uqJ/yTdQ0QHpQu5oL+/QE+QPSv6BZSkDAoky9vytxp7u5qk83OJFS3kEBcesWni9WTZAv3tSw==", "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"follow-redirects": "^1.15.6", "follow-redirects": "^1.15.6",
@@ -2255,9 +2255,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001653", "version": "1.0.30001655",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz", "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz",
"integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==", "integrity": "sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -4334,9 +4334,9 @@
} }
}, },
"node_modules/pinyin-match": { "node_modules/pinyin-match": {
"version": "1.2.5", "version": "1.2.6",
"resolved": "https://registry.npmmirror.com/pinyin-match/-/pinyin-match-1.2.5.tgz", "resolved": "https://registry.npmmirror.com/pinyin-match/-/pinyin-match-1.2.6.tgz",
"integrity": "sha512-+F3bi5v95enkqSJ0nD1e2fGp8Uj3YCRBzka3DlCQ4tyurfqYmAChLR3aAO/c/Pk+xBgvEx9zI35HoyYATSb0mw==", "integrity": "sha512-d9fMSwZujH7UlMu+FO8MGXrgUYv0CwJtzpf3fQ8xgLJy1qfXlzOZsnQuL7Ej7msAiEtt37U7bE4dkVmyWaFfwA==",
"license": "SATA" "license": "SATA"
}, },
"node_modules/pirates": { "node_modules/pirates": {
@@ -4349,9 +4349,9 @@
} }
}, },
"node_modules/postcss": { "node_modules/postcss": {
"version": "8.4.41", "version": "8.4.42",
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.41.tgz", "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.42.tgz",
"integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==", "integrity": "sha512-hywKUQB9Ra4dR1mGhldy5Aj1X3MWDSIA1cEi+Uy0CjheLvP6Ual5RlwMCh8i/X121yEDLDIKBsrCQ8ba3FDMfQ==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",

View File

@@ -15,7 +15,7 @@
"@arco-design/web-vue": "^2.56.1", "@arco-design/web-vue": "^2.56.1",
"@tinymce/tinymce-vue": "^6.0.1", "@tinymce/tinymce-vue": "^6.0.1",
"@vueuse/core": "^11.0.3", "@vueuse/core": "^11.0.3",
"axios": "^1.7.5", "axios": "^1.7.7",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"echarts": "^5.5.1", "echarts": "^5.5.1",
"file2md5": "^1.3.0", "file2md5": "^1.3.0",
@@ -25,7 +25,7 @@
"monaco-editor": "^0.51.0", "monaco-editor": "^0.51.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pinia": "^2.2.2", "pinia": "^2.2.2",
"pinyin-match": "^1.2.5", "pinyin-match": "^1.2.6",
"postcss-import": "^16.1.0", "postcss-import": "^16.1.0",
"qs": "^6.13.0", "qs": "^6.13.0",
"tinymce": "^7.3.0", "tinymce": "^7.3.0",
@@ -41,17 +41,17 @@
"@types/node": "^22.5.1", "@types/node": "^22.5.1",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@types/qs": "^6.9.15", "@types/qs": "^6.9.15",
"@vitejs/plugin-vue": "^5.1.2", "@vitejs/plugin-vue": "^5.1.3",
"@vitejs/plugin-vue-jsx": "^4.0.1", "@vitejs/plugin-vue-jsx": "^4.0.1",
"@vue/babel-plugin-jsx": "^1.1.1", "@vue/babel-plugin-jsx": "^1.1.1",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"browserslist": "^4.23.0", "browserslist": "^4.23.0",
"caniuse-lite": "^1.0.30001653", "caniuse-lite": "^1.0.30001655",
"eslint": "^9.9.1", "eslint": "^9.9.1",
"eslint-plugin-vue": "^9.27.0", "eslint-plugin-vue": "^9.27.0",
"less": "^4.2.0", "less": "^4.2.0",
"less-loader": "^12.2.0", "less-loader": "^12.2.0",
"postcss": "^8.4.41", "postcss": "^8.4.42",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"tailwindcss": "^3.4.10", "tailwindcss": "^3.4.10",
"typescript": "^5.5.3", "typescript": "^5.5.3",

View File

@@ -76,5 +76,16 @@ export default {
method: "get", method: "get",
params params
}) })
},
/**
* 请求取消生成文档标志设置为True
* @returns 返回是否取消成功
*/
cancel(params = {}) {
return request({
url: `/create/cancel`,
method: "get",
params
})
} }
} }

View File

@@ -10,10 +10,12 @@ const useTreeDataStore = defineStore("treeDataStore", {
isInit: false isInit: false
} }
}, },
/**
* 注意action不能使用箭头函数不能绑定this
*/
actions: { actions: {
// 不能使用箭头函数无法绑定this
async initTreeData(projectId) { async initTreeData(projectId) {
// 先判断储存pid是否存在 // 判读是否有项目tree储存pid为项目后端id
const pid = localStorage.getItem("pid") const pid = localStorage.getItem("pid")
// 如果不存在,则请求后台树状数据 // 如果不存在,则请求后台树状数据
if (!pid) { if (!pid) {

View File

@@ -86,6 +86,8 @@ const handleRelatedChange = async (record) => {
} }
loading.value = false loading.value = false
emits("relatedOrunrelated") emits("relatedOrunrelated")
// 重新刷新表格请求
crudRef.value.refresh()
} }
// 数据定义 // 数据定义
@@ -455,7 +457,7 @@ const columns = ref([
title: "开发人员", title: "开发人员",
hide: true, hide: true,
dataIndex: "designerPerson", dataIndex: "designerPerson",
formType: "input", formType: "input"
}, },
{ {
title: "开发方日期", title: "开发方日期",

View File

@@ -12,7 +12,7 @@
<template #icon> <template #icon>
<icon-plus-circle /> <icon-plus-circle />
</template> </template>
关联添加问题单 添加关联问题单
</a-button> </a-button>
</template> </template>
</ma-crud> </ma-crud>

View File

@@ -6,7 +6,7 @@
hide-cancel hide-cancel
:mask-closable="false" :mask-closable="false"
:on-before-ok="handleClickConfirmButton" :on-before-ok="handleClickConfirmButton"
@cancel="handleClickConfirmButton" :on-before-cancel="handleClickConfirmButton"
> >
<template #title>正在生成{{ text }}</template> <template #title>正在生成{{ text }}</template>
<div><a-progress :percent="percent" size="large" /></div> <div><a-progress :percent="percent" size="large" /></div>
@@ -17,6 +17,7 @@
<script setup> <script setup>
import { ref, watch, onUnmounted } from "vue" import { ref, watch, onUnmounted } from "vue"
import { Notification } from "@arco-design/web-vue" import { Notification } from "@arco-design/web-vue"
import seitaiGenerateApi from "@/api/generate/seitaiGenerate"
const emits = defineEmits(["clickConfirm"]) const emits = defineEmits(["clickConfirm"])
const props = defineProps({ const props = defineProps({
visible: { visible: {
@@ -34,7 +35,7 @@ const props = defineProps({
}) })
const percent = ref(0) const percent = ref(0)
// 点击确定或关闭按钮判断是否完成未完成则无法关闭进度条modal // 点击确定或关闭按钮判断是否完成未完成则无法关闭进度条modal
const handleClickConfirmButton = () => { const handleClickConfirmButton = async () => {
if (props.isComplete) { if (props.isComplete) {
emits("clickConfirm") emits("clickConfirm")
return true return true