|
|
|
@ -68,7 +68,7 @@ |
|
|
|
|
<p class="p">操作一致性规则:用户完成的功能操作与下方设置的操作点一致</p> |
|
|
|
|
<div class="tree-con"> |
|
|
|
|
<div class="block"> |
|
|
|
|
<el-tree |
|
|
|
|
<my-tree |
|
|
|
|
class="action" |
|
|
|
|
:ref="'tree-'+scope.$index" |
|
|
|
|
:data="treeData" |
|
|
|
@ -79,7 +79,7 @@ |
|
|
|
|
@check-change="(data, checked, indeterminate) => { |
|
|
|
|
handleCheckChange(data, checked, indeterminate, scope.row, scope.$index); |
|
|
|
|
}" |
|
|
|
|
></el-tree> |
|
|
|
|
></my-tree> |
|
|
|
|
</div> |
|
|
|
|
<div v-show="scope.row.isDisabled" class="mask"></div> |
|
|
|
|
</div> |
|
|
|
@ -108,6 +108,7 @@ |
|
|
|
|
<div class="block"> |
|
|
|
|
<!-- type: 题目类型(1选择 2判断 3填空 4问答 5指标结果) --> |
|
|
|
|
<template v-if="scope.row.type == 1"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
|
</div> |
|
|
|
@ -130,9 +131,11 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 2"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<div>{{ scope.row.name }}</div> |
|
|
|
|
</div> |
|
|
|
@ -154,12 +157,15 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 3"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line" style="min-height: 100%;"> |
|
|
|
|
<span class="label"> |
|
|
|
|
<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox> |
|
|
|
|
<!--<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox>--> |
|
|
|
|
字段要求 |
|
|
|
|
</span> |
|
|
|
|
<div class="action"> |
|
|
|
|
<el-input |
|
|
|
@ -172,12 +178,15 @@ |
|
|
|
|
></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 4"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="label"> |
|
|
|
|
<el-checkbox v-model="scope.row.numOfWords" :disabled="isView || scope.row.isDisabled">字数要求</el-checkbox> |
|
|
|
|
<!--<el-checkbox v-model="scope.row.numOfWords" :disabled="isView || scope.row.isDisabled">字数要求</el-checkbox>--> |
|
|
|
|
字数要求 |
|
|
|
|
</span> |
|
|
|
|
<div class="action a-line"> |
|
|
|
|
<el-select |
|
|
|
@ -205,7 +214,8 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="label"> |
|
|
|
|
<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox> |
|
|
|
|
<!--<el-checkbox v-model="scope.row.fieldOfReq" :disabled="isView || scope.row.isDisabled">字段要求</el-checkbox>--> |
|
|
|
|
字段要求 |
|
|
|
|
</span> |
|
|
|
|
<div class="action"> |
|
|
|
|
<el-input |
|
|
|
@ -218,9 +228,11 @@ |
|
|
|
|
></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-if="scope.row.type == 5"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<!-- |
|
|
|
|
<span class="label">选择指标</span> |
|
|
|
@ -279,6 +291,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -288,7 +301,7 @@ |
|
|
|
|
<el-button v-show="scope.row.isDisabled" size="mini" type="text" @click="handleEdit(scope.row)">编辑</el-button> |
|
|
|
|
<el-button v-show="!scope.row.isDisabled" size="mini" type="text" @click="handleSave(scope.row, scope.$index)">保存</el-button> |
|
|
|
|
<el-button v-show="!scope.row.isDisabled" size="mini" type="text" @click="handleCancel(scope.row, scope.$index)">取消</el-button> |
|
|
|
|
<el-button size="mini" type="text" @click="handleDelete(scope.row, scope.$index)">删除</el-button> |
|
|
|
|
<el-button v-show="scope.row.isDisabled" size="mini" type="text" @click="handleDelete(scope.row, scope.$index)">删除</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -300,9 +313,10 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import quill from '@/components/quill' |
|
|
|
|
import MyTree from '@/components/myTree/src/tree' |
|
|
|
|
import {deepCopy} from '@/utils/deepCopy' |
|
|
|
|
export default { |
|
|
|
|
components: {quill}, |
|
|
|
|
components: {quill, MyTree}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
@ -434,6 +448,11 @@ export default { |
|
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
|
|
row.value1 = ""; |
|
|
|
|
row.value2 = ""; |
|
|
|
|
row.value3 = ""; |
|
|
|
|
row.value4 = ""; |
|
|
|
|
row.value5 = ""; |
|
|
|
|
if (data.subjectId) { // 是否有题目id |
|
|
|
|
this.currentNodeData = data; |
|
|
|
|
this.$refs[`tree-${index}`].setCheckedNodes([data]); |
|
|
|
@ -464,6 +483,9 @@ export default { |
|
|
|
|
data.forEach(item => { |
|
|
|
|
if (item.isNode === 0) { |
|
|
|
|
item.disabled = true; |
|
|
|
|
item.showCheckbox = false; |
|
|
|
|
} else { |
|
|
|
|
item.showCheckbox = true; |
|
|
|
|
} |
|
|
|
|
if (item.children && item.children.length) { |
|
|
|
|
item.id = `${parentId},${item.id}`; |
|
|
|
@ -829,13 +851,15 @@ export default { |
|
|
|
|
height: 230px; |
|
|
|
|
background-color: #fff; |
|
|
|
|
overflow: auto; |
|
|
|
|
.box{ |
|
|
|
|
padding: 0 24px; |
|
|
|
|
} |
|
|
|
|
.line { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
margin: 24px 0; |
|
|
|
|
|
|
|
|
|
margin: 12px 0; |
|
|
|
|
.label { |
|
|
|
|
width: 100px; |
|
|
|
|
//width: 100px; |
|
|
|
|
margin-right: 10px; |
|
|
|
|
text-align: right; |
|
|
|
|
font-size: 12px; |
|
|
|
|