From dc0cc7425a6ef402d13b06b0466bd00a24165a97 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 10 Mar 2021 21:35:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=84=91=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 3 +- .../api/definition/ApiDefinition.vue | 11 ++-- .../components/list/ApiCaseSimpleList.vue | 4 -- .../components/list/ApiDocumentsPage.vue | 4 -- .../definition/components/list/ApiList.vue | 2 - .../common/components/MsTabButton.vue | 2 +- .../components/track/case/TestCase.vue | 20 ++++++- .../track/case/components/TestCaseList.vue | 12 ++-- .../case/components/minder/TestcaseMinder.vue | 56 +++++++++++++++++++ frontend/src/business/main.js | 2 + 10 files changed, 87 insertions(+), 29 deletions(-) create mode 100644 frontend/src/business/components/track/case/components/minder/TestcaseMinder.vue diff --git a/frontend/package.json b/frontend/package.json index a63cffc926..135bf5a33a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -49,7 +49,8 @@ "vuex": "^3.1.2", "xml-js": "^1.6.11", "yan-progress": "^1.0.3", - "jsonpath": "^1.1.0" + "jsonpath": "^1.1.0", + "vue-minder-editor-plus": "^1.0.13" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.1.0", diff --git a/frontend/src/business/components/api/definition/ApiDefinition.vue b/frontend/src/business/components/api/definition/ApiDefinition.vue index 3e6a4707d9..426b2c1087 100644 --- a/frontend/src/business/components/api/definition/ApiDefinition.vue +++ b/frontend/src/business/components/api/definition/ApiDefinition.vue @@ -24,9 +24,8 @@ :label="item.title" :closable="item.closable" :name="item.name"> - - +
export default { - name: "ApiListContainerWithDoc", + name: "MsTabButton", data() { return { isShow: true, diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue index 52f9002568..19e5f2147b 100644 --- a/frontend/src/business/components/track/case/TestCase.vue +++ b/frontend/src/business/components/track/case/TestCase.vue @@ -14,7 +14,15 @@ + + + -
- - +
+ + - diff --git a/frontend/src/business/components/track/case/components/minder/TestcaseMinder.vue b/frontend/src/business/components/track/case/components/minder/TestcaseMinder.vue new file mode 100644 index 0000000000..1e2b08ef6e --- /dev/null +++ b/frontend/src/business/components/track/case/components/minder/TestcaseMinder.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/frontend/src/business/main.js b/frontend/src/business/main.js index 62c2d51c6b..83f6a7094f 100644 --- a/frontend/src/business/main.js +++ b/frontend/src/business/main.js @@ -22,6 +22,8 @@ import {left2RightDrag, bottom2TopDrag, right2LeftDrag} from "../common/js/direc import JsonSchemaEditor from './components/common/json-schema/schema/index'; import JSONPathPicker from 'vue-jsonpath-picker'; import VueClipboard from 'vue-clipboard2' +import vueMinderEditor from 'vue-minder-editor-plus' +Vue.use(vueMinderEditor) Vue.use(JsonSchemaEditor); import VuePapaParse from 'vue-papa-parse'