1e7b4fd3 by renchao@pashanhoo.com

style:业务申请

1 parent 545aa6a9
......@@ -11,8 +11,7 @@
maxlength="28"
v-model="queryForm.bdcdyh"
clearable
class="width200px"
></el-input>
class="width200px"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -26,8 +25,7 @@
placeholder="请输入不动产权证号"
v-model="queryForm.cfwh"
clearable
class="width200px"
></el-input>
class="width200px"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -60,8 +58,7 @@
@p-current-change="handleCurrentChange"
@selection-change="handleSelectionChange"
:column="tableData.columns"
:data="tableData.data"
></lb-table>
:data="tableData.data"></lb-table>
</div>
<div class="submit_button">
<el-button @click="$popupCacel">取消</el-button>
......@@ -70,20 +67,20 @@
</div>
</template>
<script>
//查封登记
import store from "@/store/index.js";
import { datas, sendThis } from "../javascript/cfdj.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js";
export default {
//查封登记
import store from "@/store/index.js";
import { datas, sendThis } from "../javascript/cfdj.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js";
export default {
props: {
isJump: { type: Boolean, default: false },
sqywInfo: { type: Object, default: () => {} },
sqywInfo: { type: Object, default: () => { } },
},
mixins: [table, jump],
data() {
data () {
return {
queryForm: defaultParameters.defaultParameters(),
tableData: {
......@@ -98,11 +95,11 @@ export default {
: this.sqywInfo.parentid,
};
},
mounted() {
mounted () {
sendThis(this);
},
methods: {
queryClick() {
queryClick () {
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -114,7 +111,7 @@ export default {
}
});
},
submitForm() {
submitForm () {
if (this.bdcdysz.length == 0) {
this.$message.error("请至少选择一条数据");
return;
......@@ -134,8 +131,14 @@ export default {
message: "发起申请成功",
type: "success",
});
if (!this.isJump) {
this.jump(res.result, this.sqywInfo.djywbm);
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
});
......@@ -158,10 +161,10 @@ export default {
});
}
},
handleSelectionChange(val) {
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row) {
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection();
......@@ -171,7 +174,7 @@ export default {
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row) {
handleRowClick (row) {
// 如果状态是1,那就是单选
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz;
......@@ -195,9 +198,9 @@ export default {
}
},
},
};
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
</style>
......
......@@ -83,9 +83,7 @@
sendThis(this);
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -119,31 +117,31 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -158,7 +156,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -171,7 +171,7 @@
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
if (!this.isJump) {
//从业务办理进入
......@@ -235,7 +235,12 @@
message: '发起申请成功',
type: 'success'
})
this.jump(res.result, this.djywbm)
if (!this.isJump) {
this.jump(res.result, this.sqywInfo.djywbm);
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
......@@ -275,23 +280,23 @@
}
})
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -306,7 +311,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -106,31 +106,31 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -145,7 +145,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -70,7 +70,7 @@
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -104,10 +104,10 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
......@@ -119,22 +119,22 @@
formData: param
})
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -149,7 +149,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -98,7 +98,7 @@
methods: {
//默认加载表格信息
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.bsmSqyw = this.bsmSqyw;
selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -132,31 +132,31 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$alert(res.message);
this.$message.error(res.message)
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -171,7 +171,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -38,7 +38,7 @@
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content loadingtext" >
<div class="from-clues-content loadingtext">
<lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.size" class="loadingtext"
:current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
......@@ -51,14 +51,14 @@
</div>
</template>
<script>
import { mapGetters } from "vuex";
import {startRepairFlow} from "@/api/ywbl.js";
import { mapGetters } from "vuex";
import { startRepairFlow } from "@/api/ywbl.js";
import store from '@/store/index.js'
import table from "@/utils/mixin/table";
import { datas, sendThis } from "../javascript/selectDjbbl.js";
import { getDjbBysearch } from "@/api/zhcx.js";
import jump from "../components/mixin/jump";
export default {
import table from "@/utils/mixin/table";
import { datas, sendThis } from "../javascript/selectDjbbl.js";
import { getDjbBysearch } from "@/api/zhcx.js";
import jump from "../components/mixin/jump";
export default {
name: "djbcx",
mixins: [table, jump],
mounted () {
......@@ -96,9 +96,6 @@ export default {
: this.sqywInfo.parentid,
};
},
computed: {
// ...mapGetters(["dictData"]),
},
methods: {
// 初始化数据
queryClick () {
......@@ -112,9 +109,6 @@ export default {
}
});
},
// handleSort (name, sort) {
// console.log(name, sort);
// },
// 高级查询
moreQueryClick () { },
// openDialog (scroll) {
......@@ -128,12 +122,12 @@ export default {
ywhClick (item) {
const { href } = this.$router.resolve(
"/djbworkFrame?bdcdyid=" +
item.bdcdyid+
item.bdcdyid +
"&bdcdyh=" +
item.bdcdyh+
"&qllx="+
item.qllx+
"&bsmQlxx="+
item.bdcdyh +
"&qllx=" +
item.qllx +
"&bsmQlxx=" +
item.bsmQlxx +
"&viewtype=1"
);
......@@ -146,14 +140,14 @@ export default {
this.$message.error("请至少选择一条数据");
return;
}
console.log("this.sqywInfo",this.sqywInfo,this.sqywInfo.nodetype == "djqx");
let from={
console.log("this.sqywInfo", this.sqywInfo, this.sqywInfo.nodetype == "djqx");
let from = {
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz,
djqxbm: this.sqywInfo.nodetype == "djlx" ? this.sqywInfo.nodecode : "",
djqxmc: this.sqywInfo.nodetype == "djlx" ? this.sqywInfo.nodename : "",
}
console.log("发起申请传参",from,this.sqywInfo);
console.log("发起申请传参", from, this.sqywInfo);
startRepairFlow(from).then((res) => {
if (res.code == 200) {
this.$message({
......@@ -166,22 +160,22 @@ export default {
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
console.log("val",val);
console.log("val", val);
this.bdcdysz = val;
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -196,22 +190,22 @@ export default {
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
.icon-circle {
.icon-circle {
position: relative;
}
}
.icon-circle::before {
.icon-circle::before {
content: "";
width: 4px;
height: 4px;
......@@ -219,5 +213,5 @@ export default {
background: #000;
top: 0px;
left: 0px;
}
}
</style>
......
......@@ -75,7 +75,7 @@
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -109,31 +109,31 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -148,7 +148,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -75,7 +75,7 @@
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -109,31 +109,31 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -148,7 +148,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -83,7 +83,7 @@
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -117,10 +117,10 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
......@@ -137,22 +137,22 @@
formData: param
})
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -167,7 +167,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-15 16:59:40
* @LastEditTime: 2023-06-16 09:37:51
-->
<template>
<div class="from-clues">
......@@ -47,9 +47,6 @@
<!-- 表格 -->
<div class="from-clues-content loadingtext">
分割合并前权利信息
<!-- <lb-table ref="table" @row-click="handleRowClick" heightNumSetting :pagination=false
:column="tableData.columns" :data="tableData.data">
</lb-table> -->
<el-table
:data="tableData.data"
height="230"
......@@ -193,6 +190,12 @@
methods: {
// 单选事件
close () {
this.tableData.data.forEach(item => {
if (this.radioVal == item.bhqkbsm) {
item.bglx = '1'
this.bdcdysz[0] = item
}
})
this.queryForm.bhqkbsm = this.radioVal
selectZdjbxxSplitMergeLast({ ...this.queryForm }).then((res) => {
this.$endLoading();
......@@ -217,12 +220,11 @@
});
},
handleRowClick (val) {
this.radioVal = val.bhqkbsm
let obj = val
obj.bglx = '1';
this.bdcdysz[0] = obj
this.close()
// this.radioVal = val.bhqkbsm
// let obj = val
// obj.bglx = '1';
// this.bdcdysz[0] = obj
// this.close()
},
submitForm () {
startBusinessFlow({
......@@ -242,10 +244,10 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message)
}
this.$popupCacel()
})
},
openBook (row) {
......
......@@ -114,10 +114,11 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$alert(res.message);
this.$message.error(res.message)
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
......
......@@ -75,7 +75,7 @@
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -108,32 +108,32 @@
this.jump(res.result, this.sqywInfo.djywbm)
} else {
store.dispatch('user/refreshPage', true);
this.$popupCacel()
}
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -148,7 +148,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -75,7 +75,7 @@
},
methods: {
queryClick () {
console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -109,31 +109,31 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -148,7 +148,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......
......@@ -78,7 +78,7 @@
queryClick () {
this.$startLoading();
this.queryForm.zrzbsm = this.sqywInfo.zrzbsm;
selectHQjdc({...this.queryForm, ...this.pageData }).then((res) => {
selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => {
this.$endLoading();
if (res.code === 200) {
let { total, records } = res.result;
......@@ -109,31 +109,31 @@
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
this.$message.error(res.message);
}
this.$popupCacel()
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
},
select(selection, row){
if(this.sqywInfo.sqywdylx=="1"){
select (selection, row) {
if (this.sqywInfo.sqywdylx == "1") {
// 清除 所有勾选项
this.$refs.table.clearSelection()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if(selection.length == 0) return
if (selection.length == 0) return
this.$refs.table.toggleRowSelection(row, true);
}
},
handleRowClick(row){
handleRowClick (row) {
// 如果状态是1,那就是单选
if(this.sqywInfo.sqywdylx=="1"){
if (this.sqywInfo.sqywdylx == "1") {
const bdcdysz = this.bdcdysz
this.$refs.table.clearSelection()
if( bdcdysz.length == 1 ) {
if (bdcdysz.length == 1) {
bdcdysz.forEach(item => {
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if (item == row) {
......@@ -148,7 +148,7 @@
else {
this.$refs.table.toggleRowSelection(row, true);
}
}else{
} else {
this.$refs.table.toggleRowSelection(row);
}
},
......