Commit 05901354 authored by 李苏's avatar 李苏 💬

三维编辑权限

parent ef432947
......@@ -119,3 +119,12 @@ export function doCancel(query) {
data: query||{}
})
}
/* 三维开启编辑权限 */
export function beforeEdit(query) {
return request({
url: `/aqgl/swgl/swjl/beforeEdit`,
method: 'post',
data: query||{}
})
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'BGLX'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -39,7 +39,12 @@
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
......@@ -49,6 +54,18 @@
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'BGLX',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
save(){
let params=this.vMain.rowItem
this.vMain.apiPg(params).then(res => {
......
......@@ -3,7 +3,7 @@
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'LDTH'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -52,6 +52,9 @@
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
......@@ -61,6 +64,18 @@
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'LDTH',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
ldbjyrSelected(row){
this.vMain.rowItem.ldbjyrid=row.id
},
......
......@@ -3,7 +3,7 @@
<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="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -39,6 +39,9 @@
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
......@@ -47,6 +50,18 @@
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'FSJC',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
fsjyrSelected(){
this.vMain.rowItem.fsjyrid=row.id
},
......
......@@ -3,7 +3,7 @@
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'AQBK'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -39,6 +39,9 @@
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
......@@ -47,6 +50,18 @@
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'AQBK',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
aqjyrSelected(row){
this.vMain.rowItem.aqjyrid=row.id
},
......
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