01dded5c by 任超
2 parents a1be3612 8a8e5971
......@@ -86,7 +86,7 @@ export default {
label: "联系电话"
},
{
label: '修改',
label: '操作',
render: (h, scope) => {
return (
<div>
......@@ -98,6 +98,7 @@ export default {
icon="el-icon-edit-outline"
type="text"
onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button>
}
</div>
)
......@@ -131,7 +132,9 @@ export default {
handler (newVal, oldValue) {
let dataList = _.cloneDeep(this.InformationTable)
if (newVal == 0) {
this.column = _.cloneDeep(dataList).slice(1, dataList.length)
// this.column = _.cloneDeep(dataList).slice(1, dataList.length)
this.column = _.cloneDeep(dataList)
} else if ((newVal == '1' || newVal == '3')) {
this.column = dataList
} else {
......@@ -148,7 +151,6 @@ export default {
},
methods: {
handleupdateDetail (value) {
debugger
if(this.isaddupdate){
if (!_.isEqual(value, this.tableData)) {
this.tableDataList[this.tableDataList.length] = _.cloneDeep(value);
......@@ -170,7 +172,14 @@ export default {
// 删除
deleClick (index, row) {
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.tableData.splice(index, 1)
}).catch(() => {
});
},
// 身份证读取
......
......@@ -225,6 +225,16 @@ export default {
this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val))
},
onSubmit () {
if(this.ruleForm.slywxx.gyfs=="0"){
if(this.ruleForm.qlrList.length>1){
this.$message({
showClose: true,
message: "共有方式:单独所有,权利人只能是一个人",
type: "error",
});
return false;
}
}
saveData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
......