diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtWorkspaceMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtWorkspaceMapper.xml
index e4c32b353f..de0833e4f9 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtWorkspaceMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtWorkspaceMapper.xml
@@ -6,7 +6,7 @@
select w.id, w.name, w.organization_id as organizationId, w.description, o.name as organizationName
from workspace w join organization o on w.organization_id = o.id
-
+
AND w.name LIKE #{request.name,jdbcType=VARCHAR}
diff --git a/frontend/src/business/components/settings/organization/OrganizationMember.vue b/frontend/src/business/components/settings/organization/OrganizationMember.vue
index 2bf4aa6a95..fe830ea069 100644
--- a/frontend/src/business/components/settings/organization/OrganizationMember.vue
+++ b/frontend/src/business/components/settings/organization/OrganizationMember.vue
@@ -120,7 +120,7 @@
updateVisible: false,
form: {},
queryPath: "/user/org/member/list",
- condition: "",
+ condition: {},
tableData: [],
rules: {
userIds: [
@@ -143,7 +143,7 @@
},
initTableData() {
let param = {
- name: this.condition,
+ name: this.condition.name,
organizationId: this.currentUser().lastOrganizationId
};
this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
diff --git a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
index ad9407e884..2b8aa76500 100644
--- a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
+++ b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue
@@ -54,7 +54,7 @@
+ maxlength="60" v-model="condition.name" clearable/>
@@ -235,7 +235,7 @@
let userRole = this.currentUser.userRoles.filter(r => r.sourceId === lastOrganizationId);
if (userRole.length > 0) {
if (userRole[0].roleId === "org_admin") {
- this.result = this.$post(url, {name: this.condition}, response => {
+ this.result = this.$post(url, this.condition, response => {
let data = response.data;
this.items = data.listObject;
for (let i = 0; i < this.items.length; i++) {
@@ -396,7 +396,7 @@
createVisible: false,
btnTips: this.$t('workspace.add'),
addTips: this.$t('member.create'),
- condition: "",
+ condition: {},
items: [],
currentPage: 1,
pageSize: 5,
diff --git a/frontend/src/business/components/settings/system/Organization.vue b/frontend/src/business/components/settings/system/Organization.vue
index da6f1614d9..d03553fe9e 100644
--- a/frontend/src/business/components/settings/system/Organization.vue
+++ b/frontend/src/business/components/settings/system/Organization.vue
@@ -39,7 +39,7 @@
+ maxlength="60" v-model="condition.name" clearable/>
@@ -193,7 +193,7 @@
export default {
name: "MsOrganization",
- components: {MsCreateBox, MsTablePagination,MsTableHeader},
+ components: {MsCreateBox, MsTablePagination, MsTableHeader},
data() {
return {
queryPath: '/organization/list',
@@ -215,7 +215,7 @@
memberTotal: 0,
currentRow: {},
btnTips: this.$t('member.create'),
- condition: "",
+ condition: {},
tableData: [],
memberLineData: [],
form: {},
@@ -395,10 +395,7 @@
this.initTableData();
},
initTableData() {
- let param = {
- name: this.condition
- };
- this.result = this.$post(this.queryPath + "/" + this.currentPage + "/" + this.pageSize, param, response => {
+ this.result = this.$post(this.queryPath + "/" + this.currentPage + "/" + this.pageSize, this.condition, response => {
let data = response.data;
this.tableData = data.listObject;
for (let i = 0; i < this.tableData.length; i++) {
diff --git a/frontend/src/business/components/settings/system/SystemWorkspace.vue b/frontend/src/business/components/settings/system/SystemWorkspace.vue
index b6d045bbaa..3961a7cc4f 100644
--- a/frontend/src/business/components/settings/system/SystemWorkspace.vue
+++ b/frontend/src/business/components/settings/system/SystemWorkspace.vue
@@ -95,7 +95,7 @@
+ maxlength="60" v-model="condition.name" clearable/>
@@ -119,7 +119,8 @@
-
@@ -342,7 +343,7 @@
},
list() {
let url = '/workspace/list/all/' + this.currentPage + '/' + this.pageSize;
- this.result = this.$post(url, {name: this.condition}, response => {
+ this.result = this.$post(url, this.condition, response => {
let data = response.data;
this.items = data.listObject;
for (let i = 0; i < this.items.length; i++) {
@@ -438,7 +439,7 @@
updateMemberVisible: false,
btnTips: this.$t('workspace.add'),
addTips: this.$t('member.create'),
- condition: "",
+ condition: {},
items: [],
currentPage: 1,
pageSize: 5,
diff --git a/frontend/src/business/components/settings/system/TestResourcePool.vue b/frontend/src/business/components/settings/system/TestResourcePool.vue
index 224c0275b7..36920f52d2 100644
--- a/frontend/src/business/components/settings/system/TestResourcePool.vue
+++ b/frontend/src/business/components/settings/system/TestResourcePool.vue
@@ -230,7 +230,7 @@
btnTipsAdd: this.$t("commons.add"),
btnTipsDel: this.$t("commons.delete"),
queryPath: "testresourcepool/list",
- condition: "",
+ condition: {},
items: [],
currentPage: 1,
pageSize: 5,
@@ -261,11 +261,8 @@
},
methods: {
initTableData() {
- let param = {
- name: this.condition
- };
- this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
+ this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
let data = response.data;
this.items = data.listObject;
this.total = data.itemCount;
diff --git a/frontend/src/business/components/settings/system/User.vue b/frontend/src/business/components/settings/system/User.vue
index 037829f249..d9bed97dd4 100644
--- a/frontend/src/business/components/settings/system/User.vue
+++ b/frontend/src/business/components/settings/system/User.vue
@@ -114,7 +114,7 @@
pageSize: 5,
total: 0,
btnTips: this.$t('user.create'),
- condition: "",
+ condition: {},
tableData: [],
form: {},
rule: {
@@ -216,10 +216,7 @@
})
},
search() {
- let param = {
- name: this.condition
- };
- this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
+ this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
let data = response.data;
this.total = data.itemCount;
this.tableData = data.listObject;
diff --git a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
index d40082dae6..3b299a6ef8 100644
--- a/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
+++ b/frontend/src/business/components/settings/workspace/WorkspaceMember.vue
@@ -18,8 +18,10 @@
-
-
+
+
@@ -30,7 +32,8 @@
-
+
{
+ this.result = this.$post("/workspace/member/update", param, () => {
this.$message({
type: 'success',
message: this.$t('commons.modify_success')
@@ -225,18 +228,18 @@
create() {
this.form = {};
let param = {
- name: this.condition,
+ name: this.condition.name,
organizationId: this.currentUser().lastOrganizationId
};
let wsId = this.currentUser().lastWorkspaceId;
if (typeof wsId == "undefined" || wsId == null || wsId == "") {
this.$message({
- message:'请先选择工作空间!',
+ message: '请先选择工作空间!',
type: 'warning'
});
return false;
}
- this.$post('/user/org/member/list/all', param,response => {
+ this.$post('/user/org/member/list/all', param, response => {
this.createVisible = true;
this.$set(this.form, "userList", response.data);
})