代码完善
Showing
3 changed files
with
9 additions
and
7 deletions
| ... | @@ -79,10 +79,10 @@ export default { | ... | @@ -79,10 +79,10 @@ export default { | 
| 79 | } | 79 | } | 
| 80 | }, | 80 | }, | 
| 81 | mounted() { | 81 | mounted() { | 
| 82 | this.queryList() | 82 | this.queryClick () | 
| 83 | }, | 83 | }, | 
| 84 | methods: { | 84 | methods: { | 
| 85 | queryList(){ | 85 | queryClick (){ | 
| 86 | getUserCommonOpinion(this.pageData).then(res => { | 86 | getUserCommonOpinion(this.pageData).then(res => { | 
| 87 | let { total, records } = res.result | 87 | let { total, records } = res.result | 
| 88 | this.tableData.total = total; | 88 | this.tableData.total = total; | 
| ... | @@ -131,7 +131,7 @@ export default { | ... | @@ -131,7 +131,7 @@ export default { | 
| 131 | delUserCommonOpinion({bsmOpinion: item.bsmOpinion}).then(res => { | 131 | delUserCommonOpinion({bsmOpinion: item.bsmOpinion}).then(res => { | 
| 132 | if(res.code == 200){ | 132 | if(res.code == 200){ | 
| 133 | this.$message.success("删除成功") | 133 | this.$message.success("删除成功") | 
| 134 | this.queryList() | 134 | this.queryClick() | 
| 135 | }else{ | 135 | }else{ | 
| 136 | this.$message.error(res.message) | 136 | this.$message.error(res.message) | 
| 137 | } | 137 | } | ... | ... | 
| 1 | <template> | 1 | <template> | 
| 2 | <div class="from-clues" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" | 2 | <div class="from-clues" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" | 
| 3 | element-loading-background="rgba(0, 0, 0, 0.8)"> | 3 | element-loading-background="rgba(0, 0, 0, 0.8)" style="height:720px"> | 
| 4 | <!-- 表单部分 --> | 4 | <!-- 表单部分 --> | 
| 5 | <el-tabs v-model="activeName" @tab-click="handleClick" v-if="headTabBdcqz.length > 1"> | 5 | <el-tabs v-model="activeName" @tab-click="handleClick" v-if="headTabBdcqz.length > 1"> | 
| 6 | <el-tab-pane :label="item.qlr + '(' + item.bdcqzh + ')'" :name="item.bsmBdcqz" | 6 | <el-tab-pane :label="item.qlr + '(' + item.bdcqzh + ')'" :name="item.bsmBdcqz" | 
| 7 | v-for="(item, index) in headTabBdcqz" :key="index"></el-tab-pane> | 7 | v-for="(item, index) in headTabBdcqz" :key="index"></el-tab-pane> | 
| 8 | </el-tabs> | 8 | </el-tabs> | 
| 9 | <div class="no-data">暂无数据</div> | 9 | <div class="no-data" v-if="headTabBdcqz.length == 0">暂无数据</div> | 
| 10 | <img :src="previewImage" class="imgClass"> | 10 | <img :src="previewImage" class="imgClass"> | 
| 11 | </div> | 11 | </div> | 
| 12 | </template> | 12 | </template> | 
| ... | @@ -76,6 +76,8 @@ export default { | ... | @@ -76,6 +76,8 @@ export default { | 
| 76 | this.bdcqz = res.result[0] | 76 | this.bdcqz = res.result[0] | 
| 77 | this.headTabBdcqz = res.result | 77 | this.headTabBdcqz = res.result | 
| 78 | this.getBdcqzPreview(); | 78 | this.getBdcqzPreview(); | 
| 79 | }else{ | ||
| 80 | this.loading = false | ||
| 79 | } | 81 | } | 
| 80 | } | 82 | } | 
| 81 | 83 | ... | ... | 
| ... | @@ -275,8 +275,8 @@ export default { | ... | @@ -275,8 +275,8 @@ export default { | 
| 275 | let that = this | 275 | let that = this | 
| 276 | const h = this.$createElement; | 276 | const h = this.$createElement; | 
| 277 | this.$msgbox({ | 277 | this.$msgbox({ | 
| 278 | title: "您确定转出吗?2", | 278 | title: "您确定转出吗?", | 
| 279 | message: "此环节为流程结束环节,转出后流程将结束", | 279 | message: "此环节为流程最后环节,转出后流程将结束", | 
| 280 | showCancelButton: true, | 280 | showCancelButton: true, | 
| 281 | beforeClose: (action, instance, done) => { | 281 | beforeClose: (action, instance, done) => { | 
| 282 | console.log(action, 'actionaction'); | 282 | console.log(action, 'actionaction'); | ... | ... | 
- 
Please register or sign in to post a comment