bug fix and performance improvements

This commit is contained in:
quantulr
2023-08-01 17:26:50 +08:00
parent 0a48c30f0e
commit 48fd5be0f2
10 changed files with 62 additions and 18 deletions

View File

@ -64,6 +64,17 @@ const table = {
unbind: "Отвязать",
// 承接需求
undertakeDemand: "Принять требование",
// 发票申请
invoiceApplication: "Заявка на выставление счета",
// 申请成功
applicationSuccess: "Заявка успешно подана",
// 应用场景
applicationScenario: "Сценарий применения",
// 合作开发、委托研发、技术转让、技术入股、技术许可
cooperationType:
"Совместная разработка, доверенные исследования и разработки, передача технологий, владение технологиями, лицензирование технологий",
// 创新币
innovationCoin: "Инновационная валюта",
};
export default table;

View File

@ -64,5 +64,15 @@ const table = {
unbind: "解绑",
// 承接需求
undertakeDemand: "承接需求",
// 发票申请
invoiceApplication: "发票申请",
// 申请成功
applicationSuccess: "申请成功",
// 应用场景
applicationScenario: "应用场景",
// 合作开发、委托研发、技术转让、技术入股、技术许可
cooperationType: "合作开发、委托研发、技术转让、技术入股、技术许可",
// 创新币
innovationCoin: "创新币",
};
export default table;

View File

@ -211,7 +211,7 @@
:labelWidth="labelWidth"
class="cooperation-mode"
fieldKey="wants"
placeholder="合作开发、委托研发、技术转让、技术入股、技术许可"
:placeholder="t('admin.table.cooperationType')"
:title="t('webSearch.cooperationMode')"
/>
</el-col>

View File

@ -72,7 +72,7 @@
{{
t(
`dict.${
orderTypeDict.find((item) => item.value === row.orderType).label
orderTypeDict.find((item) => item.value === row.orderType).i18n
}`
)
}}
@ -282,10 +282,10 @@ const multiple = ref(true);
const total = ref(0);
const title = ref("");
const dateRange = ref([]);
const orderTypeDic = reactive({
1: "创新币充值",
2: "活动报名",
});
// const orderTypeDic = reactive({
// 1: "创新币充值",
// 2: "活动报名",
// });
const queryRef = ref();
const formRef = ref();
const data = reactive({
@ -464,19 +464,21 @@ const handleUpdate = async (id) => {
const resp = await casDealLogDetail(id);
form.value = resp.data;
showEditDialog.value = true;
title.value = "发票申请";
title.value = t("admin.table.invoiceApplication");
};
/** 提交按钮 */
const submitForm = async () => {
await formRef.value.validate();
if (form.value.id) {
await updateCasDealLog(form.value);
ElMessage.success("申请成功");
ElMessage.success(t("admin.common.applicationSuccess"));
showEditDialog.value = false;
getList();
} else {
}
};
/** 删除按钮操作 */
const handleDelete = (id) => {
const orderIds = id || ids.value;
@ -494,6 +496,7 @@ const handleDelete = (id) => {
ElMessage.success(t("admin.common.deleteSuccess"));
});
};
/** 导出按钮操作 */
// function handleExport() {
// proxy.download(

View File

@ -310,7 +310,11 @@ function addCheck() {
onMounted(() => {
formRef.value.resetFields();
if (route.query.id) {
const obj = Object.assign({}, route, { title: "修改服务需求" });
const obj = Object.assign({}, route, {
title: t("admin.form.edit", {
type: t("webSearch.serviceDemand"),
}),
});
tab.updatePage(obj);
getDemand({ id: route.query.id }).then((resp) => {
// const nameField = locale === "zh" ? "name" : "nameRu";

View File

@ -197,7 +197,7 @@
:labelWidth="labelWidth"
v-model="form"
:title="t('webSearch.cooperationMode')"
placeholder="合作开发、委托研发、技术转让、技术入股、技术许可"
:placeholder="t('admin.table.cooperationType')"
fieldKey="wants"
ref="directionsFormRef"
/>

View File

@ -33,7 +33,7 @@
<el-col :span="12">
<el-form-item label="视频定价:">
<el-input v-model="modelValue.price" placeholder="请输入创新币个数">
<template #append>创新币</template>
<template #append>{{ t("admin.table.innovationCoin") }}</template>
</el-input>
</el-form-item>
</el-col>
@ -198,8 +198,12 @@
v-model="modelValue"
:labelWidth="labelWidth"
fieldKey="kws"
placeholder="请输入应用场景"
title="应用场景"
:placeholder="
t('admin.form.placeholder', {
type: t('admin.table.applicationScenario'),
})
"
:title="t('admin.table.applicationScenario')"
/>
<InputBoxAdd

View File

@ -54,7 +54,11 @@
</div>
</template> -->
</el-table-column>
<el-table-column label="创建日期" align="center" prop="created_at">
<el-table-column
:label="t('admin.table.createTime')"
align="center"
prop="created_at"
>
<template #default="{ row }">
<span>{{ dayjs(row.created_at).format("YYYY-MM-DD HH:mm:ss") }}</span>
</template>
@ -183,14 +187,14 @@
<script setup name="Already">
import {
deleteExpertCooperateEnterpriseByIds,
getExpertCooperateEnterpriseList,
insertExpertCooperateEnterprise,
updateExpertCooperateEnterprise,
deleteExpertCooperateEnterpriseByIds,
} from "@/api/admin/expert/demand";
import { search } from "@/api/website/home";
import dayjs from "dayjs";
import { ElMessage, ElMessageBox } from "element-plus";
import { ElMessage } from "element-plus";
import modal from "@/plugins/modal";
import { paperList } from "@/api/admin/expert/technology";
import { useI18n } from "vue-i18n";

View File

@ -94,7 +94,11 @@ getList();
<el-table-column :label="t('admin.table.viewCategory')" prop="type">
<template #default="{ row }">
<span>{{
seeLogTypeDict.find((item) => item.value === row.type)?.label
t(
`dict.${
seeLogTypeDict.find((item) => item.value === row.type)?.i18n
}`
)
}}</span>
</template>
</el-table-column>

View File

@ -88,7 +88,11 @@ getList();
<el-table-column :label="t('admin.table.viewCategory')" prop="type">
<template #default="{ row }">
<span>{{
seeLogTypeDict.find((item) => item.value === row.type)?.label
t(
`dict.${
seeLogTypeDict.find((item) => item.value === row.type)?.i18n
}`
)
}}</span>
</template>
</el-table-column>