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;