bugfix
This commit is contained in:
@ -33,7 +33,7 @@ export const updateLabPatent = (data) => {
|
|||||||
|
|
||||||
export const deletePaper = (ids) => {
|
export const deletePaper = (ids) => {
|
||||||
return request({
|
return request({
|
||||||
url: `/app/laboratory/deletePaper/{ids}`,
|
url: `/app/laboratory/deletePaper/${ids}`,
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<div class="text" style="flex: 1">{{ data.name }}</div>
|
<div class="text" style="flex: 1">{{ data.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="line">
|
<div class="line">
|
||||||
{{ "webSearch.companySize" }}:
|
{{ t("webSearch.companySize") }}:
|
||||||
<span>{{
|
<span>{{
|
||||||
data.kind_title || t("webSearch.noDataFromBackground")
|
data.kind_title || t("webSearch.noDataFromBackground")
|
||||||
}}</span>
|
}}</span>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
><!--已受理-->
|
><!--已受理-->
|
||||||
{{ t("dict.accepted") }}
|
{{ t("dict.accepted") }}
|
||||||
</el-radio-button>
|
</el-radio-button>
|
||||||
<el-radio-button :label="2">{{ t("dict.rejected") }} </el-radio-button>
|
<el-radio-button :label="2">{{ t("dict.rejected") }}</el-radio-button>
|
||||||
<el-radio-button :label="4">{{ t("dict.finished") }}</el-radio-button>
|
<el-radio-button :label="4">{{ t("dict.finished") }}</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
|
||||||
@ -191,19 +191,20 @@ function handleEdit(id) {
|
|||||||
|
|
||||||
// 修改为完成状态
|
// 修改为完成状态
|
||||||
const complete = (id) => {
|
const complete = (id) => {
|
||||||
modal.confirm(
|
modal
|
||||||
t("admin.common.confirmAction", {
|
.confirm(
|
||||||
action: t("common.finish"),
|
t("admin.common.confirmAction", {
|
||||||
type: t("admin.common.item"),
|
action: t("common.finish"),
|
||||||
number: id,
|
type: t("admin.common.item"),
|
||||||
})
|
number: id,
|
||||||
.then(async () => {
|
|
||||||
await updateDemand({ id, status: 4 });
|
|
||||||
getList();
|
|
||||||
ElMessage.success(t("admin.common.deleteSuccess"));
|
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
)
|
||||||
);
|
.then(async () => {
|
||||||
|
await updateDemand({ id, status: 4 });
|
||||||
|
getList();
|
||||||
|
ElMessage.success(t("admin.common.deleteSuccess"));
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
};
|
};
|
||||||
|
|
||||||
getList();
|
getList();
|
||||||
|
@ -240,23 +240,24 @@ function handleResults(row) {
|
|||||||
|
|
||||||
// 修改为完成状态
|
// 修改为完成状态
|
||||||
const complete = (id) => {
|
const complete = (id) => {
|
||||||
modal.confirm(
|
modal
|
||||||
t("admin.common.confirmAction", {
|
.confirm(
|
||||||
action: t("common.finish"),
|
t("admin.common.confirmAction", {
|
||||||
type: t("admin.common.item"),
|
action: t("common.finish"),
|
||||||
number: id,
|
type: t("admin.common.item"),
|
||||||
})
|
number: id,
|
||||||
.then(async () => {
|
|
||||||
await updateTechnologyDemand({ id, status: 4 });
|
|
||||||
getList();
|
|
||||||
ElMessage.success(
|
|
||||||
t("admin.common.success", {
|
|
||||||
action: t("common.finish"),
|
|
||||||
})
|
|
||||||
);
|
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
)
|
||||||
);
|
.then(async () => {
|
||||||
|
await updateTechnologyDemand({ id, status: 4 });
|
||||||
|
getList();
|
||||||
|
ElMessage.success(
|
||||||
|
t("admin.common.success", {
|
||||||
|
action: t("common.finish"),
|
||||||
|
})
|
||||||
|
);
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
};
|
};
|
||||||
const cancelPub = (id) => {
|
const cancelPub = (id) => {
|
||||||
modal
|
modal
|
||||||
|
@ -69,8 +69,9 @@
|
|||||||
:label="t('admin.common.operation')"
|
:label="t('admin.common.operation')"
|
||||||
>
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
<!-- TODO:-->
|
||||||
<el-button
|
<el-button
|
||||||
v-if="queryParams.type == 3"
|
v-if="queryParams.type == 3 && false"
|
||||||
icon="Delete"
|
icon="Delete"
|
||||||
size="small"
|
size="small"
|
||||||
type="text"
|
type="text"
|
||||||
@ -78,8 +79,9 @@
|
|||||||
>
|
>
|
||||||
{{ t("admin.common.delete") }}
|
{{ t("admin.common.delete") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- TODO:-->
|
||||||
<el-button
|
<el-button
|
||||||
v-if="queryParams.type == 1"
|
v-if="queryParams.type == 1 && false"
|
||||||
icon="Close"
|
icon="Close"
|
||||||
size="small"
|
size="small"
|
||||||
type="text"
|
type="text"
|
||||||
@ -112,7 +114,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { demandList } from "@/api/admin/expert/demand";
|
import { demandList, updateDemand } from "@/api/admin/expert/demand";
|
||||||
import { getCurrentInstance, onActivated, reactive, ref, toRefs } from "vue";
|
import { getCurrentInstance, onActivated, reactive, ref, toRefs } from "vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import DictTag from "@/components/DictTag/index.vue";
|
import DictTag from "@/components/DictTag/index.vue";
|
||||||
@ -120,6 +122,7 @@ import { serviceDemandStatusDict } from "@/constant/dict";
|
|||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { parseTime } from "@/utils/ruoyi";
|
import { parseTime } from "@/utils/ruoyi";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
|
import modal from "@/plugins/modal";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
@ -165,7 +168,7 @@ function resetQuery() {
|
|||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
function handleDelete(id) {
|
function handleDelete(id) {
|
||||||
proxy.$modal
|
modal
|
||||||
.confirm(
|
.confirm(
|
||||||
t("admin.common.confirmAction", {
|
t("admin.common.confirmAction", {
|
||||||
action: t("admin.common.delete"),
|
action: t("admin.common.delete"),
|
||||||
@ -178,7 +181,7 @@ function handleDelete(id) {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
getList();
|
getList();
|
||||||
proxy.$modal.msgSuccess(t("admin.common.deleteSuccess"));
|
modal.msgSuccess(t("admin.common.deleteSuccess"));
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
@ -199,7 +202,7 @@ const complete = (id) => {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await updateCasDemand({ id, status: 4 });
|
await updateDemand({ id, status: 4 });
|
||||||
getList();
|
getList();
|
||||||
ElMessage.success(t("admin.common.deleteSuccess"));
|
ElMessage.success(t("admin.common.deleteSuccess"));
|
||||||
})
|
})
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="showExpertDialog"
|
v-model="showExpertDialog"
|
||||||
:title="t('admin.table.relatedExperts')"
|
:title="t('admin.table.relatedExperts')"
|
||||||
|
@close="resetQuery"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="notBindExpertQueryRef"
|
ref="notBindExpertQueryRef"
|
||||||
|
@ -36,17 +36,17 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8">
|
<!-- <el-row :gutter="10" class="mb8">-->
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button icon="plus" size="small" type="primary">
|
<!-- <el-button icon="plus" size="small" type="primary">-->
|
||||||
{{ t("admin.common.add") }}
|
<!-- {{ t("admin.common.add") }}-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<right-toolbar
|
<!-- <right-toolbar-->
|
||||||
v-model:showSearch="showSearch"
|
<!-- v-model:showSearch="showSearch"-->
|
||||||
@queryTable="getList"
|
<!-- @queryTable="getList"-->
|
||||||
></right-toolbar>
|
<!-- ></right-toolbar>-->
|
||||||
</el-row>
|
<!-- </el-row>-->
|
||||||
|
|
||||||
<!-- 表格数据 -->
|
<!-- 表格数据 -->
|
||||||
<el-table v-loading="loading" :data="dataList">
|
<el-table v-loading="loading" :data="dataList">
|
||||||
|
Reference in New Issue
Block a user