优化:优化新增关键词 create => add

This commit is contained in:
2023-02-26 22:26:17 +08:00
parent a79b3e0e96
commit 72e5522952
14 changed files with 23 additions and 23 deletions

View File

@@ -42,7 +42,7 @@
<a-row>
<a-col :span="12">
<a-space>
<a-button type="primary" @click="toCreate">
<a-button type="primary" @click="toAdd">
<template #icon><icon-plus /></template>新增
</a-button>
<a-button
@@ -361,7 +361,7 @@
/**
* 打开新增对话框
*/
const toCreate = () => {
const toAdd = () => {
reset();
listDeptTree({}).then((res) => {
treeData.value = res.data;

View File

@@ -42,7 +42,7 @@
<a-row>
<a-col :span="12">
<a-space>
<a-button type="primary" @click="toCreate">
<a-button type="primary" @click="toAdd">
<template #icon><icon-plus /></template>新增
</a-button>
<a-button
@@ -404,7 +404,7 @@
/**
* 打开新增对话框
*/
const toCreate = () => {
const toAdd = () => {
reset();
listMenuTree({}).then((res) => {
treeData.value = res.data;

View File

@@ -42,7 +42,7 @@
<a-row>
<a-col :span="12">
<a-space>
<a-button type="primary" @click="toCreate">
<a-button type="primary" @click="toAdd">
<template #icon><icon-plus /></template>新增
</a-button>
<a-button
@@ -342,7 +342,7 @@
/**
* 打开新增对话框
*/
const toCreate = () => {
const toAdd = () => {
reset();
title.value = '新增岗位';
visible.value = true;

View File

@@ -42,7 +42,7 @@
<a-row>
<a-col :span="12">
<a-space>
<a-button type="primary" @click="toCreate">
<a-button type="primary" @click="toAdd">
<template #icon><icon-plus /></template>新增
</a-button>
<a-button
@@ -470,7 +470,7 @@
/**
* 打开新增对话框
*/
const toCreate = () => {
const toAdd = () => {
reset();
getMenuTree();
title.value = '新增角色';

View File

@@ -62,7 +62,7 @@
<a-row>
<a-col :span="12">
<a-space>
<a-button type="primary" @click="toCreate">
<a-button type="primary" @click="toAdd">
<template #icon><icon-plus /></template>新增
</a-button>
<a-button
@@ -603,7 +603,7 @@
/**
* 打开新增对话框
*/
const toCreate = () => {
const toAdd = () => {
reset();
getDeptOptions();
getPostOptions();