From ffd0af47ee31a9592cfab56a907e9841a9113c52 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 20 七月 2023 10:37:17 +0800
Subject: [PATCH] 代码提交,前端代码打包

---
 Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordresultant.vue |  113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 113 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordresultant.vue b/Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordresultant.vue
new file mode 100644
index 0000000..5403b64
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/views/system/PasswordManagement/Passwordresultant.vue
@@ -0,0 +1,113 @@
+<template>
+  <basic-container>
+    <avue-crud v-model="form" :option="option" :data="data" ref="crud"  @on-load="onLoad" @row-save="rowSave" @row-update="rowUpdate" @row-del="rowDel" :page.sync="page">
+    </avue-crud>
+  </basic-container>
+</template>
+
+<script>
+import {
+  getadd,
+  getupdata,
+  getremove,
+  getPage
+} from "@/api/system/passwordresultant";
+
+export default {
+  name: "passwords.vue",
+  data() {
+    return {
+      form:{},
+      page: {
+        pageSize: 10,
+        currentPage: 1,
+        total: 100
+      },
+
+      data: [],
+      option:{
+        headerAlign: 'center',
+        align: 'center',
+        border: true,
+        index: true,
+        rowKey:'id',
+        column:[
+          {
+            label: '鍚嶇О',
+            prop: 'name',
+            align: 'left',
+                      },
+          {
+            label: '鎻忚堪',
+            prop: 'desc',
+          }
+        ]
+      }
+      }
+    },
+
+
+  created() {
+   this.onLoad()
+  },
+  methods:{
+    rowDel(row){
+      this.$confirm("纭畾灏嗛�夋嫨鏁版嵁鍒犻櫎?", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning"
+      })
+        .then(() => {
+          return getremove(row.id);
+        })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "鎿嶄綔鎴愬姛!"
+          });
+          this.onLoad();
+        });
+    },
+    rowSave(row,done){
+      getadd(row).then(()=>{
+        this.$message({
+          type: "success",
+          message: "鎿嶄綔鎴愬姛!"
+        });
+        done(row)
+        this.onLoad()
+      }).catch((res)=>{
+        this.$message({
+          type: "success",
+          message:res
+        });
+      })
+    },
+    rowUpdate(row,index,done){
+      getupdata(row).then(()=>{
+        this.onLoad()
+        this.$message({
+          type: "success",
+          message: "淇敼鎴愬姛!"
+        });
+        done(row)
+      })
+    },
+    onLoad(page, params = {}) {
+      // this.loading = true;
+      getPage(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => {
+        // const data = res.data.data;
+        // this.page.total = data.total;
+        // this.data = data.records;
+        // this.loading = false;
+        // this.selectionClear();
+        this.data=res.data.data.records
+      });
+    }
+  }
+
+}
+</script>
+
+<style lang="scss">
+</style>

--
Gitblit v1.9.3