fix: 测试问题修改

dev_1.0.0
xiangcongshuai 10 months ago
parent 75b8e7fe06
commit 49b5aa8c71

@ -76,7 +76,8 @@ const columns: TableColumnList = [
{ {
label: "序号", label: "序号",
type: "index", type: "index",
width: 80 align: "center",
width: 55
}, },
{ {
label: "知识标题", label: "知识标题",
@ -383,6 +384,7 @@ onMounted(() => {
background: 'var(--el-table-row-hover-bg-color)', background: 'var(--el-table-row-hover-bg-color)',
color: 'var(--el-text-color-primary)' color: 'var(--el-text-color-primary)'
}" }"
border
adaptive adaptive
:pagination="pagination" :pagination="pagination"
@page-size-change="handleSizeChange" @page-size-change="handleSizeChange"

@ -108,10 +108,7 @@ const openRejectApproval = () => {
RejectApprovalRef.value.open(knowledgeId.value, todoId.value); RejectApprovalRef.value.open(knowledgeId.value, todoId.value);
}; };
const downLoadFile = item => { const downLoadFile = item => {
downloadFile( downloadFile(`/know-sub/file/downloadFile?fileId=${item.id}`, item.fileName);
`/know-sub/file/downloadFile?fileId=${item.fileBlobId}`,
item.fileName
);
}; };
</script> </script>

@ -50,7 +50,7 @@ defineExpose({
const fileIdList = []; const fileIdList = [];
const fileList = []; const fileList = [];
data.fileInfoList.forEach(e => { data.fileInfoList.forEach(e => {
fileIdList.push(e.fileBlobId); fileIdList.push(e.id);
fileList.push({ fileList.push({
name: e.fileName name: e.fileName
}); });
@ -425,8 +425,8 @@ onMounted(() => {
v-model="formData.knowledgeInfo.publishScope" v-model="formData.knowledgeInfo.publishScope"
class="ml-4" class="ml-4"
> >
<el-radio :label="0" size="large">公开</el-radio> <el-radio :label="1" size="large">公开</el-radio>
<el-radio :label="1" size="large">不公开</el-radio> <el-radio :label="2" size="large">不公开</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>

@ -132,7 +132,9 @@ const columns: TableColumnList = [
{ {
label: "序号", label: "序号",
type: "index", type: "index",
width: 80 align: "center",
width: 55,
resizable: true
}, },
{ {
label: "知识标题", label: "知识标题",
@ -293,7 +295,7 @@ const del = async (id, val) => {
remark: val remark: val
}); });
if (res.code === 200) { if (res.code === 200) {
message("删除成功", { type: "success" }); message("删除流程成功", { type: "success" });
search(); search();
} }
}; };
@ -303,7 +305,7 @@ const withdrawOk = async (id, val) => {
remark: val remark: val
}); });
if (res.code === 200) { if (res.code === 200) {
message("撤回成功", { type: "success" }); message("撤回流程成功", { type: "success" });
search(); search();
} }
}; };
@ -457,6 +459,7 @@ onMounted(() => {
color: 'var(--el-text-color-primary)' color: 'var(--el-text-color-primary)'
}" }"
adaptive adaptive
border
:pagination="pagination" :pagination="pagination"
@page-size-change="handleSizeChange" @page-size-change="handleSizeChange"
@page-current-change="handleCurrentChange" @page-current-change="handleCurrentChange"

@ -46,7 +46,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
proxy: { proxy: {
// 类型: Record<string, string | ProxyOp 为开发服务器配置自定义代理规则 // 类型: Record<string, string | ProxyOp 为开发服务器配置自定义代理规则
"/know-sub/": { "/know-sub/": {
target: "http://192.168.10.25:9201/", target: "http://192.168.10.138:1180/",
changeOrigin: true, changeOrigin: true,
secure: false secure: false
// eslint-disable-next-line no-shadow // eslint-disable-next-line no-shadow

Loading…
Cancel
Save