fc4eaed2 by 任超

style:业务申请

1 parent 1e7b62fb
......@@ -66,8 +66,6 @@ export default {
computed: {
...mapGetters(['dictData']),
},
data () {
return {
queryForm: {
......@@ -90,23 +88,23 @@ export default {
mounted () {
sendThis(this);
let that = this
window.addEventListener('visibilitychange',this.init,true)
window.addEventListener('visibilitychange', this.init, true)
},
destroyed(){
window.removeEventListener('visibilitychange',this.init,true)
destroyed () {
window.removeEventListener('visibilitychange', this.init, true)
},
created () { },
methods: {
init(e){
init (e) {
var isHidden = document.hidden;
if (isHidden) {//切离该页面时执行
if (isHidden) {//切离该页面时执行
//页面切换时,处理逻辑
} else {//切换到该页面时执行
if(window.location.hash=='#/ywbl/dbx'){
console.log('让我看看',window.location)
that.fetchData()
} else {//切换到该页面时执行
if (window.location.hash == '#/ywbl/dbx') {
console.log('让我看看', window.location)
that.fetchData()
}
}
}
},
// 列表渲染接口
fetchData () {
......@@ -128,7 +126,7 @@ export default {
console.log(999999999999999);
},
ywhClick (item) {
const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid='+item.bestepid)
const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid)
window.open(href, '_blank');
},
},
......
......@@ -45,21 +45,24 @@
@selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
<div class="submit_button">
<el-button @click="closeDialog">取消</el-button>
<el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
//查封等级
import { datas, sendThis } from "./cfdj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
value: { type: Boolean, default: false },
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
appliDialog: false,
queryForm: {
qllx: "",
bdcdyh: "",
......@@ -73,23 +76,24 @@ export default {
columns: datas.columns(),
data: [],
},
myValue: this.value,
saveloding: false,
bdcdysz: []
bdcdysz: [],
saveloding: false
};
},
mounted () {
sendThis(this);
},
watch: {
value (val) {
this.myValue = val
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.value) {
if (this.bsmSqyw) {
selectBdcdy({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
......@@ -111,14 +115,11 @@ export default {
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit('input', false)
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
closeDialog () {
this.$emit("input", false);
},
handleSelectionChange (val) {
this.bdcdysz = val
}
......
<template>
<dialogBox title="查询权利信息" width="85%" :isButton="false" @closeDialog="closeDialog" v-model="myValue">
<component :is="editItem" />
<component :is="editItem" @closeDialog="closeDialog" :bsmSqyw="bsmSqyw" />
</dialogBox>
</template>
<script>
......@@ -19,7 +19,6 @@ export default {
watch: {
value (val) {
this.myValue = val
this.fetchData()
},
djywbm (val) {
let itemObj = { 'A03100': 'scdj', default: 'scdj' }
......@@ -30,18 +29,6 @@ export default {
loadView (view) {
return r => require.ensure([], () => r(require(`../${view}/${view}.vue`)))
},
fetchData () {
if (this.value) {
selectBdcdy({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
}
},
closeDialog () {
this.$emit("input", false);
}
......@@ -51,4 +38,10 @@ export default {
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
/deep/.submit_button {
text-align: center;
padding: 10px;
margin: 10px;
}
</style>
......
......@@ -45,13 +45,21 @@
@selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
<div class="submit_button">
<el-button @click="closeDialog">取消</el-button>
<el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
//首次登记
import { datas, sendThis } from "./scdj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
......@@ -68,31 +76,49 @@ export default {
columns: datas.columns(),
data: [],
},
bdcdysz: []
bdcdysz: [],
saveloding: false
};
},
watch: {
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
// submitForm () {
// if (this.bdcdysz.length == 0) {
// this.$message.error('请至少选择一条数据');
// return
// }
// this.saveloding = true
// startBusinessFlow({
// bsmSqyw: this.bsmSqyw,
// bdcdysz: this.bdcdysz
// }).then(res => {
// this.saveloding = false
// this.$emit('input', false)
// const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
// window.open(href, '_blank');
// })
// },
closeDialog () {
this.$emit("input", false);
this.$emit("closeDialog")
},
fetchData () {
if (this.bsmSqyw) {
selectBdcdy({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
}
},
submitForm () {
if (this.bdcdysz.length == 0) {
this.$message.error('请至少选择一条数据');
return
}
this.saveloding = true
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
handleSelectionChange (val) {
this.bdcdysz = val
......
......@@ -45,21 +45,24 @@
@selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
<div class="submit_button">
<el-button @click="closeDialog">取消</el-button>
<el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
//续封登记
import { datas, sendThis } from "./xfdj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
value: { type: Boolean, default: false },
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
appliDialog: false,
queryForm: {
qllx: "",
bdcdyh: "",
......@@ -73,23 +76,24 @@ export default {
columns: datas.columns(),
data: [],
},
myValue: this.value,
saveloding: false,
bdcdysz: []
bdcdysz: [],
saveloding: false
};
},
mounted () {
sendThis(this);
},
watch: {
value (val) {
this.myValue = val
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.value) {
if (this.bsmSqyw) {
selectBdcdy({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
......@@ -111,14 +115,11 @@ export default {
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit('input', false)
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
closeDialog () {
this.$emit("input", false);
},
handleSelectionChange (val) {
this.bdcdysz = val
}
......
......@@ -45,21 +45,24 @@
@selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
<div class="submit_button">
<el-button @click="closeDialog">取消</el-button>
<el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
//转移登记
import { datas, sendThis } from "./zydj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
value: { type: Boolean, default: false },
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
appliDialog: false,
queryForm: {
qllx: "",
bdcdyh: "",
......@@ -73,23 +76,24 @@ export default {
columns: datas.columns(),
data: [],
},
myValue: this.value,
saveloding: false,
bdcdysz: []
bdcdysz: [],
saveloding: false
};
},
mounted () {
sendThis(this);
},
watch: {
value (val) {
this.myValue = val
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.value) {
if (this.bsmSqyw) {
selectBdcdy({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
......@@ -111,14 +115,11 @@ export default {
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit('input', false)
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
closeDialog () {
this.$emit("input", false);
},
handleSelectionChange (val) {
this.bdcdysz = val
}
......