|
@@ -15,7 +15,7 @@
|
|
|
<span>截止时间:</span>
|
|
|
<span>{{ testJson.overtime }}</span>
|
|
|
</div>
|
|
|
- <div class="info" v-if="testJson && testJson.juriP">
|
|
|
+ <div class="info" v-if="testJson">
|
|
|
<span>未完成人数:</span>
|
|
|
<span>{{ noCount }}</span>
|
|
|
</div>
|
|
@@ -23,9 +23,10 @@
|
|
|
<span>已完成人数:</span>
|
|
|
<span v-html="testJson.worksPerson"></span>
|
|
|
</div>
|
|
|
- <div class="info" v-if="testJson && testJson.juriP && pname.length">
|
|
|
+ <div class="info" v-if="pname.length">
|
|
|
<span>未完成名单:</span>
|
|
|
- <span>{{ pname.join(',') }}</span>
|
|
|
+ <span>{{ pname.length > 10 ? isSuo ? pname.slice(0,10).join(',')+'...' : pname.join(',') : pname.join(',') }}</span>
|
|
|
+ <span class="more" v-if="pname.length > 10" @click="isSuo = !isSuo">{{ isSuo ? '查看更多' : '收起'}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="url_box">
|
|
@@ -78,7 +79,8 @@ export default {
|
|
|
copyText: "",
|
|
|
copyText2: "",
|
|
|
noCount: 0,
|
|
|
- pname:[]
|
|
|
+ pname:[],
|
|
|
+ isSuo: true
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -130,7 +132,7 @@ export default {
|
|
|
copy2(){
|
|
|
let url = "https://beta.cloud.cocorobo.cn/#/testDetail?testid=" + this.testJson.courseId
|
|
|
this.copyText2 =
|
|
|
- `表单名称:${this.testJson.title}\n表单范围:${this.testJson.juriP ? this.testJson.juriP : '所有人'}\n${this.testJson.overtime ? '截止时间:'+this.testJson.overtime +'\n' : ''}${this.testJson.juriP ? '未完成人数:'+this.noCount +'\n' : ''}${this.testJson ? '已完成人数:'+this.testJson.worksPerson +'\n' : ''}${this.testJson.juriP && this.pname.length ? '未完成名单:'+this.pname.join(',') +'\n' : ''}链接提醒:${url}`;
|
|
|
+ `表单名称:${this.testJson.title}\n表单范围:${this.testJson.juriP ? this.testJson.juriP : '所有人'}\n${this.testJson.overtime ? '截止时间:'+this.testJson.overtime +'\n' : ''}${'未完成人数:'+this.noCount +'\n'}${this.testJson ? '已完成人数:'+this.testJson.worksPerson +'\n' : ''}${this.pname.length ? '未完成名单:'+this.pname.join(',') +'\n' : ''}链接提醒:${url}`;
|
|
|
var clipboard = new Clipboard(".tag-read2");
|
|
|
clipboard.on("success", (e) => {
|
|
|
this.$message.success("复制成功");
|
|
@@ -143,9 +145,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getData() {
|
|
|
- if(!this.testJson.juriP){
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if(!this.testJson.juriP){
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
let params = {
|
|
|
id: this.testJson.courseId,
|
|
|
};
|
|
@@ -175,6 +177,7 @@ export default {
|
|
|
watch: {
|
|
|
dialogVisibleShare(newValue, oldValue) {
|
|
|
if (newValue) {
|
|
|
+ this.isSuo = true
|
|
|
this.setQr()
|
|
|
this.getData()
|
|
|
// console.log(top.origin);
|
|
@@ -329,5 +332,9 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
+
|
|
|
+.more{
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|
|
|
|