收藏内容
This commit is contained in:
parent
bb83c07f91
commit
5ce5c44d9f
1
src/assets/imgs/Knowledge/Tbup_no.svg
Normal file
1
src/assets/imgs/Knowledge/Tbup_no.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1722561945426" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2894" xmlns:xlink="http://www.w3.org/1999/xlink" width="256" height="256"><path d="M621.674667 408.021333c16.618667-74.24 28.224-127.936 34.837333-161.194666C673.152 163.093333 629.941333 85.333333 544.298667 85.333333c-77.226667 0-116.010667 38.378667-138.88 115.093334l-0.586667 2.24c-13.728 62.058667-34.72 110.165333-62.506667 144.586666a158.261333 158.261333 0 0 1-119.733333 58.965334l-21.909333 0.469333C148.437333 407.808 106.666667 450.816 106.666667 503.498667V821.333333c0 64.8 52.106667 117.333333 116.394666 117.333334h412.522667c84.736 0 160.373333-53.568 189.12-133.92l85.696-239.584c21.802667-60.96-9.536-128.202667-70.005333-150.186667a115.552 115.552 0 0 0-39.488-6.954667H621.674667z" fill="#8a8a8a" p-id="2895"></path></svg>
|
After Width: | Height: | Size: 994 B |
1
src/assets/imgs/Knowledge/Tbup_yes.svg
Normal file
1
src/assets/imgs/Knowledge/Tbup_yes.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1722561945426" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2894" xmlns:xlink="http://www.w3.org/1999/xlink" width="256" height="256"><path d="M621.674667 408.021333c16.618667-74.24 28.224-127.936 34.837333-161.194666C673.152 163.093333 629.941333 85.333333 544.298667 85.333333c-77.226667 0-116.010667 38.378667-138.88 115.093334l-0.586667 2.24c-13.728 62.058667-34.72 110.165333-62.506667 144.586666a158.261333 158.261333 0 0 1-119.733333 58.965334l-21.909333 0.469333C148.437333 407.808 106.666667 450.816 106.666667 503.498667V821.333333c0 64.8 52.106667 117.333333 116.394666 117.333334h412.522667c84.736 0 160.373333-53.568 189.12-133.92l85.696-239.584c21.802667-60.96-9.536-128.202667-70.005333-150.186667a115.552 115.552 0 0 0-39.488-6.954667H621.674667z" fill="#d81e06" p-id="2895"></path></svg>
|
After Width: | Height: | Size: 994 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
@ -33,38 +33,52 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="21">
|
||||
<el-form-item label="知识分类" prop="typeId">
|
||||
<!-- <el-input v-model="formData.typeId" placeholder="请选择知识分类" />-->
|
||||
<el-tree-select
|
||||
v-model="formData.typeId"
|
||||
:data="knowtypeTree"
|
||||
:props="{...defaultProps, lable: 'name'}"
|
||||
check-strictly
|
||||
default-expand-all
|
||||
placeholder="请选择上级分类"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="3">
|
||||
<el-form-item label="收藏知识">
|
||||
<el-image
|
||||
@click="star"
|
||||
style="width: 25px;height: 25px"
|
||||
v-show="ys"
|
||||
:src="yesIcon"/>
|
||||
<el-image
|
||||
@click="star"
|
||||
style="width: 25px;height: 25px"
|
||||
v-show="!ys"
|
||||
:src="noIcon"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="作者" prop="content">
|
||||
<el-input v-model="formData.userName" readonly />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="18">
|
||||
<el-form-item label="知识分类" prop="typeId">
|
||||
<!-- <el-input v-model="formData.typeId" placeholder="请选择知识分类" />-->
|
||||
<el-tree-select
|
||||
v-model="formData.typeId"
|
||||
:data="knowtypeTree"
|
||||
:props="{...defaultProps, lable: 'name'}"
|
||||
check-strictly
|
||||
default-expand-all
|
||||
placeholder="请选择上级分类"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="3">
|
||||
<el-form-item label="点赞">
|
||||
<el-image
|
||||
@click="stb"
|
||||
style="width: 25px;height: 25px"
|
||||
v-show="tb"
|
||||
:src="tbYesIcon"/>
|
||||
<el-image
|
||||
@click="stb"
|
||||
style="width: 25px;height: 25px"
|
||||
v-show="!tb"
|
||||
:src="tbNoIcon"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="3">
|
||||
<el-form-item label="收藏知识">
|
||||
<el-image
|
||||
@click="star"
|
||||
style="width: 25px;height: 25px"
|
||||
v-show="ys"
|
||||
:src="yesIcon"/>
|
||||
<el-image
|
||||
@click="star"
|
||||
style="width: 25px;height: 25px"
|
||||
v-show="!ys"
|
||||
:src="noIcon"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="24">-->
|
||||
<!-- <el-form-item label="作者" prop="content">-->
|
||||
<!-- <el-input v-model="formData.userName" readonly />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
</el-row>
|
||||
<el-form-item label="内容" prop="content">
|
||||
<Editor v-model="formData.content" height="150px" />
|
||||
@ -94,14 +108,17 @@ import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
|
||||
import {DeptVO, getDept} from "@/api/system/dept";
|
||||
import {defaultProps, handleTree} from "@/utils/tree";
|
||||
import {KnowtypeApi} from "@/api/bpm/knows/knowtype";
|
||||
import yesIcon from "../../../../assets/imgs/star_yes.svg"
|
||||
import noIcon from "../../../../assets/imgs/star_no.svg"
|
||||
import yesIcon from "../../../../assets/imgs/Knowledge/star_yes.svg"
|
||||
import noIcon from "../../../../assets/imgs/Knowledge/star_no.svg"
|
||||
import tbYesIcon from "../../../../assets/imgs/Knowledge/Tbup_yes.svg"
|
||||
import tbNoIcon from "../../../../assets/imgs/Knowledge/star_no.svg"
|
||||
import {Star2Api} from "@/api/bpm/star2";
|
||||
|
||||
/** 知识发布 表单 */
|
||||
defineOptions({ name: 'KnowledgeForm' })
|
||||
|
||||
const ys = ref(false)//收藏图标切换
|
||||
const tb = ref(false)//点赞图标切换
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||
@ -152,6 +169,9 @@ const getUserInfo = async () => {
|
||||
}
|
||||
|
||||
}
|
||||
const stb = async () => {
|
||||
tb.value = !tb.value;
|
||||
}
|
||||
/** 打开弹窗 */
|
||||
const open = async (type: string, id?: number) => {
|
||||
dialogVisible.value = true
|
||||
|
Loading…
Reference in New Issue
Block a user