You need to sign in or sign up before continuing.
hookehuyr

树形组件只读判断

<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-14 14:56:35
* @LastEditTime: 2024-06-14 16: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(() => {
......
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-14 10:04:24
* @LastEditTime: 2024-06-14 16: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",
......