feat
This commit is contained in:
parent
81c66c6b5b
commit
5b01d40f7a
@ -41,6 +41,7 @@ import HttpUtil from "../../../utils/HttpUtil";
|
||||
import dayjs from "dayjs";
|
||||
export default {
|
||||
name: "ApplicationRuleList",
|
||||
props: ["curId"],
|
||||
emits: ["templateUpdate"],
|
||||
data() {
|
||||
return {
|
||||
@ -79,6 +80,10 @@ export default {
|
||||
this.templateForm.comment = rowData.comment;
|
||||
this.showEditAddModal = true;
|
||||
} else {
|
||||
if (this.curId == rowData.id) {
|
||||
this.$message({ message: "当前模板使用中,无法删除", type: "warning" });
|
||||
return;
|
||||
}
|
||||
await HttpUtil.delete("/applicationRule/" + rowData.id);
|
||||
await this.init();
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
<rule :editRule="editRule" @ruleAdd="ruleAdd" v-if="addRuleDialogShow" />
|
||||
</el-dialog>
|
||||
<el-dialog title="模板管理" v-model="ruleTemplateShow" width="70%">
|
||||
<application-rule-list v-if="ruleTemplateShow" @templateUpdate="templateUpdate" />
|
||||
<application-rule-list v-if="ruleTemplateShow" :curId="chosedTemplate.id" @templateUpdate="templateUpdate" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user