From b921e333300a26393291ffac44e9d9a2ed2d92ed Mon Sep 17 00:00:00 2001
From: wang1 <844966816@qq.com>
Date: 星期四, 13 七月 2023 18:18:49 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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.10.0