Browse Source

【打卡积分】-【查看页面】增加屏蔽功能,

打卡列表接口添加 限制条件
feature/syp_points
zhangyongzhangyong 5 years ago
parent
commit
7f28f66236
  1. 11
      src/views/modules/heart/actinfo-add-or-update.vue
  2. 5
      src/views/modules/heart/actinfo-list.vue
  3. 41
      src/views/modules/heart/actuserclock-detail.vue

11
src/views/modules/heart/actinfo-add-or-update.vue

@ -69,14 +69,14 @@
prop="actQuota">
<template>
<el-radio v-model="dataForm.actQuotaCategory"
label="1">固定名额</el-radio>&emsp;&emsp;
:label="1">固定名额</el-radio>&emsp;&emsp;
<el-input-number type="number"
:min="1"
v-model="dataForm.actQuota"
placeholder="固定名额"
style="width:150px"></el-input-number>&emsp; &emsp;&emsp;
<el-radio v-model="dataForm.actQuotaCategory"
label="0">不限名额</el-radio>
:label="0">不限名额</el-radio>
</template>
<div>
<font color="gray">报名未审核人员</font>
@ -290,7 +290,7 @@ export default {
headPic: '',
signupStartTime: '',
signupEndTime: '',
actQuotaCategory: '1',
actQuotaCategory: 1,
actStartTime: '',
actEndTime: '',
actAddress: '',
@ -369,6 +369,10 @@ export default {
}
}
},
mounted () {
this.dataForm.id = this.$route.query.id
this.init()
},
created () {
this.$http
.get(`/sys/user/deptOptions/getByLoginUser`)
@ -592,6 +596,7 @@ export default {
...this.dataForm,
...res.data
}
this.quillEditor.root.innerHTML = this.dataForm.actContent
}).catch(() => { })
},
//

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

@ -60,6 +60,7 @@
</div>
<div>
<el-button v-if="$hasPermission('heart:actinfo:pull')" type="text" size="small" @click="pullHandle(scope.row)">新闻发稿</el-button>
<el-button v-if="$hasPermission('heart:actinfo:update')" type="text" size="small" @click="updateHandle(scope.row)">新闻编辑</el-button>
</div>
</template>
</el-table-column>
@ -184,6 +185,10 @@ export default {
this.$refs.actinfoPull.dataForm.id = row.id
this.$refs.actinfoPull.init()
})
},
updateHandle (row) {
this.$parent.selectComponent = 'ActInfoAdd'
this.$router.push({ path: '/heart-actinfo', query: { id: row.id } })
}
}
}

41
src/views/modules/heart/actuserclock-detail.vue

@ -104,6 +104,12 @@
></el-image>
</template>
</el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope">
<el-button v-show="scope.row.shieldFlag != 1" type="text" size="small" @click="upShieldFlag(scope.row.id)">未屏蔽</el-button>
<el-button type="text" size="small" v-show="scope.row.shieldFlag == 1" :disabled="true">已屏蔽</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
:current-page="page"
@ -145,7 +151,8 @@ export default {
latitude: '',
longitude: '',
radius: 200,
clockPic: []
clockPic: [],
shieldFlag: ''
},
previewImgList: [],
isAble: false
@ -357,7 +364,37 @@ export default {
},
1000,
{ leading: true, trailing: false }
)
),
//
upShieldFlag (id) {
this.$confirm('此操作将永久屏蔽该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.dataForm.shieldFlag = 1
this.dataForm.id = id
this.$http['post']('/heart/actuserclocklog/updateShieldFlag', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.$emit('refreshDataList')
this.$parent.selectComponent = 'ActUserClockLog'
this.$router.push({
path: '/heart-actinfo',
query: { id: this.dataForm.actId }
})
}
})
}).catch(() => {})
}).catch(() => {
})
}
}
}
</script>

Loading…
Cancel
Save