--no commit message
Showing
12 changed files
with
36 additions
and
25 deletions
| ... | @@ -71,12 +71,6 @@ export function leftMenubl (params) { | ... | @@ -71,12 +71,6 @@ export function leftMenubl (params) { |
| 71 | * @param {*} params | 71 | * @param {*} params |
| 72 | * @author: renchao | 72 | * @author: renchao |
| 73 | */ | 73 | */ |
| 74 | // export function getQllxByBdcdyid (params) { | ||
| 75 | // return request({ | ||
| 76 | // url: SERVER.SERVERAPI + '/rest/djbDetail/getQllxByBdcdyid?bdcdyid='+params, | ||
| 77 | // method: 'get', | ||
| 78 | // }) | ||
| 79 | // } | ||
| 80 | export function getQllxByBdcdyid (params) { | 74 | export function getQllxByBdcdyid (params) { |
| 81 | return request({ | 75 | return request({ |
| 82 | url: SERVER.SERVERAPI + '/rest/djbDetail/getQllxByBdcdyid', | 76 | url: SERVER.SERVERAPI + '/rest/djbDetail/getQllxByBdcdyid', | ... | ... |
| ... | @@ -231,9 +231,8 @@ | ... | @@ -231,9 +231,8 @@ |
| 231 | <div class="triangle"></div> | 231 | <div class="triangle"></div> |
| 232 | </div> | 232 | </div> |
| 233 | <tdytTable | 233 | <tdytTable |
| 234 | :tableData="ruleForm.qlrList" | 234 | :tableData="ruleForm.tdxxList" |
| 235 | @upDateQlrxxList="upDateQlrxxList" | 235 | @upDateQlrxxList="upDateQlrxxList" |
| 236 | :key="key" | ||
| 237 | :viewtype="$route.query.viewtype" | 236 | :viewtype="$route.query.viewtype" |
| 238 | :gyfs="ruleForm.qlxx.gyfs" | 237 | :gyfs="ruleForm.qlxx.gyfs" |
| 239 | /> | 238 | /> | ... | ... |
| ... | @@ -48,11 +48,20 @@ export default { | ... | @@ -48,11 +48,20 @@ export default { |
| 48 | this.qllx= key; | 48 | this.qllx= key; |
| 49 | } | 49 | } |
| 50 | } | 50 | } |
| 51 | let qllxobj = { | 51 | if(this.qllx){ |
| 52 | let qllxobj = { | ||
| 52 | qllx:this.qllx, | 53 | qllx:this.qllx, |
| 53 | bsmQlxx:"" | 54 | bsmQlxx:"" |
| 54 | }; | 55 | }; |
| 56 | |||
| 55 | this.$parent.addRepairRecord(qllxobj) | 57 | this.$parent.addRepairRecord(qllxobj) |
| 58 | }else{ | ||
| 59 | this.$message({ | ||
| 60 | type: "warning", | ||
| 61 | message: "请选择权利类型!", | ||
| 62 | }); | ||
| 63 | } | ||
| 64 | |||
| 56 | }, | 65 | }, |
| 57 | }, | 66 | }, |
| 58 | }; | 67 | }; | ... | ... |
| ... | @@ -25,7 +25,7 @@ | ... | @@ -25,7 +25,7 @@ |
| 25 | row.qszt == '0' ? 'linshi' : '', | 25 | row.qszt == '0' ? 'linshi' : '', |
| 26 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 26 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
| 27 | ]"> | 27 | ]"> |
| 28 | <div class="setbut" v-if="item.prop == 'cz'"> | 28 | <div class="setbut" v-if="item.prop == 'cz'&&item.sjlx !='系统数据'"> |
| 29 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | 29 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> |
| 30 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | 30 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> |
| 31 | </div> | 31 | </div> | ... | ... |
| ... | @@ -244,11 +244,25 @@ export default { | ... | @@ -244,11 +244,25 @@ export default { |
| 244 | from.qllx = row.qllx; | 244 | from.qllx = row.qllx; |
| 245 | } | 245 | } |
| 246 | addRepairRecord(from).then((res) => { | 246 | addRepairRecord(from).then((res) => { |
| 247 | this.$refs.qllxlist.dialogVisible = false; | 247 | if(res.code=='200'){ |
| 248 | this.$refs.qllxlist.dialogVisible = false; | ||
| 248 | this.$nextTick(() => { | 249 | this.$nextTick(() => { |
| 249 | this.$refs.Menu.getleftMenubl(res.result); | 250 | this.$refs.Menu.getleftMenubl(res.result); |
| 251 | this.$message({ | ||
| 252 | type: "success", | ||
| 253 | message: "补录成功!", | ||
| 254 | }); | ||
| 250 | }); | 255 | }); |
| 251 | }); | 256 | }else{ |
| 257 | this.$alert(res.message, '提示', { | ||
| 258 | confirmButtonText: '确定', | ||
| 259 | type: 'warning' | ||
| 260 | }); | ||
| 261 | } | ||
| 262 | }).catch((res) => { | ||
| 263 | |||
| 264 | console.log("错i了哦",res); | ||
| 265 | });; | ||
| 252 | }, | 266 | }, |
| 253 | }, | 267 | }, |
| 254 | }; | 268 | }; | ... | ... |
| ... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
| 24 | row.qszt == '0' ? 'linshi' : '', | 24 | row.qszt == '0' ? 'linshi' : '', |
| 25 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', | 25 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', |
| 26 | ]"> | 26 | ]"> |
| 27 | <div class="setbut" v-if="item.prop == 'cz'"> | 27 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> |
| 28 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | 28 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> |
| 29 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> | 29 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> |
| 30 | </div> | 30 | </div> | ... | ... |
| ... | @@ -29,7 +29,7 @@ | ... | @@ -29,7 +29,7 @@ |
| 29 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 29 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
| 30 | ]" | 30 | ]" |
| 31 | > | 31 | > |
| 32 | <div class="setbut" v-if="item.prop == 'cz'"> | 32 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> |
| 33 | <el-button | 33 | <el-button |
| 34 | type="text" | 34 | type="text" |
| 35 | icon="el-icon-edit-outline" | 35 | icon="el-icon-edit-outline" | ... | ... |
| ... | @@ -29,7 +29,7 @@ | ... | @@ -29,7 +29,7 @@ |
| 29 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 29 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
| 30 | ]" | 30 | ]" |
| 31 | > | 31 | > |
| 32 | <div class="setbut" v-if="item.prop == 'cz'"> | 32 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> |
| 33 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | 33 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> |
| 34 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> | 34 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> |
| 35 | </div> | 35 | </div> | ... | ... |
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
| 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', | 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', |
| 24 | ]"> | 24 | ]"> |
| 25 | <div class="setbut" v-if="item.prop == 'cz'"> | 25 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> |
| 26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | 26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> |
| 27 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> | 27 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> |
| 28 | </div> | 28 | </div> | ... | ... |
| ... | @@ -29,7 +29,7 @@ | ... | @@ -29,7 +29,7 @@ |
| 29 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 29 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
| 30 | ]" | 30 | ]" |
| 31 | > | 31 | > |
| 32 | <div class="setbut" v-if="item.prop == 'cz'"> | 32 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> |
| 33 | <el-button | 33 | <el-button |
| 34 | type="text" | 34 | type="text" |
| 35 | icon="el-icon-edit-outline" | 35 | icon="el-icon-edit-outline" |
| ... | @@ -134,16 +134,11 @@ export default { | ... | @@ -134,16 +134,11 @@ export default { |
| 134 | }) | 134 | }) |
| 135 | .then(() => { | 135 | .then(() => { |
| 136 | this.$parent.addRepairRecord(row, del); | 136 | this.$parent.addRepairRecord(row, del); |
| 137 | |||
| 138 | this.$message({ | ||
| 139 | type: "success", | ||
| 140 | message: "补录成功!", | ||
| 141 | }); | ||
| 142 | }) | 137 | }) |
| 143 | .catch(() => { | 138 | .catch(() => { |
| 144 | this.$message({ | 139 | this.$message({ |
| 145 | type: "info", | 140 | type: "info", |
| 146 | message: "取消编辑", | 141 | message: "取消", |
| 147 | }); | 142 | }); |
| 148 | }); | 143 | }); |
| 149 | }, | 144 | }, | ... | ... |
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
| 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', | 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', |
| 24 | ]"> | 24 | ]"> |
| 25 | <div class="setbut" v-if="item.prop == 'cz'"> | 25 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> |
| 26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | 26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> |
| 27 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> | 27 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> |
| 28 | </div> | 28 | </div> | ... | ... |
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
| 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', | 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', |
| 24 | ]"> | 24 | ]"> |
| 25 | <div class="setbut" v-if="item.prop == 'cz'"> | 25 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> |
| 26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | 26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> |
| 27 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> | 27 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> |
| 28 | </div> | 28 | </div> | ... | ... |
-
Please register or sign in to post a comment