update i18n

This commit is contained in:
2023-07-17 17:31:42 +08:00
parent 1f3f9d7b31
commit 248c57b338
64 changed files with 504 additions and 196 deletions

View File

@ -187,7 +187,7 @@
<el-button type="primary" @click="submitForm">{{
t("admin.common.confirm")
}}</el-button>
<el-button @click="cancel"> </el-button>
<el-button @click="cancel">{{ t("admin.common.cancel") }}</el-button>
</div>
</template>
</el-dialog>

View File

@ -147,7 +147,8 @@ const getList = async () => {
// 处理删除
const handleDelete = (id) => {
modal.confirm('是否确认删除数据编号为"' + id + '"的产品项?')
modal
.confirm('是否确认删除数据编号为"' + id + '"的产品项?')
.then(async () => {
await deleteEnterpriseProduct(id);
ElMessage.success("删除成功");
@ -165,7 +166,8 @@ function handleQuery() {
}
// 取消发布
const releaseCancel = (id) => {
modal.confirm('确认要取消发布id为"' + id + '"的产品吗?')
modal
.confirm('确认要取消发布id为"' + id + '"的产品吗?')
.then(async () => {
await updateEnterpriseProduct({ id, status: 3 });
ElMessage.success("取消发布成功");
@ -178,7 +180,8 @@ const releaseCancel = (id) => {
// 下架和上架
const handleShelf = (row) => {
let text = row.shelfStatus == 2 ? "上架" : "下架";
modal.confirm('确认要"' + text + '""' + row.id + '"的产品吗?')
modal
.confirm('确认要"' + text + '""' + row.id + '"的产品吗?')
.then(function () {
let status = row.shelfStatus == 1 ? 2 : 1;
return updateEnterpriseProduct({ id: row.id, shelfStatus: status });