This commit is contained in:
duanxiaohai 2024-09-14 17:34:25 +08:00
commit 4e52cb64bb
3 changed files with 26 additions and 18 deletions

View File

@ -204,8 +204,9 @@ const escalation = () => {
const confirmEvent = () => { const confirmEvent = () => {
console.log("confirm!", data); console.log("confirm!", data);
let ReportedDto = { let ReportedDto = {
sfzhm: data.xq.sfzhm, sfzhm: data.sfzhm,
type: data.tableType.typeId, type: data.typeId,
xh: data.xh,
}; };
http.post(`/api/ggfwyth/pg/reported`, ReportedDto).then((res) => { http.post(`/api/ggfwyth/pg/reported`, ReportedDto).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -233,11 +234,15 @@ const data = reactive({
columns: [], columns: [],
tableData: [], tableData: [],
xq: {}, xq: {},
typeId: "",
sfzhm: "",
xh: "",
// pagination: {}, // pagination: {},
}); });
// 使 // 使
const lampImages = { const lampImages = {
1: lamp1, 0: lamp1,
1: lamp3,
2: lamp2, 2: lamp2,
3: lamp3, 3: lamp3,
4: lamp4, 4: lamp4,
@ -253,12 +258,13 @@ const gridData = [];
watch( watch(
() => props.dialogShow, () => props.dialogShow,
(newVal, oldVal) => { (newVal, oldVal) => {
console.log(11111111);
dialogShow.value = newVal; dialogShow.value = newVal;
if (props.dialogShow == true) { if (props.dialogShow == true) {
console.log(333);
console.log(props.tableData); console.log(props.tableData);
data.xq = props.tableData.data.xq; data.xq = props.tableData.data.xq;
data.typeId = props.tableData.typeId;
data.sfzhm = props.tableData.data.xq.sfzhm;
data.xh = props.tableData.data.xq.xh;
// data.tableData=props.tableData.data; // data.tableData=props.tableData.data;
data.title = props.tableData.title; data.title = props.tableData.title;
data.columns = props.tableData.columns; data.columns = props.tableData.columns;
@ -284,13 +290,13 @@ watch(
data.tableData.push(obj); data.tableData.push(obj);
}); });
} }
data.tableData= data.tableData.map((item,index1) => { data.tableData = data.tableData.map((item, index1) => {
return { return {
...item, ...item,
index: index1 +1, index: index1 + 1,
}; };
}); });
console.log(data.tableData,56565); console.log(data.tableData, 56565);
} }
// data.tableData = props.tableData; // data.tableData = props.tableData;

View File

@ -169,7 +169,7 @@
style="width: 30px; height: 30px" style="width: 30px; height: 30px"
v-if="scope.row.deng == 0" v-if="scope.row.deng == 0"
:src="lampImages[1]" :src="lampImages[1]"
@click="statusDetails(scope.row)"
/> />
<img <img
style="width: 30px; height: 30px" style="width: 30px; height: 30px"
@ -422,7 +422,6 @@ const tableType = reactive({
{ {
label: "服务内容", label: "服务内容",
property: "fwsx", property: "fwsx",
}, },
{ {
label: "结果", label: "结果",
@ -471,7 +470,6 @@ const statusDetails = (val) => {
}); });
} else { } else {
getTable1(tableType); getTable1(tableType);
} }
}; };
// //
@ -521,6 +519,10 @@ const getTable1 = (pagination) => {
tableType.data = res.data; tableType.data = res.data;
tableType.typeId = routers.query.id; tableType.typeId = routers.query.id;
dialogShow.value = true; dialogShow.value = true;
}else{
ElMessage.warning({
message: res.message,
});
} }
}); });
}; };

View File

@ -15,8 +15,8 @@ export default defineConfig({
// 第一个代理 // 第一个代理
"/api": { "/api": {
// 匹配到啥来进行方向代理 // 匹配到啥来进行方向代理
target: "http://10.0.0.65:8095/", //刘进 // target: "http://10.0.0.65:8095/", //刘进
// target: "http://220.191.238.50:996/", //线上 target: "http://220.191.238.50:996/", //线上
changeOrigin: true, //是否支持跨域 changeOrigin: true, //是否支持跨域
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个 //rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
}, },