fix: BUG修改
This commit is contained in:
parent
63174cfee1
commit
02159e16b3
@ -143,11 +143,14 @@ onMounted(async () => {
|
|||||||
if (res4.result && res4.result.length > 0) {
|
if (res4.result && res4.result.length > 0) {
|
||||||
globalStore.systemConfigSubBg = res4.result[0].configValue;
|
globalStore.systemConfigSubBg = res4.result[0].configValue;
|
||||||
}
|
}
|
||||||
await getengineering();
|
|
||||||
});
|
});
|
||||||
watch(
|
watch(
|
||||||
() => route.path,
|
() => route.path,
|
||||||
n => {
|
n => {
|
||||||
|
console.log(route.path);
|
||||||
|
if (n != "/login" && globalStore.token && engList.value.length == 0) {
|
||||||
|
getengineering();
|
||||||
|
}
|
||||||
tabsShow.value = route.meta.showSidebar;
|
tabsShow.value = route.meta.showSidebar;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@ -269,6 +269,8 @@ import {
|
|||||||
queryConfigOperate
|
queryConfigOperate
|
||||||
} from "@/api/modules/jxjview";
|
} from "@/api/modules/jxjview";
|
||||||
import { checkPhoneNumber } from "@/utils/eleValidate";
|
import { checkPhoneNumber } from "@/utils/eleValidate";
|
||||||
|
const selectRowType = ref();
|
||||||
|
const selectRowObj = ref();
|
||||||
const requestParams = ref();
|
const requestParams = ref();
|
||||||
const configMenu = ref([
|
const configMenu = ref([
|
||||||
{ label: "政务配置", value: 6 },
|
{ label: "政务配置", value: 6 },
|
||||||
@ -555,9 +557,13 @@ const getAllModule = async (val: any, row: any) => {
|
|||||||
}
|
}
|
||||||
requestParams.value = requestData; // 保存修改的参数
|
requestParams.value = requestData; // 保存修改的参数
|
||||||
// 获取全部数据
|
// 获取全部数据
|
||||||
const { result = [] } = await queryAll({ styleType: form.value.moduleStyle, moduleType: requestData.moduleType });
|
const { result } = await queryAll({ styleType: form.value.moduleStyle, moduleType: requestData.moduleType });
|
||||||
// console.log("test", result);
|
// console.log("test", result);
|
||||||
datas.push(...result);
|
if (result) {
|
||||||
|
datas.push(...result);
|
||||||
|
} else {
|
||||||
|
datas.length = 0;
|
||||||
|
}
|
||||||
// 获取选中数据
|
// 获取选中数据
|
||||||
const res = await queryCheckedAll(requestData);
|
const res = await queryCheckedAll(requestData);
|
||||||
// 打开弹窗时调用上面的接口勾选
|
// 打开弹窗时调用上面的接口勾选
|
||||||
@ -609,6 +615,8 @@ const handleParamsCommand = (command: string | number | object, obj: any) => {
|
|||||||
const handleCommand = (command: string | number | object, obj: any) => {
|
const handleCommand = (command: string | number | object, obj: any) => {
|
||||||
console.log(command);
|
console.log(command);
|
||||||
console.log(obj);
|
console.log(obj);
|
||||||
|
selectRowType.value = command;
|
||||||
|
selectRowObj.value = obj;
|
||||||
form.value.moduleStyle = obj.moduleStyle;
|
form.value.moduleStyle = obj.moduleStyle;
|
||||||
getAllModule(command, obj);
|
getAllModule(command, obj);
|
||||||
checkAll.value = false;
|
checkAll.value = false;
|
||||||
@ -774,19 +782,21 @@ const saveItem = async (form: any) => {
|
|||||||
|
|
||||||
const onRadio = async (val: number) => {
|
const onRadio = async (val: number) => {
|
||||||
// console.log(val);
|
// console.log(val);
|
||||||
const res1 = await getGoverType({ styleType: val });
|
// const res1 = await getGoverType({ styleType: val });
|
||||||
governmentSelectList.value = res1.result.government;
|
// governmentSelectList.value = res1.result.government;
|
||||||
projectSelectList.value = res1.result.project;
|
// projectSelectList.value = res1.result.project;
|
||||||
companySelectList.value = res1.result.enterprise;
|
// companySelectList.value = res1.result.enterprise;
|
||||||
const res2 = await getGoverForm({ governmentSn: governmentSn.value });
|
// const res2 = await getGoverForm({ governmentSn: governmentSn.value });
|
||||||
governmentSelectList.value.concat(projectSelectList.value, companySelectList.value).forEach((itemA, indexA) => {
|
// governmentSelectList.value.concat(projectSelectList.value, companySelectList.value).forEach((itemA, indexA) => {
|
||||||
res2.result.forEach((itemB, indexB) => {
|
// res2.result.forEach((itemB, indexB) => {
|
||||||
if (itemA.moduleId == itemB) {
|
// if (itemA.moduleId == itemB) {
|
||||||
// governmentSelectList.value[indexA].select = true;
|
// // governmentSelectList.value[indexA].select = true;
|
||||||
itemA.select = true;
|
// itemA.select = true;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
form.value.moduleStyle = val;
|
||||||
|
getAllModule(selectRowType.value, selectRowObj.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user