liuyanpeng 1 год назад
Родитель
Сommit
11e2886f34
5 измененных файлов с 114 добавлено и 3 удалено
  1. 2 2
      package.json
  2. 107 0
      src/dashboard/FlowChart.vue
  3. 2 0
      src/index.js
  4. 2 0
      src/routes/main_routes.js
  5. 1 1
      src/window1/tabGridView/TabGridEdit.vue

+ 2 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "name": "client-base-v4",
   "description": "Leanwo Prodog Client",
-  "version": "4.1.42",
+  "version": "4.1.45",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "ins": "npm install --registry http://wuzhixin.vip:4873",
@@ -20,7 +20,7 @@
     "click-outside-vue3": "^4.0.1",
     "dayjs": "^1.11.6",
     "dingtalk-jsapi": "^2.10.3",
-    "pc-component-v3": "^1.0.97",
+    "pc-component-v3": "^1.0.99",
     "uuid": "^8.3.2",
     "v-tooltip": "^4.0.0-beta.17",
     "vue-request": "^1.2.4",

+ 107 - 0
src/dashboard/FlowChart.vue

@@ -0,0 +1,107 @@
+<template>
+  <div class=" flow_container">
+    <div id="flow_image">
+      <img src="/content/DictionaryAsset/Dashboard/EAM/flow.gif" />
+    </div>
+    <div id="entry_account" class="div_flow" title="登账管理" @click="goPage('登账')" />
+    <div id="configuration" class="div_flow" title="资产配置" @click="goPage('配置')" />
+    <div id="dispose" class="div_flow" title="资产处置" @click="goPage('处置')" />
+    <div id="manage" class="div_flow" title="验收管理" @click="goPage('验收')" />
+    <div id="allocation" class="div_flow" title="分配" @click="goPage('分配')" />
+    <div id="take_back" class="div_flow" title="收回" @click="goPage('收回')" />
+    <div id="check" class="div_flow" title="资产盘点" @click="goPage('盘点')" />
+    <div id="repair" class="div_flow" title="维修管理" @click="goPage('维修')" />
+    <div id="transfer" class="div_flow" title="转移" @click="goPage('转移')" />
+  </div>
+</template>
+
+<script setup>
+import { Uuid } from 'pc-component-v3';
+import { useRouter } from 'vue-router';
+
+const router = useRouter();
+
+const goPage = page => {
+  let no;
+  if (page === '盘点') {
+    router.push('/eam/assetInventory');
+    return;
+  } else if (page === '配置') {
+    return;
+  } else if (page === '登账') {
+    no = '20240912_173810';
+  } else if (page === '处置') {
+    no = '20240930_164020';
+  } else if (page === '验收') {
+    no = '20240910_193059';
+  } else if (page === '分配') {
+    no = '20240925_134815';
+  } else if (page === '收回') {
+    no = '20240925_134857';
+  } else if (page === '维修') {
+    no = '20240919_212120';
+  } else if (page === '转移') {
+    no = '20240930_101822';
+  }
+  router.push('/desktop/window1/' + no + '?uuid=' + Uuid.createUUID());
+};
+</script>
+
+<style scoped>
+.flow_container {
+    position: relative;
+    margin: 6% 0 6% 20%;
+}
+
+.div_flow {
+    cursor: pointer;
+    position: absolute;
+    width: 100px;
+    height: 50px;
+}
+
+#entry_account {
+    left: 66px;
+    top: 77px;
+}
+
+#configuration {
+    left: 66px;
+    top: 228px;
+}
+
+#dispose {
+    left: 66px;
+    top: 380px;
+}
+
+#manage {
+    left: 301px;
+    top: 77px;
+}
+
+#allocation {
+    left: 301px;
+    top: 228px;
+}
+
+#take_back {
+    left: 301px;
+    top: 380px;
+}
+
+#check {
+    left: 646px;
+    top: 228px;
+}
+
+#repair {
+    left: 646px;
+    top: 305px;
+}
+
+#transfer {
+    left: 646px;
+    top: 382px;
+}
+</style>

+ 2 - 0
src/index.js

@@ -78,6 +78,7 @@ import CurdWindow1 from './window1/CurdWindow.vue';
 import CurdWindowModal from './window1/CurdWindowModal.vue';
 import AuthImage from './widget/AuthImage.vue';
 import ShortcutMenu from './dashboard/ShortcutMenu.vue';
+import FlowChart from './dashboard/FlowChart.vue';
 
 export {
   App,
@@ -146,4 +147,5 @@ export {
   CurdWindowModal,
   AuthImage,
   ShortcutMenu,
+  FlowChart,
 };

+ 2 - 0
src/routes/main_routes.js

@@ -69,6 +69,7 @@ const SamlLogin = () => import('../client/SamlLogin.vue');
 const CasLogin = () => import('../client/CasLogin.vue');
 const PrinterConfiguration = () => import('../printer/PrinterConfiguration.vue');
 const ShortcutMenu = () => import('../dashboard/ShortcutMenu.vue');
+const FlowChart = () => import('../dashboard/FlowChart.vue');
 
 
 import { ProcessReport } from 'pc-component-v3';
@@ -124,6 +125,7 @@ export default [
 
       // 快捷菜单
       { path: 'shortcutMenu',name:'ShortcutMenu', component: ShortcutMenu },
+      { path: 'assetFlowChart', component: FlowChart },
 
       // CRUD编辑窗口
       // eslint-disable-next-line

+ 1 - 1
src/window1/tabGridView/TabGridEdit.vue

@@ -30,7 +30,7 @@
         </div>
         <div>
           <a-pagination
-            v-model:current="pagination.current_page" v-model:pageSize="pagination.per_page"
+            v-model:current="pagination.current_page" v-model:pageSize="pagination.per_page" :show-size-changer="true"
             show-quick-jumper size="small" :total="pagination.total" :page-size-options="pageSizeOptions"
             @change="handlePageChange" @show-size-change="handleShowSizeChange"
           />