This commit is contained in:
duanxiaohai 2024-11-11 16:05:10 +08:00
parent 1b62334ad4
commit 9ced232db5
2 changed files with 44 additions and 22 deletions

View File

@ -160,7 +160,7 @@ watch(
// }
// return item;
// });
console.log(555, props.tableData);
// console.log(555, props.tableData);
}
);

View File

@ -1,5 +1,10 @@
<template>
<div class="module" v-loading="isLoading">
<div
class="module"
v-loading.fullscreen.lock="isLoading"
element-loading-text="Loading..."
element-loading-background="rgba(122, 122, 122, 0.5)"
>
<div class="displayFlex left_bg">
<div class="bt_title">
<div class="yd_title">
@ -30,6 +35,7 @@
v-if="item.type == 'slot'"
:label="item.label"
:prop="item.property"
:show-overflow-tooltip="item.tooltip"
:width="item.width || ''"
>
<template #default="scope">
@ -45,6 +51,7 @@
:label="item.label"
:width="item.width || ''"
:prop="item.property"
:show-overflow-tooltip="item.tooltip"
/>
</template>
</el-table>
@ -155,6 +162,7 @@
v-if="item.type == 'slot'"
:label="item.label"
:prop="item.property"
:show-overflow-tooltip="item.tooltip"
:width="item.width || ''"
:align="item.align || 'left'"
>
@ -219,6 +227,7 @@
:label="item.label"
:width="item.width || ''"
:prop="item.property"
:show-overflow-tooltip="item.tooltip"
/>
</template>
</el-table>
@ -314,6 +323,7 @@ const data = reactive({
{
label: "地址",
property: "dz",
tooltip: true,
},
{
label: "年龄",
@ -364,10 +374,11 @@ const data = reactive({
align: "center",
type: "slot",
},
{
label: "地址",
property: "dz",
},
// {
// label: "",
// property: "dz",
// tooltip: true,
// },
{
label: "年龄",
property: "nl",
@ -466,10 +477,11 @@ const lampScreen = (val) => {
align: "center",
type: "slot",
},
{
label: "地址",
property: "dz",
},
// {
// label: "",
// property: "dz",
// tooltip: true,
// },
{
label: "年龄",
property: "nl",
@ -501,10 +513,11 @@ const lampScreen = (val) => {
align: "center",
type: "slot",
},
{
label: "地址",
property: "dz",
},
// {
// label: "",
// property: "dz",
// tooltip: true,
// },
{
label: "年龄",
property: "nl",
@ -756,6 +769,11 @@ let loadingCount = 0; // 计数器,用于跟踪未完成请求的数量
function startLoading() {
loadingCount++;
isLoading.value = true; // true
// const isLoading = ElLoading.service({
// lock: true,
// text: 'Loading',
// background: 'rgba(0, 0, 0, 0.7)',
// })
}
//
function stopLoading() {
@ -977,6 +995,7 @@ onMounted(() => {
{
label: "地址",
property: "dz",
tooltip: true,
},
];
data.column_2 = [
@ -995,10 +1014,11 @@ onMounted(() => {
label: "统一社会信用代码",
property: "dxbm",
},
{
label: "地址",
property: "dz",
},
// {
// label: "",
// property: "dz",
// tooltip: true,
// },
];
}
if (data.name == "药品安全监管") {
@ -1016,6 +1036,7 @@ onMounted(() => {
{
label: "地址",
property: "dz",
tooltip: true,
},
];
data.column_2 = [
@ -1034,10 +1055,11 @@ onMounted(() => {
label: "许可证编号",
property: "dxbm",
},
{
label: "地址",
property: "dz",
},
// {
// label: "",
// property: "dz",
// tooltip: true,
// },
];
}
listAssignment();