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

View File

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

View File

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