This commit is contained in:
duanxiaohai 2024-11-08 09:18:34 +08:00
parent 429c4ba243
commit f5b20b3496
1 changed files with 42 additions and 4 deletions

View File

@ -576,7 +576,7 @@ const tableType = reactive({
// //
const statusDetails = (val) => { const statusDetails = (val) => {
if (data.name == "许可证编号") { if (data.name == "食品安全监管" || data.name == "药品安全监管") {
data.dxbm = val.dxbm; data.dxbm = val.dxbm;
getTable2(tableType); getTable2(tableType);
} else { } else {
@ -768,7 +768,7 @@ const getServiceList = async (pagination, sfxs) => {
// //
const handleRowClick = (row) => { const handleRowClick = (row) => {
console.log(row); // row console.log(row); // row
if (data.name == "许可证编号") { if (data.name == "食品安全监管" || data.name == "药品安全监管") {
return; return;
} }
data.identNo = row.sfzhm; data.identNo = row.sfzhm;
@ -800,7 +800,6 @@ const listAssignment = () => {
pagination1.url = ""; pagination1.url = "";
pagination2.url = ""; pagination2.url = "";
if (data.name == "食品安全监管" || data.name == "药品安全监管") { if (data.name == "食品安全监管" || data.name == "药品安全监管") {
data.name = "许可证编号";
pagination.url = "/api/ggfwyth/pg/spypqy"; pagination.url = "/api/ggfwyth/pg/spypqy";
pagination1.url = "/api/ggfwyth/pg/fwnrqd"; pagination1.url = "/api/ggfwyth/pg/fwnrqd";
pagination2.url = "/api/ggfwyth/pg/spypqy"; pagination2.url = "/api/ggfwyth/pg/spypqy";
@ -851,7 +850,46 @@ const rowState = (row) => {
onMounted(() => { onMounted(() => {
if (routers.query.name) { if (routers.query.name) {
data.name = 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.columns = [];
data.column_2 = []; data.column_2 = [];
data.columns = [ data.columns = [