|
|
|
@ -19,7 +19,7 @@ |
|
|
|
:style="`width: 208px;overflow: scroll;height:${tableHeight + 28}px;background-color: #fff; border-radius: 8px;`"> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-tree :data="pacsTemplateTree" :props="treeprops" @node-click="treeClick" node-key="id" ref="itemType" |
|
|
|
highlight-current auto-expand-parent> |
|
|
|
highlight-current auto-expand-parent @node-contextmenu="nodeContextmenu"> |
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
<div> |
|
|
|
<span class="treeicons"> |
|
|
|
@ -27,8 +27,10 @@ |
|
|
|
class="el-icon-document-remove" |
|
|
|
v-if="data.parentId == null" |
|
|
|
></i> --> |
|
|
|
<img style="width: 20px; height: 20px; vertical-align: sub" src="@/assets/images/order.png" |
|
|
|
v-if="!data.parentId" /> |
|
|
|
<img v-if="data.isTemplate == 'Y'" style="width: 20px; height: 20px; vertical-align: sub" |
|
|
|
src="@/assets/images/doc.png" /> |
|
|
|
<img v-else style="width: 20px; height: 20px; vertical-align: sub" |
|
|
|
src="@/assets/images/order.png" /> |
|
|
|
</span> |
|
|
|
<span :class="!data.parentId ? 'maxtitle' : 'mintitle'">{{ |
|
|
|
node.label |
|
|
|
@ -187,6 +189,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 新增或者编辑弹框 --> |
|
|
|
<el-dialog :title="title == 1 ? '新增' : '编辑'" :visible.sync="dialogVisible" width="800px" @close="bindidclose" |
|
|
|
:close-on-click-modal="false"> |
|
|
|
@ -216,7 +220,8 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="描述" prop="description"> |
|
|
|
<el-input type="textarea" v-model="form.description" size="small" :autosize="{ minRows: 8, maxRows: 16 }"></el-input> |
|
|
|
<el-input type="textarea" v-model="form.description" size="small" |
|
|
|
:autosize="{ minRows: 8, maxRows: 16 }"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -314,6 +319,7 @@ |
|
|
|
<el-button type="primary" @click="btnSubmitCon" class="commonbutton">确 定</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
@ -392,7 +398,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
tableData: [], |
|
|
|
tableDataCon:[], |
|
|
|
tableDataCon: [], |
|
|
|
initDescription: [], |
|
|
|
|
|
|
|
|
|
|
|
@ -428,7 +434,7 @@ export default { |
|
|
|
this.getPacsTemplateTree(); |
|
|
|
|
|
|
|
// 刷新列表数据 |
|
|
|
this.retrieveTable(); |
|
|
|
// this.retrieveTable(); |
|
|
|
}, |
|
|
|
|
|
|
|
updated() { |
|
|
|
@ -447,6 +453,96 @@ export default { |
|
|
|
methods: { |
|
|
|
dddw, |
|
|
|
|
|
|
|
nodeContextmenu(event, data, node, self) { |
|
|
|
console.log('event', event) |
|
|
|
console.log('data', data) |
|
|
|
console.log('node', node) |
|
|
|
console.log('self', self) |
|
|
|
|
|
|
|
let items = [{ |
|
|
|
label: "新增顶级词条类别", |
|
|
|
onClick: () => { |
|
|
|
editPacsType({}) |
|
|
|
} |
|
|
|
}] // 菜单项 |
|
|
|
|
|
|
|
// 选中结果模版 |
|
|
|
if (data.isTemplate == 'Y') { |
|
|
|
items.push({ label: "----------------" }) |
|
|
|
items.push({ |
|
|
|
label: '新增结果模版', |
|
|
|
onClick: () => { |
|
|
|
editPacsTemplate({}) |
|
|
|
} |
|
|
|
}) |
|
|
|
items.push({ |
|
|
|
label: '编辑结果模版', |
|
|
|
onClick: () => { |
|
|
|
editPacsTemplate({}) |
|
|
|
} |
|
|
|
}) |
|
|
|
items.push({ |
|
|
|
label: '删除结果模版', |
|
|
|
onClick: () => { |
|
|
|
delPacsTemplate({}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
// 选中类别 |
|
|
|
items.push({ |
|
|
|
label: '新增同级词条类别', |
|
|
|
onClick: () => { |
|
|
|
editPacsType({}) |
|
|
|
} |
|
|
|
}) |
|
|
|
items.push({ |
|
|
|
label: '新增子级词条类别', |
|
|
|
onClick: () => { |
|
|
|
editPacsType({}) |
|
|
|
} |
|
|
|
}) |
|
|
|
items.push({ |
|
|
|
label: '编辑词条类别', |
|
|
|
onClick: () => { |
|
|
|
editPacsType({}) |
|
|
|
} |
|
|
|
}) |
|
|
|
items.push({ |
|
|
|
label: '删除词条类别', |
|
|
|
onClick: () => { |
|
|
|
delPacsType({}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
this.$contextmenu({ |
|
|
|
items, |
|
|
|
event, |
|
|
|
//x: event.clientX, |
|
|
|
//y: event.clientY, |
|
|
|
customClass: "custom-class", |
|
|
|
zIndex: 3, |
|
|
|
minWidth: 80, |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
editPacsType(data) { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
delPacsType(data) { |
|
|
|
|
|
|
|
}, |
|
|
|
editPacsTemplate(data) { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
delPacsTemplate(data) { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//获取pacs结果模板 |
|
|
|
getPacsTemplateTree() { |
|
|
|
let resultType = [], resultTemplate = [], treeData = [] |
|
|
|
@ -516,7 +612,7 @@ export default { |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.curRow = this.$options.data().curRow; |
|
|
|
this.leftdata = this.$options.data().leftdata; |
|
|
|
@ -623,7 +719,7 @@ export default { |
|
|
|
tableRowClassName({ row, rowIndex }) { |
|
|
|
row.index = rowIndex; |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取项目类别 3a0b0b10-719f-5824-6956-8cb70f204013 /api/app/item-type/by-code-all |
|
|
|
retrieveTable() { |
|
|
|
@ -644,7 +740,7 @@ export default { |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
changeTemplate(v) { |
|
|
|
if (v) { |
|
|
|
this.form.bigtextResultTemplateId = v[v.length - 1] |
|
|
|
|