Browse Source

修改新闻管理列表样式;格式化代码

feature/yujt_analysis_pc
yujt 5 years ago
parent
commit
be59917bb8
  1. 12
      src/views/modules/case/typicalcase-list.vue
  2. 4
      src/views/modules/custom/evaluatedeptcount.vue
  3. 6
      src/views/modules/custom/gridoperatorinfo.vue
  4. 5
      src/views/modules/heart/actbanner.vue
  5. 2
      src/views/modules/heart/actinfo-list.vue
  6. 2
      src/views/modules/news/news-add-or-update.vue
  7. 8
      src/views/modules/news/news-healthy.vue
  8. 8
      src/views/modules/news/news-safety.vue
  9. 8
      src/views/modules/news/news-services.vue
  10. 8
      src/views/modules/news/news.vue
  11. 2
      src/views/modules/sys/deptmacode.vue

12
src/views/modules/case/typicalcase-list.vue

@ -71,7 +71,7 @@
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './typicalcase-add-or-update'
import CaseInfoDetailView from './typicalcase-detail'
import {debounce} from 'lodash'
import { debounce } from 'lodash'
export default {
mixins: [mixinViewModule],
name: 'CaseInfoList',
@ -120,17 +120,17 @@ export default {
},
formatState: function (row, column) {
let state = row.state
if (state == 1) {
if (state === 1) {
return '上架'
} else if (state == 0) {
} else if (state === 0) {
return '下架'
}
},
changeGroundingText(state){
changeGroundingText (state) {
let status = state
if (status == 1) {
if (status === 1) {
return '下架'
} else if (status == 0) {
} else if (status === 0) {
return '上架'
}
},

4
src/views/modules/custom/evaluatedeptcount.vue

@ -78,7 +78,7 @@
<script>
import mixinViewModule from '@/mixins/view-module'
import EvaluateOfficerCountList from './evaluateofficercount'
// import EvaluateOfficerCountList from './evaluateofficercount'
export default {
mixins: [mixinViewModule],
name: 'EvaluateDeptCountList',
@ -114,7 +114,7 @@ export default {
}
},
created: function () {
this.getDataList();
this.getDataList()
},
methods: {
officerAction (deptId) {

6
src/views/modules/custom/gridoperatorinfo.vue

@ -165,17 +165,17 @@ export default {
},
watch: {
'ids': function (val) {
if (val.length == 0 || val.length == 1) {
if (val.length === 0 || val.length === 1) {
this.dataForm.streetId = val[0]
this.dataForm.communityId = ''
this.dataForm.gridId = ''
}
if (val.length == 2) {
if (val.length === 2) {
this.dataForm.streetId = ''
this.dataForm.communityId = val[1]
this.dataForm.gridId = ''
}
if (val.length == 3) {
if (val.length === 3) {
this.dataForm.streetId = ''
this.dataForm.communityId = ''
this.dataForm.gridId = val[2]

5
src/views/modules/heart/actbanner.vue

@ -64,7 +64,7 @@
<script>
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './actbanner-add-or-update'
import {debounce} from 'lodash'
import { debounce } from 'lodash'
export default {
mixins: [mixinViewModule],
data () {
@ -86,7 +86,7 @@ export default {
AddOrUpdate
},
methods: {
changeGroundingText(status){
changeGroundingText (status) {
let state = status
if (state === '1') {
return '下架'
@ -104,7 +104,6 @@ export default {
},
changeGroundingHandle: debounce(function (row) {
this.$confirm(this.$t('prompt.info', { 'handle': this.changeGroundingText(row.status) }), this.$t('prompt.title'), {
confirmButtonText: this.$t('confirm'),
cancelButtonText: this.$t('cancel'),

2
src/views/modules/heart/actinfo-list.vue

@ -144,7 +144,7 @@ export default {
addAction () {
this.$parent.selectComponent = 'ActInfoAdd'
this.$router.push(
{ path: '/heart-actinfo'}
{ path: '/heart-actinfo' }
)
},
joinManage (id) {

2
src/views/modules/news/news-add-or-update.vue

@ -288,7 +288,7 @@ export default {
this.dataForm.newsReleaseEndTime = this.time[1]
if (new Date(this.dataForm.newsReleaseEndTime) < new Date()) {
this.dataForm.newsUpDownState = '1'
} else if (this.newsUpDownStateOld == '0'){
} else if (this.newsUpDownStateOld === '0') {
this.dataForm.newsUpDownState = '0'
}
},

8
src/views/modules/news/news-healthy.vue

@ -66,24 +66,24 @@
</el-table-column>
<el-table-column prop="newsTitle"
label="文章标题"
width="450px"
width="500px"
header-align="center"
min-width="400px"
show-overflow-tooltip
align="left"></el-table-column>
<el-table-column prop="readingAmount"
label="阅读量"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="likeNumber"
label="支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="unLikeNumber"
label="不支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="createdTime"

8
src/views/modules/news/news-safety.vue

@ -66,24 +66,24 @@
</el-table-column>
<el-table-column prop="newsTitle"
label="文章标题"
width="450px"
width="500px"
header-align="center"
min-width="400px"
show-overflow-tooltip
align="left"></el-table-column>
<el-table-column prop="readingAmount"
label="阅读量"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="likeNumber"
label="支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="unLikeNumber"
label="不支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="createdTime"

8
src/views/modules/news/news-services.vue

@ -66,24 +66,24 @@
</el-table-column>
<el-table-column prop="newsTitle"
label="文章标题"
width="450px"
width="500px"
header-align="center"
min-width="400px"
show-overflow-tooltip
align="left"></el-table-column>
<el-table-column prop="readingAmount"
label="阅读量"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="likeNumber"
label="支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="unLikeNumber"
label="不支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="createdTime"

8
src/views/modules/news/news.vue

@ -66,24 +66,24 @@
</el-table-column>
<el-table-column prop="newsTitle"
label="标题名称"
width="450px"
width="500px"
header-align="center"
min-width="400px"
show-overflow-tooltip
align="left"></el-table-column>
<el-table-column prop="readingAmount"
label="阅读量"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="likeNumber"
label="支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="unLikeNumber"
label="不支持数"
width="40px"
width="80px"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="createdTime"

2
src/views/modules/sys/deptmacode.vue

@ -329,7 +329,7 @@ export default {
uploadSuccess (response, file, fileList) {
this.$refs.upload.clearFiles()
if (response.code !== 0) {
return this.$message.error(res.msg)
return this.$message.error(response.msg)
}
this.$message({
message: this.$t('prompt.success'),

Loading…
Cancel
Save