a802c75d by xiaomiao

按钮调整

1 parent 5e7920b8
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-04 09:52:39
-->
<template>
<el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="resultInfo">
<el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="xml">
</el-input>
</template>
<script>
// 引入json编译器
import { formateXml } from "@/utils/setxml.js"
export default {
data () {
return {
xml:""
}
},
props: {
resultInfo: {
type: String,
default: ''
}
}
},
mounted () {
this.getxml()
},
methods: {
getxml(){
this.xml=formateXml(this.resultInfo)
},
}
}
</script>
......
//格式化xml代码
export function formateXml(xmlStr) {
var text = xmlStr;
//使用replace去空格
text = '\n' + text.replace(/(<\w+)(\s.*?>)/g, function ($0, name, props) {
return name + ' ' + props.replace(/\s+(\w+=)/g, " $1");
}).replace(/>\s*?</g, ">\n<");
//处理注释
text = text.replace(/\n/g, '\r').replace(/<!--(.+?)-->/g, function ($0, text) {
var ret = '<!--' + escape(text) + '-->';
return ret;
}).replace(/\r/g, '\n');
//调整格式 以压栈方式递归调整缩进
var rgx = /\n(<(([^\?]).+?)(?:\s|\s*?>|\s*?(\/)>)(?:.*?(?:(?:(\/)>)|(?:<(\/)\2>)))?)/mg;
var nodeStack = [];
var output = text.replace(rgx, function ($0, all, name, isBegin, isCloseFull1, isCloseFull2, isFull1, isFull2) {
var isClosed = (isCloseFull1 == '/') || (isCloseFull2 == '/') || (isFull1 == '/') || (isFull2 == '/');
var prefix = '';
if (isBegin == '!') {//!开头
prefix = setPrefix(nodeStack.length);
} else {
if (isBegin != '/') {///开头
prefix = setPrefix(nodeStack.length);
if (!isClosed) {//非关闭标签
nodeStack.push(name);
}
} else {
nodeStack.pop();//弹栈
prefix = setPrefix(nodeStack.length);
}
}
var ret = '\n' + prefix + all;
return ret;
});
var prefixSpace = -1;
var outputText = output.substring(1);
//还原注释内容
outputText = outputText.replace(/\n/g, '\r').replace(/(\s*)<!--(.+?)-->/g, function ($0, prefix, text) {
if (prefix.charAt(0) == '\r')
prefix = prefix.substring(1);
text = unescape(text).replace(/\r/g, '\n');
var ret = '\n' + prefix + '<!--' + text.replace(/^\s*/mg, prefix) + '-->';
return ret;
});
outputText = outputText.replace(/\s+$/g, '').replace(/\r/g, '\r\n');
return outputText;
}
//计算头函数 用来缩进
export function setPrefix(prefixIndex) {
var result = '';
var span = ' ';//缩进长度
var output = [];
for (var i = 0; i < prefixIndex; ++i) {
output.push(span);
}
result = output.join('');
return result;
}
<!--
* @Description :接收报文查询
* @Autor : miaofang
* @LastEditTime : 2023-05-18 13:10:53
* @LastEditTime : 2023-06-06 19:42:10
-->
<template>
<el-dialog :close-on-click-modal="false" top="0"
@click="close()"
custom-class="dialogBox dataReporting editDialogBox sbdialog commonDialog mainCenter" :visible.sync="dialogVisible"
width="92%">
<div slot="title" class="dialog_title" ref="dialogTitle">
干部信息查询
</div>
<!-- 接收报文查询 -->
<div class="reportLog from-clues dialogCon">
<!-- 头部搜索 -->
<div class="reportLog from-clues dialogCon">
<!-- 头部搜索 -->
<div class="from-clues-header">
<el-form ref="ruleForm" :model="form" label-width="100px">
<el-row class="mb-5">
......@@ -23,7 +30,7 @@
<!-- 按钮操作 -->
<el-col :span="6" class="btnColRight">
<el-form-item>
<btn nativeType="cx" v-if="Object.keys(dataDetail).length == 0" @click="handleSearchResult">查询</btn>
<btn nativeType="cx" v-if="isshow" @click="handleSearchResult">查询</btn>
</el-form-item>
</el-col>
</el-row>
......@@ -37,6 +44,7 @@
</lb-table>
</div>
</div>
</el-dialog>
</template>
<script>
// 接收报文查询
......@@ -53,7 +61,7 @@
props: {
dataDetail: {
type: Object,
default: function () { return {} }
default: {}
}
},
watch: {
......@@ -61,17 +69,26 @@
handler (newName, oldName) {
let _this = this
this.$nextTick(() => {
if(newName.result){
_this.tableData.data = JSON.parse(newName.result)
}else{
_this.tableData.data=[]
}
_this.form.qlrmc = newName.zjmc ? newName.zjmc : ""
_this.form.zjh = newName.zjh ? newName.zjh : ""
_this.btn=newName.btnname
})
},
immediate: true,
deep: true
}
},
mounted() {
},
data () {
return {
dialogVisible: false,
isshow:false,
pickerOptionsStart: {
disabledDate: (time) => {
let endDateVal = this.form.receiveEndTime;
......@@ -99,22 +116,6 @@
qlrmc: "", // 行政区
zjh: "" // 开始日期
},
// 校验规则
rules: {
pcode: [{ required: true, message: "请选择行政区", trigger: "change" }],
startTime: [
{ required: true, message: "请选择开始日期", trigger: "change" },
],
endTime: [
{ required: true, message: "请选择结束日期", trigger: "change" },
],
bdcdyh: [
{ required: true, message: "不动产单元号", trigger: "change" },
],
ywmc: [{ required: true, message: "业务名称", trigger: "change" }],
jcjg: [{ required: true, message: "检查结果", trigger: "change" }],
rkjg: [{ required: true, message: "入库结果", trigger: "change" }],
},
// 表格数据
tableData: {
// 表格头部
......@@ -128,17 +129,17 @@
{
prop: 'bdcdyh',
label: '不动产单元号',
width: 200
width: 220
},
{
prop: "bdcqzh",
label: "不动产权证号",
width: 160,
width: 260,
},
{
prop: 'djsj',
label: '登记时间',
width: 200
width: 220
},
{
prop: "fdzl",
......@@ -168,7 +169,7 @@
{
prop: "zjh",
label: "证件号",
width: 260,
width: 280,
},
],
// 表格列表数据
......@@ -185,6 +186,13 @@
};
},
methods: {
sing(str){
this.isshow=str;
this.dialogVisible = true
},
close(){
this.dialogVisible = false
},
//截止日期变化
endTimeChange (val) {
this.form.receiveEndTime = timeFormat(new Date(val), true)
......@@ -195,6 +203,7 @@
(res) => {
if (res.code === 200) {
this.tableData.data = res.result
this.$parent.queryClick()
} else {
this.$message.warning(res.message)
}
......@@ -204,15 +213,14 @@
// 重置
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
},
featchData () { },
handleSearchResult () {
this.queryClickSearch()
},
// 详情
handleDetails (row) {
}
}
}
</script>
......
<!--
* @Description :接收报文查询
* @Autor : miaofang
* @LastEditTime : 2023-05-18 13:11:18
* @LastEditTime : 2023-06-06 19:40:05
-->
<template>
<!-- 接收报文查询 -->
......@@ -22,7 +22,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="查询证件名称" prop="zjmc">
<el-form-item label="查询证件名称" prop="zjmc" label-width="130px">
<el-input v-model.trim="form.zjmc" clearable class="width100" placeholder="业务流水号"></el-input>
</el-form-item>
</el-col>
......@@ -44,14 +44,9 @@
</lb-table>
</div>
<!-- 编辑 -->
<el-dialog :close-on-click-modal="false" top="0"
custom-class="dialogBox dataReporting editDialogBox sbdialog commonDialog mainCenter" :visible.sync="dialogVisible"
width="92%">
<div slot="title" class="dialog_title" ref="dialogTitle">
干部信息查询
</div>
<search-result ref="resultData" :dataDetail="dataDetail"></search-result>
</el-dialog>
</div>
</template>
......@@ -76,7 +71,7 @@
},
data () {
return {
dialogVisible: false,
pickerOptionsStart: {
disabledDate: (time) => {
let endDateVal = this.form.receiveEndTime;
......@@ -204,12 +199,13 @@
// 详情
handleDetails (row) {
editSearchRecord(row.bsm).then(res => {
this.dialogVisible = true
this.dataDetail = res.result
this.$refs.resultData.sing(false);
})
},
save () {
this.dialogVisible = true
this.dataDetail={}
this.$refs.resultData.sing(true);
}
}
}
......
<!--
* @Description :接收报文查询
* @Autor : miaofang
* @LastEditTime : 2023-05-18 13:12:04
* @LastEditTime : 2023-06-06 11:14:06
-->
<template>
<!-- 接收报文查询 -->
......@@ -198,17 +198,7 @@
render: (h, scope) => {
return (
<div>
{
scope.row.receiveState == 2 ?
<el-button
type="text"
class='successColor'
onClick={() => {
this.handleDetails(scope.row);
}}
>
修改
</el-button> :
<el-button
type="text"
class='btnColor'
......@@ -218,7 +208,7 @@
>
详情
</el-button>
}
</div>
)
}
......@@ -320,11 +310,8 @@
this.title = Title
}
this.$refs.editLog.isShow(row);
if (row.receiveState == 2) {
this.$store.dispatch('business/setReportLogEdit')
} else {
this.$store.dispatch('business/setEdit')
}
},
}
}
......
......@@ -36,7 +36,7 @@ class data {
label: '业务号',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
......@@ -45,7 +45,7 @@ class data {
label: '登记类型',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
......@@ -54,7 +54,7 @@ class data {
label: '权利类型',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
......@@ -63,7 +63,7 @@ class data {
label: '不动产单元号',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
......@@ -72,7 +72,7 @@ class data {
label: '证书证明号',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
......@@ -81,7 +81,7 @@ class data {
label: '是否上报',
render: (h, scope) => {
return (
<el-select class="width100" value={scope.row[scope.column.property]}
<el-select disabled class="width100" value={scope.row[scope.column.property]}
onChange={(val) => { scope.row[scope.column.property] = val }}>
{
store.getters.dicData['A6'].map(option => {
......@@ -99,7 +99,7 @@ class data {
label: '报文ID',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
}
......
......@@ -35,7 +35,7 @@ class data {
label: '业务号',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
......@@ -44,7 +44,7 @@ class data {
label: '不动产单元号',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
......@@ -53,7 +53,7 @@ class data {
label: '报文ID',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
<el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
}
......
<!--
* @Description :修改登簿日志弹窗
* @Autor : miaofang
* @LastEditTime : 2023-05-18 13:16:22
* @LastEditTime : 2023-06-06 14:17:09
-->
<template>
<!-- 修改登簿日志弹窗 -->
......@@ -48,54 +48,54 @@
</el-col>
<el-col :span="4">
<span>首次登记量:</span>
<el-input v-model="registerInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.FIRSTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>转移登记量:</span>
<el-input v-model="registerInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.TRANSFERREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>变更登记量:</span>
<el-input v-model="registerInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.CHANGEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>注销登记量:</span>
<el-input v-model="registerInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.LOGOUTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>更正登记量:</span>
<el-input v-model="registerInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.RIVISEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
</el-row>
<el-row class="dialog-from_header item-content-input">
<el-col :span="4">
<span>异议登记量:</span>
<el-input v-model="registerInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.DISSENTINGREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>预告登记量:</span>
<el-input v-model="registerInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.ADVANCEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>查封登记量:</span>
<el-input v-model="registerInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.SEIZEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>其他登记:</span>
<el-input v-model="registerInfo.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.otherReg" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>业务类型量:</span>
<el-input v-model="registerInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="registerInfo.BUSINESSTYPECOUNT" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4" style="border:none">
......@@ -112,54 +112,54 @@
</el-col>
<el-col :span="4">
<span>首次登记量:</span>
<el-input v-model="accessInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.FIRSTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>转移登记量:</span>
<el-input v-model="accessInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.TRANSFERREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>变更登记量:</span>
<el-input v-model="accessInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.CHANGEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>注销登记量:</span>
<el-input v-model="accessInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.LOGOUTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>更正登记量:</span>
<el-input v-model="accessInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.RIVISEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
</el-row>
<el-row class="dialog-from_header item-content-input">
<el-col :span="4">
<span>异议登记量:</span>
<el-input v-model="accessInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.DISSENTINGREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>预告登记量:</span>
<el-input v-model="accessInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.ADVANCEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>查封登记量:</span>
<el-input v-model="accessInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.SEIZEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>其他登记:</span>
<el-input v-model="accessInfo.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.otherReg" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>业务类型量:</span>
<el-input v-model="accessInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)"
<el-input v-model="accessInfo.BUSINESSTYPECOUNT" disabled oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4" style="border:none">
......@@ -188,14 +188,6 @@
</div>
</div>
</div>
<div class="d-center" v-if="titleName == 'sjmx'">
<btn nativeType="cz" @click="dialogVisible = false">取 消</btn>
<btn nativeType="cx" @click="submitForm">保 存</btn>
</div>
<div class="d-center" v-if="!$store.state.business.Edit && titleName == 'xml'">
<btn nativeType="cx" @click="handleExtract">再次抽取</btn>
<btn nativeType="cx" @click="handleResubmit">重新上报</btn>
</div>
</el-dialog>
</template>
......
......@@ -198,7 +198,7 @@ class data {
vm.handleEdit(scope.row);
}}
>
修改
详情
</el-button>
</div>
);
......
<!--
* @Description :登簿日志查询
* @Autor : miaofang
* @LastEditTime : 2023-05-18 13:16:37
* @LastEditTime : 2023-06-06 13:57:49
-->
<template>
<!-- 登簿日志查询 -->
......@@ -151,7 +151,7 @@
// 编辑
handleEdit (row) {
this.$refs.editLog.isShow(row);
this.$store.dispatch('business/setReportLogEdit')
this.$store.dispatch('business/setEdit')
}
},
destroyed () {
......
......@@ -162,17 +162,7 @@
render: (h, scope) => {
return (
<div>
{
scope.row.exchangeState == 2 ?
<el-button
type="text"
class='successColor'
onClick={() => {
this.handleDetail(scope.row);
}}
>
修改
</el-button> :
<el-button
class='btnColor'
type="text"
......@@ -182,7 +172,7 @@
>
详情
</el-button>
}
</div>
);
......@@ -220,11 +210,9 @@
handleDetail (row) {
this.title = row.rectypeName;
this.$refs.editLog.isShow(row);
if (row.exchangeState == 2) {
this.$store.dispatch('business/setReportLogEdit')
} else {
this.$store.dispatch('business/setEdit')
}
},
// 重置
resetForm () {
......
<!--
* @Description :上报报文查询
* @Autor : miaofang
* @LastEditTime : 2023-05-18 13:17:46
* @LastEditTime : 2023-06-06 13:38:08
-->
<template>
<div class="from-clues">
......@@ -181,17 +181,7 @@
render: (h, scope) => {
return (
<div>
{
scope.row.exchangeState == 2 ?
<el-button
type="text"
class='successColor'
onClick={() => {
this.handleDetail(scope.row);
}}
>
修改
</el-button> :
<el-button
class='btnColor'
type="text"
......@@ -201,7 +191,7 @@
>
详情
</el-button>
}
</div>
);
......@@ -239,11 +229,8 @@
handleDetail (row) {
this.title = row.rectypeName;
this.$refs.editLog.isShow(row);
if (row.exchangeState == 2) {
this.$store.dispatch('business/setReportLogEdit')
} else {
this.$store.dispatch('business/setEdit')
}
this.$store.dispatch('business/setEdit')
},
// 重置
resetForm () {
......