Browse Source

feature/spc控制图页面全功能

dengrui 11 months ago
parent
commit
00518f3345

+ 2 - 2
.env.development

@@ -8,9 +8,9 @@ VITE_APP_PORT = 3005
 VITE_APP_BASE_API = '/dev-api'
 
 # 上传文件接口地址
-VITE_APP_UPLOAD_URL = 'http://192.168.101.4:9000'
+VITE_APP_UPLOAD_URL = 'http://192.168.101.4:7105'
 # 开发接口地址
- VITE_APP_API_URL = 'http://192.168.101.188:7105'
+ VITE_APP_API_URL = 'http://192.168.101.4:7105'
 
 
 # 是否启用 Mock 服务

+ 31 - 0
src/api/analysis/index.js

@@ -0,0 +1,31 @@
+import request from "@/utils/request";
+
+export function getData(data) {
+  return request({
+    url: "/api/v1/spc/page1",
+    method: "post",
+    data,
+  });
+}
+
+export function addDatas(data) {
+  return request({
+    url: "/api/v1/spc/add",
+    method: "post",
+    data,
+  });
+}
+export function deleteData(data) {
+  return request({
+    url: "/api/v1/spc/del",
+    method: "post",
+    data,
+  });
+}
+export function updateData(data) {
+  return request({
+    url: "/api/v1/spc/update",
+    method: "post",
+    data,
+  });
+}

+ 2 - 0
src/common/configs/dictDataUtil.ts

@@ -10,6 +10,7 @@ const DictDataUtil = {
     plan_order_priority: "plan_order_priority",
     //订单状态
     plan_order_state: "plan_order_state",
+    spc_operation: "spc_operation",
   },
   EXPAND_FIELD_TABLE: {
     //映射表列表
@@ -18,6 +19,7 @@ const DictDataUtil = {
     plan_order_info: "plan_order_info",
     //映射字段列表
     expand_field_list: "expand_field_list",
+    spc_operation: "spc_operation",
   },
 };
 

File diff suppressed because it is too large
+ 1204 - 193
src/views/analysis/process/index.vue


+ 12 - 1
src/views/statistic/statistic/index.vue

@@ -73,7 +73,12 @@
           </el-table>
         </div>
         <div class="footer">
-          <Pagination />
+          <Pagination
+            :total="currentOption.total"
+            :page="currentOption.page"
+            :limit="currentOption.limit"
+            :pageSizes="currentOption.pageSizes"
+          />
         </div>
       </div>
     </div>
@@ -84,6 +89,12 @@
 import * as echarts from "echarts";
 import Pagination from "@/components/Pagination/index.vue";
 const value = ref("");
+const currentOption = ref({
+  total: 0,
+  page: 0,
+  limit: 12,
+  pageSizes: [12],
+});
 const data = [
   {
     id: 1,