Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
9dbcb696
提交
9dbcb696
authored
11月 03, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改cascader只能选择叶子结点的问题
上级
fa8f85da
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
25 行增加
和
13 行删除
+25
-13
InfoEditDialog.vue
src/views/culturalRelic/components/InfoEditDialog.vue
+3
-0
InfoEditDialog.vue
src/views/display/components/InfoEditDialog.vue
+2
-1
InfoEditDialog.vue
src/views/museum/components/InfoEditDialog.vue
+2
-1
InfoEditDialog.vue
src/views/product/components/InfoEditDialog.vue
+2
-2
DataEditDialog.vue
src/views/role/components/DataEditDialog.vue
+1
-1
InfoEditDialog.vue
src/views/user/components/InfoEditDialog.vue
+13
-6
InfoEditDialog.vue
src/views/virtual/components/InfoEditDialog.vue
+2
-2
没有找到文件。
src/views/culturalRelic/components/InfoEditDialog.vue
浏览文件 @
9dbcb696
...
...
@@ -408,12 +408,14 @@ export default {
value
:
"value"
,
label
:
"label"
,
children
:
"children"
,
checkStrictly
:
true
,
},
culturalRelicTextureProps
:
{
value
:
"value"
,
label
:
"label"
,
children
:
"children"
,
checkStrictly
:
true
,
},
dialogVisible
:
false
,
...
...
@@ -422,6 +424,7 @@ export default {
value
:
"id"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
rules
:
{
...
...
src/views/display/components/InfoEditDialog.vue
浏览文件 @
9dbcb696
...
...
@@ -562,13 +562,14 @@ export default {
value
:
"id"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
culturalRegionProps
:
{
value
:
"code"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionTree
:
[],
rules
:
{
...
...
src/views/museum/components/InfoEditDialog.vue
浏览文件 @
9dbcb696
...
...
@@ -201,13 +201,14 @@ export default {
value
:
"id"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionOptionProps
:
{
value
:
"code"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionTree
:
[],
status
:
true
,
...
...
src/views/product/components/InfoEditDialog.vue
浏览文件 @
9dbcb696
...
...
@@ -179,13 +179,13 @@ export default {
value
:
"id"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionOptionProps
:
{
value
:
"code"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionTree
:
[],
status
:
true
,
...
...
src/views/role/components/DataEditDialog.vue
浏览文件 @
9dbcb696
...
...
@@ -103,7 +103,7 @@ export default {
value
:
"id"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
depts
:
[],
//自定义部门
dataScopeData
:
null
,
...
...
src/views/user/components/InfoEditDialog.vue
浏览文件 @
9dbcb696
...
...
@@ -82,7 +82,7 @@
<el-form-item
label=
"所属地区"
:label-width=
"formLabelWidth"
prop=
"
deptId
"
prop=
"
regionCode
"
>
<el-cascader
style=
"width: 100%"
...
...
@@ -113,7 +113,6 @@
import
{
addUser
,
upadateUser
}
from
"@/api/user"
;
import
ManualUploader
from
"@/components/Uploader/ManualUploader.vue"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
uploadFile
}
from
"@/utils/file"
;
export
default
{
name
:
"InfoEditDialog"
,
components
:
{
...
...
@@ -151,10 +150,15 @@ export default {
// 编辑状态
if
(
that
.
dialogForm
.
id
)
{
console
.
log
(
'that.dialogForm'
,
that
.
dialogForm
);
// return
// 回填状态
that
.
status
=
Boolean
(
Number
(
that
.
dialogForm
.
status
));
// 回填部门
that
.
dialogForm
.
deptId
=
[
that
.
dialogForm
.
deptId
];
// that.dialogForm.deptId = [that.dialogForm.deptId];
// debugger
}
else
{
that
.
dialogForm
.
deptId
=
[];
}
},
immediate
:
true
,
...
...
@@ -222,13 +226,13 @@ export default {
value
:
"id"
,
label
:
"label"
,
children
:
"children"
,
checkStrictly
:
true
,
},
culturalRegionProps
:
{
value
:
"code"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionTree
:
[],
rules
:
{
...
...
@@ -250,6 +254,7 @@ export default {
],
deptId
:
[{
required
:
true
,
message
:
"请输入部门"
,
trigger
:
"change"
}],
},
value
:
[],
};
},
methods
:
{
...
...
@@ -270,8 +275,10 @@ export default {
params
.
deptId
=
params
.
deptId
[
params
.
deptId
.
length
-
1
];
}
if
(
params
.
regionCode
instanceof
Array
)
{
params
.
regionCode
=
params
.
deptId
[
params
.
regionCode
.
length
-
1
];
params
.
regionCode
=
params
.
regionCode
[
params
.
regionCode
.
length
-
1
];
}
// console.log('params',params);
// return;
if
(
params
.
id
)
{
let
res
=
await
upadateUser
(
params
);
...
...
src/views/virtual/components/InfoEditDialog.vue
浏览文件 @
9dbcb696
...
...
@@ -194,13 +194,13 @@ export default {
value
:
"id"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionOptionProps
:
{
value
:
"code"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
},
regionTree
:
[],
status
:
true
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论