Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyun into bjxz-rain

This commit is contained in:
X_Rian 2024-07-04 15:53:10 +08:00
commit f23046b7fe
7 changed files with 681 additions and 188 deletions

View File

@ -21,6 +21,7 @@ export const editXzTaskProgressApi = data => post('xmgl/xzTaskProgress/edit', da
export const editProgressBindComponentApi = data => post('xmgl/taskProgress/editBimComponent', data); export const editProgressBindComponentApi = data => post('xmgl/taskProgress/editBimComponent', data);
export const getTaskProgressPageApi = data => post('xmgl/taskProgress/getParentChildPage', data); export const getTaskProgressPageApi = data => post('xmgl/taskProgress/getParentChildPage', data);
export const getXzTaskProgressPageApi = data => post('xmgl/xzTaskProgress/getParentChildPage', data); export const getXzTaskProgressPageApi = data => post('xmgl/xzTaskProgress/getParentChildPage', data);
export const importDataApi = data => post('xmgl/xzTaskProgress/importData', data);
//分部分项工程管理--BIMBASE中心进度管理 //分部分项工程管理--BIMBASE中心进度管理
export const addTaskProgressRtApi = data => post('xmgl/taskProgressRt/add', data); export const addTaskProgressRtApi = data => post('xmgl/taskProgressRt/add', data);

View File

@ -1516,6 +1516,10 @@ export default {
(res) => { (res) => {
console.log("获取视频分组列表", res); console.log("获取视频分组列表", res);
this.videoTreeData = res.result; this.videoTreeData = res.result;
if (this.videoTreeData.length > 0) {
this.currentGroupInfo = this.videoTreeData[0];
this.getProjectVideoConfigList();
}
this.getProjectVideoConfigList(); this.getProjectVideoConfigList();
} }
); );
@ -1990,7 +1994,7 @@ export default {
// if (this.activeGroupIndex !== '') { // if (this.activeGroupIndex !== '') {
// id = this.groupList[parseInt(this.activeGroupIndex)].id // id = this.groupList[parseInt(this.activeGroupIndex)].id
// } // }
// console.log(id,77777777) console.log(this.currentGroupInfo,77777777)
let id = this.currentGroupInfo.id; let id = this.currentGroupInfo.id;
this.$nextTick(() => { this.$nextTick(() => {
if (this.videoType === 1) { if (this.videoType === 1) {

View File

@ -1224,7 +1224,30 @@ export default {
if (!this.$store.state.userInfo.personMail && this.company == 'agjt' && isHaveUserCenterMenu) { if (!this.$store.state.userInfo.personMail && this.company == 'agjt' && isHaveUserCenterMenu) {
this.checkInfoComplete(); this.checkInfoComplete();
} }
this.$router.push("/workSpace"); if(window.location.href.indexOf("command") != -1){
// split pathItem
var params = window.location.href.split('?')[1]; // ?
var keyValuePairs = params.split('&'); // &
var pathItem;
for (var i = 0; i < keyValuePairs.length; i++) {
var pair = keyValuePairs[i].split('=');
if (pair[0] === 'pathItem') {
pathItem = decodeURIComponent(pair[1]); //
break;
}
}
console.log("22222222222222222222222222222222222222222222222222")
console.log(window.location.href)
console.log(pathItem)
localStorage.setItem('lageToBackend',pathItem)
this.$router.push("projectIndex");
}else{
this.$router.push("/workSpace");
}
// this.$router.push("/workSpace");
} else { } else {
this.$router.push("/supplierIndex"); this.$router.push("/supplierIndex");
} }

View File

@ -344,6 +344,25 @@ export default {
console.log("all111", all); console.log("all111", all);
// this.list = all; // this.list = all;
this.list = all.filter(item => item.plugin != 'contractors');// this.list = all.filter(item => item.plugin != 'contractors');//
let pathItem = localStorage.getItem('lageToBackend')
if(pathItem.length > 0){
localStorage.removeItem('lageToBackend')
let path = pathItem
let moduleList = this.list;
moduleList.map((item) => {
item.menuList.map((item2) => {
if (item2.path == path) {
this.$store.commit("setMenuList", item.menuList);
this.$store.commit("setIsShowBackIndex", true);
}
});
});
this.$router.push(path);
}
} }
}); });
} else { } else {

View File

@ -16,7 +16,7 @@
clearable clearable
@change="selectChange" @change="selectChange"
> >
<el-option style="height:auto" :value="[]"> <el-option style="height: auto" :value="[]">
<el-tree <el-tree
:data="treeList" :data="treeList"
node-key="enterpriseId" node-key="enterpriseId"
@ -38,7 +38,14 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<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
> >
<el-button type="warning" plain @click="refresh">刷新</el-button> <el-button type="warning" plain @click="refresh">刷新</el-button>
@ -46,7 +53,7 @@
</el-form> </el-form>
</div> </div>
<div class="table_wrap whiteBlock"> <div class="table_wrap whiteBlock">
<vue-scroll> <vue-scroll style="height: 90%">
<el-table class="tables" :data="tableList"> <el-table class="tables" :data="tableList">
<el-table-column <el-table-column
type="index" type="index"
@ -145,29 +152,52 @@
<el-table-column align="center" label="操作" width="280"> <el-table-column align="center" label="操作" width="280">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="tableBtns"> <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 <img
src="@/assets/images/tableIcon/passIcon.png" src="@/assets/images/tableIcon/passIcon.png"
width="15px" width="15px"
height="15px" height="15px"
/> />
<span style="white-space: nowrap;color: #5678E8;">通过</span> <span style="white-space: nowrap; color: #5678e8">通过</span>
</div> </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 <img
src="@/assets/images/tableIcon/backApply.png" src="@/assets/images/tableIcon/backApply.png"
width="15px" width="15px"
height="15px" height="15px"
/> />
<span style="white-space: nowrap;color: #EA3941;">驳回</span> <span style="white-space: nowrap; color: #ea3941">驳回</span>
</div> </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 <img
src="@/assets/images/tableIcon/icon-delete.png" src="@/assets/images/tableIcon/icon-delete.png"
width="15px" width="15px"
height="15px" height="15px"
/> />
<span style="white-space: nowrap;">删除</span> <span style="white-space: nowrap">删除</span>
</div> </div>
</div> </div>
</template> </template>
@ -203,10 +233,7 @@
:model="workerInfo" :model="workerInfo"
> >
<!-- 描述 --> <!-- 描述 -->
<el-form-item <el-form-item label="驳回原因" prop="description">
label="驳回原因"
prop="description"
>
<el-input <el-input
type="textarea" type="textarea"
style="width: 320px" style="width: 320px"
@ -418,8 +445,9 @@ export default {
projectSn: this.projectSn, projectSn: this.projectSn,
pageNo: this.pagInfo.pageNo, pageNo: this.pagInfo.pageNo,
pageSize: this.pagInfo.pageSize, pageSize: this.pagInfo.pageSize,
isApprovalList: 1,
taskName: this.queryInfo.taskName, taskName: this.queryInfo.taskName,
enterpriseId: this.queryInfo.enterpriseId enterpriseId: this.queryInfo.enterpriseId,
}; };
getProgressContentPageApi(data).then((res) => { getProgressContentPageApi(data).then((res) => {
console.log("返回的值", res); console.log("返回的值", res);
@ -431,7 +459,7 @@ export default {
let dealImageData = JSON.parse(item.image); let dealImageData = JSON.parse(item.image);
let dealImageArr = []; let dealImageArr = [];
dealImageData.map((item2) => { dealImageData.map((item2) => {
if(item2.url.indexOf("http") == -1){ if (item2.url.indexOf("http") == -1) {
dealImageArr.push(this.$store.state.FILEURL + item2.url); dealImageArr.push(this.$store.state.FILEURL + item2.url);
} else { } else {
dealImageArr.push(item2.url); dealImageArr.push(item2.url);
@ -481,6 +509,11 @@ export default {
margin-right: 15px; margin-right: 15px;
} }
// //
.tables {
min-height: 0;
max-height: none;
height: auto;
}
.tableBtns { .tableBtns {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -501,11 +534,13 @@ export default {
box-sizing: border-box; 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; background-color: transparent;
} }
// //
/deep/.el-table__empty-text{ /deep/.el-table__empty-text {
margin-top: 10%; margin-top: 10%;
} }
</style> </style>

View File

@ -587,6 +587,10 @@ export default {
this.itemForm.status = 2; this.itemForm.status = 2;
} }
data.delayEventType = this.workerInfo.delayEventType.join(","); data.delayEventType = this.workerInfo.delayEventType.join(",");
if(+this.workerInfo.progressRatio <= +this.itemForm.progressRatio){
this.$message.error("上报进度必须大于当前进度");
return;
}
console.log("新增提交的数据", data); console.log("新增提交的数据", data);
addXzTaskProgressContentApi(data).then((res) => { addXzTaskProgressContentApi(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -876,15 +880,20 @@ export default {
} }
.noData { .noData {
text-align: center; // text-align: center;
height: 95%; height: 95%;
padding-top: 50%; // padding-top: 50%;
box-sizing: border-box; box-sizing: border-box;
background: #f7f7f7; background: #f7f7f7;
display: flex;
justify-content: center;
align-items: center;
img { img {
position: absolute; // position: absolute;
top: 35%; // top: 35%;
left: 60%; // left: 60%;
// margin: auto;
margin-bottom: 70px;
width: 15%; width: 15%;
} }
} }