|
|
|
@ -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 type="primary" class="import-btn" icon="el-icon-plus" 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-col>
|
|
|
|
|
</el-form>
|
|
|
|
|
</header>
|
|
|
|
@ -67,8 +67,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="userType !== '01'">编辑</span>
|
|
|
|
|
<span class="del-info" @click="delInfo(scope.row)" v-if="userType !== '01'">删除</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -150,7 +150,7 @@
|
|
|
|
|
:visible.sync="infoVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
@close="infoVisible = false"
|
|
|
|
|
@close="infoClose"
|
|
|
|
|
custom-class="info-dialog"
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
@ -165,7 +165,7 @@
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-form size="small">
|
|
|
|
|
<el-form-item class="dialog-from-item">
|
|
|
|
|
<el-button size="mini" @click="infoVisible = false">关闭</el-button>
|
|
|
|
|
<el-button size="mini" @click="infoClose">关闭</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
@ -181,6 +181,8 @@ export default {
|
|
|
|
|
dicts: ['jjh_project_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
userType: this.$store.state.user.userType,
|
|
|
|
|
deptId: this.$store.state.user.deptId,
|
|
|
|
|
total:0,
|
|
|
|
|
pagination: {
|
|
|
|
|
current:1,
|
|
|
|
@ -303,6 +305,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 关闭详情
|
|
|
|
|
infoClose(){
|
|
|
|
|
this.addFrom = {}
|
|
|
|
|
this.infoVisible = false;
|
|
|
|
|
},
|
|
|
|
|
// 查看详情
|
|
|
|
|
goInfo(row){
|
|
|
|
|
jPolicyFileId(row.id).then((res=>{
|
|
|
|
@ -364,7 +371,7 @@ export default {
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
jProjectDel({ id: row.id }).then((res) => {
|
|
|
|
|
jPolicyFileDel({ id: row.id }).then((res) => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|