This commit is contained in:
duanxiaohai 2024-11-08 17:38:13 +08:00
parent c3f5d7efb5
commit cbfe0f3e31
2 changed files with 79 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import axios from "axios";
import { ElMessage } from "element-plus";
import tools from "@/utils/tools";
import router from "../router";
// axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/'
axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/'
axios.defaults.timeout = 120000;
// HTTP request 拦截器

View File

@ -382,11 +382,11 @@ const data = reactive({
property: "operatesDeng",
type: "slot",
},
{
label: "推送次数",
property: "pushSendTotal",
type: "slot",
},
// {
// label: "",
// property: "pushSendTotal",
// type: "slot",
// },
],
tableData: [],
tableData1: [],
@ -449,6 +449,79 @@ const lampScreen = (val) => {
if (selectedLamp.value === val) {
return; //
}
console.log(val);
if (val == 1 || val == 2) {
data.column_2 = [
{
label: "姓名",
property: "xm",
width: "90",
type: "slot",
},
{
label: "状态",
property: "deng",
width: "90",
align: "center",
type: "slot",
},
{
label: "地址",
property: "dz",
},
{
label: "年龄",
property: "nl",
width: "80",
},
{
label: "人口标签",
property: "bq",
type: "slot",
},
{
label: "推送次数",
property: "pushSendTotal",
type: "slot",
},
];
} else {
data.column_2 = [
{
label: "姓名",
property: "xm",
width: "90",
type: "slot",
},
{
label: "状态",
property: "deng",
width: "90",
align: "center",
type: "slot",
},
{
label: "地址",
property: "dz",
},
{
label: "年龄",
property: "nl",
width: "80",
},
{
label: "人口标签",
property: "bq",
type: "slot",
},
{
label: "完成途径",
property: "operatesDeng",
type: "slot",
},
];
}
selectedLamp.value = val;
getTable(pagination2);
// console.log("", val);