|
@@ -21,6 +21,9 @@
|
|
|
v-model="scope.row[item.prop]"
|
|
|
@change="changeCheck(scope.row, item.prop)"
|
|
|
></el-checkbox>
|
|
|
+ <span v-else-if="item.scope === 'isOptions'">
|
|
|
+ {{scope.row[item.prop] == 1 ? '学员':scope.row[item.prop] == 2 ? '教务':''}}
|
|
|
+ </span>
|
|
|
<span v-else-if="item.scope === 'busins'">
|
|
|
<span v-if="scope.row[item.prop] === 1">全部</span
|
|
|
><el-button v-else type="text" @click="openBox(scope.row)"
|
|
@@ -83,7 +86,7 @@
|
|
|
<script>
|
|
|
import pagination from "@/components/pagination";
|
|
|
export default {
|
|
|
- name:"NotificationModel",
|
|
|
+ name: "NotificationModel",
|
|
|
components: { pagination },
|
|
|
data() {
|
|
|
return {
|
|
@@ -99,7 +102,13 @@ export default {
|
|
|
width: "80px",
|
|
|
},
|
|
|
{
|
|
|
- label: "提醒项(学员)",
|
|
|
+ label: "通知用户",
|
|
|
+ width: "100px",
|
|
|
+ prop: "userType",
|
|
|
+ scope: "isOptions",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "提醒项",
|
|
|
prop: "remind",
|
|
|
},
|
|
|
{
|
|
@@ -160,11 +169,14 @@ export default {
|
|
|
if (value === "gzhTpStatus") {
|
|
|
data.gzhTpStatus = item.gzhTpStatus;
|
|
|
}
|
|
|
- this.$api.editsystemremind(data).then((res) => {
|
|
|
- this.$message.success("更新成功");
|
|
|
- }).finally(()=>{
|
|
|
- this.search()
|
|
|
- })
|
|
|
+ this.$api
|
|
|
+ .editsystemremind(data)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("更新成功");
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
},
|
|
|
submitChecks() {
|
|
|
var data = {
|
|
@@ -281,7 +293,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .el-dialog__body{
|
|
|
+ .el-dialog__body {
|
|
|
max-height: 500px;
|
|
|
overflow: auto;
|
|
|
}
|