|
@@ -50,6 +50,19 @@ function RegularManage() {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ //判断正则是否关联
|
|
|
|
+ function isRelation(param) {
|
|
|
|
+ post(api.isRelation, {
|
|
|
|
+ id: param.id,
|
|
|
|
+ name: param.name,
|
|
|
|
+ val: param.val,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.data.code === 200) {
|
|
|
|
+ const data = res.data.data;
|
|
|
|
+ setFlag(data ? 1 : 0)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
//删除弹窗确认
|
|
//删除弹窗确认
|
|
function showDelModal(flag) {
|
|
function showDelModal(flag) {
|
|
if (flag && !selectedRowKeys.length) {
|
|
if (flag && !selectedRowKeys.length) {
|
|
@@ -74,7 +87,7 @@ function RegularManage() {
|
|
//避免pagenum变为0
|
|
//避免pagenum变为0
|
|
params.current = pagenum < 1 ? 1 : pagenum;
|
|
params.current = pagenum < 1 ? 1 : pagenum;
|
|
setParams(params)
|
|
setParams(params)
|
|
- console.log(params.current );
|
|
|
|
|
|
+ console.log(params.current);
|
|
getRegularPage()
|
|
getRegularPage()
|
|
message.success(res.data.message);
|
|
message.success(res.data.message);
|
|
} else {
|
|
} else {
|
|
@@ -92,7 +105,7 @@ function RegularManage() {
|
|
setRegularDetail(record)
|
|
setRegularDetail(record)
|
|
setFlag(0)
|
|
setFlag(0)
|
|
if (type == 2) {
|
|
if (type == 2) {
|
|
- setFlag(record.relation)
|
|
|
|
|
|
+ isRelation(record)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function cancel() {
|
|
function cancel() {
|