From 2cf0f0674c660a62d12f74bb856fc251b520483b Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 4 Mar 2022 11:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=A1=E5=9E=8B=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 21 +- package.json | 1 + src/assets/img/error.png | Bin 0 -> 796 bytes src/components/codemirror.vue | 402 ++++++++++++++++++ src/router/index.js | 5 + src/views/serve/addModel.vue | 55 +++ src/views/serve/backstage/modelType.vue | 2 +- src/views/serve/backstage/sourceModel.vue | 476 ++++------------------ src/views/serve/backstage/sourceType.vue | 23 +- 9 files changed, 566 insertions(+), 419 deletions(-) create mode 100644 src/assets/img/error.png create mode 100644 src/components/codemirror.vue create mode 100644 src/views/serve/addModel.vue diff --git a/package-lock.json b/package-lock.json index 1e524b6..105fa7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1049,7 +1049,7 @@ }, "@types/uuid": { "version": "8.3.3", - "resolved": "https://registry.npmmirror.com/@types/uuid/download/@types/uuid-8.3.3.tgz?cache=0&sync_timestamp=1637271089246&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40types%2Fuuid%2Fdownload%2F%40types%2Fuuid-8.3.3.tgz", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.3.tgz", "integrity": "sha512-0LbEEx1zxrYB3pgpd1M5lEhLcXjKJnYghvhTRgaBeUivLHMDM1TzF3IJ6hXU2+8uA4Xz+5BA63mtZo5DjVT8iA==" }, "@vue/babel-helper-vue-jsx-merge-props": { @@ -2803,6 +2803,11 @@ "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, + "codemirror": { + "version": "5.65.2", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.2.tgz", + "integrity": "sha512-SZM4Zq7XEC8Fhroqe3LxbEEX1zUPWH1wMr5zxiBuiUF64iYOUH/JI88v4tBag8MiBS8B8gRv8O1pPXGYXQ4ErA==" + }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -3862,6 +3867,11 @@ "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==", "dev": true }, + "diff-match-patch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", + "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==" + }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -12615,6 +12625,15 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz", "integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==" }, + "vue-codemirror": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/vue-codemirror/-/vue-codemirror-4.0.6.tgz", + "integrity": "sha512-ilU7Uf0mqBNSSV3KT7FNEeRIxH4s1fmpG4TfHlzvXn0QiQAbkXS9lLfwuZpaBVEnpP5CSE62iGJjoliTuA8poQ==", + "requires": { + "codemirror": "^5.41.0", + "diff-match-patch": "^1.0.0" + } + }, "vue-cropperjs": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/vue-cropperjs/-/vue-cropperjs-3.0.0.tgz", diff --git a/package.json b/package.json index bd2454f..b1310b0 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "px2rem-loader": "^0.1.9", "sortablejs": "^1.14.0", "vue": "^2.6.10", + "vue-codemirror": "^4.0.6", "vue-cropperjs": "^3.0.0", "vue-pdf": "^4.3.0", "vue-quill-editor": "^3.0.6", diff --git a/src/assets/img/error.png b/src/assets/img/error.png new file mode 100644 index 0000000000000000000000000000000000000000..0be38297f44a7e509aec19268e01e08d2c998fc7 GIT binary patch literal 796 zcmeAS@N?(olHy`uVBq!ia0vp^hCpn@!3-o1T|3+Wqz(l5gt!9f{{{yC4Gp0rkO4&2 z)*uohXk>(t0;+@~h%7`Ioc#a)|C=}efBpLZ?%n?tEB@!@{kOCGZ)*Dg(xv}1X8hl` z@BgY*|0^o~hlc+D`0@YJrT@#y{!g6vKRX*_qlLx)@8AD_{rdmjz5my*|37>7|JJSl zXU_cJ-Tgl;?SE|Se`n|auU`E>cI^MrqyMX`|0gE?_x66MRnZ9agJemNUoZpn5|^hp z&v1PHFhfuA$_1;clsNm!U$0);rvGu+&A`C;$yFx%UG|$dtTAz>Z&2o} zX@TEr-uIMQz81~O`?zP>%lEbW3Z0J5dGqnI-EyOIw|70bvaIM$uF$L77S{%F$iDJ~)YY|spz9Vru9cJ`z)bsxC#*mBQCt&Q8JmVLO|@!mk` zLC3532eYmBwOccZM|CLPKOMl$B>sI*!|y%9!D%P8gDOtUI5|V{yYnG#&kgZB*Cw_~ zi)gcHq_&rCPF1M;yi@;v-lr2gf6RB#(re{a(fa#U?w^tCgt~t^H52tD3O7G}{cPd- zqc)R5D>qf;ilO+nuqMyY1BS4;#h0@anp;0vZ=bY6Mtz$+N3n`&uV>{_B466 z!6|LG`+rKcen0NruQIDiV6n!|ThXQumGy#;bn%C0A6}JK64<}MM{t4Mib@m972dmE ztnTu2iCw5_yMKDxicGGOaJl8#dh^{S#T~u3p1Z#_ zUiHl~;`bWcXEyAA55MQxG2LQI_hsY0-M>TbtY5=sJ+J<9=zbmF#Xll}Nrb`E)z4*} HQ$iB}eBzis literal 0 HcmV?d00001 diff --git a/src/components/codemirror.vue b/src/components/codemirror.vue new file mode 100644 index 0000000..95790ce --- /dev/null +++ b/src/components/codemirror.vue @@ -0,0 +1,402 @@ + + + + + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index cea4fc7..738b95e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -62,6 +62,11 @@ let router = new Router({ component: () => import( '../views/serve/backstage'), // meta: { title: '服务配置' } }, + { + path: '/addModel', + component: () => import( '../views/serve/addModel'), + // meta: { title: '服务配置' } + }, { path: '/addconfigure', component: () => import( '../views/serve/AddConfigure.vue'), diff --git a/src/views/serve/addModel.vue b/src/views/serve/addModel.vue new file mode 100644 index 0000000..8575563 --- /dev/null +++ b/src/views/serve/addModel.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/views/serve/backstage/modelType.vue b/src/views/serve/backstage/modelType.vue index 14631d2..fbf1b39 100644 --- a/src/views/serve/backstage/modelType.vue +++ b/src/views/serve/backstage/modelType.vue @@ -2,7 +2,7 @@
-
同步原始模型列表
+ 同步原始模型列表 添加
- 新增 - 批量删除 - 批量禁用 - 批量开启 + 新增 + 批量删除 + 批量禁用 + 批量开启
@@ -29,9 +29,9 @@ @@ -40,82 +40,6 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 取 消 - 确 定 - - - - -
-
- 模板下载 -
- - 上传文件 - - 部分数据导入失败,查看失败原因 -
- - 取 消 - 确 定 - -