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

View File

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

View File

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

View File

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

View File

@ -310,7 +310,11 @@ function addCheck() {
onMounted(() => { onMounted(() => {
formRef.value.resetFields(); formRef.value.resetFields();
if (route.query.id) { 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); tab.updatePage(obj);
getDemand({ id: route.query.id }).then((resp) => { getDemand({ id: route.query.id }).then((resp) => {
// const nameField = locale === "zh" ? "name" : "nameRu"; // const nameField = locale === "zh" ? "name" : "nameRu";

View File

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

View File

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

View File

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

View File

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

View File

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