update i18n

This commit is contained in:
2023-07-17 15:47:45 +08:00
parent 2bc08f4a39
commit 1f3f9d7b31
94 changed files with 1215 additions and 478 deletions

View File

@ -40,7 +40,7 @@
<el-table-column label="手机号" prop="mobile" align="center" />
<!-- <el-zh-column label="浏览量" prop="visit_count" align="center" /> -->
<el-table-column
label="发布时间"
:label="t('admin.table.publishTime')"
prop="createTime"
align="center"
width="180"
@ -125,8 +125,10 @@ import {
updateTechnologyDemand,
} from "@/api/admin/enterprise/demand";
import { ElMessage, ElMessageBox } from "element-plus";
import modal from "@/plugins/modal";
import { useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const { proxy } = getCurrentInstance();
const router = useRouter();
@ -191,7 +193,8 @@ function handleQuery() {
// }
/** 删除按钮操作 */
function handleDelete(id) {
ElMessageBox.confirm('是否确认删除数据编号为"' + id + '"的需求项?')
modal
.confirm('是否确认删除数据编号为"' + id + '"的需求项?')
.then(function () {
console.log("delete");
return deleteTechnologyDemand(id);
@ -206,7 +209,8 @@ function handleDelete(id) {
}
function handleShelf(row) {
let text = row.shelf_status == 2 ? "上架" : "下架";
ElMessageBox.confirm('确认要"' + text + '""' + row.id + '"的需求吗?')
modal
.confirm('确认要"' + text + '""' + row.id + '"的需求吗?')
.then(function () {
let status = row.shelf_status == 1 ? 2 : 1;
return achievementShelf({ id: row.id, status });
@ -228,7 +232,8 @@ function handleResults(row) {
// 修改为完成状态
const complete = (id) => {
ElMessageBox.confirm(`是否确认结束编号为${id}的数据项?`)
modal
.confirm(`是否确认结束编号为${id}的数据项?`)
.then(async () => {
await updateTechnologyDemand({ id, status: 4 });
getList();
@ -237,7 +242,8 @@ const complete = (id) => {
.catch(() => {});
};
const cancelPub = (id) => {
ElMessageBox.confirm(`是否确认取消发布编号为${id}的数据项?`)
modal
.confirm(`是否确认取消发布编号为${id}的数据项?`)
.then(async () => {
await updateTechnologyDemand({ id, status: 3 });
getList();