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