案例@我的

This commit is contained in:
zhaofang
2022-06-07 16:01:58 +08:00
parent 656d0d0634
commit 77f7a0dbd3
3 changed files with 12 additions and 11 deletions

View File

@@ -320,6 +320,7 @@
this.loadData(); this.loadData();
}, },
inputValue(val,oldVal) { inputValue(val,oldVal) {
console.log("333333");
let fu = val.substr(-1); let fu = val.substr(-1);
if(fu == '@'&&!oldVal) { if(fu == '@'&&!oldVal) {
this.toUserId = ''; this.toUserId = '';

View File

@@ -11,7 +11,7 @@
<!-- <el-option label="全部" :value="0"></el-option> --> <!-- <el-option label="全部" :value="0"></el-option> -->
<el-option label="文章" :value="2"></el-option> <el-option label="文章" :value="2"></el-option>
<!-- <el-option label="课程" :value="1"></el-option> --> <!-- <el-option label="课程" :value="1"></el-option> -->
<!-- <el-option label="问答" :value="4"></el-option> --> <el-option label="案例" :value="3"></el-option>
<el-option label="问答" :value="4"></el-option> <el-option label="问答" :value="4"></el-option>
</el-select> </el-select>
<!-- <el-input style="width: 200px;margin-right: 10px" placeholder="请选择来源"></el-input> --> <!-- <el-input style="width: 200px;margin-right: 10px" placeholder="请选择来源"></el-input> -->
@@ -154,6 +154,8 @@ export default {
}else if(this.dataList.type == 4){ }else if(this.dataList.type == 4){
this.$router.push({ path: '/qa/answer', query: { id: item.objId } }); this.$router.push({ path: '/qa/answer', query: { id: item.objId } });
} else if(this.dataList.type == 3){
this.$router.push({ path: '/case/detail', query: { id: item.objId } });
} }
}, },
@@ -266,12 +268,11 @@ export default {
toAname:this.replayContent.sysCreateBy, toAname:this.replayContent.sysCreateBy,
parentRead:true parentRead:true
} }
if(this.dataList.type == 2) { if(this.dataList.type == 2 || this.dataList.type == 3) {
apiComment.reply(replayInfo).then(res=>{ apiComment.reply(replayInfo).then(res=>{
if(res.status==200){ if(res.status==200){
this.$message.success("回复成功"); this.$message.success("回复成功");
this.shareShow = false; this.shareShow = false;
//this.getData();
if(!this.replyItem.replys){ if(!this.replyItem.replys){
this.replyItem.replys=[]; this.replyItem.replys=[];
} }

View File

@@ -35,7 +35,7 @@
<pdfPreview v-if="pdfPath" :filePath="pdfPath"></pdfPreview> <pdfPreview v-if="pdfPath" :filePath="pdfPath"></pdfPreview>
</el-card> </el-card>
<!-- :authorId="articleDetailData.sysCreateAid" --> <!-- :authorId="articleDetailData.sysCreateAid" -->
<el-row><comments @success="success" v-if="resolveId != ''" :obj-type="3" :obj-id="resolveId" :authorId="caseDetail.sysCreateAid"></comments></el-row> <el-row><comments @success="success" v-if="resolveId != ''" :obj-type="3" :obj-id="resolveId" :authorId="caseDetail.sysCreateAid" :toUsers="toUsers"></comments></el-row>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -143,7 +143,8 @@ export default {
}, },
data() { data() {
return { return {
ankingList:[], toUsers:[],
ankingList:[],
Popularity:[], Popularity:[],
Positive:[], Positive:[],
resolveId: '', resolveId: '',
@@ -215,16 +216,11 @@ export default {
} }
}) })
}, },
getCaseData() { getCaseData() {
apiCase.detail(this.resolveId,true).then(res => { apiCase.detail(this.resolveId,true).then(res => {
if (res.status == 200) { if (res.status == 200) {
if (JSON.stringify(res.result) != '{}') { if (JSON.stringify(res.result) != '{}') {
this.caseDetail = res.result; this.caseDetail = res.result;
console.log(this.caseDetail.filePath)
this.getCaseUserDetail(); this.getCaseUserDetail();
if(this.caseDetail.filePath){ if(this.caseDetail.filePath){
this.pdfPath=this.basePath+this.caseDetail.filePath; this.pdfPath=this.basePath+this.caseDetail.filePath;
@@ -240,6 +236,9 @@ export default {
apiUser.getByIds([this.caseDetail.sysCreateAid]).then(res => { apiUser.getByIds([this.caseDetail.sysCreateAid]).then(res => {
if (res.status == 200 && res.result.length>0) { if (res.status == 200 && res.result.length>0) {
this.authorInfo = res.result[0]; this.authorInfo = res.result[0];
this.toUsers = [
{name: res.result[0].name, aid:res.result[0].aid ,sex:res.result[0].sex}
];
//console.log(res.result,'res.result'); //console.log(res.result,'res.result');
} }
}); });