Commit 9cc907ae authored by 耿迪迪's avatar 耿迪迪
parents 4d8559b3 65f367a0
...@@ -84,15 +84,15 @@ ...@@ -84,15 +84,15 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="createTime" label="创建时间"></el-table-column> --> <!-- <el-table-column prop="createTime" label="创建时间"></el-table-column> -->
<el-table-column label="操作" width="220" align="center"> <el-table-column label="操作" width="260" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" plain @click="detailFun(scope.row)" size="small" v-if="scope.row.checkStatus == 1">
<i class="el-icon-view"></i> 详情
</el-button>
<el-button @click="editFun(scope.row)" size="small" v-if="scope.row.checkStatus != 1"> <el-button @click="editFun(scope.row)" size="small" v-if="scope.row.checkStatus != 1">
<i class="el-icon-edit-outline"></i> 编辑 <i class="el-icon-edit-outline"></i> 编辑
</el-button> </el-button>
<el-button type="primary" plain @click="editFun(scope.row)" size="small" v-if="!qyvisble"> <el-button type="danger" @click="delFun(scope.row)" size="small" v-if="scope.row.checkStatus != 1">
查看详情
</el-button>
<el-button type="danger" @click="delFun(scope.row)" size="small" v-if="qyvisble">
<i class="el-icon-delete"></i> 删除 <i class="el-icon-delete"></i> 删除
</el-button> </el-button>
</template> </template>
...@@ -165,6 +165,7 @@ export default class CamerasMg extends Vue { ...@@ -165,6 +165,7 @@ export default class CamerasMg extends Vue {
this.getTableData(); this.getTableData();
} }
addFun() { addFun() {
this.dialogTit = "新增预案";
this.zjKey++; this.zjKey++;
this.dialogVisible = true; this.dialogVisible = true;
} }
...@@ -174,6 +175,12 @@ export default class CamerasMg extends Vue { ...@@ -174,6 +175,12 @@ export default class CamerasMg extends Vue {
this.zjKey++; this.zjKey++;
this.dialogVisible = true; this.dialogVisible = true;
} }
detailFun(row: any){
this.dialogTit = "详情";
this.formData = Object.assign({}, row);
this.zjKey++;
this.dialogVisible = true;
}
delFun(row: any) { delFun(row: any) {
let that = this as any; let that = this as any;
METHOD.deleteFun( METHOD.deleteFun(
......
...@@ -23,16 +23,17 @@ ...@@ -23,16 +23,17 @@
<el-form-item label="预案等级:"> <el-form-item label="预案等级:">
<font>{{editForm.planLevel + '级'}}</font> <font>{{editForm.planLevel + '级'}}</font>
</el-form-item> </el-form-item>
<el-form-item label="预案源文件"> <el-form-item label="预案源文件:">
<span <span
class="dbtn sd qiCr" class="dbtn sd qiCr"
@click="checkFile(editForm.sourceFile)" @click="checkFile(editForm.sourceFile)"
v-if="editForm.sourceFile != ''" v-if="editForm.sourceFile != '' && editForm.fileOriginalName != ''"
> >
<i class="el-icon el-icon-view"></i> <i class="el-icon el-icon-view"></i>
{{editForm.fileOriginalName}} {{editForm.fileOriginalName}}
</span> </span>
</el-form-item> </el-form-item>
<div v-if="title != '详情'">
<el-form-item label="审核预案" prop="checkStatus"> <el-form-item label="审核预案" prop="checkStatus">
<el-radio-group v-model="editForm.checkStatus"> <el-radio-group v-model="editForm.checkStatus">
<el-radio label="0">待审核</el-radio> <el-radio label="0">待审核</el-radio>
...@@ -43,6 +44,18 @@ ...@@ -43,6 +44,18 @@
<el-form-item label="审核意见"> <el-form-item label="审核意见">
<el-input type="textarea" v-model="editForm.remarks"></el-input> <el-input type="textarea" v-model="editForm.remarks"></el-input>
</el-form-item> </el-form-item>
</div>
<div v-else>
<el-form-item label="审核状态:">
<!--<font>{{editForm.checkStatus == 0 ? '已上报' : '未上报'}}</font>-->
<span v-if="editForm.checkStatus == 0">待审核</span>
<span v-if="editForm.checkStatus == 1">审核通过</span>
<span v-if="editForm.checkStatus == 2">审核未通过</span>
</el-form-item>
<el-form-item label="审核意见:">
<font>{{editForm.remarks}}</font>
</el-form-item>
</div>
</el-form> </el-form>
</div> </div>
</el-col> </el-col>
...@@ -55,7 +68,7 @@ ...@@ -55,7 +68,7 @@
</el-col> </el-col>
</el-row> </el-row>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="confirmFun('editForm')">提交</el-button> <el-button type="primary" size="small" @click="confirmFun('editForm')" v-if="title != '详情'">提交</el-button>
<el-button @click="$emit('dialogFun')" size="small">取消</el-button> <el-button @click="$emit('dialogFun')" size="small">取消</el-button>
</span> </span>
</el-dialog> </el-dialog>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:show-close="false" :show-close="false"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<div v-if="qyvisble"> <div v-if="title != '详情'">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12" class="flcolum"> <el-col :span="12" class="flcolum">
<div> <div>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<a v-for="(i,ind) in fileList" :key="ind" :href="i.url" target="_blank">{{i.name}}</a>&nbsp;&nbsp;&nbsp;<i class="btn el-icon-delete" @click="deleteList"></i> <a v-for="(i,ind) in fileList" :key="ind" :href="i.url" target="_blank">{{i.name}}</a>&nbsp;&nbsp;&nbsp;<i class="btn el-icon-delete" @click="deleteList"></i>
</div>--> </div>-->
</el-form-item> </el-form-item>
<el-form-item label="审核意见"> <el-form-item label="审核意见" v-if="editForm.remarks != '' && editForm.remarks != null">
<font>{{editForm.remarks}}</font> <font>{{editForm.remarks}}</font>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -96,12 +96,21 @@ ...@@ -96,12 +96,21 @@
<span <span
class="dbtn sd qiCr" class="dbtn sd qiCr"
@click="checkFile(editForm.sourceFile)" @click="checkFile(editForm.sourceFile)"
v-if="editForm.sourceFile != ''" v-if="editForm.sourceFile != '' && editForm.fileOriginalName != ''"
> >
<i class="el-icon el-icon-view"></i> <i class="el-icon el-icon-view"></i>
{{editForm.fileOriginalName}} {{editForm.fileOriginalName}}
</span> </span>
</el-form-item> </el-form-item>
<el-form-item label="审核状态:" v-if="editForm.isReported == 0">
<!--<font>{{editForm.checkStatus == 0 ? '已上报' : '未上报'}}</font>-->
<span v-if="editForm.checkStatus == 0">待审核</span>
<span v-if="editForm.checkStatus == 1">审核通过</span>
<span v-if="editForm.checkStatus == 2">审核未通过</span>
</el-form-item>
<el-form-item label="审核意见:" v-if="editForm.remarks != '' && editForm.remarks != null">
<font>{{editForm.remarks}}</font>
</el-form-item>
</el-form> </el-form>
</div> </div>
</el-col> </el-col>
...@@ -271,6 +280,7 @@ export default class PlansMgEdit extends Vue { ...@@ -271,6 +280,7 @@ export default class PlansMgEdit extends Vue {
that.enterpriseId = METHOD.enterpriseId; that.enterpriseId = METHOD.enterpriseId;
// if (that.enterpriseId) { // if (that.enterpriseId) {
// that.qyvisble = true; // that.qyvisble = true;
if(this.title != '详情') {
that.$nextTick(() => { that.$nextTick(() => {
that.creatEditor(); that.creatEditor();
}) })
...@@ -290,6 +300,7 @@ export default class PlansMgEdit extends Vue { ...@@ -290,6 +300,7 @@ export default class PlansMgEdit extends Vue {
}); });
} }
}); });
}
// } // }
that.actionUrl = METHOD.URL + "/file/uploadFile"; that.actionUrl = METHOD.URL + "/file/uploadFile";
} }
......
...@@ -67,9 +67,12 @@ ...@@ -67,9 +67,12 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="220" align="center"> <el-table-column label="操作" width="300" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="success" @click="checkFun(scope.row)" size="small" :disabled="scope.row.checkStatus != 0?true:false"> <el-button type="primary" plain @click="detailFun(scope.row)" size="small">
<i class="el-icon-view"></i> 详情
</el-button>
<el-button type="success" @click="checkFun(scope.row)" size="small" v-if="scope.row.checkStatus == 0">
<i class="el-icon-key"></i> 审核 <i class="el-icon-key"></i> 审核
</el-button> </el-button>
<el-button type="danger" @click="delFun(scope.row)" size="small"> <el-button type="danger" @click="delFun(scope.row)" size="small">
...@@ -142,6 +145,12 @@ export default class CamerasMg extends Vue { ...@@ -142,6 +145,12 @@ export default class CamerasMg extends Vue {
this.searchData = {}; this.searchData = {};
this.getTableData(); this.getTableData();
} }
detailFun(row: any){
this.dialogTit = "详情";
this.formData = Object.assign({}, row);
this.zjKey++;
this.dialogVisible = true;
}
checkFun(row: any){ checkFun(row: any){
this.dialogTit = "预案审核"; this.dialogTit = "预案审核";
this.formData = Object.assign({}, row); this.formData = Object.assign({}, row);
......
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