This commit is contained in:
duanxiaohai 2024-10-06 09:15:32 +08:00
parent a4c13982d4
commit 31ea03965a
4 changed files with 14 additions and 8 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -230,8 +230,10 @@ const data = reactive({
title: "", title: "",
typeId: "", typeId: "",
columns: [], columns: [],
tableData: [], tableData: { deng: 1 },
xq: {}, xq: {
deng: 0,
},
typeId: "", typeId: "",
sfzhm: "", sfzhm: "",
xh: "", xh: "",
@ -258,7 +260,7 @@ watch(
(newVal, oldVal) => { (newVal, oldVal) => {
dialogShow.value = newVal; dialogShow.value = newVal;
if (props.dialogShow == true) { if (props.dialogShow == true) {
// console.log(props.tableData); console.log(6666, props.tableData);
data.xq = props.tableData.data.xq; data.xq = props.tableData.data.xq;
data.typeId = props.tableData.typeId; data.typeId = props.tableData.typeId;
data.sfzhm = props.tableData.data.xq.sfzhm; data.sfzhm = props.tableData.data.xq.sfzhm;
@ -268,14 +270,16 @@ watch(
data.columns = props.tableData.columns; data.columns = props.tableData.columns;
data.tableData.length = 0; data.tableData.length = 0;
if (props.tableData.data.wxs.length > 0) { if (props.tableData.data.wxs.length > 0) {
console.log(444);
props.tableData.data.wxs.forEach((item, index) => { props.tableData.data.wxs.forEach((item, index) => {
let obj = { let obj = {
deng: 2, deng: 2,
bzlx: item.bzlx, bzlx: item.bzlx,
}; };
data.tableData.push(obj); // data.tableData.push(obj);
}); });
} }
// data.tableData.length = []; // data.tableData.length = [];
if (props.tableData.data.ysx.length > 0) { if (props.tableData.data.ysx.length > 0) {
props.tableData.data.ysx.forEach((item, index) => { props.tableData.data.ysx.forEach((item, index) => {
@ -283,9 +287,10 @@ watch(
deng: 1, deng: 1,
bzlx: item.bzlx, bzlx: item.bzlx,
}; };
data.tableData.push(obj); // data.tableData.push(obj);
}); });
} }
console.log(777, props.tableData);
data.tableData = data.tableData.map((item, index1) => { data.tableData = data.tableData.map((item, index1) => {
return { return {
...item, ...item,

View File

@ -160,8 +160,8 @@ const login = () => {
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
var token = getCookie("lytoken"); // var token = getCookie("lytoken");
// var token = "6b0e380b4a8f46baae4923f83faf670d"; var token = "6b0e380b4a8f46baae4923f83faf670d";
// console.log('token', token) // console.log('token', token)
if (!token) { if (!token) {
window.location.href = window.location.href =

View File

@ -130,7 +130,7 @@
</div> </div>
<div class="tableBoxCenter1" @click="goto(item)">详情</div> <div class="tableBoxCenter1" @click="goto(item)">详情</div>
</div> </div>
<div class="tableBoxTopa">服务对象{{ item.text }}</div> <div class="tableBoxTopa">服务对象{{ item.fwdx }}</div>
<div class="tableBoxTopa">牵头负责单位{{ item.sjqtfzdw }}</div> <div class="tableBoxTopa">牵头负责单位{{ item.sjqtfzdw }}</div>
<div class="progress-container"> <div class="progress-container">
<div <div
@ -654,6 +654,7 @@ const getData = async (name, fullName) => {
text: item.bmfxqk, text: item.bmfxqk,
xh: item.xh, xh: item.xh,
sjqtfzdw: item.sjqtfzdw, sjqtfzdw: item.sjqtfzdw,
fwdx: item.fwdx,
progress: "95", // progress: "95", //
}); });
// console.log( data.tabPublicService); // console.log( data.tabPublicService);