Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
INET-TWO
web
Commits
207768f4
Commit
207768f4
authored
Aug 23, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改详情页改编号、升版等组件
parent
e5898697
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
96 additions
and
120 deletions
+96
-120
index.vue
...ents/components/DictionaryConversionDisplayName/index.vue
+11
-2
index.vue
...omponents/components/TerminateInternalInterface/index.vue
+2
-2
index.vue
...c/src/privateComponents/components/modifyNumber/index.vue
+64
-100
index.vue
.../src/privateComponents/components/updateVersion/index.vue
+19
-16
No files found.
applications/dee-doc/src/privateComponents/components/DictionaryConversionDisplayName/index.vue
View file @
207768f4
...
@@ -27,9 +27,9 @@ export default {
...
@@ -27,9 +27,9 @@ export default {
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
},
},
dictionariesKey
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
()
=>
''
default
:
()
=>
null
},
},
scope
:
{
scope
:
{
type
:
Object
,
type
:
Object
,
...
@@ -43,6 +43,11 @@ export default {
...
@@ -43,6 +43,11 @@ export default {
},
},
computed
:
{},
computed
:
{},
watch
:
{
watch
:
{
// item(newVal) {
// if (newVal) {
// this.getTypeDictionaries(newVal.key, this.value)
// }
// }
},
},
// 生命周期 - 创建完成(可以访问当前this 实例)
// 生命周期 - 创建完成(可以访问当前this 实例)
created
()
{
created
()
{
...
@@ -62,6 +67,10 @@ export default {
...
@@ -62,6 +67,10 @@ export default {
})
})
this
.
getTypeDictionaries
(
dictCode
,
obj
)
this
.
getTypeDictionaries
(
dictCode
,
obj
)
console
.
log
(
'obj'
,
obj
)
console
.
log
(
'obj'
,
obj
)
return
}
else
if
(
this
.
item
)
{
const
dictCode
=
this
.
item
.
key
.
includes
(
'type'
)
?
'ApplicantType'
:
'DesignPhase'
this
.
getTypeDictionaries
(
dictCode
,
this
.
value
)
}
}
},
},
methods
:
{
methods
:
{
...
...
applications/dee-doc/src/privateComponents/components/TerminateInternalInterface/index.vue
View file @
207768f4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-08-13 16:59:49
* @Date: 2024-08-13 16:59:49
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-08-
19 17:00:52
* @LastEditTime: 2024-08-
22 15:09:44
-->
-->
<
template
>
<
template
>
<div
class=
"TerminateInternalInterface"
>
<div
class=
"TerminateInternalInterface"
>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
/>
/>
<div
class=
"btns"
>
<div
class=
"btns"
>
<el-button
type=
"primary"
class=
"submitBTN"
:disabled=
"!isDisable"
@
click=
"tosubmit"
>
确定
</el-button>
<el-button
type=
"primary"
class=
"submitBTN"
:disabled=
"!isDisable"
@
click=
"tosubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"$emit('cancel')"
>
取消
</el-button>
<el-button
@
click=
"$emit('cancel')"
>
取消
</el-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
applications/dee-doc/src/privateComponents/components/modifyNumber/index.vue
View file @
207768f4
<!--
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-08-16 10:01:47
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-08-22 13:43:58
-->
<
template
>
<
template
>
<dee-form
<div
class=
"modifyNumber-container"
>
v-dee-loading=
"loading"
<el-input
:form=
"form"
v-model=
"value"
:form-data=
"propFormData"
:rows=
"2"
:rules=
"rules"
type=
"textarea"
:form-buttons=
"formButtons"
placeholder=
"请输入新编号"
form-btn-position=
"center"
@
on-submit=
"submit"
@
on-cancel=
"close"
/>
/>
<div
class=
"btns"
>
<el-button
type=
"primary"
class=
"submitBTN"
:disabled=
"!isDisable"
@
click=
"tosubmit"
>
确定
</el-button>
<el-button
type=
""
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -17,116 +26,71 @@ export default {
...
@@ -17,116 +26,71 @@ export default {
name
:
'ModifyNumber'
,
name
:
'ModifyNumber'
,
componentName
:
'改编号'
,
componentName
:
'改编号'
,
props
:
{
props
:
{
dialogShow
:
{
// businessTab
: {
type
:
Boolean
,
// type: Object
,
default
:
()
=>
false
// default: () => null
},
//
},
node
:
{
basicData
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
},
businessTab
:
{
type
:
Object
,
default
:
()
=>
null
}
}
},
},
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
value
:
''
propFormData
:
[{
split
:
3
,
data
:
[
{
key
:
'number'
,
width
:
3
,
component
:
{
name
:
'el-input'
,
type
:
'textarea'
,
rows
:
'2'
,
placeholder
:
'请输入新编号'
}
}
]
}],
formButtons
:
[
{
'text'
:
'确定'
,
'type'
:
'submit'
,
'component'
:
{
'type'
:
'primary'
}
}
},
},
{
computed
:
{
'text'
:
'取消'
,
isDisable
()
{
'type'
:
'cancel'
,
return
this
.
value
'component'
:
{
}
}
],
rules
:
{
},
form
:
{}
}
}
},
},
watch
:
{
watch
:
{
dialogShow
:
{
immediate
:
true
,
handler
:
function
(
flag
)
{
if
(
flag
)
{
this
.
init
()
}
else
{
this
.
clear
()
}
}
}
},
},
// 生命周期 - 创建完成(访问当前this实例)
// 生命周期 - 创建完成(访问当前this实例)
created
()
{},
created
()
{},
// 生命周期 - 挂载完成(访问DOM元素)
// 生命周期 - 挂载完成(访问DOM元素)
mounted
()
{},
mounted
()
{
},
methods
:
{
methods
:
{
submit
()
{
tosubmit
()
{
if
(
this
.
loading
)
{
get
(
`/DxDocument/version/reNameNumber/
${
this
.
basicData
.
id
}
`
,
{
name
:
this
.
basicData
.
name
,
number
:
this
.
value
}).
then
(
res
=>
{
return
this
.
$emit
(
'cancel'
)
}
this
.
$emit
(
'completeEven'
)
this
.
loading
=
true
// this.refresh(res.items)
get
(
`/
${
this
.
modelName
}
/version/reNameNumber/
${
this
.
form
.
id
}
`
,
{
name
:
this
.
form
.
name
,
number
:
this
.
form
.
number
}).
then
(
res
=>
{
this
.
$emit
(
'close'
)
this
.
refresh
(
res
.
items
)
}).
filnally
(()
=>
{
this
.
loading
=
false
})
})
},
},
refresh
(
items
)
{
// refresh(items) {
if
(
!
this
.
businessTab
||
!
items
)
{
// const id = items.id
return
// const subTypeName = items.subTypeName
// const modelName = this.$utils.getModelName4dxClassName(items)
// const newlink = {
// path: `/generalDetail/${id}/${subTypeName}/${modelName}`
// }
// this.businessTab.reload({ type: 'updateVersion', id: items.id }, newlink)
// },
handleCancel
()
{
this
.
value
=
''
this
.
$emit
(
'cancel'
)
}
}
const
id
=
items
.
id
const
subTypeName
=
items
.
subTypeName
const
modelName
=
this
.
$utils
.
getModelName4dxClassName
(
items
)
const
newlink
=
{
path
:
`/generalDetail/
${
id
}
/
${
subTypeName
}
/
${
modelName
}
`
}
this
.
businessTab
.
reload
({
type
:
'updateVersion'
,
id
:
items
.
id
},
newlink
)
},
close
()
{
this
.
$emit
(
'close'
)
},
init
()
{
if
(
this
.
node
&&
this
.
node
.
id
)
{
this
.
form
.
id
=
this
.
node
.
id
this
.
form
.
phaseState
=
this
.
node
.
phaseState
||
''
}
},
clear
()
{
this
.
form
=
{}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
'scss'
scoped
>
.modifyNumber-container
{
height
:
80%
;
.FeatureTypicalcom
{
height
:
calc
(
100%
-
50px
);
}
.btns
{
margin-top
:
20px
;
display
:
flex
;
justify-content
:
center
;
.submitBTN
{
margin-right
:
25px
;
}
}
}
<
style
lang=
"scss"
>
</
style
>
</
style
>
applications/dee-doc/src/privateComponents/components/updateVersion/index.vue
View file @
207768f4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-07-31 14:50:38
* @Date: 2024-07-31 14:50:38
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-08-
13 15:05:20
* @LastEditTime: 2024-08-
23 09:56:57
-->
-->
<
template
>
<
template
>
<dee-form
<dee-form
...
@@ -93,7 +93,7 @@ export default {
...
@@ -93,7 +93,7 @@ export default {
}
}
],
],
rules
:
{
rules
:
{
deleteTyp
e
:
[
phaseStat
e
:
[
{
required
:
true
,
message
:
'请选择阶段'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择阶段'
,
trigger
:
'change'
}
],
],
changeReason
:
[
changeReason
:
[
...
@@ -111,6 +111,7 @@ export default {
...
@@ -111,6 +111,7 @@ export default {
immediate
:
true
,
immediate
:
true
,
handler
:
function
(
val
)
{
handler
:
function
(
val
)
{
if
(
val
)
{
if
(
val
)
{
console
.
log
(
'init'
)
this
.
init
()
this
.
init
()
}
else
{
}
else
{
this
.
clear
()
this
.
clear
()
...
@@ -128,29 +129,31 @@ export default {
...
@@ -128,29 +129,31 @@ export default {
return
return
}
}
this
.
loading
=
true
this
.
loading
=
true
post
(
`/DxDocument/ext/version/
${
this
.
form
.
id
}
/revise`
,
this
.
form
).
then
(
res
=>
{
post
(
`/DxDocument/ext/version/
${
this
.
basicData
.
id
}
/revise`
,
this
.
form
).
then
(
res
=>
{
this
.
$emit
(
'cancel'
)
this
.
$emit
(
'cancel'
)
this
.
refresh
(
res
.
items
)
this
.
$emit
(
'completeEven'
)
}).
filnally
(()
=>
{
}).
filnally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
refresh
(
items
)
{
//
refresh(items) {
if
(
!
this
.
businessTab
||
!
items
)
{
//
if (!this.businessTab || !items) {
return
//
return
}
//
}
const
id
=
items
.
id
//
const id = items.id
const
subTypeName
=
items
.
subTypeName
//
const subTypeName = items.subTypeName
const
modelName
=
this
.
$utils
.
getModelName4dxClassName
(
items
)
//
const modelName = this.$utils.getModelName4dxClassName(items)
const
newlink
=
{
//
const newlink = {
path
:
`/generalDetail/
${
id
}
/
${
subTypeName
}
/
${
modelName
}
`
//
path: `/generalDetail/${id}/${subTypeName}/${modelName}`
}
//
}
this
.
businessTab
.
reload
({
type
:
'updateVersion'
,
id
:
items
.
id
},
newlink
)
//
this.businessTab.reload({ type: 'updateVersion', id: items.id }, newlink)
},
//
},
cancel
()
{
cancel
()
{
this
.
form
=
{}
this
.
$emit
(
'cancel'
)
this
.
$emit
(
'cancel'
)
},
},
init
()
{
init
()
{
console
.
log
(
'this.basicData'
,
this
.
basicData
)
if
(
this
.
basicData
&&
this
.
basicData
.
id
)
{
if
(
this
.
basicData
&&
this
.
basicData
.
id
)
{
this
.
form
.
id
=
this
.
basicData
.
id
this
.
form
.
id
=
this
.
basicData
.
id
this
.
form
.
phaseState
=
this
.
basicData
.
phaseState
||
''
this
.
form
.
phaseState
=
this
.
basicData
.
phaseState
||
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment