Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
You need to sign in or sign up before continuing.
Authored by
hookehuyr
2024-06-14 16:07:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
08378c356209693a7a13e723bb99d6be41c200ed
08378c35
1 parent
bef59e5e
树形组件只读判断
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
19 deletions
src/components/OrgPickerField/MyComponent.vue
src/views/index.vue
src/components/OrgPickerField/MyComponent.vue
View file @
08378c3
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-14 1
4:56:35
* @LastEditTime: 2024-06-14 1
6:06:58
* @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue
* @Description: 树形组件
-->
...
...
@@ -271,6 +271,8 @@ onMounted(async () => {
});
const openTree = () => {
if (props.component_props.readonly) return false; // 只读判断
// 打开弹窗
showPopover.value = true;
// 获取数据
nextTick(() => {
...
...
src/views/index.vue
View file @
08378c3
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-14 1
0:04:24
* @LastEditTime: 2024-06-14 1
6:01:58
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -309,23 +309,6 @@ onMounted(async () => {
};
}
// TODO:待完善,集合组保存的字段和值怎么处理,都是单条数据都要合并到相应的 group_field_name 下面?
// page_form.unshift({
// data_type : "text",
// default : '',
// // default : '[{ "id": 107691, "name": "插花组", "type": "dept" }, { "id": 137902, "name": "大道大商营员组长", "type": "role" },{ "id": 107707, "name": "场地组长", "type": "user" }]',
// disabled : false,
// field_id : 1414832,
// field_name : "field_4",
// index : 41,
// interaction_type : "h5edit",
// label : "树形选择器",
// name : "name_41",
// placeholder : "请输入",
// readonly : false,
// required : true,
// tag : "org_picker",
// unique : false,
// });
// page_form.unshift({
// data_type : "text",
...
...
Please
register
or
login
to post a comment