|
|
@ -1,63 +1,43 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="box"> |
|
|
<div class="box"> |
|
|
<div class="middlebox"> |
|
|
<div class="middlebox"> |
|
|
<div class="contenttitle" |
|
|
|
|
|
> |
|
|
|
|
|
常用设置 / |
|
|
|
|
|
<span class="contenttitleBold" |
|
|
|
|
|
>系统参数</span |
|
|
|
|
|
> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="contenttitle"> |
|
|
|
|
|
常用设置 / |
|
|
|
|
|
<span class="contenttitleBold">系统参数</span> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: flex;margin-top: 7px;"> |
|
|
<div style="display: flex;margin-top: 7px;"> |
|
|
<div :style=" |
|
|
|
|
|
'width: 208px;overflow: scroll;height:' + |
|
|
|
|
|
(window.pageHeight < 600 ? 480 : window.pageHeight - 100) + |
|
|
|
|
|
'px;background-color: #fff; border-radius: 8px' |
|
|
|
|
|
"> |
|
|
|
|
|
<div style="margin-top: 10px"> |
|
|
|
|
|
<el-tree |
|
|
|
|
|
:data="sysParmTypesTree" |
|
|
|
|
|
:props="treeProps" highlight-current |
|
|
|
|
|
@node-click="nodeClick" |
|
|
|
|
|
> |
|
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<span class="treeicons"> |
|
|
|
|
|
<!-- <i |
|
|
|
|
|
|
|
|
<div :style="'width: 208px;overflow: scroll;height:' + |
|
|
|
|
|
(window.pageHeight < 600 ? 480 : window.pageHeight - 100) + |
|
|
|
|
|
'px;background-color: #fff; border-radius: 8px' |
|
|
|
|
|
"> |
|
|
|
|
|
<div style="margin-top: 10px"> |
|
|
|
|
|
<el-tree :data="sysParmTypesTree" :props="treeProps" highlight-current @node-click="nodeClick"> |
|
|
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<span class="treeicons"> |
|
|
|
|
|
<!-- <i |
|
|
class="el-icon-document-remove" |
|
|
class="el-icon-document-remove" |
|
|
v-if="data.parentId == null" |
|
|
v-if="data.parentId == null" |
|
|
></i> --> |
|
|
></i> --> |
|
|
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png" v-if="data.parentId == null"/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span |
|
|
|
|
|
:class="data.parentId == null ? 'maxtitle' : 'mintitle'" |
|
|
|
|
|
>{{ node.label }}</span |
|
|
|
|
|
> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png" |
|
|
|
|
|
v-if="data.parentId == null" /> |
|
|
</span> |
|
|
</span> |
|
|
|
|
|
<span :class="data.parentId == null ? 'maxtitle' : 'mintitle'">{{ node.label }}</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</span> |
|
|
</el-tree> |
|
|
</el-tree> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div :style="'margin-left: 15px;width:'+ (window.pageWidth - 200 - 45) + 'px;'"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:data="sysParms" |
|
|
|
|
|
:height="window.pageHeight < 600 ? 418 : window.pageHeight - 162" |
|
|
|
|
|
size="small" :span-method="spanMethod" |
|
|
|
|
|
highlight-current-row |
|
|
|
|
|
border |
|
|
|
|
|
style="border-radius: 8px;" |
|
|
|
|
|
> |
|
|
|
|
|
<el-table-column prop="sysParmId" label="参数ID" min-width="150"/> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="displayName" |
|
|
|
|
|
label="参数名称" |
|
|
|
|
|
min-width="150" |
|
|
|
|
|
/> |
|
|
|
|
|
<el-table-column prop="medicalCenterId" label="体检中心" min-width="100"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<!-- |
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div :style="'margin-left: 15px;width:' + (window.pageWidth - 200 - 45) + 'px;'"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-table :data="sysParms" :height="window.pageHeight < 600 ? 418 : window.pageHeight - 162" size="small" |
|
|
|
|
|
:span-method="spanMethod" highlight-current-row border style="border-radius: 8px;"> |
|
|
|
|
|
<el-table-column prop="sysParmId" label="参数ID" min-width="150" /> |
|
|
|
|
|
<el-table-column prop="displayName" label="参数名称" min-width="150" /> |
|
|
|
|
|
<el-table-column prop="medicalCenterId" label="体检中心" min-width="100"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<!-- |
|
|
<el-select |
|
|
<el-select |
|
|
v-model="scope.row.medicalCenterId" |
|
|
v-model="scope.row.medicalCenterId" |
|
|
placeholder="请选择体检中心" |
|
|
placeholder="请选择体检中心" |
|
|
@ -73,36 +53,26 @@ |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
--> |
|
|
--> |
|
|
<div>{{ dddw(organization,'id',scope.row.medicalCenterId,'displayName')}}</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="sysParmValueName" label="参数值" min-width="80"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
v-model="scope.row.sysParmValueName" |
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
|
|
maxlength="100" |
|
|
|
|
|
size="small" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="valueRemark" label="备注" min-width="150"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
v-model="scope.row.valueRemark" |
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
|
|
maxlength="500" |
|
|
|
|
|
size="small" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="remark" label="参数说明" min-width="150"/> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="margin-top:15px; display: flex;justify-content:space-between;"> |
|
|
|
|
|
<!-- |
|
|
|
|
|
|
|
|
<div>{{ dddw(organization, 'id', scope.row.medicalCenterId, 'displayName') }}</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="sysParmValueName" label="参数值" min-width="80"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-input type="textarea" v-model="scope.row.sysParmValueName" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
|
|
maxlength="100" size="small" /> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="valueRemark" label="备注" min-width="150"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-input type="textarea" v-model="scope.row.valueRemark" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
|
|
maxlength="500" size="small" /> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="remark" label="参数说明" min-width="150" /> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="margin-top:15px; display: flex;justify-content:space-between;"> |
|
|
|
|
|
<!-- |
|
|
<div> |
|
|
<div> |
|
|
<span>体检中心</span> |
|
|
<span>体检中心</span> |
|
|
<el-select |
|
|
<el-select |
|
|
@ -123,12 +93,12 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
--> |
|
|
--> |
|
|
<div></div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-button type="success" @click="btnSave" class="commonbutton">保存</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div></div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-button type="success" @click="btnSave" class="commonbutton">保存</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
@ -149,12 +119,12 @@ export default { |
|
|
organization: [], //体检中心 |
|
|
organization: [], //体检中心 |
|
|
organizationId: "00000000-0000-0000-0000-000000000000", |
|
|
organizationId: "00000000-0000-0000-0000-000000000000", |
|
|
sysParmTypeId: "", |
|
|
sysParmTypeId: "", |
|
|
spanRow:[], |
|
|
|
|
|
|
|
|
spanRow: [], |
|
|
sysParms: [], //系统参数列表 |
|
|
sysParms: [], //系统参数列表 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
created() {}, |
|
|
|
|
|
|
|
|
created() { }, |
|
|
|
|
|
|
|
|
//挂载完成 |
|
|
//挂载完成 |
|
|
mounted() { |
|
|
mounted() { |
|
|
@ -167,19 +137,19 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
dddw, |
|
|
dddw, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取组织体检中心数据 |
|
|
//获取组织体检中心数据 |
|
|
getOraniztion() { |
|
|
getOraniztion() { |
|
|
getapi("/api/app/organization-units/organization-unit-by-is-peis").then( |
|
|
getapi("/api/app/organization-units/organization-unit-by-is-peis").then( |
|
|
(res) => { |
|
|
(res) => { |
|
|
if(res.code!=-1){ |
|
|
|
|
|
|
|
|
if (res.code != -1) { |
|
|
this.organization = [ |
|
|
this.organization = [ |
|
|
{ |
|
|
|
|
|
displayName: "公共参数", |
|
|
|
|
|
id: "00000000-0000-0000-0000-000000000000", |
|
|
|
|
|
}, |
|
|
|
|
|
...res.data, |
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
displayName: "公共参数", |
|
|
|
|
|
id: "00000000-0000-0000-0000-000000000000", |
|
|
|
|
|
}, |
|
|
|
|
|
...res.data, |
|
|
|
|
|
]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
@ -214,14 +184,14 @@ export default { |
|
|
getapi(`${url}`).then((res) => { |
|
|
getapi(`${url}`).then((res) => { |
|
|
if (res.code != -1) { |
|
|
if (res.code != -1) { |
|
|
this.sysParms = res.data; |
|
|
this.sysParms = res.data; |
|
|
this.spanRow = this.parseSpanRow(this.sysParms,'sysParmId') |
|
|
|
|
|
|
|
|
this.spanRow = this.parseSpanRow(this.sysParms, 'sysParmId') |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//行合并 |
|
|
//行合并 |
|
|
spanMethod({ row, column, rowIndex, columnIndex }) { |
|
|
spanMethod({ row, column, rowIndex, columnIndex }) { |
|
|
if(columnIndex == 0 || columnIndex == 1 || columnIndex == 5){ |
|
|
|
|
|
|
|
|
if (columnIndex == 0 || columnIndex == 1 || columnIndex == 5) { |
|
|
for (let i = 0; i < this.spanRow.length; i++) { |
|
|
for (let i = 0; i < this.spanRow.length; i++) { |
|
|
if (rowIndex == this.spanRow[i].startRow) { |
|
|
if (rowIndex == this.spanRow[i].startRow) { |
|
|
return { |
|
|
return { |
|
|
@ -266,7 +236,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//分析合并的行数据 |
|
|
//分析合并的行数据 |
|
|
parseSpanRow(arrayData,key) { |
|
|
|
|
|
|
|
|
parseSpanRow(arrayData, key) { |
|
|
let spanRow = []; |
|
|
let spanRow = []; |
|
|
let preVal = '', curVal = ''; |
|
|
let preVal = '', curVal = ''; |
|
|
let startRow = 0; |
|
|
let startRow = 0; |
|
|
@ -281,7 +251,7 @@ export default { |
|
|
startRow = i; |
|
|
startRow = i; |
|
|
preVal = arrayData[i][key]; |
|
|
preVal = arrayData[i][key]; |
|
|
} |
|
|
} |
|
|
if (i == arrayData.length - 1 && preVal === curVal){ |
|
|
|
|
|
|
|
|
if (i == arrayData.length - 1 && preVal === curVal) { |
|
|
spanRow.push({ startRow, endRow: i }); |
|
|
spanRow.push({ startRow, endRow: i }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -290,10 +260,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
btnSave() { |
|
|
btnSave() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let body = { |
|
|
let body = { |
|
|
sysParmTypeId:this.sysParmTypeId, |
|
|
|
|
|
details:[] |
|
|
|
|
|
|
|
|
sysParmTypeId: this.sysParmTypeId, |
|
|
|
|
|
details: [] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.sysParms.length < 1) return; |
|
|
if (this.sysParms.length < 1) return; |
|
|
@ -324,9 +294,9 @@ export default { |
|
|
@import '../../assets/css/global_input.css'; |
|
|
@import '../../assets/css/global_input.css'; |
|
|
@import '../../assets/css/global_table.css'; |
|
|
@import '../../assets/css/global_table.css'; |
|
|
@import '../../assets/css/global.css'; |
|
|
@import '../../assets/css/global.css'; |
|
|
|
|
|
|
|
|
.box { |
|
|
.box { |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |