From 965ff433453442ce7398dae14f30712513eb8869 Mon Sep 17 00:00:00 2001
From: Wang YiHang <3060234389@qq.com>
Date: Mon, 9 Sep 2024 22:46:24 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/firminfo/firminfo/index.vue | 104 ++++++++++++++++++++++++++
1 file changed, 104 insertions(+)
diff --git a/src/views/firminfo/firminfo/index.vue b/src/views/firminfo/firminfo/index.vue
index dce25dd..e1ef8b1 100644
--- a/src/views/firminfo/firminfo/index.vue
+++ b/src/views/firminfo/firminfo/index.vue
@@ -37,6 +37,7 @@
充值
+ 新增
@@ -48,6 +49,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -58,6 +92,7 @@ import userAvatar from "../../system/user/profile/userAvatar.vue";
import {pay} from "../../../api/market/apitype";
export default {
+ open: false,
name: "Firminfo",
components: {userAvatar},
computed: {
@@ -67,16 +102,85 @@ export default {
},
data() {
return {
+ title: "",
dialogFormVisible:false,
firminfoForm:{},
pay:{},
firminfo:{},
+ queryParams: {
+ pageNum: 1,
+ pageSize: 10,
+ firmAvatr: null,
+ createdName: null,
+ phone: null,
+ firmTem: null,
+ names: null,
+ position: null,
+ firmRegion: null,
+ firmFrom: null,
+ socialReputation: null,
+ businessLicense: null,
+ firmTime: null,
+ firmScore: null
+ },
+ form: {},
+ rules: {
+ },
+ open: false,
};
},
created() {
this.getFirminfo()
},
methods: {
+ reset() {
+ this.form = {
+ firmId: null,
+ firmAvatr: null,
+ createdName: null,
+ phone: null,
+ firmTem: null,
+ names: null,
+ position: null,
+ firmRegion: null,
+ firmFrom: null,
+ socialReputation: null,
+ businessLicense: null,
+ firmTime: null,
+ firmScore: null
+ };
+ this.resetForm("form");
+ },
+ cancel() {
+ this.open = false;
+ this.reset();
+ },
+
+ handleAdd() {
+ this.reset();
+ this.open = true;
+ this.title = "添加firmList";
+ },
+ submitForm() {
+ this.$refs["form"].validate(valid => {
+ if (valid) {
+ if (this.form.firmId != null) {
+ updateFirminfo(this.form).then(response => {
+ this.$modal.msgSuccess("修改成功");
+ this.open = false;
+ this.getList();
+ });
+ } else {
+ addFirminfo(this.form).then(response => {
+ this.$modal.msgSuccess("新增成功");
+ this.open = false;
+ this.getList();
+ });
+ }
+ }
+ });
+ },
+
getFirminfo() {
getFirminfo().then(response => {
this.firminfoForm = response.data;