|
|
|
@ -23,33 +23,33 @@
|
|
|
|
|
<div class="line">
|
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="label">消息类型:</div>
|
|
|
|
|
<div class="value">{{ item.type }}</div>
|
|
|
|
|
<div class="value">{{ item.messageType }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="label">推送方式:</div>
|
|
|
|
|
<div class="value">{{ item.way }}</div>
|
|
|
|
|
<div class="value">{{ item.pushMode }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line">
|
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="label">风险项:</div>
|
|
|
|
|
<div class="value">{{ item.risk }}</div>
|
|
|
|
|
<div class="value">{{ item.riskItem }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="label" style="width: 100px">要素异常明细:</div>
|
|
|
|
|
<div class="value">{{ item.ys }}</div>
|
|
|
|
|
<div class="value">{{ item.exceptionDetail }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line">
|
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="label">推送对象:</div>
|
|
|
|
|
<div class="value">{{ item.obj }}</div>
|
|
|
|
|
<div class="value">{{ item.drivingObject }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line">
|
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="label">提醒内容:</div>
|
|
|
|
|
<div class="value">{{ item.nr }}</div>
|
|
|
|
|
<div class="value">{{ item.drivingContent }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line">
|
|
|
|
@ -101,11 +101,15 @@
|
|
|
|
|
<script>
|
|
|
|
|
import { tableListMixins } from "@/loveflow/mixins/tableListMixins";
|
|
|
|
|
import { commonMixins } from "@/loveflow/mixins/commonMixins";
|
|
|
|
|
import {
|
|
|
|
|
SMSTemplateInsertOrUpdate,
|
|
|
|
|
SMSTemplateRemove,
|
|
|
|
|
} from "@/api/enterpriseTeamWork/tipSet/index.js";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
mixins: [tableListMixins, commonMixins],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
disableMixinCreated: true,
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
prop: "id",
|
|
|
|
@ -121,7 +125,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "type",
|
|
|
|
|
model: "messageType",
|
|
|
|
|
value: "",
|
|
|
|
|
option: [],
|
|
|
|
|
style: {
|
|
|
|
@ -138,7 +142,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "way",
|
|
|
|
|
model: "pushMode",
|
|
|
|
|
value: "",
|
|
|
|
|
option: [],
|
|
|
|
|
style: {
|
|
|
|
@ -154,7 +158,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "risk",
|
|
|
|
|
model: "riskItem",
|
|
|
|
|
value: "",
|
|
|
|
|
option: [],
|
|
|
|
|
style: {
|
|
|
|
@ -171,7 +175,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "ys",
|
|
|
|
|
model: "exceptionDetail",
|
|
|
|
|
value: "",
|
|
|
|
|
option: [],
|
|
|
|
|
style: {
|
|
|
|
@ -187,7 +191,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "obj",
|
|
|
|
|
model: "drivingObject",
|
|
|
|
|
value: [],
|
|
|
|
|
option: [],
|
|
|
|
|
},
|
|
|
|
@ -200,7 +204,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "nr",
|
|
|
|
|
model: "drivingContent",
|
|
|
|
|
rows: 2,
|
|
|
|
|
value: "",
|
|
|
|
|
},
|
|
|
|
@ -213,7 +217,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "dx",
|
|
|
|
|
model: "smsReminder",
|
|
|
|
|
value: "",
|
|
|
|
|
option: [],
|
|
|
|
|
style: {
|
|
|
|
@ -230,7 +234,7 @@ export default {
|
|
|
|
|
rules: this.$rules.requiredItem,
|
|
|
|
|
},
|
|
|
|
|
attrs: {
|
|
|
|
|
model: "cq",
|
|
|
|
|
model: "reminderTime",
|
|
|
|
|
value: "",
|
|
|
|
|
option: [],
|
|
|
|
|
style: {
|
|
|
|
@ -239,45 +243,59 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
url: {
|
|
|
|
|
list: "/tbRulesSetting/SMSTemplateList",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.setFindItem("formItems", "type").attrs.option = this.infoTypeList;
|
|
|
|
|
this.setFindItem("formItems", "way").attrs.option = this.pushList;
|
|
|
|
|
this.setFindItem("formItems", "risk").attrs.option = this.riskList;
|
|
|
|
|
this.setFindItem("formItems", "ys").attrs.option = this.elementList;
|
|
|
|
|
this.setFindItem("formItems", "obj").attrs.option = this.pushObjList;
|
|
|
|
|
this.setFindItem("formItems", "dx").attrs.option = this.isNoList;
|
|
|
|
|
this.setFindItem("formItems", "cq").attrs.option = this.remindList;
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
for (let i = 0; i < 20; i++) {
|
|
|
|
|
this.dataSource.push({
|
|
|
|
|
id: i,
|
|
|
|
|
type: "风险提醒",
|
|
|
|
|
way: "短信提醒",
|
|
|
|
|
risk: "流动人员异常",
|
|
|
|
|
ys: "流动人员核查率异常",
|
|
|
|
|
obj: "企业负责人、镇海区公安局、石化工业区管委会",
|
|
|
|
|
nr: "您好!X年X月X日,贵单位的XXXXXXXX证书将过期,需及时处置。",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.setFindItem("formItems", "messageType").attrs.option =
|
|
|
|
|
this.infoTypeList;
|
|
|
|
|
this.setFindItem("formItems", "pushMode").attrs.option = this.pushList;
|
|
|
|
|
this.setFindItem("formItems", "riskItem").attrs.option = this.riskList;
|
|
|
|
|
this.setFindItem("formItems", "exceptionDetail").attrs.option =
|
|
|
|
|
this.elementList;
|
|
|
|
|
this.setFindItem("formItems", "drivingObject").attrs.option =
|
|
|
|
|
this.pushObjList;
|
|
|
|
|
this.setFindItem("formItems", "smsReminder").attrs.option =
|
|
|
|
|
this.isNoTextList;
|
|
|
|
|
this.setFindItem("formItems", "reminderTime").attrs.option =
|
|
|
|
|
this.remindList;
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
methods: {
|
|
|
|
|
add() {
|
|
|
|
|
this.$refs.formDialog.openDialog("other", {}, "推送规则设置");
|
|
|
|
|
},
|
|
|
|
|
edit(obj) {
|
|
|
|
|
if (obj.drivingObject) {
|
|
|
|
|
obj.drivingObject = obj.drivingObject.split(",");
|
|
|
|
|
}
|
|
|
|
|
this.$refs.formDialog.openDialog("other", obj, "编辑推送规则设置");
|
|
|
|
|
},
|
|
|
|
|
del(item) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: item.nr,
|
|
|
|
|
type: "success",
|
|
|
|
|
SMSTemplateRemove({ id: item.id }).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: "删除成功",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
this.searchQuery();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
formSubmit(obj) {
|
|
|
|
|
console.log(obj);
|
|
|
|
|
obj.drivingObject = obj.drivingObject.length
|
|
|
|
|
? obj.drivingObject.join(",")
|
|
|
|
|
: "";
|
|
|
|
|
SMSTemplateInsertOrUpdate(obj).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message.success("操作成功");
|
|
|
|
|
this.$refs.formDialog.handleClose();
|
|
|
|
|
this.searchQuery();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|