Commit 4fc35898 authored by lizhichao's avatar lizhichao

企业制度,审批、发布

parent 8e795399
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat" />--> <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat" />
<el-table-column label="创建时间" align="center" prop="createTime" /> <el-table-column label="创建时间" align="center" prop="createTime" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleDetail(scope.row)" @click="handleDetail(scope.row)"
>详情</el-button> >详情</el-button>
<!--<el-button <el-button
v-if="scope.row.status == '0'" v-if="scope.row.status == '0'"
size="mini" size="mini"
type="text" type="text"
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleApproval(scope.row)" @click="handleApproval(scope.row)"
v-hasPermi="['safetyManagement:enterpriseSystem:edit']"
>审批</el-button> >审批</el-button>
<el-button <el-button
v-if="scope.row.status == '2'" v-if="scope.row.status == '2'"
...@@ -115,7 +116,8 @@ ...@@ -115,7 +116,8 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleInvalid(scope.row)" @click="handleInvalid(scope.row)"
>作废</el-button>--> v-hasPermi="['safetyManagement:enterpriseSystem:edit']"
>作废</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
...@@ -176,10 +178,10 @@ ...@@ -176,10 +178,10 @@
</span> </span>
<span v-else>-</span> <span v-else>-</span>
</el-form-item> </el-form-item>
<!--<el-form-item v-show="operate" label="审批" prop="status"> <el-form-item v-show="operate" label="审批" prop="status">
<el-radio v-model="form.status" label="2">通过</el-radio> <el-radio v-model="form.status" label="2">通过</el-radio>
<el-radio v-model="form.status" label="0">驳回</el-radio> <el-radio v-model="form.status" label="0">驳回</el-radio>
</el-form-item>--> </el-form-item>
</div> </div>
<div style="width: 58%;margin-left: 2%"> <div style="width: 58%;margin-left: 2%">
<div class="dialogTitle">制度内容</div> <div class="dialogTitle">制度内容</div>
...@@ -312,6 +314,7 @@ export default { ...@@ -312,6 +314,7 @@ export default {
}; };
this.resetForm("form"); this.resetForm("form");
this.fileList = []; this.fileList = [];
this.operate=false;
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
...@@ -362,7 +365,7 @@ export default { ...@@ -362,7 +365,7 @@ export default {
}, },
/** 审批按钮操作 */ /** 审批按钮操作 */
handleApproval(row) { handleApproval(row) {
this.readOnly = true; this.readOnly = false;
this.reset(); this.reset();
const systemId = row.systemId || this.ids const systemId = row.systemId || this.ids
getEnterpriseSystem(systemId).then(response => { getEnterpriseSystem(systemId).then(response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment