修改部分按钮权限、跳转地址

des
吕天方 5 months ago
parent 5a76f2e6bf
commit e9fdc728c8

@ -19,12 +19,6 @@
<el-table v-loading="loading" :data="tableData" :row-class-name="tableRowClassName" :height="tabHeader" :max-height="tabHeader">
<el-table-column label="序号" type="index" align="center" width="50"/>
<el-table-column label="待办任务标题" align="center" prop="enterpriseDirectory" />
<el-table-column label="申报时间" align="center" prop="createTime">
<template slot-scope="scope">
<!-- <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> -->
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
<el-table-column label="审核状态" align="center" prop="cylx">
<template slot-scope="scope">
<span v-if="scope.row.status == 5" class="approval_status5"></span>
@ -43,7 +37,7 @@
</el-table-column>
<el-table-column label="操作" prop="userId" align="center" class-name="table-operation" width="120">
<template slot-scope="scope">
<span class="look-info" @click="goInfo(scope.row)"></span>
<span class="look-info" @click="goInfo(scope.row)"></span>
</template>
</el-table-column>
</el-table>

@ -17,7 +17,7 @@
<el-form :inline="true" :model="formInline" size="small" ref="queryFrom">
<el-col :span="9" style="display: flex; align-items: center;">
<div id="L-header-list" class="project-info-title" style="margin-top: 20px;margin-right: 10px;">常用联系人列表</div>
<el-button type="primary" icon="el-icon-plus" size="mini" @click="importBtn" style="margin-bottom: 5px;">新增常用联系人</el-button>
<el-button type="primary" icon="el-icon-plus" size="mini" v-if="roles.includes('other-gov')" @click="importBtn" style="margin-bottom: 5px;"></el-button>
</el-col>
<el-col :span="15" v-if="roles.includes('gov') || roles.includes('other-gov') ">
<el-form-item label="联络人姓名">
@ -43,8 +43,8 @@
<el-table-column label="操作" prop="userId" class-name="table-operation" width="180px">
<template slot-scope="scope">
<span class="look-info" @click="goInfo(scope.row)"></span>
<span class="edit-info" @click="editInfo(scope.row)"></span>
<span class="del-info" @click="delInfo(scope.row)"></span>
<span class="edit-info" @click="editInfo(scope.row)" v-if="roles.includes('other-gov')"></span>
<span class="del-info" @click="delInfo(scope.row)" v-if="roles.includes('other-gov')"></span>
</template>
</el-table-column>
</el-table>

@ -45,7 +45,7 @@
</el-col>
<el-col :span="4">
<div class="btnss">
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn"></el-button>
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" v-if="roles.includes('other-gov')" @click="importBtn"></el-button>
<el-button type="primary" class="import-btn import-btn-export" size="mini" @click="deriveBtn" :loading="exportLoading">导出</el-button>
</div>
</el-col>
@ -156,6 +156,7 @@ export default {
data() {
return {
userType: this.$store.state.user.userType,
roles: this.$store.state.user.roles,
deptId: this.$store.state.user.deptId,
total:0,
pagination: {

@ -40,7 +40,7 @@
</el-col>
<el-col :span="2">
<!-- <el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-shangchuan" size="mini" @click="importBtn"></el-button> -->
<el-button type="primary" class="import-btn" icon="el-icon-plus" size="mini" @click="importBtn"></el-button>
<el-button type="primary" class="import-btn" icon="el-icon-plus" size="mini" @click="importBtn" v-if="roles.includes('other-gov')"></el-button>
</el-col>
</el-form>
</header>
@ -72,8 +72,8 @@
<el-table-column label="操作" prop="userId" class-name="table-operation" width="180px">
<template slot-scope="scope">
<span class="look-info" @click="goInfo(scope.row)"></span>
<span class="edit-info" @click="editInfo(scope.row)"></span>
<span class="del-info" @click="delInfo(scope.row)" v-if="scope.row.alertManner == 1"></span>
<span class="edit-info" @click="editInfo(scope.row)" v-if="roles.includes('other-gov')"></span>
<span class="del-info" @click="delInfo(scope.row)" v-if="scope.row.alertManner == 1 && roles.includes('other-gov')"></span>
</template>
</el-table-column>
</el-table>
@ -198,6 +198,7 @@ export default {
}
}
return {
roles: this.$store.state.user.roles,
total:0,
pagination: {
current:1,

@ -37,7 +37,7 @@
<el-button
type="primary"
plain
v-if="roles.includes('other-gov')"
@click="handleAdd"
class="btn"
>发布申报任务</el-button>
@ -104,7 +104,7 @@
size="mini"
type="text"
style="color: red;"
v-if="scope.row.status == 1 || scope.row.status == 3"
v-if="(scope.row.status == 1 || scope.row.status == 3) && roles.includes('other-gov')"
@click="handleReplace(scope.row)"
>补录</el-button>
<!-- <el-button
@ -350,6 +350,7 @@ export default {
}
}
return {
roles: this.$store.state.user.roles,
//
loading: true,
//

@ -34,9 +34,9 @@
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" class="btn">查询</el-button>
</el-form-item>
</el-col>
<!-- <el-col :span="2">
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn(null)"></el-button>
</el-col> -->
<el-col :span="2">
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn(null)" v-if="roles.includes('other-gov')"></el-button>
</el-col>
</el-form>
<el-table
@ -111,18 +111,21 @@
size="mini"
type="text"
style="margin-left: 5px;"
v-if="roles.includes('other-gov')"
@click="handleExport(scope.row)"
>下载表单</el-button>
<el-button
size="mini"
type="text"
style="margin-left: 5px;"
v-if="roles.includes('other-gov')"
@click="handleProcessView(scope.row)"
>流程设计</el-button>
<el-button
size="mini"
type="text"
style="margin-left: 5px;"
v-if="roles.includes('other-gov')"
@click="importBtn(scope.row)"
>表单自定义</el-button>
</template>
@ -175,6 +178,7 @@ export default {
},
data() {
return {
roles: this.$store.state.user.roles,
//
loading: true,
//

@ -45,7 +45,7 @@
</el-col>
<el-col :span="2">
<!-- <el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-shangchuan" size="mini" @click="importBtn"></el-button> -->
<el-button v-if="userType !== '01'" type="primary" class="import-btn" icon="el-icon-plus" size="mini" @click="importBtn"></el-button>
<el-button v-if="userType !== '01' && roles.includes('other-gov')" type="primary" class="import-btn" icon="el-icon-plus" size="mini" @click="importBtn"></el-button>
</el-col>
</el-form>
</header>
@ -71,8 +71,8 @@
<el-table-column label="操作" prop="userId" class-name="table-operation" width="180px">
<template slot-scope="scope">
<span class="look-info" @click="goInfo(scope.row)"></span>
<span class="edit-info" @click="editInfo(scope.row)" v-if="userType !== '01'"></span>
<span class="del-info" @click="delInfo(scope.row)" v-if="userType !== '01'"></span>
<span class="edit-info" @click="editInfo(scope.row)" v-if="userType !== '01' && roles.includes('other-gov')"></span>
<span class="del-info" @click="delInfo(scope.row)" v-if="userType !== '01' && roles.includes('other-gov')"></span>
</template>
</el-table-column>
</el-table>
@ -190,6 +190,7 @@ export default {
var now = new Date();
return {
userType: this.$store.state.user.userType,
roles: this.$store.state.user.roles,
deptId: this.$store.state.user.deptId,
now:now,
total:0,

@ -54,7 +54,7 @@
</el-form-item>
</el-col>
<el-col :span="2">
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn" v-if="!roles.includes('ent')"></el-button>
<el-button type="primary" class="import-btn" icon="icon iconfont icon-jc-daoru" size="mini" @click="importBtn" v-if="roles.includes('other-gov')"></el-button>
</el-col>
</el-form>
</header>
@ -132,7 +132,7 @@
<el-table-column label="操作" prop="userId" class-name="table-operation">
<template slot-scope="scope">
<span class="look-info" @click="goInfo(scope.row)"></span>
<span class="del-info" v-if="!roles.includes('ent')" @click="delInfo(scope.row)"></span>
<span class="del-info" v-if="roles.includes('other-gov')" @click="delInfo(scope.row)"></span>
</template>
</el-table-column>
</el-table>
@ -370,6 +370,11 @@ export default {
this.formInline.declareUnit = this.$route.params.declareUnit
this.pagination = { ...this.pagination,...this.formInline };
}
if(this.$route.params.declareUnit && this.$route.params.status) {
this.formInline.declareUnit = this.$route.params.declareUnit
this.formInline.status = this.$route.params.status
this.pagination = { ...this.pagination,...this.formInline };
}
if(this.userType == "01") {
this.pagination.creditCode = this.$store.state.user.name
}

@ -531,7 +531,10 @@ export default {
params: { declareUnit: this.search }
})
} else if(this.checked == 2) {
this.$router.push({
name: 'Project',
params: { declareUnit: this.search, status: '5' }
})
}
},
},

Loading…
Cancel
Save