|
@@ -6,7 +6,7 @@
|
|
|
<span>案例管理</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="touTop">
|
|
|
+ <div class="touTop" v-if="CourseType.length > 0">
|
|
|
<div class="touLeft">
|
|
|
<!-- <div>
|
|
|
<div>案例分类</div>
|
|
@@ -36,12 +36,6 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <!-- <el-input
|
|
|
- v-model="anliName"
|
|
|
- auto-complete="off"
|
|
|
- placeholder="请输入案例名称"
|
|
|
- @input="search"
|
|
|
- ></el-input> -->
|
|
|
<!-- <div class="anliCss">
|
|
|
<div>案例筛选</div>
|
|
|
<el-select v-model="anliBox" clearable @change="search">
|
|
@@ -52,6 +46,14 @@
|
|
|
</div> -->
|
|
|
</div>
|
|
|
<div @click="clear" class="clear">重置</div>
|
|
|
+ <div class="aName">
|
|
|
+ <el-input
|
|
|
+ v-model="anliName"
|
|
|
+ auto-complete="off"
|
|
|
+ placeholder="请输入案例名称"
|
|
|
+ @input="search"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="touRight">
|
|
|
<div></div>
|
|
@@ -60,7 +62,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="anliBox" v-loading="isLoading">
|
|
|
+ <div v-if="isNoTableData" class="isNoMessage">
|
|
|
+ <img src="../../../assets/icon/isNoMessage.png" alt />
|
|
|
+ </div>
|
|
|
+ <div class="anliBox" v-loading="isLoading" v-if="tableData.length > 0">
|
|
|
<div v-for="(a, aIndex) in tableData" :key="aIndex" class="anLi">
|
|
|
<div class="anliImg">
|
|
|
<img
|
|
@@ -123,6 +128,14 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="aName">
|
|
|
+ <el-input
|
|
|
+ v-model="assCaseName"
|
|
|
+ auto-complete="off"
|
|
|
+ placeholder="请输入案例名称"
|
|
|
+ @input="getAnliBox"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-checkbox
|
|
|
:indeterminate="isIndeterminate"
|
|
@@ -132,6 +145,7 @@
|
|
|
>全选</el-checkbox
|
|
|
>
|
|
|
<el-checkbox-group
|
|
|
+ v-loading="caseLoading"
|
|
|
v-model="checkboxList"
|
|
|
class="people_name"
|
|
|
v-if="anliBox1.length"
|
|
@@ -296,7 +310,9 @@ export default {
|
|
|
CourseTypeJson: {},
|
|
|
courseTypeId: {},
|
|
|
courseTypeSon: [],
|
|
|
- anliName:"",
|
|
|
+ anliName: "",
|
|
|
+ assCaseName:"",
|
|
|
+ caseLoading: false,
|
|
|
anliBox: "",
|
|
|
tableData: [],
|
|
|
reviewer: "",
|
|
@@ -304,6 +320,7 @@ export default {
|
|
|
anliBox1: [],
|
|
|
checkboxList: [],
|
|
|
checkboxIdList: [],
|
|
|
+ isNoTableData: false,
|
|
|
isIndeterminate: false,
|
|
|
isLoading: false,
|
|
|
checkAll: false,
|
|
@@ -444,9 +461,9 @@ export default {
|
|
|
typec: typec != undefined ? typec : "",
|
|
|
typed: typed != undefined ? typed : "",
|
|
|
typeE: typeE.join(","),
|
|
|
- cid: rc ? rc : "",
|
|
|
cn: this.anliBox == "" ? 0 : this.anliBox,
|
|
|
- // title: this.anliName,
|
|
|
+ cid: rc ? rc : "",
|
|
|
+ title: this.anliName,
|
|
|
page: this.page,
|
|
|
};
|
|
|
this.ajax
|
|
@@ -483,7 +500,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.getAnliList(rc);
|
|
|
+ if (rc) {
|
|
|
+ this.getAnliList(rc);
|
|
|
+ }else{
|
|
|
+ this.getAnliList();
|
|
|
+ }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -505,7 +526,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getReviewerOrAdmin() {
|
|
|
- if (this.$store.state.userInfo.type == 4) {
|
|
|
+ if (this.$store.state.userInfo.type == 6) {
|
|
|
this.getUser();
|
|
|
} else {
|
|
|
this.selectType();
|
|
@@ -521,6 +542,8 @@ export default {
|
|
|
if (res.data[0].length > 0) {
|
|
|
var reCid = res.data[0][0].aBox;
|
|
|
this.selectType(reCid);
|
|
|
+ } else {
|
|
|
+ this.isNoTableData = true;
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
@@ -528,8 +551,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getAnliBox() {
|
|
|
+ this.caseLoading = true;
|
|
|
+ let params = {
|
|
|
+ title: this.assCaseName,
|
|
|
+ };
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selecAnliBox")
|
|
|
+ .get(this.$store.state.api + "selecAnliBox", params)
|
|
|
.then((res) => {
|
|
|
this.anliBox1 = res.data[0];
|
|
|
for (var i = 0; i < this.anliBox1.length; i++) {
|
|
@@ -540,6 +567,7 @@ export default {
|
|
|
this.anliBox1[i].proexc = JSON.parse(this.anliBox1[i].proexc);
|
|
|
this.anliBox1[i].results = JSON.parse(this.anliBox1[i].results);
|
|
|
}
|
|
|
+ this.caseLoading = false;
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -636,9 +664,6 @@ export default {
|
|
|
} else if (this.scoreDetail[0].scoreAll.fivth == "") {
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
- } else if (this.scoreDetail[0].scoreAll.content == "") {
|
|
|
- this.$message.error("请将信息填写完整");
|
|
|
- return;
|
|
|
}
|
|
|
let params = {
|
|
|
rid: this.scoreDetail[0].id,
|
|
@@ -870,7 +895,7 @@ export default {
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
+ justify-content: flex-end;
|
|
|
padding: 10px 0 0 0;
|
|
|
}
|
|
|
|
|
@@ -1038,10 +1063,15 @@ export default {
|
|
|
padding: 10px 0 10px 0;
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
+.anliTitle > div:nth-child(1),
|
|
|
+.anliBrief > div:nth-child(1) {
|
|
|
+ min-width: 75px;
|
|
|
+ width: 75px;
|
|
|
+}
|
|
|
.anliTitle > div:nth-child(2),
|
|
|
.anliBrief > div:nth-child(2) {
|
|
|
font-size: 17px;
|
|
|
- margin-left: 10px;
|
|
|
+ margin-left: 35px;
|
|
|
color: #b0b0b0;
|
|
|
}
|
|
|
.anliScore > div:nth-child(2) {
|
|
@@ -1061,6 +1091,7 @@ export default {
|
|
|
border-radius: 15px;
|
|
|
background: #fafafa;
|
|
|
height: 30px;
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
.anliContent {
|
|
|
width: 80%;
|
|
@@ -1157,4 +1188,21 @@ export default {
|
|
|
border-radius: 5px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+.isNoMessage {
|
|
|
+ width: 20%;
|
|
|
+ margin: 10% auto 0;
|
|
|
+}
|
|
|
+
|
|
|
+.isNoMessage > img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+.aName {
|
|
|
+ margin-left: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.aName >>> .el-input__inner {
|
|
|
+ width: 300px;
|
|
|
+}
|
|
|
</style>
|