Skip to content

Commit 70f0575

Browse files
author
hikki
committed
v4.0
1 parent cefa782 commit 70f0575

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

resources/assets/component.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,11 +1775,9 @@ window.ComponentCascadeLine = class {
17751775
this.panel(`<span class="dlp-text title" title="${data.val}">${data.val}</span> 详情`);
17761776
let object = this;
17771777
_component.request(this.URL + '/' + data.key, 'GET', {}, function (response) {
1778-
object.panelContent(response, data, object.URL, 'POST', (response) => {
1779-
_component.loading(object.PLANE_BODY, true);
1780-
let fragment = document.createRange().createContextualFragment(response);
1781-
object.PLANE_BODY.appendChild(fragment);
1782-
});
1778+
_component.loading(object.PLANE_BODY, true);
1779+
let fragment = document.createRange().createContextualFragment(response);
1780+
object.PLANE_BODY.appendChild(fragment);
17831781
});
17841782
}
17851783

src/Traits/CascadeLineTrait.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public function index(Content $content)
3636
*/
3737
abstract function migrate();
3838

39+
/**
40+
* detail详情查看界面
41+
* @param $id
42+
* @param Content $content
43+
* @return mixed
44+
*/
45+
abstract function show($id, Content $content);
46+
3947
public function create(Content $content)
4048
{
4149
$formPanel = new FormPanel();

src/Widget/CascadeLine.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function render()
3737
* @param array $options
3838
* options.movable bool 可迁移节点 (迁移该节点与其子集到其他节点下)
3939
* options.exchange bool 可交换节点 (节点与其子节点相互交换)
40+
* options.detail bool 可查看
4041
* options.insert bool 可新增
4142
* options.update bool 可修改
4243
* options.delete bool 可删除
@@ -50,6 +51,7 @@ public static function panel($name,array $list,string $xhr,array $style=[],array
5051
$options = json_encode(array_merge([
5152
'movable' => true,
5253
'exchange' => true,
54+
'detail' => true,
5355
'insert' => true,
5456
'update' => true,
5557
'delete' => true],$options));

0 commit comments

Comments
 (0)