Commit 0144a39e by heshihao

feat: 修改问题

parent 8e210b22
...@@ -692,7 +692,7 @@ export default { ...@@ -692,7 +692,7 @@ export default {
isPoint6: "", isPoint6: "",
tProjectFlows: flows, tProjectFlows: flows,
}, },
formBoxHeight: document.body.clientHeight - 430, formBoxHeight: 530,
projectName: "", projectName: "",
projectDay: "--", projectDay: "--",
workData: [], workData: [],
...@@ -709,7 +709,7 @@ export default { ...@@ -709,7 +709,7 @@ export default {
window.addEventListener( window.addEventListener(
"resize", "resize",
() => { () => {
this.formBoxHeight = document.body.clientHeight - 430; this.formBoxHeight = 530;
}, },
false false
); );
...@@ -733,7 +733,7 @@ export default { ...@@ -733,7 +733,7 @@ export default {
this.projectName = res.projectName; this.projectName = res.projectName;
this.projectDay = res.projectDay || "--"; this.projectDay = res.projectDay || "--";
this.formInfo = { ...this.formInfo, ...res }; this.formInfo = { ...this.formInfo, ...res };
if (!this.formInfo.tProjectFlows) { if (!this.formInfo.tProjectFlows || this.formInfo.tProjectFlows.length == 0) {
this.formInfo.tProjectFlows = flows; this.formInfo.tProjectFlows = flows;
} }
this.curFlow = this.formInfo.tProjectFlows; this.curFlow = this.formInfo.tProjectFlows;
...@@ -840,7 +840,7 @@ export default { ...@@ -840,7 +840,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
color: #a2aab3; color: #a2aab3;
height: 32px; //height: 32px;
align-items: center; align-items: center;
} }
......
...@@ -663,7 +663,7 @@ export default { ...@@ -663,7 +663,7 @@ export default {
if (res.id) { if (res.id) {
this.projectName = res.projectName; this.projectName = res.projectName;
this.formInfo = { ...this.formInfo, ...res }; this.formInfo = { ...this.formInfo, ...res };
if (!this.formInfo.tProjectFlows) { if (!this.formInfo.tProjectFlows || this.formInfo.tProjectFlows.length == 0) {
this.formInfo.tProjectFlows = flows; this.formInfo.tProjectFlows = flows;
} }
this.formInfo.tProjectFlows = this.formInfo.tProjectFlows.map((item) => { this.formInfo.tProjectFlows = this.formInfo.tProjectFlows.map((item) => {
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<el-button size="small" type="primary" icon="el-icon-plus" @click="onAdd">新增项目</el-button> <el-button size="small" type="primary" icon="el-icon-plus" @click="onAdd">新增项目</el-button>
<el-button size="small" type="danger" icon="el-icon-top" @click="onDataExport">数据导出</el-button> <el-button size="small" type="danger" icon="el-icon-top" @click="onDataExport">数据导出</el-button>
</span> </span>
<!-- <div class="tab"> <div class="tab">
<div <div
v-for="item in tabs2" v-for="item in tabs2"
:key="item.name" :key="item.name"
...@@ -70,10 +70,10 @@ ...@@ -70,10 +70,10 @@
<img style="width: 18px;" :src="activeTab === item.name ? item.imgS : item.img" /> <img style="width: 18px;" :src="activeTab === item.name ? item.imgS : item.img" />
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
</div> </div>
</div> --> </div>
</div> </div>
<div class="table-content" ref="tableRef"> <div class="table-content" ref="tableRef">
<!-- <el-table <el-table
v-if="activeTab === '项目表'" v-if="activeTab === '项目表'"
:data="tableData" :data="tableData"
v-loading="loading" v-loading="loading"
...@@ -114,13 +114,14 @@ ...@@ -114,13 +114,14 @@
</el-table-column> </el-table-column>
<el-table-column prop="responsibleDepartment" label="责任部门" align="center" width="130"> </el-table-column> <el-table-column prop="responsibleDepartment" label="责任部门" align="center" width="130"> </el-table-column>
<el-table-column prop="deadlineCompletion" label="完成时限" align="center" width="130"> </el-table-column> <el-table-column prop="deadlineCompletion" label="完成时限" align="center" width="130"> </el-table-column>
</el-table> --> </el-table>
<flowChart <flowChart
:curData="flowData" :curData="flowData"
:tableHeight="tableHeight" :tableHeight="tableHeight"
:loading="false" :loading="false"
@changeEdit="handleClickRow" @changeEdit="handleClickRow"
:headerRowStyle="headerRowStyle" :headerRowStyle="headerRowStyle"
v-else
></flowChart> ></flowChart>
</div> </div>
<div class="page-bottom-pagination"> <div class="page-bottom-pagination">
...@@ -310,6 +311,7 @@ export default { ...@@ -310,6 +311,7 @@ export default {
pageNum: this.pageNum, pageNum: this.pageNum,
}; };
const res = await keyProjectList(params); const res = await keyProjectList(params);
console.log(res, 99999);
if (res.code === 200) { if (res.code === 200) {
this.tableData = res.rows; this.tableData = res.rows;
this.total = res.total; this.total = res.total;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment