Commit ab3b4e65 authored by dingyoujian's avatar dingyoujian

三违过五关

parent 4fcfe316
......@@ -249,6 +249,7 @@
zt:'',
//曝光内容
bgcont:'',
bgtitle:'',
//安全教育人
aqjyrid:'',
//安全教育时间
......
......@@ -11,6 +11,19 @@
<!-- 权限-->
</el-row>
<br>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="曝光标题">
<el-input v-model="vMain.rowItem.bgtitle" :readonly="readonly" type="textarea" rows="1" >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<el-col :span="24">
......@@ -38,7 +51,7 @@
methods: {
save(){
let params=this.vMain.rowItem
this.vMain.apiUpdate(params).then(res => {
this.vMain.apiPg(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
......
......@@ -77,7 +77,11 @@
doQuery,
doAdd,
doUpdate,
doDelete
doDelete,
doPg,
doAq,
doFs,
doTalk
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
import Edit from './edit'
......@@ -169,6 +173,12 @@
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
apiPg:doPg,
apiFs:doFs,
apiAq:doAq,
apiTalk:doTalk,
/* 初始化赋值操作*/
init() {
......
......@@ -69,7 +69,7 @@
},
save(){
let params=this.vMain.rowItem
this.vMain.apiUpdate(params).then(res => {
this.vMain.apiTalk(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
......
<template>
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'FSJC'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
......@@ -31,7 +31,7 @@
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
......@@ -52,7 +52,7 @@
},
save(){
let params=this.vMain.rowItem
this.vMain.apiUpdate(params).then(res => {
this.vMain.apiFs(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
......
......@@ -52,7 +52,7 @@
},
save(){
let params=this.vMain.rowItem
this.vMain.apiUpdate(params).then(res => {
this.vMain.apiAq(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
......
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