From 9c415d76b4b3f26bf3b50f08555bc44a0b34b805 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”>
Date: Tue, 2 Feb 2021 12:01:35 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/user/search.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/components/user/search.vue b/src/components/user/search.vue
index eef0eba..f072a83 100644
--- a/src/components/user/search.vue
+++ b/src/components/user/search.vue
@@ -19,7 +19,7 @@
-
+
{{scope.row.TestCountLimit==0?'3':scope.row.TestCountLimit}}/{{scope.row.UseTestCount==0?'--':scope.row.UseTestCount}}
@@ -184,11 +184,11 @@ export default {
detailAmountData: [],
formatterCreateType(row, column, cellValue, index) {
switch (cellValue) {
- case 1:
+ case '1':
return "管理员添加";
- case 2:
+ case '2':
return "用户注册";
- case 3:
+ case '3':
return "淘宝注册";
}
return "";
@@ -210,7 +210,7 @@ export default {
this.get();
},
get() {
- this.$api.get("baseinfo/v1/user/SearchInfo", this.searchModel).then(res => {
+ this.$api.get(this.$api.phpURL + "user/user/getList", this.searchModel).then(res => {
this.retData = res;
});
},
@@ -245,7 +245,7 @@ export default {
this.$refs[formName].validate(valid => {
if (!valid) return;
if (this.optype == 1) {
- this.$api.post("baseinfo/v1/user/post", this.userModel).then(res => {
+ this.$api.post(this.$api.phpURL + "user/user/addUser", this.userModel).then(res => {
this.resetForm("inputUserForm");
// this.get();
});
@@ -281,7 +281,7 @@ export default {
},
updateTestLimit() {
this.$api
- .post("baseinfo/v1/user/UpdateTestCount", this.testLimitModel)
+ .post(this.$api.phpURL + "user/user/testCount", this.testLimitModel)
.then(res => {
this.resetForm("inputTestForm");
this.get();