@@ -137,7 +132,7 @@
- 您正在对 {{ selectedRow.business_name }}{{ selectedRow.system_account }}做修改密码操作,修改后旧密码将无法登录。
@@ -192,13 +187,13 @@ import bgBreadcrumb from "@/components/bg-breadcrumb.vue";
const dataTable = ref(null);
const headers = ref([
{
- label: "业务系统编码",
- prop: "business_code",
+ label: "姓名",
+ prop: "name",
minWidth: 160,
},
{
- label: "业务系统名称",
- prop: "business_name",
+ label: "手机号",
+ prop: "phone",
minWidth: 160,
},
{
@@ -207,7 +202,7 @@ const headers = ref([
},
{
label: "所属组织",
- prop: "organization_name",
+ prop: "org_name",
minWidth: 180,
},
{
@@ -227,7 +222,6 @@ const headers = ref([
},
]);
const tableRows = ref([]);
-const search = ref("");
const filter = reactive({
search: "",
page: 1,
@@ -281,22 +275,22 @@ const getTableRows = () => {
})
.then((res) => {
if (res.data.code == 200) {
- tableRows.value = res.data.data || [];
- tableTotal.value = res.data.total;
+ tableRows.value = res.data.data?.org_users?.data || [];
+ tableTotal.value = res.data.data?.org_users?.total || 0;
} else {
ElMessage.error(res.data.data);
}
});
};
-const addAccount = (params) => {
+const addAccount = () => {
router.push({
path: "/authority/user/add",
});
};
const handleNodeClick = (data) => {
- if (data.data_type == 1) {
+ if (data.data_type > 0) {
selectNode.value = data.organization_id;
changePage(1);
} else {
@@ -326,7 +320,6 @@ const getOrgTree = () => {
orgData.value = res.data.data || [];
// orgData.value.shift();
const orgList = searchOrg(orgData.value);
- console.log("orgList", orgList);
if (route.query.organization_id) {
searchItem(orgData.value, route.query.organization_id);
} else {
@@ -386,9 +379,10 @@ const filterNode = (value, data) => {
};
const stateChange = (row) => {
+ console.log("row", row);
const params = {
id: row.id,
- state: row.state == 1 ? 0 : 1,
+ state: row.state,
};
axios.post(`/v1/api/user/updateState`, params).then((res) => {
if (res.data.code == 200) {
@@ -544,7 +538,7 @@ const editConfirm = () => {
const selectRows = (data) => {
selected.value = data.selection;
- selectedName.value = data.selection.map((item) => item.business_name);
+ selectedName.value = data.selection.map((item) => item.system_account);
};
const clearSelected = () => {