mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
@@ -11,7 +11,7 @@ import { search } from "@/views/isv/list/index";
|
||||
export const dlgGroupSetting = ref(false);
|
||||
export const settingGroupFormData = ref<any>({
|
||||
isvId: 0,
|
||||
groupCodeList: []
|
||||
groupIds: []
|
||||
});
|
||||
|
||||
const groupList: Ref<OptionsRow[]> = ref([]);
|
||||
@@ -28,7 +28,7 @@ const loadGroup = () => {
|
||||
groupList.value = rows.map(row => {
|
||||
return {
|
||||
label: row.groupName,
|
||||
value: row.groupCode
|
||||
value: row.id
|
||||
};
|
||||
});
|
||||
});
|
||||
@@ -39,7 +39,7 @@ export const groupColumns: PlusColumn[] = [
|
||||
{
|
||||
label: "分组",
|
||||
width: 120,
|
||||
prop: "groupCodeList",
|
||||
prop: "groupIds",
|
||||
valueType: "checkbox",
|
||||
// options推荐写法
|
||||
// 3. 用 computed 返回 ref 的 value
|
||||
@@ -51,7 +51,7 @@ export const settingGroup = (row: any) => {
|
||||
api.listGroup(row.id).then(resp => {
|
||||
settingGroupFormData.value = {
|
||||
isvId: row.id,
|
||||
groupCodeList: resp.data
|
||||
groupIds: resp.data
|
||||
};
|
||||
dlgGroupSetting.value = true;
|
||||
});
|
||||
@@ -60,7 +60,7 @@ export const settingGroup = (row: any) => {
|
||||
export const handleUpdateGroup = () => {
|
||||
const data = settingGroupFormData.value;
|
||||
|
||||
api.updateGroup(data.isvId, data.groupCodeList).then(() => {
|
||||
api.updateGroup(data.isvId, data.groupIds).then(() => {
|
||||
ElMessage({
|
||||
message: "保存成功",
|
||||
type: "success"
|
||||
|
Reference in New Issue
Block a user