af3024ba by 任超
2 parents 8e84067d d214b9eb
......@@ -107,116 +107,128 @@
</template>
<script>
import { mapGetters } from 'vuex'
import dataReporting from '@/api/dataReporting'
import { getDetail } from '@/api/sbbwcx.js'
import { MessageBox } from 'element-ui'
import { mapGetters } from "vuex";
import dataReporting from "@/api/dataReporting";
import { getDetail } from "@/api/sbbwcx.js";
import { MessageBox } from "element-ui";
export default {
computed: {
...mapGetters(['dicData'])
...mapGetters(["dicData"]),
},
props: {
},
data () {
props: {},
data() {
return {
dataReport: {},
index: 0,
bsmYwsjb: '',
bsmYwsjb: "",
ruleFormList: {
bizMsgID: '',
asid: '',
areaCode: '',
preestateNum: '',
recType: '',
rightType: '',
regType: '',
certCount: '',
createDate: '',
recFlowID: '',
regOrgID: '',
prllfCount: '',
parcelID: '',
estateNum: '',
preCertID: '',
digitalSign: ''
bizMsgID: "",
asid: "",
areaCode: "",
preestateNum: "",
recType: "",
rightType: "",
regType: "",
certCount: "",
createDate: "",
recFlowID: "",
regOrgID: "",
prllfCount: "",
parcelID: "",
estateNum: "",
preCertID: "",
digitalSign: "",
},
images: require('./images/success.gif'),
images: require("./images/success.gif"),
saveloding: false,
dialogVisible: false,
activeName: undefined,
editItem: '',
title: '',
editItem: "",
title: "",
headerList: [],
dataTable: ''
}
dataTable: "",
};
},
methods: {
isShow (item) {
isShow(item) {
this.dataReport = item;
this.dialogVisible = true
this.dialogVisible = true;
//获取表头列表
getDetail({ bizmsgid: this.dataReport.bizmsgid }).then(res => {
getDetail({ bsmReport: this.dataReport.bsmReport }).then((res) => {
if (res.code == 200) {
this.headerList = res.result
this.headerList = res.result;
}
})
});
},
changeList (val) {
let _index = val.index
changeList(val) {
let _index = val.index;
if (_index > this.index) {
}
this.index = _index
this.bsmYwsjb = this.headerList[val.index].bsmYwsjb
this.editItem = this.loadView(this.activeName)
this.index = _index;
this.bsmYwsjb = this.headerList[val.index].bsmYwsjb;
this.editItem = this.loadView(this.activeName);
this.diaData.list.forEach((item) => {
if (item.soleurl == this.activeName) {
this.dataTable = item.dataTable
this.dataTable = item.dataTable;
}
});
},
loadView (view) {
return r => require.ensure([], () => r(require(`@/components/business/${view}`)))
loadView(view) {
return (r) =>
require.ensure([], () => r(require(`@/components/business/${view}`)));
},
closeDialog () {
this.dialogVisible = false
closeDialog() {
this.dialogVisible = false;
},
submitForm () {
let _this = this
this.$store.dispatch('business/setRules', this.$store.state.business.subRules)
submitForm() {
let _this = this;
this.$store.dispatch(
"business/setRules",
this.$store.state.business.subRules
);
this.$nextTick(() => {
this.$refs['editItem'] && this.$refs['editItem'].verificationForm().then(res => {
if (!res) {
_this.$message({
message: '请检查表单必填项是否完整',
type: 'warning'
})
return false
} else {
_this.saveloding = true
_this.$refs['editItem'].handleUpdateForm().then(res => {
if (res == 200) {
_this.$alert('<p><img class="success-images" src="' + this.images + '"/>编辑成功!</p>', '提示', {
showConfirmButton: false,
dangerouslyUseHTMLString: true
this.$refs["editItem"] &&
this.$refs["editItem"].verificationForm().then((res) => {
if (!res) {
_this.$message({
message: "请检查表单必填项是否完整",
type: "warning",
});
return false;
} else {
_this.saveloding = true;
_this.$refs["editItem"]
.handleUpdateForm()
.then((res) => {
if (res == 200) {
_this.$alert(
'<p><img class="success-images" src="' +
this.images +
'"/>编辑成功!</p>',
"提示",
{
showConfirmButton: false,
dangerouslyUseHTMLString: true,
}
);
setTimeout(() => {
MessageBox.close(false);
}, 1500);
}
})
setTimeout(() => {
MessageBox.close(false)
}, 1500)
}
}).catch(function (error) {
_this.$alert(error, '提示', {
confirmButtonText: '确定',
type: 'error'
})
});
_this.saveloding = false
}
})
})
}
}
}
.catch(function (error) {
_this.$alert(error, "提示", {
confirmButtonText: "确定",
type: "error",
});
});
_this.saveloding = false;
}
});
});
},
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
......