Просмотр исходного кода

Merge branch 'hcb' of kn-cost/cost-frontend into dev

hanchaobo 1 год назад
Родитель
Сommit
44bca173aa
5 измененных файлов: 1265 добавлений и 2 удалений
  1. 2
    1
      package.json
  2. 12
    0
      src/router/index.js
  3. 3
    1
      src/views/miningAnalysis/statistics/index.vue
  4. 1246
    0
      src/views/test/index.vue
  5. 2
    0
      vite.config.js

+ 2
- 1
package.json Просмотреть файл

@@ -16,7 +16,7 @@
16 16
   },
17 17
   "dependencies": {
18 18
     "@element-plus/icons-vue": "2.3.1",
19
-    "@qomo-platform/core": "^1.0.65",
19
+    "@qomo-platform/core": "^1.0.94",
20 20
     "@vueup/vue-quill": "1.2.0",
21 21
     "@vueuse/core": "10.6.1",
22 22
     "axios": "1.6.7",
@@ -27,6 +27,7 @@
27 27
     "jsencrypt": "3.3.2",
28 28
     "less": "^4.2.0",
29 29
     "md5": "^2.3.0",
30
+    "monaco-editor": "^0.50.0",
30 31
     "nprogress": "0.2.0",
31 32
     "pinia": "2.1.7",
32 33
     "pinia-plugin-persistedstate": "^3.2.1",

+ 12
- 0
src/router/index.js Просмотреть файл

@@ -141,6 +141,18 @@ export const constantRoutes = [
141 141
       }
142 142
     ]
143 143
   },
144
+  {
145
+    path: '',
146
+    component: Layout,
147
+    children: [
148
+      {
149
+        path: "test/index",
150
+        component: () => import("@/views/test/index"),
151
+        name: "Test",
152
+        meta: { title: "测试组件", icon: "tree", affix: true }
153
+      }
154
+    ]
155
+  },
144 156
 ];
145 157
 
146 158
 //本地调试默认路由

+ 3
- 1
src/views/miningAnalysis/statistics/index.vue Просмотреть файл

@@ -3,13 +3,14 @@
3 3
 import { defineComponent, ref } from "vue";
4 4
 import { ElMessage } from "element-plus";
5 5
 import Echarts from "@/components/Echarts/index.vue";
6
+import { tr } from "element-plus/es/locale";
6 7
 export default defineComponent({
7 8
   setup() {
8 9
     const tableRef = ref();
9 10
     const tableRef1 = ref();
10 11
     //列
11 12
     const columns1 = ref([
12
-      { prop: "districtName", label: "物料编号", hideInAddOrEditForm: true, hideInSearchForm: true },
13
+      { prop: "districtName", label: "物料编号"},
13 14
       { label: "版本号", prop: "name" },
14 15
       { label: "实际总成本", prop: "date123" },
15 16
       { label: "标准总成本", prop: "date123" },
@@ -102,6 +103,7 @@ export default defineComponent({
102 103
             columns={columns.value}
103 104
             queryParamsToUrl
104 105
             ref={tableRef}
106
+            request={true}
105 107
             curdConfig={{
106 108
 
107 109
             }}

+ 1246
- 0
src/views/test/index.vue
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 2
- 0
vite.config.js Просмотреть файл

@@ -3,6 +3,7 @@ import path from "path";
3 3
 import createVitePlugins from "./vite/plugins";
4 4
 import tailwindcss from "tailwindcss";
5 5
 import autoprefixer from "autoprefixer";
6
+import { monacoAlias } from "@qomo-platform/vite-plugin"
6 7
 const { networkInterfaces } = require("os");
7 8
 
8 9
 /** 获取本地IP地址 */
@@ -35,6 +36,7 @@ export default defineConfig(({ mode, command }) => {
35 36
         "~": path.resolve(__dirname, "./"),
36 37
         // 设置别名
37 38
         "@": path.resolve(__dirname, "./src"),
39
+        ...monacoAlias
38 40
       },
39 41
       // https://cn.vitejs.dev/config/#resolve-extensions
40 42
       extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"],