|
@@ -847,7 +847,7 @@
|
|
|
@click="selectAttText(itemTaskIndex, index1)"
|
|
|
/>
|
|
|
<input
|
|
|
- :placeholder="item1.name"
|
|
|
+ :placeholder="item1.title ? item1.title : '链接'"
|
|
|
v-if="item1.type == 8"
|
|
|
style="
|
|
|
border: none;
|
|
@@ -2053,14 +2053,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="funBlock" style="padding: 0">
|
|
|
- <div class="fold">
|
|
|
- <div @click="fold(itemTaskIndex, $event, 1)">折叠</div>
|
|
|
+ <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
|
|
|
+ <div>折叠</div>
|
|
|
<div class="arrow">
|
|
|
<img src="../../assets/icon/fold.png" alt />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="fold">
|
|
|
- <div @click="fold(itemTaskIndex, $event, 0)">展开</div>
|
|
|
+ <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
|
|
|
+ <div>展开</div>
|
|
|
<div class="arrow">
|
|
|
<img src="../../assets/icon/expand.png" alt />
|
|
|
</div>
|
|
@@ -2231,6 +2231,16 @@
|
|
|
class="dialog_diy lineCss"
|
|
|
>
|
|
|
<el-form>
|
|
|
+ <el-form-item label="标题" :label-width="formLabelWidth">
|
|
|
+ <span>
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入链接标题"
|
|
|
+ clearable
|
|
|
+ v-model="lineTitle"
|
|
|
+ class="add_input"
|
|
|
+ ></el-input>
|
|
|
+ </span>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="链接" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
<el-input
|
|
@@ -2474,7 +2484,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- style="margin: 10px 0 0 0"
|
|
|
+ style="margin: 10px 0 0 10px"
|
|
|
@click="deletecheckList(askJson.askJson[index1])"
|
|
|
v-if="askJson.askJson[index1].askItem != 1"
|
|
|
class="confirm_button"
|
|
@@ -3255,6 +3265,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
line: "",
|
|
|
+ lineTitle: "",
|
|
|
sysPic: [],
|
|
|
lineCount: 0,
|
|
|
lineType: 0,
|
|
@@ -4317,8 +4328,8 @@ export default {
|
|
|
el.getElementsByTagName("input")[0].click();
|
|
|
},
|
|
|
fold(i, e, type) {
|
|
|
- var a = e.path[3];
|
|
|
- var b = e.path[2];
|
|
|
+ var a = e.currentTarget.parentElement.parentElement;
|
|
|
+ var b = e.currentTarget.parentElement;
|
|
|
if (type == 1) {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
|
|
|
a.className += " smallTaskBorder";
|
|
@@ -4927,7 +4938,8 @@ export default {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
this.lineCount
|
|
|
].chapterData.push({
|
|
|
- name: "链接",
|
|
|
+ name:"链接",
|
|
|
+ title: this.lineTitle,
|
|
|
url: this.line,
|
|
|
type: 8,
|
|
|
});
|
|
@@ -4939,6 +4951,12 @@ export default {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
|
].chapterData[i].url;
|
|
|
+ this.lineTitle =
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].chapterData[i].title ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].chapterData[i].title : '';
|
|
|
this.taskCount = itemTaskIndex;
|
|
|
this.lineCount = i;
|
|
|
this.lineType = 1;
|
|
@@ -4948,6 +4966,9 @@ export default {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
|
].chapterData[this.lineCount].url = this.line;
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[this.lineCount].title = this.lineTitle;
|
|
|
this.dialogVisible7 = false;
|
|
|
},
|
|
|
addPP() {
|
|
@@ -5377,6 +5398,11 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.dialogVisible5 = false;
|
|
|
+ if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].toolChoose[this.toolIndex].tool != 4) {
|
|
|
+ this.addTools(4, this.taskCount, this.toolIndex)
|
|
|
+ }
|
|
|
},
|
|
|
addTest() {
|
|
|
if (this.testJson.testTitle === "") {
|
|
@@ -5446,6 +5472,11 @@ export default {
|
|
|
].toolChoose[this.toolIndex].testJson = this.testJson;
|
|
|
|
|
|
this.dialogVisibleChoice = false;
|
|
|
+ if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].toolChoose[this.toolIndex].tool != 45) {
|
|
|
+ this.addTools(45, this.taskCount, this.toolIndex)
|
|
|
+ }
|
|
|
},
|
|
|
addAnswer() {
|
|
|
if (this.answerQ == "") {
|
|
@@ -7194,8 +7225,8 @@ ol {
|
|
|
}
|
|
|
|
|
|
.check {
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
cursor: pointer;
|
|
|
margin: 10px 0;
|
|
|
}
|