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; // return item;
// }); // });
console.log(555, props.tableData); // console.log(555, props.tableData);
} }
); );

View File

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