466409f6 by 任超

style:登记模板

1 parent af9094f6
<template>
<dialogBox title="其他及附记模板" @submitForm="submitForm" width="60%" @closeDialog="closeDialog" v-model="myValue">
<dialogBox title="其他及附记模板" @submitForm="submitForm" width="60%" class="loadingtext" @closeDialog="closeDialog"
v-model="myValue">
<div class="qtjfjmb-edit-title">
<b>权利信息</b>
</div>
......@@ -111,26 +112,29 @@
</template>
<script>
import { updateSysSqywmbsz } from '@/api/system'
import { updateSysSqywmbsz, getSysSqywmbszDetailById } from '@/api/system'
export default {
props: {
value: { type: Boolean, default: false },
details: {
type: Object,
default: () => {
return {}
}
bsmMb: {
type: String,
default: ''
}
},
watch: {
value (val) {
this.myValue = val
},
details: {
handler (newValue, oldValue) {
this.ruleForm = newValue
bsmMb: {
handler (newValue) {
this.$startLoading()
getSysSqywmbszDetailById(newValue).then(res => {
this.$endLoading()
let { result } = res
this.ruleForm = result ? result : {}
})
},
deep: true
immediate: true
}
},
data () {
......
......@@ -29,12 +29,12 @@
:column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
<editDialog v-model="isDialog" :details="details" />
<editDialog v-model="isDialog" :bsmMb="bsmMb" />
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { sysSqywmbszSearch, getSysSqywmbszDetailById } from '@/api/system'
import { sysSqywmbszSearch } from '@/api/system'
import table from "@/utils/mixin/table"
import { datas, sendThis } from "./qtjfjmb"
import editDialog from "./components/editDialog.vue"
......@@ -62,7 +62,7 @@ export default {
columns: datas.columns(),
data: []
},
details: {}
bsmMb: ''
}
},
methods: {
......@@ -77,14 +77,11 @@ export default {
})
},
editClick (row) {
getSysSqywmbszDetailById(row.bsmMb).then(res => {
this.isDialog = true
let { result } = res
this.details = result ? result : {}
})
this.bsmMb = row.bsmMb
this.isDialog = true
}
},
};
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......