bug修复
parent
d83a80802c
commit
ea8a6c4793
|
@ -9,7 +9,7 @@
|
|||
:level="level"
|
||||
:disabled="disabled"
|
||||
:join-separator="joinSeparator"
|
||||
value="bianma"
|
||||
value="code"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -16,7 +16,19 @@
|
|||
<div class="user">
|
||||
<!-- <span class="pl-20">姓名:{{ userInfo.name }}</span>-->
|
||||
</div>
|
||||
<div class="menu ml-20 mr-20">
|
||||
<div
|
||||
v-for="item in menuList"
|
||||
:key="item.model"
|
||||
:style="{
|
||||
color:
|
||||
item.model !== model ? 'var(--el-text-color-regular)' : '#79bbff',
|
||||
}"
|
||||
class="right-menu-item hover-effect menu mr-20"
|
||||
@click="fnMenuDropdownCommand(item.model)"
|
||||
>
|
||||
<span>{{ item.title }}</span>
|
||||
</div>
|
||||
<!-- <div class="menu ml-20 mr-20">
|
||||
<el-dropdown
|
||||
trigger="click"
|
||||
placement="bottom-end"
|
||||
|
@ -50,7 +62,7 @@
|
|||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="user_dropdown">
|
||||
<el-dropdown
|
||||
trigger="click"
|
||||
|
@ -143,9 +155,9 @@ const fnSignOut = async () => {
|
|||
userStore.$reset();
|
||||
await router.replace("/login");
|
||||
};
|
||||
const fnMenuDropdownMenu = (command) => {
|
||||
logoValue.value.title = command.title;
|
||||
};
|
||||
// const fnMenuDropdownMenu = (command) => {
|
||||
// logoValue.value.title = command.title;
|
||||
// };
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: `/data_directory/records`,
|
||||
path: `${route.path}/records`,
|
||||
query: {
|
||||
thirdPlatformId: row.thirdPlatformId,
|
||||
companyId: row.companyId,
|
||||
|
@ -55,9 +55,10 @@ import useListData from "@/hooks/useListData.js";
|
|||
import AppSearch from "@/components/search/index.vue";
|
||||
import AppTable from "@/components/table/index.vue";
|
||||
import { translationStatus } from "@/assets/js/utils.js";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
// import { reqMapArr } from "./reqMap.js";
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const dataType = defineModel("dataType", {
|
||||
type: Number,
|
||||
required: true,
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: `/data_directory/records_detail`,
|
||||
path: `${route.path}/records_detail`,
|
||||
query: {
|
||||
id: row.id,
|
||||
dataType: route.query.dataType,
|
||||
|
@ -76,8 +76,13 @@ const { list, pagination, searchForm, getData, resetPagination, tableRef } =
|
|||
Object.keys(reqMap).forEach((key) => {
|
||||
reqMap[key] = searchForm[key] || "";
|
||||
});
|
||||
const { dates = [] } = searchForm;
|
||||
const [receiveBeginTime = "", receiveEndTime = ""] = dates;
|
||||
return {
|
||||
reqMap: reqMap,
|
||||
receiveBeginTime,
|
||||
receiveEndTime,
|
||||
pushTime: "",
|
||||
};
|
||||
},
|
||||
params: () => ({
|
||||
|
@ -112,6 +117,11 @@ const optionsBase = [
|
|||
type: "select",
|
||||
options: pushOptions,
|
||||
},
|
||||
{
|
||||
key: "dates",
|
||||
label: "上传时间",
|
||||
type: "datetimerange",
|
||||
},
|
||||
];
|
||||
const options = [...optionsBase, ...reqMapOptions];
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<el-dialog v-model="visible" :title="title" :before-close="fnClose">
|
||||
{{ form }}
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:rules="rules"
|
||||
|
@ -11,15 +12,6 @@
|
|||
<el-row :gutter="24">
|
||||
<form-items-renderer v-model="form" :options="baseInfoOptions">
|
||||
<template #area>
|
||||
<!-- <el-cascader
|
||||
v-model="form.area"
|
||||
:options="dictionariesList"
|
||||
:props="{
|
||||
value: 'name',
|
||||
label: 'name',
|
||||
children: 'list',
|
||||
}"
|
||||
></el-cascader> -->
|
||||
<app-area-cascader v-model="form.area" check-strictly />
|
||||
</template>
|
||||
<template #sectorId>
|
||||
|
@ -32,13 +24,19 @@
|
|||
></app-cascader>
|
||||
</template>
|
||||
<template #address>
|
||||
<div style="display: flex; width: 100%">
|
||||
<el-input v-model="form.address" disabled>
|
||||
<template #append
|
||||
><el-button type="primary" @click="handleMap"
|
||||
<!-- <template #append
|
||||
>
|
||||
<el-button type="primary" @click="handleMap"
|
||||
>定位</el-button
|
||||
></template
|
||||
></el-input
|
||||
> -->
|
||||
</el-input>
|
||||
<el-button class="ml-10" type="primary" @click="handleMap"
|
||||
>定位</el-button
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
</form-items-renderer>
|
||||
</el-row>
|
||||
|
@ -331,7 +329,6 @@ const baseInfoOptions = [
|
|||
{ key: "code", label: "统一社会信用代码" },
|
||||
{ key: "area", label: "属地" },
|
||||
{ key: "sectorId", label: "所属行业" },
|
||||
{ key: "address", label: "经营地址" },
|
||||
{
|
||||
key: "companyStatus",
|
||||
label: "企业状态",
|
||||
|
@ -349,6 +346,7 @@ const baseInfoOptions = [
|
|||
labelKey: "serviceName",
|
||||
options: servicePlatformList,
|
||||
},
|
||||
{ key: "address", label: "经营地址", span: 24 },
|
||||
];
|
||||
|
||||
const companyPropsOptions = [
|
||||
|
@ -475,7 +473,13 @@ const fnGetData = async () => {
|
|||
const { data } = await getBusCompanyInfo({ id: props.corpInfoId });
|
||||
form.value = data;
|
||||
form.value.area = form.value.province
|
||||
? [form.value.province, form.value.city, form.value.county]
|
||||
? [
|
||||
form.value.province,
|
||||
form.value.city,
|
||||
form.value.county,
|
||||
form.value.village,
|
||||
form.value.street,
|
||||
]
|
||||
: [];
|
||||
form.value.sectorId = data.sectorId.split(",");
|
||||
form.value.address = form.value.longitude
|
||||
|
@ -505,7 +509,8 @@ const fnSubmit = debounce(
|
|||
const check = await checkThirdListItem();
|
||||
if (check) {
|
||||
const sectorName = sectorIdRef.value.getCheckedNodes();
|
||||
const [province = "", city = "", county = ""] = form.value.area;
|
||||
const [province = "", city = "", county = "", village = "", street = ""] =
|
||||
form.value.area;
|
||||
|
||||
const sectorId = form.value.sectorId.join(",");
|
||||
thirdList.value.forEach((item) => {
|
||||
|
@ -524,6 +529,8 @@ const fnSubmit = debounce(
|
|||
province,
|
||||
city,
|
||||
county,
|
||||
village,
|
||||
street,
|
||||
sectorName,
|
||||
thirdList: thirdList.value,
|
||||
};
|
||||
|
|
|
@ -105,6 +105,7 @@ const props = defineProps({
|
|||
resourceId: { type: String, required: false },
|
||||
menuId: { type: String, required: false },
|
||||
});
|
||||
const emits = defineEmits(["getData"]);
|
||||
const form = ref({
|
||||
tableName: "",
|
||||
resourceId: props.resourceId || "",
|
||||
|
@ -142,6 +143,7 @@ const fnFindByMenuId = async () => {
|
|||
edit: props.edit,
|
||||
});
|
||||
list.value = data.list;
|
||||
form.value.tableName = data.tableName;
|
||||
};
|
||||
const fnChangeRequired = (row) => {
|
||||
if (row.isRequired === 1) {
|
||||
|
@ -173,6 +175,7 @@ const fnSubmit = debounce(
|
|||
};
|
||||
await setDataSave(params);
|
||||
ElMessage.success("操作成功");
|
||||
emits("getData");
|
||||
visible.value = false;
|
||||
},
|
||||
{ atBegin: true }
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
:edit="dataItemVisible.edit"
|
||||
:resource-id="dataItemVisible.resourceId"
|
||||
:menu-id="dataItemVisible.menuId"
|
||||
@get-data="resetPagination"
|
||||
></data-items-dialog>
|
||||
<view-info-dialog
|
||||
v-if="infoDialog.visible"
|
||||
|
|
Loading…
Reference in New Issue