18 changed files with 1142 additions and 68 deletions
@ -0,0 +1,771 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- 面包屑 --> |
|||
<!-- <el-breadcrumb separator="/" style="margin-bottom: 20px"> |
|||
<el-breadcrumb-item |
|||
v-for="(item, index) in routeList" |
|||
:key="item + index" |
|||
:to="{ path: item.path }" |
|||
>{{ item.routeName }}</el-breadcrumb-item |
|||
> |
|||
</el-breadcrumb> --> |
|||
<el-row class="query-row" :gutter="20"> |
|||
<el-col :span="8"> |
|||
<el-row :gutter="10" class="mb8"> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="primary" |
|||
icon="el-icon-plus" |
|||
size="mini" |
|||
@click="handleAdd" |
|||
v-hasPermi="['enterprise:zhxx:add']" |
|||
>新增</el-button |
|||
> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="success" |
|||
icon="el-icon-edit" |
|||
size="mini" |
|||
:disabled="single" |
|||
@click="handleUpdate" |
|||
v-hasPermi="['enterprise:zhxx:edit']" |
|||
>修改</el-button |
|||
> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="danger" |
|||
icon="el-icon-delete" |
|||
size="mini" |
|||
:disabled="multiple" |
|||
@click="handleDelete" |
|||
v-hasPermi="['enterprise:zhxx:remove']" |
|||
>删除</el-button |
|||
> |
|||
</el-col> |
|||
|
|||
<right-toolbar |
|||
:showSearch.sync="showSearch" |
|||
@queryTable="getList" |
|||
></right-toolbar> |
|||
</el-row> |
|||
</el-col> |
|||
<el-col v-show="showSearch" :span="16"> |
|||
<el-form |
|||
:model="queryParams" |
|||
ref="queryForm" |
|||
:inline="true" |
|||
v-show="showSearch" |
|||
> |
|||
<el-form-item label="标题" prop="title"> |
|||
<el-input |
|||
v-model="queryParams.data.title" |
|||
placeholder="请输入标题" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
slot="append" |
|||
icon="el-icon-search" |
|||
size="small" |
|||
@click="handleQuery" |
|||
></el-button> |
|||
</el-input> |
|||
</el-form-item> |
|||
|
|||
<el-form-item> |
|||
<!-- <el-button |
|||
type="cyan" |
|||
icon="el-icon-search" |
|||
size="mini" |
|||
@click="handleQuery" |
|||
>搜索</el-button |
|||
> --> |
|||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
|||
>重置</el-button |
|||
> |
|||
</el-form-item> |
|||
</el-form> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-table |
|||
v-loading="loading" |
|||
:data="zhxxList" |
|||
tooltip-effect="dark myTooltips" |
|||
@selection-change="handleSelectionChange" |
|||
> |
|||
<el-table-column type="selection" width="55" align="center" fixed /> |
|||
<el-table-column |
|||
label="序号" |
|||
type="index" |
|||
width="50" |
|||
align="center" |
|||
fixed |
|||
/> |
|||
|
|||
<el-table-column |
|||
label="标题" |
|||
align="left" |
|||
prop="title" |
|||
show-overflow-tooltip |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="文件类型" |
|||
align="left" |
|||
prop="textType" |
|||
:formatter="textTypeFormat" |
|||
show-overflow-tooltip |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="来源" |
|||
align="left" |
|||
prop="region" |
|||
show-overflow-tooltip |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="发布时间" |
|||
align="left" |
|||
prop="publishTime" |
|||
min-width="120" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.publishTime, "{y}-{m}-{d}") }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<!-- <el-table-column |
|||
label="内容" |
|||
align="center" |
|||
prop="text" |
|||
min-width="120" |
|||
/> --> |
|||
<el-table-column |
|||
label="附件" |
|||
align="left" |
|||
prop="attachment" |
|||
min-width="120" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<div |
|||
v-for="(item, index) in JSON.parse(scope.row.attachment)" |
|||
:key="item + index" |
|||
> |
|||
<i class="el-icon-document"></i> |
|||
{{ item.name }} |
|||
<i |
|||
class="el-icon-download" |
|||
@click="downloadFile(scope.row.attachment, index)" |
|||
style="cursor: pointer" |
|||
></i> |
|||
</div> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="操作" |
|||
align="right" |
|||
class-name="small-padding fixed-width" |
|||
width="200" |
|||
fixed="right" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-view" |
|||
@click="viewInfo(scope.row)" |
|||
>查看</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-edit" |
|||
@click="handleUpdate(scope.row)" |
|||
>修改</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
>删除</el-button |
|||
> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
|
|||
<pagination |
|||
v-show="total > 0" |
|||
:total="total" |
|||
:page.sync="queryParams.pageNum" |
|||
:limit.sync="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
|
|||
<!-- 添加或修改综合信息对话框 --> |
|||
<el-dialog |
|||
:title="title" |
|||
:visible.sync="open" |
|||
width="1200px" |
|||
append-to-body |
|||
:close-on-click-modal="false" |
|||
> |
|||
<el-form |
|||
ref="form" |
|||
:model="form" |
|||
:rules="rules" |
|||
label-width="80px" |
|||
v-if="open" |
|||
> |
|||
<el-form-item label="标题" prop="title"> |
|||
<el-input v-model="form.title" placeholder="请输入标题" /> |
|||
</el-form-item> |
|||
<el-form-item label="文件类型" prop="textType"> |
|||
<el-select |
|||
v-model="form.textType" |
|||
placeholder="请选择文件类型" |
|||
style="width: 100%" |
|||
> |
|||
<el-option |
|||
v-for="dict in textTypeOptions" |
|||
:key="dict.dictValue" |
|||
:label="dict.dictLabel" |
|||
:value="dict.dictValue" |
|||
></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="来源" prop="region"> |
|||
<el-input v-model="form.region" placeholder="请输入来源" /> |
|||
</el-form-item> |
|||
<el-form-item label="发布时间" prop="publishTime"> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
v-model="form.publishTime" |
|||
type="date" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择发布时间" |
|||
> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="内容" prop="text"> |
|||
<!-- <el-input v-model="form.text" placeholder="请输入内容" /> --> |
|||
|
|||
<div style="border: 1px solid #ccc"> |
|||
<Toolbar |
|||
style="border-bottom: 1px solid #ccc" |
|||
:editor="editor" |
|||
:defaultConfig="toolbarConfig" |
|||
:mode="mode" |
|||
/> |
|||
<Editor |
|||
style="height: 300px; overflow-y: hidden" |
|||
v-model="form.text" |
|||
:defaultConfig="editorConfig" |
|||
:mode="mode" |
|||
@onCreated="onCreated" |
|||
@onBlur="checkContent" |
|||
/> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item label="附件" prop="attachment"> |
|||
<!-- <el-input |
|||
v-model="form.attachment" |
|||
type="textarea" |
|||
placeholder="请输入内容" |
|||
/> --> |
|||
<el-upload |
|||
class="upload-demo" |
|||
action="thinking/common/upload" |
|||
:headers="headers" |
|||
:before-upload="(file) => $fileBeforeUpload(file, 'fileList1')" |
|||
:on-preview="handlePreview" |
|||
:on-remove="(file) => handleOpinionRemove(file, 'fileList1')" |
|||
:before-remove="beforeRemove" |
|||
multiple |
|||
:on-exceed="handleExceed" |
|||
:on-success=" |
|||
(_, fileList) => submitOpinionUpload(fileList, 'fileList1') |
|||
" |
|||
:file-list="fileList1" |
|||
> |
|||
<el-button size="small" type="primary" plain> |
|||
<i class="el-icon-upload el-icon--right"></i> |
|||
点击上传 |
|||
</el-button> |
|||
<div slot="tip" class="el-upload__tip"> |
|||
支持jpg/png/pdf/word/excel文件等,不超过200M |
|||
</div> |
|||
</el-upload> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button type="primary" @click="submitForm">确 定</el-button> |
|||
<el-button @click="cancel">取 消</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
|
|||
<el-dialog |
|||
:title="viewTitle" |
|||
:visible.sync="viewOpen" |
|||
width="1200px" |
|||
append-to-body |
|||
@close="closeView" |
|||
:close-on-click-modal="false" |
|||
> |
|||
<div class="infoTitle">综合信息</div> |
|||
<div class="draLine"></div> |
|||
<div class="content"> |
|||
<el-descriptions |
|||
class="margin-top" |
|||
:column="2" |
|||
border |
|||
:labelStyle="{ |
|||
'text-align': 'left', |
|||
width: '180px', |
|||
height: '50px', |
|||
}" |
|||
:contentStyle="{ minWidth: '250px' }" |
|||
> |
|||
<el-descriptions-item span="2"> |
|||
<template slot="label"> 标题 </template> |
|||
{{ comMsg.title }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 文件类型 </template> |
|||
{{ textTypeFormat(comMsg) }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 来源 </template> |
|||
{{ comMsg.region }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 发布时间 </template> |
|||
{{ comMsg.publishTime }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item span="2"> |
|||
<template slot="label"> 内容 </template> |
|||
<div v-html="comMsg.text"></div> |
|||
</el-descriptions-item> |
|||
|
|||
<el-descriptions-item span="2"> |
|||
<template slot="label"> 附件 </template> |
|||
<template v-if="comMsg.attachment"> |
|||
<div |
|||
v-for="(item, index) in JSON.parse(comMsg.attachment)" |
|||
:key="item + index" |
|||
> |
|||
{{ item.name }} |
|||
|
|||
<i |
|||
class="el-icon-download" |
|||
@click="downloadFile2(item, index)" |
|||
style="cursor: pointer" |
|||
></i> |
|||
</div> |
|||
</template> |
|||
</el-descriptions-item> |
|||
</el-descriptions> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
listZhxx, |
|||
listZc, |
|||
getZhxx, |
|||
delZhxx, |
|||
addZhxx, |
|||
updateZhxx, |
|||
exportZhxx, |
|||
} from "@/api/enterprise/zhxx"; |
|||
import { getToken } from "@/utils/auth"; |
|||
import { getFileStream } from "@/api/system/upload"; |
|||
import { Editor, Toolbar } from "@wangeditor/editor-for-vue"; |
|||
|
|||
export default { |
|||
name: "Zhxx", |
|||
components: { Editor, Toolbar }, |
|||
data() { |
|||
return { |
|||
textTypeOptions:[], |
|||
editor: null, |
|||
toolbarConfig: { |
|||
toolbarKeys: [ |
|||
// 一些常用的菜单 key |
|||
"bold", // 加粗 |
|||
"italic", // 斜体 |
|||
"through", // 删除线 |
|||
"underline", // 下划线 |
|||
"bulletedList", // 无序列表 |
|||
"numberedList", // 有序列表 |
|||
"color", // 文字颜色 |
|||
"fontSize", // 字体大小 |
|||
"lineHeight", // 行高 |
|||
// "uploadImage", // 上传图片 |
|||
"delIndent", // 缩进 |
|||
"indent", // 增进 |
|||
"deleteImage", //删除图片 |
|||
"divider", // 分割线 |
|||
"justifyCenter", // 居中对齐 |
|||
"justifyJustify", // 两端对齐 |
|||
"justifyLeft", // 左对齐 |
|||
"justifyRight", // 右对齐 |
|||
"undo", // 撤销 |
|||
"redo", // 重做 |
|||
"clearStyle", // 清除格式 |
|||
], |
|||
}, |
|||
editorConfig: { |
|||
placeholder: "请输入内容", |
|||
MENU_CONF: { |
|||
uploadImage: { |
|||
server: "thinking/common/upload", |
|||
headers: { jianwei: "jwtech " + getToken() }, |
|||
"tenant-id": "1", |
|||
fieldName: "file", // 这里有个坑,如果返回的响应结果是没有上传文件,跟这里关系很大 |
|||
customInsert(res, insertFn) { |
|||
console.log("上传图片", res); |
|||
if (res.code == 200) { |
|||
// const url = window.URL.createObjectURL( |
|||
// new Blob([res.url], { |
|||
// type: "image/jpeg;charset=utf-8", |
|||
// headers: { jianwei: "jwtech " + getToken() }, |
|||
// }) |
|||
// ); |
|||
// previewFile({ url: res.url, responseType: "blob" }).then( |
|||
// (item) => { |
|||
// console.log(4444, item); |
|||
// } |
|||
// ); |
|||
// console.log(6666, url); |
|||
insertFn(res.url); |
|||
} |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
mode: "default", // or 'simple' |
|||
|
|||
// 遮罩层 |
|||
loading: true, |
|||
// 选中数组 |
|||
ids: [], |
|||
// 非单个禁用 |
|||
single: true, |
|||
// 非多个禁用 |
|||
multiple: true, |
|||
// 显示搜索条件 |
|||
showSearch: true, |
|||
// 总条数 |
|||
total: 0, |
|||
// 综合信息表格数据 |
|||
zhxxList: [], |
|||
// 弹出层标题 |
|||
title: "", |
|||
viewTitle: "", |
|||
// 是否显示弹出层 |
|||
open: false, |
|||
viewOpen: false, |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
ids: null, |
|||
data: { |
|||
textType:null, |
|||
title: null, |
|||
region: null, |
|||
publishTime: null, |
|||
text: null, |
|||
attachment: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
owerDept: null, |
|||
}, |
|||
// 排序方式 |
|||
params: { |
|||
// 按哪个字段排序 |
|||
orderBy: "create_time", |
|||
// desc降序,升序asc |
|||
sortBy: "desc", |
|||
}, |
|||
}, |
|||
// 表单参数 |
|||
form: {}, |
|||
// 表单校验 |
|||
rules: { |
|||
title: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }], |
|||
region: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }], |
|||
text: [{ max: 65500, message: "字符长度最大为65500", trigger: "blur" }], |
|||
}, |
|||
// 面包屑,路由信息 |
|||
routeList: [ |
|||
{ |
|||
path: "/marketSupervision/comprehensiveInfo", |
|||
routeName: "综合信息", |
|||
}, |
|||
], |
|||
// 请求头 |
|||
headers: { |
|||
jianwei: "jwtech " + getToken(), |
|||
}, |
|||
fileList1: [], |
|||
comMsg: {}, |
|||
}; |
|||
}, |
|||
created() { |
|||
this.getDicts("text_type").then((response) => { |
|||
console.log(response.data,1111) |
|||
this.textTypeOptions = response.data; |
|||
}); |
|||
this.getList(); |
|||
}, |
|||
methods: { |
|||
textTypeFormat(row, column) { |
|||
return this.selectDictLabel( |
|||
this.textTypeOptions, |
|||
row.textType |
|||
); |
|||
}, |
|||
checkContent() { |
|||
this.$refs.form.validateField("text"); |
|||
}, |
|||
onCreated(editor) { |
|||
this.editor = Object.seal(editor); // 一定要用 Object.seal() ,否则会报错 |
|||
this.editor.blur = this.checkContent; |
|||
}, |
|||
/** 查询综合信息列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listZc(this.queryParams).then((response) => { |
|||
this.zhxxList = response.records; |
|||
this.total = response.total; |
|||
this.loading = false; |
|||
}); |
|||
}, |
|||
// 取消按钮 |
|||
cancel() { |
|||
this.open = false; |
|||
this.reset(); |
|||
}, |
|||
viewInfo(row) { |
|||
getZhxx(row.id).then((res) => { |
|||
this.comMsg = res.data; |
|||
console.log("comMsg", row); |
|||
this.viewOpen = true; |
|||
}); |
|||
}, |
|||
closeView() { |
|||
this.comMsg = {}; |
|||
}, |
|||
// 表单重置 |
|||
reset() { |
|||
this.fileList1 = []; |
|||
this.form = { |
|||
id: null, |
|||
title: null, |
|||
region: null, |
|||
publishTime: null, |
|||
text: null, |
|||
attachment: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
createTime: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
remark: null, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data: { |
|||
id: null, |
|||
title: null, |
|||
region: null, |
|||
publishTime: null, |
|||
text: null, |
|||
attachment: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
createTime: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
remark: null, |
|||
}, |
|||
// 排序方式 |
|||
params: { |
|||
// 按哪个字段排序 |
|||
orderBy: "create_time", |
|||
// desc降序,升序asc |
|||
sortBy: "desc", |
|||
}, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
/** 搜索按钮操作 */ |
|||
handleQuery() { |
|||
this.queryParams.pageNum = 1; |
|||
this.getList(); |
|||
}, |
|||
/** 重置按钮操作 */ |
|||
resetQuery() { |
|||
this.resetQueryForm(); |
|||
this.handleQuery(); |
|||
}, |
|||
// 多选框选中数据 |
|||
handleSelectionChange(selection) { |
|||
this.ids = selection.map((item) => item.id); |
|||
this.single = selection.length !== 1; |
|||
this.multiple = !selection.length; |
|||
}, |
|||
/** 新增按钮操作 */ |
|||
handleAdd() { |
|||
this.reset(); |
|||
this.open = true; |
|||
this.title = "添加综合信息"; |
|||
}, |
|||
/** 修改按钮操作 */ |
|||
handleUpdate(row) { |
|||
this.reset(); |
|||
const id = row.id || this.ids; |
|||
getZhxx(id).then((response) => { |
|||
this.form = response.data; |
|||
if (this.form.attachment) { |
|||
this.fileList1 = JSON.parse(this.form.attachment); |
|||
} |
|||
this.open = true; |
|||
this.title = "修改综合信息"; |
|||
}); |
|||
}, |
|||
/** 提交按钮 */ |
|||
submitForm() { |
|||
this.$refs["form"].validate((valid) => { |
|||
if (valid) { |
|||
this.form.attachment = JSON.stringify(this.fileList1); |
|||
if (this.form.id != null) { |
|||
updateZhxx(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} else { |
|||
addZhxx(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("新增成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if (ids) { |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return delZhxx(ids); |
|||
}) |
|||
.then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}) |
|||
.catch(function () {}); |
|||
} else { |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
}, |
|||
// 上传意见附件 |
|||
submitOpinionUpload(fileList, name) { |
|||
console.log(name, fileList); |
|||
this[name].push({ |
|||
name: fileList.name, |
|||
fileName: fileList.response.fileName, |
|||
url: fileList.response.url, |
|||
uid: fileList.uid, |
|||
}); |
|||
console.log(name, this[name]); |
|||
}, |
|||
handleOpinionRemove(file, name) { |
|||
// console.log(file, fileList1); |
|||
let index = this[name].findIndex((item) => item.uid === file.uid); |
|||
// 删除文件 |
|||
this[name].splice(index, 1); |
|||
}, |
|||
// 表格中下载 |
|||
downloadFile(fileList, index) { |
|||
console.log(fileList); |
|||
let file = JSON.parse(fileList)[index]; |
|||
this.handlePreview(file); |
|||
}, |
|||
// 查看信息中, 下载 |
|||
downloadFile2(info, index) { |
|||
console.log(info); |
|||
this.handlePreview(info); |
|||
}, |
|||
// 点击预览的文件进行下载 |
|||
handlePreview(file) { |
|||
// console.log(file); |
|||
getFileStream({ fileName: file.fileName }).then((res) => { |
|||
const blob = new Blob([res], { |
|||
// type类型后端返回来的数据中会有,根据自己实际进行修改 |
|||
// 表格下载为 application/xlsx,压缩包为 application/zip等, |
|||
type: "application/xlsx", |
|||
}); //excel,pdf等 |
|||
const href = URL.createObjectURL(blob); //创建新的URL表示指定的blob对象 |
|||
const a = document.createElement("a"); //创建a标签 |
|||
a.style.display = "none"; |
|||
a.href = href; // 指定下载链接 |
|||
a.download = file.name; //指定下载文件名 |
|||
a.click(); //触发下载 |
|||
URL.revokeObjectURL(a.href); //释放URL对象 |
|||
}); |
|||
}, |
|||
handleExceed(files, fileList) { |
|||
this.$message.warning( |
|||
`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${ |
|||
files.length + fileList.length |
|||
} 个文件` |
|||
); |
|||
}, |
|||
beforeRemove(file, fileList) { |
|||
return this.$confirm(`确定移除 ${file.name}?`); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
<style src="@wangeditor/editor/dist/css/style.css"></style> |
|||
<style lang="scss"> |
|||
.myTooltips { |
|||
max-width: 60vw; |
|||
} |
|||
</style> |
|||
<style lang="scss" scoped> |
|||
@import "@/assets/css/dialog.scss"; |
|||
::v-deep { |
|||
.el-dialog { |
|||
margin-top: 5vh !important; |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,13 @@ |
|||
export function selectDictLabel(datas, value) { |
|||
var actions = []; |
|||
// console.log(datas);
|
|||
// console.log(value);
|
|||
Object.keys(datas).some((key) => { |
|||
if (datas[key].dictValue == ('' + value)) { |
|||
actions.push(datas[key].dictLabel); |
|||
return true; |
|||
} |
|||
}) |
|||
// console.log(actions);
|
|||
return actions.join(''); |
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.kms.enterprise.domain; |
|||
|
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class EnterpriseTotalVo { |
|||
private Integer enterpriseNum; |
|||
private Integer persionNum; |
|||
private Integer goodCreditNum; |
|||
private Integer badCreditNum; |
|||
|
|||
} |
Loading…
Reference in new issue