Commit 7a0ad3b6 by 叶富雄

调整

parent 06ad453a
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div class="Content"> <div class="Content">
<right-content <right-content
:tableOperationWidth="tableOperationWidth" :tableOperationWidth="tableOperationWidth"
:tableOperation="true"
:pageBs="pageBs" :pageBs="pageBs"
:header="header" :header="header"
:cxFormData="cxFormData" :cxFormData="cxFormData"
...@@ -13,10 +14,11 @@ ...@@ -13,10 +14,11 @@
@add="add" @add="add"
ref="rightContent" ref="rightContent"
> >
<!-- <template #btnGroup="scope"> <template #btnGroup="scope">
<el-button @click="dele(scope.scope)" type="text" >删除</el-button> <el-button @click="dele(scope.scope)" type="text" >删除</el-button>
<el-button @click="edit(scope.scope)" type="text" >修改</el-button> <el-button @click="edit(scope.scope)" type="text" >修改</el-button>
</template>--> <el-button @click="setYJ(scope.scope)" type="text" >列控预警</el-button>
</template>
</right-content> </right-content>
</div> </div>
...@@ -25,7 +27,7 @@ ...@@ -25,7 +27,7 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import {deleteTbStHmdry} from "@/api/jcyjzxt/hmd.js"; import {deleteTbStHmdry} from "@/api/jcyjzxt/hmd.js";
import {insertLkyj} from "@/api/jcyjzxt/hmd.js";
export default { export default {
name: "rlqbxsxx", name: "rlqbxsxx",
components: { components: {
...@@ -35,7 +37,7 @@ ...@@ -35,7 +37,7 @@
return { return {
tableOperationWidth: 200, tableOperationWidth: 200,
header: "黑名单列表", header: "黑名单列表",
pageBs: "kyfwbshlist", pageBs: "hmdrylist",
cxFormData: { cxFormData: {
limit: 10, limit: 10,
page: 1, page: 1,
...@@ -93,6 +95,28 @@ ...@@ -93,6 +95,28 @@
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
}, },
methods: { methods: {
setYJ(scope) {
let loading = this.$loading({
lock: true,
text: "列控预警中...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
let row = scope.row;
let params = new FormData();
params.append('xxzjbh',row.xxzjbh);
params.append('sjly','03');
params.append('yjxx',row.cyzjZjhm);
insertLkyj(params).then(res=>{
if(res.code===200){
this.$message.success('提交成功')
}else {
this.$message.warning(res.message)
}
loading.close()
})
},
add(){ add(){
this.$router.push({ this.$router.push({
path:'/hmdrylistAdd' path:'/hmdrylistAdd'
......
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