|
|
|
|
@ -121,20 +121,20 @@
|
|
|
|
|
<!-- @input="(e) => inputEndHandler(e, select.filter[0])"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="bottom-start"
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="click">
|
|
|
|
|
|
|
|
|
|
<el-tree :data="equipments"
|
|
|
|
|
ref="elTree"
|
|
|
|
|
:props="{ children: 'children', label: 'name' }"
|
|
|
|
|
show-checkbox
|
|
|
|
|
@check-change="handleCheckChange">
|
|
|
|
|
</el-tree>
|
|
|
|
|
|
|
|
|
|
<Input :value="treeValue" slot="reference" style="width: 140px;margin-left: 6px;" readonly placeholder="搜索点位"></Input>
|
|
|
|
|
</el-popover>
|
|
|
|
|
<!-- <el-popover-->
|
|
|
|
|
<!-- placement="bottom-start"-->
|
|
|
|
|
<!-- width="200"-->
|
|
|
|
|
<!-- trigger="click">-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-tree :data="equipments"-->
|
|
|
|
|
<!-- ref="elTree"-->
|
|
|
|
|
<!-- :props="{ children: 'children', label: 'name' }"-->
|
|
|
|
|
<!-- show-checkbox-->
|
|
|
|
|
<!-- @check-change="handleCheckChange">-->
|
|
|
|
|
<!-- </el-tree>-->
|
|
|
|
|
|
|
|
|
|
<!-- <Input :value="treeValue" slot="reference" style="width: 140px;margin-left: 6px;" readonly placeholder="搜索点位"></Input>-->
|
|
|
|
|
<!-- </el-popover>-->
|
|
|
|
|
<Button
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
type="primary"
|
|
|
|
|
@ -292,38 +292,51 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!--$refs['drawer'].setId(row.id);
|
|
|
|
|
$refs['drawer'].show();-->
|
|
|
|
|
<xy-table
|
|
|
|
|
:span-method="objectSpanMethod"
|
|
|
|
|
:format-list-data="mergeData"
|
|
|
|
|
:btn-width="140"
|
|
|
|
|
:auths="auths_auth_mixin"
|
|
|
|
|
:delay-req="true"
|
|
|
|
|
:destroy-action="destroy"
|
|
|
|
|
ref="xyTable"
|
|
|
|
|
:border="true"
|
|
|
|
|
:action="index"
|
|
|
|
|
:req-opt="tableSelect"
|
|
|
|
|
:destroy-req-opt="select"
|
|
|
|
|
:table-item="table"
|
|
|
|
|
@detail="
|
|
|
|
|
<el-row :gutter="10">
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-tree :data="equipments"
|
|
|
|
|
:style="{ 'max-height': treeHeight, 'overflow': 'scroll' }"
|
|
|
|
|
ref="elTree"
|
|
|
|
|
:props="{ children: 'children', label: 'name' }"
|
|
|
|
|
show-checkbox
|
|
|
|
|
@check-change="handleCheckChange">
|
|
|
|
|
</el-tree>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="20">
|
|
|
|
|
<xy-table
|
|
|
|
|
:span-method="objectSpanMethod"
|
|
|
|
|
:format-list-data="mergeData"
|
|
|
|
|
:btn-width="140"
|
|
|
|
|
:auths="auths_auth_mixin"
|
|
|
|
|
:delay-req="true"
|
|
|
|
|
:destroy-action="destroy"
|
|
|
|
|
ref="xyTable"
|
|
|
|
|
:border="true"
|
|
|
|
|
:action="index"
|
|
|
|
|
:req-opt="tableSelect"
|
|
|
|
|
:destroy-req-opt="select"
|
|
|
|
|
:table-item="table"
|
|
|
|
|
@detail="
|
|
|
|
|
(row) => {
|
|
|
|
|
$router.push({
|
|
|
|
|
path: $route.path + '/detail/' + row.id,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
@editor="
|
|
|
|
|
@editor="
|
|
|
|
|
(row) => {
|
|
|
|
|
$refs['dialog'].setId(row.id);
|
|
|
|
|
$refs['dialog'].setType('editor');
|
|
|
|
|
$refs['dialog'].show();
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<template #callback="{ row }">
|
|
|
|
|
<Button size="small" type="primary" @click="$refs['callbackList'].setId(row.id),$refs['callbackList'].show()">反馈查看</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
>
|
|
|
|
|
<template #callback="{ row }">
|
|
|
|
|
<Button size="small" type="primary" @click="$refs['callbackList'].setId(row.id),$refs['callbackList'].show()">反馈查看</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<callbackList ref="callbackList"></callbackList>
|
|
|
|
|
</div>
|
|
|
|
|
@ -911,6 +924,10 @@ export default {
|
|
|
|
|
filter,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
treeHeight () {
|
|
|
|
|
return (this.$refs['xyTable']?.tableHeight + 36 || 630) + 'px'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.window.width = screen.availWidth * 0.95
|
|
|
|
|
|