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