01dded5c by 任超
2 parents a1be3612 8a8e5971
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
86 label: "联系电话" 86 label: "联系电话"
87 }, 87 },
88 { 88 {
89 label: '修改', 89 label: '操作',
90 render: (h, scope) => { 90 render: (h, scope) => {
91 return ( 91 return (
92 <div> 92 <div>
...@@ -98,6 +98,7 @@ export default { ...@@ -98,6 +98,7 @@ export default {
98 icon="el-icon-edit-outline" 98 icon="el-icon-edit-outline"
99 type="text" 99 type="text"
100 onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button> 100 onClick={() => { this.editClick(scope.$index, scope.row) }}>编辑</el-button>
101
101 } 102 }
102 </div> 103 </div>
103 ) 104 )
...@@ -131,7 +132,9 @@ export default { ...@@ -131,7 +132,9 @@ export default {
131 handler (newVal, oldValue) { 132 handler (newVal, oldValue) {
132 let dataList = _.cloneDeep(this.InformationTable) 133 let dataList = _.cloneDeep(this.InformationTable)
133 if (newVal == 0) { 134 if (newVal == 0) {
134 this.column = _.cloneDeep(dataList).slice(1, dataList.length) 135 // this.column = _.cloneDeep(dataList).slice(1, dataList.length)
136 this.column = _.cloneDeep(dataList)
137
135 } else if ((newVal == '1' || newVal == '3')) { 138 } else if ((newVal == '1' || newVal == '3')) {
136 this.column = dataList 139 this.column = dataList
137 } else { 140 } else {
...@@ -148,7 +151,6 @@ export default { ...@@ -148,7 +151,6 @@ export default {
148 }, 151 },
149 methods: { 152 methods: {
150 handleupdateDetail (value) { 153 handleupdateDetail (value) {
151 debugger
152 if(this.isaddupdate){ 154 if(this.isaddupdate){
153 if (!_.isEqual(value, this.tableData)) { 155 if (!_.isEqual(value, this.tableData)) {
154 this.tableDataList[this.tableDataList.length] = _.cloneDeep(value); 156 this.tableDataList[this.tableDataList.length] = _.cloneDeep(value);
...@@ -170,7 +172,14 @@ export default { ...@@ -170,7 +172,14 @@ export default {
170 172
171 // 删除 173 // 删除
172 deleClick (index, row) { 174 deleClick (index, row) {
173 this.tableData.splice(index, 1) 175 this.$confirm('确定要删除吗, 是否继续?', '提示', {
176 confirmButtonText: '确定',
177 cancelButtonText: '取消',
178 type: 'warning'
179 }).then(() => {
180 this.tableData.splice(index, 1)
181 }).catch(() => {
182 });
174 }, 183 },
175 184
176 // 身份证读取 185 // 身份证读取
......
...@@ -225,6 +225,16 @@ export default { ...@@ -225,6 +225,16 @@ export default {
225 this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val)) 225 this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val))
226 }, 226 },
227 onSubmit () { 227 onSubmit () {
228 if(this.ruleForm.slywxx.gyfs=="0"){
229 if(this.ruleForm.qlrList.length>1){
230 this.$message({
231 showClose: true,
232 message: "共有方式:单独所有,权利人只能是一个人",
233 type: "error",
234 });
235 return false;
236 }
237 }
228 saveData(this.ruleForm).then((res) => { 238 saveData(this.ruleForm).then((res) => {
229 if (res.code === 200) { 239 if (res.code === 200) {
230 this.$message({ 240 this.$message({
......