档案多维度分类管理功能
This commit is contained in:
parent
42759b3574
commit
3e4c8c7a08
|
|
@ -62,7 +62,7 @@ export default {
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: '档案相关类型',
|
label: '档案相关类型',
|
||||||
prop: 'pid', //该列对应的数据字段名(即后端返回或提交时使用的 key)。
|
prop: 'fileRelatedId', //该列对应的数据字段名(即后端返回或提交时使用的 key)。
|
||||||
type: 'select', //指定该字段在表单中的输入类型为“下拉选择框”
|
type: 'select', //指定该字段在表单中的输入类型为“下拉选择框”
|
||||||
dicUrl: '/blade-system/system/dict/data/type', // 接口地址
|
dicUrl: '/blade-system/system/dict/data/type', // 接口地址
|
||||||
dicMethod: 'post', // 指定为 POST 请求
|
dicMethod: 'post', // 指定为 POST 请求
|
||||||
|
|
@ -96,7 +96,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '维度',
|
label: '维度',
|
||||||
prop: 'pid', //该列对应的数据字段名(即后端返回或提交时使用的 key)。
|
prop: 'fileRelatedId', //该列对应的数据字段名(即后端返回或提交时使用的 key)。
|
||||||
type: 'select', //指定该字段在表单中的输入类型为“下拉选择框”
|
type: 'select', //指定该字段在表单中的输入类型为“下拉选择框”
|
||||||
dicUrl: '/blade-system/system/dict/data/type', // 接口地址
|
dicUrl: '/blade-system/system/dict/data/type', // 接口地址
|
||||||
dicMethod: 'post', // 指定为 POST 请求
|
dicMethod: 'post', // 指定为 POST 请求
|
||||||
|
|
@ -231,7 +231,8 @@ export default {
|
||||||
},
|
},
|
||||||
beforeOpen(done, type) {
|
beforeOpen(done, type) {
|
||||||
if (['edit', 'view'].includes(type)) {
|
if (['edit', 'view'].includes(type)) {
|
||||||
detail(this.form.id).then(res => {
|
let data = {id:this.form.id};
|
||||||
|
detail(data).then(res => {
|
||||||
this.form = res.data.data;
|
this.form = res.data.data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue