限制危大工程数据只能由项目账号和责任人进行操作,而责任单位的其他人只能查看

This commit is contained in:
Vce 2024-06-05 19:31:49 +08:00
parent ed4c1e308f
commit f6c243aed3
4 changed files with 32 additions and 22 deletions

View File

@ -86,8 +86,8 @@ if (process.env.NODE_ENV == "development") {
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地
// axios.defaults.baseURL = "http://192.168.34.221:9111/"; //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
// axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程
axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头
// axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目

View File

@ -48,8 +48,8 @@ export default new Vuex.Store({
PAGESIZRS: [10, 20, 30, 50],
// UPLOADURL:' http://101.43.164.214:11111/upload/image/',// 百色
// FILEURL:' http://101.43.164.214:11111/image/',// 百色
UPLOADURL:'http://182.90.224.237:51234/upload/image/',
FILEURL:'http://182.90.224.237:51234/image/',
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',
// FILEURL:'http://182.90.224.237:51234/image/',
// UPLOADURL: "http://192.168.34.155:19111/upload/image/", // 洁本地
// FILEURL: "http://192.168.34.155:19111/image/", //洁本地
// UPLOADURL:'http://192.168.34.221:9111/upload/image/',// 郭圣雄本地
@ -60,16 +60,16 @@ export default new Vuex.Store({
// FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
// UPLOADURL:'http://42.180.188.17:11211/upload/image',//测试
// FILEURL:'http://42.180.188.17:11211/image/',//测试
// BASEURL: baseUrl
// ? baseUrl
// : window.location.protocol + "//" + window.location.host + "/", //正式环境
// UPLOADURL:
// window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
// FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
BASEURL: baseUrl
? baseUrl
: window.location.protocol + "//" + window.location.host + "/", //正式环境
UPLOADURL:
window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
// // WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址(弃用)
// // WORKFLOWURL: 'http://47.93.215.234:19098/#/workspace/forms',//鞍钢测试平台工作流地址(弃用)
// // WORKFLOWURL: 'http://42.180.188.17:19998/#/workspace/forms',//鞍钢平台工作流地址
// WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址
WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址
//---------------------------------------------------------------------------------------------
// BASEURL: baseUrl
// ? baseUrl

View File

@ -701,12 +701,12 @@
<el-table-column prop="createUserName" label="记录人">
</el-table-column>
<el-table-column prop="createTime" label="记录时间"> </el-table-column>
<el-table-column label="操作" width="80">
<el-table-column label="操作" width="80" v-if="$store.state.userInfo.accountType != 6 || ($store.state.userInfo.userId == detailData.personLiableId)">
<template slot-scope="scope">
<i
class="el-icon-delete delete-btn"
@click="deleteDangerousEngineeringProgressRecord(scope.row.id)"
></i>
>删除</i>
</template>
</el-table-column>
</el-table>
@ -741,12 +741,12 @@
<el-table-column prop="createUserName" label="记录人">
</el-table-column>
<el-table-column prop="createTime" label="记录时间"> </el-table-column>
<el-table-column label="操作" width="80">
<el-table-column label="操作" width="80" v-if="$store.state.userInfo.accountType != 6 || ($store.state.userInfo.userId == detailData.personLiableId)">
<template slot-scope="scope">
<i
class="el-icon-delete delete-btn"
@click="deleteDangerousEngineeringSideStation(scope.row.id)"
></i>
>删除</i>
</template>
</el-table-column>
</el-table>
@ -795,12 +795,12 @@
<el-table-column prop="acceptanceUserName" label="记录人">
</el-table-column>
<el-table-column prop="createTime" label="记录时间"> </el-table-column>
<el-table-column label="操作" width="80">
<el-table-column label="操作" width="80" v-if="$store.state.userInfo.accountType != 6 || ($store.state.userInfo.userId == detailData.personLiableId)">
<template slot-scope="scope">
<i
class="el-icon-delete delete-btn"
@click="deleteDangerousEngineeringAcceptanceCheck(scope.row.id)"
></i>
>删除</i>
</template>
</el-table-column>
</el-table>
@ -956,12 +956,12 @@
>
</template>
</el-table-column>
<el-table-column label="操作" width="80">
<el-table-column label="操作" width="80" v-if="$store.state.userInfo.accountType != 6 || ($store.state.userInfo.userId == detailData.personLiableId)">
<template slot-scope="scope">
<i
class="el-icon-delete delete-btn"
@click="deletehiddenDangerInspectRecord(scope.row.id, 1)"
></i>
>删除</i>
</template>
</el-table-column>
</el-table>
@ -1014,12 +1014,12 @@
</el-table-column>
<el-table-column prop="createTime" width="180" label="检查时间"> </el-table-column>
<el-table-column prop="enterpriseName" label="分包单位"> </el-table-column>
<el-table-column label="操作" width="80">
<el-table-column label="操作" width="80" v-if="$store.state.userInfo.accountType != 6 || ($store.state.userInfo.userId == detailData.personLiableId)">
<template slot-scope="scope">
<i
class="el-icon-delete delete-btn"
@click="deletehiddenDangerInspectRecord(scope.row.id, 2)"
></i>
>删除</i>
</template>
</el-table-column>
</el-table>

View File

@ -204,6 +204,11 @@
编辑
</el-button> -->
<el-button
v-if="
$store.state.userInfo.accountType != 6 ||
$store.state.userInfo.userId ==
scope.row.personLiableId
"
v-permission="{key: 'wdgc_edit', menuPath: '/project/dangerousBigProject/parameter'}"
@click.stop="editRow(scope.$index, tableData)"
type="text"
@ -212,6 +217,11 @@
<i class="el-icon-edit"></i>
</el-button>
<el-button
v-if="
$store.state.userInfo.accountType != 6 ||
$store.state.userInfo.userId ==
scope.row.personLiableId
"
v-permission="{key: 'wdgc_delete', menuPath: '/project/dangerousBigProject/parameter'}"
@click.stop="deleteRow(scope.$index, tableData)"
type="text"
@ -884,7 +894,7 @@ export default {
this.$message.error(this.$t('message.dangerousBigProject.uploadFail'));
},
previewDetail(val) {
console.log(val)
console.log(val,'点击危大工程详情')
this.dialogFormVisible = false
this.isEdit = true
this.isAdd = false