Commit 27b2049d by 刘玉帅

xq

parent 3d4450da
<!--
* @Author: your name
* @Date: 2021-08-28 21:28:08
* @LastEditTime: 2021-09-16 13:53:11
* @LastEditTime: 2021-09-16 16:39:05
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\rwgl\rwglindex.vue
......@@ -112,6 +112,7 @@
:cell-class-name="addClass"
>
<el-table-column type="selection" width="55"> </el-table-column>
<template v-if="zzjglx!=12">
<el-table-column
v-for="columnTitle in cxDefaultFormThead"
:prop="columnTitle.prop"
......@@ -119,8 +120,22 @@
:label="columnTitle.label"
:width="columnTitle.width"
sortable:true
>
</el-table-column>
</template>
<template v-else>
<el-table-column
v-for="columnTitle in cxDefaultFormTheadisShow"
:prop="columnTitle.prop"
:key="columnTitle.label"
:label="columnTitle.label"
:width="columnTitle.width"
sortable:true
>
</el-table-column>
</template>
<el-table-column label="操作" width="auto">
<template slot-scope="scope">
<!-- <el-button
......@@ -186,7 +201,7 @@
</div>
</el-dialog>
<!-- 新增的diolog -->
<el-dialog title="新增" :visible.sync="XZdialogFormVisible">
<el-dialog title="新增" :visible.sync="XZdialogFormVisible" @closed="closed">
<el-form :model="XZformDiolog">
<el-form-item label="任务名称" :label-width="formLabelWidth">
<el-input
......@@ -325,6 +340,39 @@ export default {
width: "auto",
},
], //表头的数据
cxDefaultFormTheadisShow: [
{
label: "任务名称",
prop: "rwmc",
width: "auto",
},
{
label: "人员摸排总数",
prop: "rympzs",
width: "auto",
},
{
label: "已反馈",
prop: "yfk",
width: "auto",
},
{
label: "未反馈",
prop: "wfk",
width: "auto",
},
{
label: "退回",
prop: "th",
width: "auto",
},
{
label: "完成进度",
prop: "wcjd",
width: "auto",
},
], //表头的数据
tableData: [], //表格的内容
form: {
name: "",
......@@ -340,6 +388,10 @@ export default {
},
methods: {
...mapMutations(["setzzjglx"]), //调用vueX的方法修改值
closed(){
console.log('000000');
this.XZformDiolog = {}
},
/**
* @description: 选择文件的时候进行判断勾选的内容只能是一个
* @param {*}
......@@ -503,7 +555,7 @@ export default {
})
.then(() => {
let clearid = row.rwid;
post("/xqapi/deleteRwgl", { id: clearid }).then((res) => {
post("/xqapi/rwgl/deleteRwgl", { id: clearid }).then((res) => {
console.log(res);
if (res.code == "200") {
self.$message({
......@@ -665,7 +717,7 @@ export default {
handClickXZ() {
//调用接口将数据传给后台 在 调用接口进行查询数据
let self = this;
postJson("/xqapi/insertRwgl", self.XZformDiolog).then((res) => {
postJson("/xqapi/rwgl/insertRwgl", self.XZformDiolog).then((res) => {
console.log(res);
if (res.code == "200") {
this.$message({
......@@ -686,7 +738,7 @@ export default {
*/
handClickXG() {
let self = this;
postJson("/xqapi/updateRw", self.XGformDiolog).then((res) => {
postJson("/xqapi/rwgl/updateRw", self.XGformDiolog).then((res) => {
console.log(res);
if (res.code == "200") {
this.$message({
......
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