更新需求
This commit is contained in:
@ -54,6 +54,7 @@ const init = (type, row) => {
|
||||
formData.value = [
|
||||
{ label: "警情等级", prop: "jqdjdm", type: "select", options: props.dict.D_BZ_JQDJ || [] },
|
||||
{ label: "警情子类", prop: "jqzldm", type: "slot" },
|
||||
{ label: "监测时间", prop: "Times", type: "datetimerange" },
|
||||
{ label: "内容关键字", prop: "jqgjz", type: "textarea", width: "100%" },
|
||||
{ label: "规则描述", prop: "gzms", type: "textarea", width: "100%" },
|
||||
]
|
||||
@ -102,8 +103,11 @@ const submit = () => {
|
||||
// 处理级联选择器的值,只提交最后一个值
|
||||
const promes = {
|
||||
...listQuery.value,
|
||||
kssj:listQuery.value.Times ? listQuery.value.Times[0] : '',
|
||||
jssj:listQuery.value.Times ? listQuery.value.Times[1] : '',
|
||||
jqzldm: Array.isArray(listQuery.value.jqzldm) ? listQuery.value.jqzldm[listQuery.value.jqzldm.length - 1] : listQuery.value.jqzldm
|
||||
}
|
||||
delete promes.Times;
|
||||
elform.value.submit((data) => {
|
||||
loading.value = true;
|
||||
if (title.value == "新增") {
|
||||
@ -135,11 +139,6 @@ const close = () => {
|
||||
loading.value = false;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
onUnmounted(() => {
|
||||
})
|
||||
defineExpose({ init });
|
||||
</script>
|
||||
|
||||
@ -184,4 +183,8 @@ defineExpose({ init });
|
||||
height: 520px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
::v-deep .el-date-editor .el-range-separator{
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user