bugfix and performance improvements
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
value-format="YYYY-MM-DD"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
:start-placeholder="t('admin.table.startDate')"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
@ -37,11 +37,11 @@
|
||||
size="small"
|
||||
@click="handleQuery"
|
||||
>
|
||||
{{ t("admin.common.search") }}</el-button
|
||||
>
|
||||
{{ t("admin.common.search") }}
|
||||
</el-button>
|
||||
<el-button icon="Refresh" size="small" @click="resetQuery">
|
||||
{{ t("admin.common.reset") }}</el-button
|
||||
>
|
||||
{{ t("admin.common.reset") }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@ -105,16 +105,16 @@
|
||||
type="text"
|
||||
icon="Edit"
|
||||
@click="handleUpdate(row.id)"
|
||||
>发票申请</el-button
|
||||
>
|
||||
>发票申请
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="text"
|
||||
icon="Delete"
|
||||
@click="handleDelete(row.id)"
|
||||
>
|
||||
{{ t("admin.common.delete") }}</el-button
|
||||
>
|
||||
{{ t("admin.common.delete") }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -161,7 +161,7 @@
|
||||
<el-form-item label="电子邮箱:" prop="email">
|
||||
<el-input v-model="form.email" placeholder="请输入电子邮箱" />
|
||||
</el-form-item>
|
||||
<el-form-item label="联系电话:" prop="phone">
|
||||
<el-form-item :label="t('webContact.phone')" prop="phone">
|
||||
<el-input v-model="form.phone" placeholder="请输入联系电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="地址:" prop="address">
|
||||
@ -202,9 +202,9 @@
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">{{
|
||||
t("admin.common.confirm")
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="submitForm"
|
||||
>{{ t("admin.common.confirm") }}
|
||||
</el-button>
|
||||
<el-button @click="cancel">{{ t("admin.common.cancel") }}</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@ -223,6 +223,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import modal from "@/plugins/modal";
|
||||
import { reactive } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
const { t } = useI18n();
|
||||
const dataList = ref([]);
|
||||
const showEditDialog = ref(false);
|
||||
@ -281,11 +282,13 @@ const getList = async () => {
|
||||
total.value = resp.total;
|
||||
loading.value = false;
|
||||
};
|
||||
|
||||
/** 取消按钮 */
|
||||
function cancel() {
|
||||
showEditDialog.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
/** 表单重置 */
|
||||
function reset() {
|
||||
form.value = {
|
||||
@ -307,11 +310,13 @@ function reset() {
|
||||
formRef.value.resetFields();
|
||||
}
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
dateRange.value = [];
|
||||
@ -320,18 +325,21 @@ function resetQuery() {
|
||||
}
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
/** 多选框选中数据 */
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map((item) => item.postId);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
showEditDialog.value = true;
|
||||
title.value = "";
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
const handleUpdate = async (id) => {
|
||||
reset();
|
||||
@ -355,7 +363,14 @@ const submitForm = async () => {
|
||||
const handleDelete = (id) => {
|
||||
const orderIds = id || ids.value;
|
||||
modal
|
||||
.confirm('是否确认删除订单号为"' + orderIds + '"的数据项?')
|
||||
.confirm(
|
||||
/*'是否确认删除订单号为"' + orderIds + '"的数据项?'*/
|
||||
t("admin.common.confirmAction", {
|
||||
action: t("admin.common.delete"),
|
||||
type: t("admin.form.order"),
|
||||
number: orderIds,
|
||||
})
|
||||
)
|
||||
.then(async () => {
|
||||
await deleteCasDealLog(id);
|
||||
getList();
|
||||
|
@ -21,7 +21,7 @@
|
||||
<el-form-item label="活动状态" prop="status">
|
||||
<el-select
|
||||
v-model="queryParams.status"
|
||||
:placeholder="t('admin.pleaseSelect')"
|
||||
:placeholder="t('admin.form.pleaseSelect')"
|
||||
>
|
||||
<el-option :label="t('common.show')" value="1"></el-option>
|
||||
<el-option :label="t('common.hide')" value="2"></el-option>
|
||||
|
@ -161,7 +161,7 @@
|
||||
class="cooperation-mode"
|
||||
:labelWidth="labelWidth"
|
||||
v-model="form"
|
||||
title="合作模式"
|
||||
:title="t('webSearch.cooperationMode')"
|
||||
placeholder="合作开发、委托研发、技术转让、技术入股、技术许可"
|
||||
fieldKey="wants"
|
||||
ref="directionsFormRef"
|
||||
|
@ -3,7 +3,9 @@
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<router-link to="./releaseService">
|
||||
<el-button type="primary" size="small">发布需求</el-button>
|
||||
<el-button type="primary" size="small"
|
||||
>{{ t("admin.table.publishDemand") }}
|
||||
</el-button>
|
||||
</router-link>
|
||||
</el-col>
|
||||
<right-toolbar
|
||||
@ -19,7 +21,9 @@
|
||||
>
|
||||
<el-radio-button :label="0">待受理</el-radio-button>
|
||||
<el-radio-button :label="1">已受理</el-radio-button>
|
||||
<el-radio-button :label="2">已驳回</el-radio-button>
|
||||
<el-radio-button :label="2"
|
||||
>{{ t("admin.table.rejected") }}
|
||||
</el-radio-button>
|
||||
<el-radio-button :label="4">已结束</el-radio-button>
|
||||
</el-radio-group>
|
||||
|
||||
@ -60,31 +64,31 @@
|
||||
icon="Delete"
|
||||
@click="handleDelete(row.id)"
|
||||
>
|
||||
{{ t("admin.common.delete") }}</el-button
|
||||
>
|
||||
{{ t("admin.common.delete") }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="queryParams.type == 0"
|
||||
size="small"
|
||||
type="text"
|
||||
icon="Close"
|
||||
@click="handleDelete(row.id)"
|
||||
>{{ t("admin.common.cancel") }}发布</el-button
|
||||
>
|
||||
>{{ t("admin.common.cancel") }}发布
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="queryParams.type != 2"
|
||||
size="small"
|
||||
type="text"
|
||||
icon="View"
|
||||
@click="handleEdit(row.id)"
|
||||
>查看</el-button
|
||||
>
|
||||
>查看
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="text"
|
||||
icon="View"
|
||||
@click="complete(row.id)"
|
||||
>完成</el-button
|
||||
>
|
||||
>完成
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -107,6 +111,7 @@ import modal from "@/plugins/modal";
|
||||
import { getCurrentInstance, onActivated } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
const { t } = useI18n();
|
||||
const { proxy } = getCurrentInstance();
|
||||
const router = useRouter();
|
||||
@ -159,21 +164,30 @@ const getList = async () => {
|
||||
total.value = resp.total;
|
||||
loading.value = false;
|
||||
};
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
dateRange.value = [];
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(id) {
|
||||
modal
|
||||
.confirm('是否确认删除订单号为"' + id + '"的数据项?')
|
||||
.confirm(
|
||||
t("admin.common.confirmAction", {
|
||||
action: t("admin.common.delete"),
|
||||
type: t("admin.form.order"),
|
||||
number: id,
|
||||
})
|
||||
)
|
||||
.then(function () {
|
||||
return demandDelete(postIds);
|
||||
})
|
||||
@ -183,6 +197,7 @@ function handleDelete(id) {
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
function handleEdit(id) {
|
||||
router.push({ path: "./releaseService", query: { id } });
|
||||
}
|
||||
|
@ -3,7 +3,9 @@
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<router-link to="./releaseTechnology">
|
||||
<el-button type="primary" size="small">发布需求</el-button>
|
||||
<el-button type="primary" size="small"
|
||||
>{{ t("admin.table.publishDemand") }}
|
||||
</el-button>
|
||||
</router-link>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -13,10 +15,18 @@
|
||||
size="small"
|
||||
@change="handleQuery"
|
||||
>
|
||||
<el-radio-button :label="0">待审核</el-radio-button>
|
||||
<el-radio-button :label="1">已发布</el-radio-button>
|
||||
<el-radio-button :label="2">已驳回</el-radio-button>
|
||||
<el-radio-button :label="3">草稿箱</el-radio-button>
|
||||
<el-radio-button :label="0"
|
||||
>{{ t("admin.table.pendingReview") }}
|
||||
</el-radio-button>
|
||||
<el-radio-button :label="1"
|
||||
>{{ t("admin.table.published") }}
|
||||
</el-radio-button>
|
||||
<el-radio-button :label="2"
|
||||
>{{ t("admin.table.rejected") }}
|
||||
</el-radio-button>
|
||||
<el-radio-button :label="3"
|
||||
>{{ t("admin.table.draftBox") }}
|
||||
</el-radio-button>
|
||||
<el-radio-button :label="4">已结束</el-radio-button>
|
||||
</el-radio-group>
|
||||
|
||||
@ -83,31 +93,31 @@
|
||||
icon="Delete"
|
||||
@click="handleDelete(row.id)"
|
||||
>
|
||||
{{ t("admin.common.delete") }}</el-button
|
||||
>
|
||||
{{ t("admin.common.delete") }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="queryParams.status == 1"
|
||||
size="small"
|
||||
type="text"
|
||||
icon="View"
|
||||
@click="handleResults(row)"
|
||||
>查看匹配结果</el-button
|
||||
>
|
||||
>查看匹配结果
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="queryParams.status == 0"
|
||||
size="small"
|
||||
type="text"
|
||||
icon="Close"
|
||||
@click="cancelPub(row.id)"
|
||||
>{{ t("admin.common.cancel") }}发布</el-button
|
||||
>
|
||||
>{{ t("admin.common.cancel") }}发布
|
||||
</el-button>
|
||||
<el-button
|
||||
size="small"
|
||||
type="text"
|
||||
icon="View"
|
||||
@click="complete(row.id)"
|
||||
>完成</el-button
|
||||
>
|
||||
>完成
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -132,46 +142,22 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import modal from "@/plugins/modal";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { getCurrentInstance, reactive, ref, toRefs } from "vue";
|
||||
|
||||
const { t } = useI18n();
|
||||
const { proxy } = getCurrentInstance();
|
||||
const router = useRouter();
|
||||
|
||||
const dataList = ref([]); // 企业技术需求列表
|
||||
const loading = ref(true);
|
||||
// const showSearch = ref(true);
|
||||
const total = ref(0);
|
||||
// const dateRange = ref([]);
|
||||
|
||||
const data = reactive({
|
||||
// form: {},
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
status: 1,
|
||||
},
|
||||
// rules: {
|
||||
// name: [{ required: true, message: "公司名称不能为空", trigger: "blur" }],
|
||||
// dutyParagraph: [
|
||||
// { required: true, message: "公司税号不能为空", trigger: "blur" },
|
||||
// ],
|
||||
// bank: [{ required: true, message: "开户行不能为空", trigger: "blur" }],
|
||||
// bankAccount: [
|
||||
// { required: true, message: "开户行账号不能为空", trigger: "blur" },
|
||||
// ],
|
||||
// bankPhone: [
|
||||
// { required: true, message: "开户行电话不能为空", trigger: "blur" },
|
||||
// ],
|
||||
// email: [{ required: true, message: "电子邮箱不能为空", trigger: "blur" }],
|
||||
// phone: [{ required: true, message: "联系电话不能为空", trigger: "blur" }],
|
||||
// address: [{ required: true, message: "地址不能为空", trigger: "blur" }],
|
||||
// username: [{ required: true, message: "联系人不能为空", trigger: "blur" }],
|
||||
// userPhone: [
|
||||
// { required: true, message: "联系人电话不能为空", trigger: "blur" },
|
||||
// ],
|
||||
// userAddress: [
|
||||
// { required: true, message: "邮寄地址不能为空", trigger: "blur" },
|
||||
// ],
|
||||
// },
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
@ -184,17 +170,13 @@ const getList = async () => {
|
||||
total.value = resp.total;
|
||||
loading.value = false;
|
||||
};
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
/** 重置按钮操作 */
|
||||
// function resetQuery() {
|
||||
// dateRange.value = [];
|
||||
// proxy.resetForm("queryRef");
|
||||
// handleQuery();
|
||||
// }
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(id) {
|
||||
modal
|
||||
@ -211,8 +193,10 @@ function handleDelete(id) {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
|
||||
function handleShelf(row) {
|
||||
let text = row.shelf_status == 2 ? "上架" : "下架";
|
||||
let text =
|
||||
row.shelf_status == 2 ? t("admin.table.putOn") : t("admin.table.putOff");
|
||||
modal
|
||||
.confirm('确认要"' + text + '""' + row.id + '"的需求吗?')
|
||||
.then(function () {
|
||||
@ -225,6 +209,7 @@ function handleShelf(row) {
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
function handleResults(row) {
|
||||
router.push({
|
||||
path: "./results",
|
||||
|
@ -13,10 +13,18 @@
|
||||
size="small"
|
||||
@change="handleQuery"
|
||||
>
|
||||
<el-radio-button :label="0">待审核</el-radio-button>
|
||||
<el-radio-button :label="1">已发布</el-radio-button>
|
||||
<el-radio-button :label="2">已驳回</el-radio-button>
|
||||
<el-radio-button :label="3">草稿箱</el-radio-button>
|
||||
<el-radio-button :label="0">{{
|
||||
t("admin.table.pendingReview")
|
||||
}}</el-radio-button>
|
||||
<el-radio-button :label="1">{{
|
||||
t("admin.table.published")
|
||||
}}</el-radio-button>
|
||||
<el-radio-button :label="2">{{
|
||||
t("admin.table.rejected")
|
||||
}}</el-radio-button>
|
||||
<el-radio-button :label="3">{{
|
||||
t("admin.table.draftBox")
|
||||
}}</el-radio-button>
|
||||
</el-radio-group>
|
||||
|
||||
<el-table v-loading="loading" :data="dataList" style="margin-top: 20px">
|
||||
|
@ -38,7 +38,7 @@
|
||||
</div> -->
|
||||
<el-card style="margin-top: 20px">
|
||||
<template #header>
|
||||
<div>快捷功能</div>
|
||||
<div>{{ t("admin.table.quickFunction") }}</div>
|
||||
</template>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4">
|
||||
@ -69,7 +69,7 @@
|
||||
</el-card>
|
||||
<!-- <el-card style="margin-top: 20px">
|
||||
<template #header>
|
||||
<div>快捷功能</div>
|
||||
<div>{{ t("admin.table.quickFunction") }}</div>
|
||||
</template>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="3">
|
||||
|
Reference in New Issue
Block a user