中医针灸管理员pc端后台增加 是否需要倒计时提醒设置 #7

Merged
longchao merged 1 commits from count_down into master 1 month ago
  1. 16
      src/views/HosInformation.vue

16
src/views/HosInformation.vue

@ -208,6 +208,14 @@
</template>
</el-table-column>
<el-table-column prop="create_time" label="添加时间" min-width="225"></el-table-column>
<el-table-column prop="need_countdown" label="倒计时弹窗开关" min-width="125">
<template slot-scope="scope">
<GuipSwitch :modelValue="scope.row.need_countdown" active-value="1" inactive-value="0" @change="onSwitchChange3(scope.row)">
</GuipSwitch>
</template>
</el-table-column>
<el-table-column prop="status" label="状态" min-width="125">
<template slot-scope="scope">
<GuipSwitch :modelValue="scope.row.status" active-value="1" inactive-value="0" @change="onSwitchChange1(scope.row)">
@ -815,14 +823,16 @@ export default {
this.editorProjectInfo({ status: row.status, project_id: row.id })
},
onSwitchChange2(row) {
console.log(row.status)
var tmpstatus = row.status == 1 ? 0 : 1
this.$set(this.courseList, row)
this.selectedRows1 = [row]
this.batchOperate(tmpstatus, 'group')
},
onSwitchChange3(row) {
row.need_countdown = row.need_countdown == 0 ? 1 : 0;
this.$set(this.projectList, row)
this.editorProjectInfo({ need_countdown: row.need_countdown, project_id: row.id })
},
handleClick1(row) {
console.log(row);
this.$router.push(`/addNewTreatment?package_id=${row.id}&doctor_id=${this.doctor_id}&depart_id=${this.depart_id}`)

Loading…
Cancel
Save