fix: 修改进度管理Ag模块中页面的交互与样式
This commit is contained in:
parent
0c34ffd978
commit
1891971b55
@ -21,6 +21,7 @@ export const editXzTaskProgressApi = data => post('xmgl/xzTaskProgress/edit', da
|
||||
export const editProgressBindComponentApi = data => post('xmgl/taskProgress/editBimComponent', data);
|
||||
export const getTaskProgressPageApi = data => post('xmgl/taskProgress/getParentChildPage', data);
|
||||
export const getXzTaskProgressPageApi = data => post('xmgl/xzTaskProgress/getParentChildPage', data);
|
||||
export const importDataApi = data => post('xmgl/xzTaskProgress/importData', data);
|
||||
|
||||
//分部分项工程管理--BIMBASE中心进度管理
|
||||
export const addTaskProgressRtApi = data => post('xmgl/taskProgressRt/add', data);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -16,7 +16,7 @@
|
||||
clearable
|
||||
@change="selectChange"
|
||||
>
|
||||
<el-option style="height:auto" :value="[]">
|
||||
<el-option style="height: auto" :value="[]">
|
||||
<el-tree
|
||||
:data="treeList"
|
||||
node-key="enterpriseId"
|
||||
@ -38,7 +38,14 @@
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button v-permission="{key: 'jdsp_query', menuPath: '/project/progressManagementAg/progressApproval'}" type="primary" plain @click="getWarningListData"
|
||||
<el-button
|
||||
v-permission="{
|
||||
key: 'jdsp_query',
|
||||
menuPath: '/project/progressManagementAg/progressApproval',
|
||||
}"
|
||||
type="primary"
|
||||
plain
|
||||
@click="getWarningListData"
|
||||
>查询</el-button
|
||||
>
|
||||
<el-button type="warning" plain @click="refresh">刷新</el-button>
|
||||
@ -46,7 +53,7 @@
|
||||
</el-form>
|
||||
</div>
|
||||
<div class="table_wrap whiteBlock">
|
||||
<vue-scroll>
|
||||
<vue-scroll style="height: 90%">
|
||||
<el-table class="tables" :data="tableList">
|
||||
<el-table-column
|
||||
type="index"
|
||||
@ -145,29 +152,52 @@
|
||||
<el-table-column align="center" label="操作" width="280">
|
||||
<template slot-scope="scope">
|
||||
<div class="tableBtns">
|
||||
<div v-permission="{key: 'jdsp_edit', menuPath: '/project/progressManagementAg/progressApproval'}" @click="pass(scope.row)" class="operationText" v-if="![2,3].includes(scope.row.auditType)">
|
||||
<div
|
||||
v-permission="{
|
||||
key: 'jdsp_edit',
|
||||
menuPath: '/project/progressManagementAg/progressApproval',
|
||||
}"
|
||||
@click="pass(scope.row)"
|
||||
class="operationText"
|
||||
v-if="![2, 3].includes(scope.row.auditType)"
|
||||
>
|
||||
<img
|
||||
src="@/assets/images/tableIcon/passIcon.png"
|
||||
width="15px"
|
||||
height="15px"
|
||||
/>
|
||||
<span style="white-space: nowrap;color: #5678E8;">通过</span>
|
||||
<span style="white-space: nowrap; color: #5678e8">通过</span>
|
||||
</div>
|
||||
<div v-permission="{key: 'jdsp_edit', menuPath: '/project/progressManagementAg/progressApproval'}" @click="openBackDialog(scope.row)" class="operationText" v-if="![2,3].includes(scope.row.auditType)">
|
||||
<div
|
||||
v-permission="{
|
||||
key: 'jdsp_edit',
|
||||
menuPath: '/project/progressManagementAg/progressApproval',
|
||||
}"
|
||||
@click="openBackDialog(scope.row)"
|
||||
class="operationText"
|
||||
v-if="![2, 3].includes(scope.row.auditType)"
|
||||
>
|
||||
<img
|
||||
src="@/assets/images/tableIcon/backApply.png"
|
||||
width="15px"
|
||||
height="15px"
|
||||
/>
|
||||
<span style="white-space: nowrap;color: #EA3941;">驳回</span>
|
||||
<span style="white-space: nowrap; color: #ea3941">驳回</span>
|
||||
</div>
|
||||
<div v-permission="{key: 'jdsp_delete', menuPath: '/project/progressManagementAg/progressApproval'}" @click="deleteDev(scope.row)" class="operationText">
|
||||
<div
|
||||
v-permission="{
|
||||
key: 'jdsp_delete',
|
||||
menuPath: '/project/progressManagementAg/progressApproval',
|
||||
}"
|
||||
@click="deleteDev(scope.row)"
|
||||
class="operationText"
|
||||
>
|
||||
<img
|
||||
src="@/assets/images/tableIcon/icon-delete.png"
|
||||
width="15px"
|
||||
height="15px"
|
||||
/>
|
||||
<span style="white-space: nowrap;">删除</span>
|
||||
<span style="white-space: nowrap">删除</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -203,10 +233,7 @@
|
||||
:model="workerInfo"
|
||||
>
|
||||
<!-- 描述 -->
|
||||
<el-form-item
|
||||
label="驳回原因"
|
||||
prop="description"
|
||||
>
|
||||
<el-form-item label="驳回原因" prop="description">
|
||||
<el-input
|
||||
type="textarea"
|
||||
style="width: 320px"
|
||||
@ -418,8 +445,9 @@ export default {
|
||||
projectSn: this.projectSn,
|
||||
pageNo: this.pagInfo.pageNo,
|
||||
pageSize: this.pagInfo.pageSize,
|
||||
isApprovalList: 1,
|
||||
taskName: this.queryInfo.taskName,
|
||||
enterpriseId: this.queryInfo.enterpriseId
|
||||
enterpriseId: this.queryInfo.enterpriseId,
|
||||
};
|
||||
getProgressContentPageApi(data).then((res) => {
|
||||
console.log("返回的值", res);
|
||||
@ -431,7 +459,7 @@ export default {
|
||||
let dealImageData = JSON.parse(item.image);
|
||||
let dealImageArr = [];
|
||||
dealImageData.map((item2) => {
|
||||
if(item2.url.indexOf("http") == -1){
|
||||
if (item2.url.indexOf("http") == -1) {
|
||||
dealImageArr.push(this.$store.state.FILEURL + item2.url);
|
||||
} else {
|
||||
dealImageArr.push(item2.url);
|
||||
@ -481,6 +509,11 @@ export default {
|
||||
margin-right: 15px;
|
||||
}
|
||||
// 表格样式
|
||||
.tables {
|
||||
min-height: 0;
|
||||
max-height: none;
|
||||
height: auto;
|
||||
}
|
||||
.tableBtns {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -501,11 +534,13 @@ export default {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
// 下拉框样式修改
|
||||
/deep/.el-select-dropdown__item.hover,.el-select-dropdown__item.hover, .el-select-dropdown__item:hover{
|
||||
/deep/.el-select-dropdown__item.hover,
|
||||
.el-select-dropdown__item.hover,
|
||||
.el-select-dropdown__item:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
// 表格暂无数据样式修改
|
||||
/deep/.el-table__empty-text{
|
||||
/deep/.el-table__empty-text {
|
||||
margin-top: 10%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -587,6 +587,10 @@ export default {
|
||||
this.itemForm.status = 2;
|
||||
}
|
||||
data.delayEventType = this.workerInfo.delayEventType.join(",");
|
||||
if(+this.workerInfo.progressRatio <= +this.itemForm.progressRatio){
|
||||
this.$message.error("上报进度必须大于当前进度");
|
||||
return;
|
||||
}
|
||||
console.log("新增提交的数据", data);
|
||||
addXzTaskProgressContentApi(data).then((res) => {
|
||||
if (res.code == 200) {
|
||||
@ -876,15 +880,20 @@ export default {
|
||||
}
|
||||
|
||||
.noData {
|
||||
text-align: center;
|
||||
// text-align: center;
|
||||
height: 95%;
|
||||
padding-top: 50%;
|
||||
// padding-top: 50%;
|
||||
box-sizing: border-box;
|
||||
background: #f7f7f7;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
img {
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
left: 60%;
|
||||
// position: absolute;
|
||||
// top: 35%;
|
||||
// left: 60%;
|
||||
// margin: auto;
|
||||
margin-bottom: 70px;
|
||||
width: 15%;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user