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

三维编辑权限

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