This commit is contained in:
姚宇浩 2024-11-08 14:17:44 +08:00
commit 7b73d0ed9a
1 changed files with 42 additions and 4 deletions

View File

@ -576,7 +576,7 @@ const tableType = reactive({
//
const statusDetails = (val) => {
if (data.name == "许可证编号") {
if (data.name == "食品安全监管" || data.name == "药品安全监管") {
data.dxbm = val.dxbm;
getTable2(tableType);
} else {
@ -768,7 +768,7 @@ const getServiceList = async (pagination, sfxs) => {
//
const handleRowClick = (row) => {
console.log(row); // row
if (data.name == "许可证编号") {
if (data.name == "食品安全监管" || data.name == "药品安全监管") {
return;
}
data.identNo = row.sfzhm;
@ -800,7 +800,6 @@ const listAssignment = () => {
pagination1.url = "";
pagination2.url = "";
if (data.name == "食品安全监管" || data.name == "药品安全监管") {
data.name = "许可证编号";
pagination.url = "/api/ggfwyth/pg/spypqy";
pagination1.url = "/api/ggfwyth/pg/fwnrqd";
pagination2.url = "/api/ggfwyth/pg/spypqy";
@ -851,7 +850,46 @@ const rowState = (row) => {
onMounted(() => {
if (routers.query.name) {
data.name = routers.query.name;
if (data.name == "食品安全监管" || data.name == "药品安全监管") {
if (data.name == "食品安全监管") {
data.columns = [];
data.column_2 = [];
data.columns = [
{
label: "对象名称",
property: "dxmc",
},
{
label: "统一社会信用代码",
property: "dxbm",
},
{
label: "地址",
property: "dz",
},
];
data.column_2 = [
{
label: "对象名称",
property: "dxmc",
},
{
label: "状态",
property: "deng",
width: "90",
align: "center",
type: "slot",
},
{
label: "统一社会信用代码",
property: "dxbm",
},
{
label: "地址",
property: "dz",
},
];
}
if (data.name == "药品安全监管") {
data.columns = [];
data.column_2 = [];
data.columns = [