Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fc366f18
authored
Apr 23, 2023
by
xingyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: type warn
parent
6b7d092c
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
27 additions
and
21 deletions
+27
-21
src/views/bpm/definition/index.vue
+1
-1
src/views/bpm/group/UserGroupForm.vue
+1
-1
src/views/bpm/group/index.vue
+2
-1
src/views/bpm/model/editor/index.vue
+1
-1
src/views/bpm/model/index.vue
+1
-1
src/views/bpm/oa/leave/detail.vue
+1
-1
src/views/bpm/processInstance/create/index.vue
+1
-1
src/views/infra/build/index.vue
+6
-4
src/views/infra/codegen/PreviewCode.vue
+8
-7
src/views/system/dict/data/DictDataForm.vue
+2
-0
src/views/system/notify/template/NotifyTemplateSendForm.vue
+2
-2
src/views/system/post/PostForm.vue
+1
-1
No files found.
src/views/bpm/definition/index.vue
View file @
fc366f18
...
...
@@ -87,7 +87,7 @@
<MyProcessViewer
key=
"designer"
v-model=
"bpmnXML"
:value=
"bpmnXML"
:value=
"bpmnXML
as any
"
v-bind=
"bpmnControlForm"
:prefix=
"bpmnControlForm.prefix"
/>
...
...
src/views/bpm/group/UserGroupForm.vue
View file @
fc366f18
...
...
@@ -68,7 +68,7 @@ const formRules = reactive({
status
:
[{
required
:
true
,
message
:
'状态不能为空'
,
trigger
:
'blur'
}]
})
const
formRef
=
ref
()
// 表单 Ref
const
userList
=
ref
([])
// 用户列表
const
userList
=
ref
<
any
[]
>
([])
// 用户列表
/** 打开弹窗 */
const
open
=
async
(
type
:
string
,
id
?:
number
)
=>
{
...
...
src/views/bpm/group/index.vue
View file @
fc366f18
...
...
@@ -117,6 +117,7 @@ import { dateFormatter } from '@/utils/formatTime'
import
*
as
UserGroupApi
from
'@/api/bpm/userGroup'
import
*
as
UserApi
from
'@/api/system/user'
import
UserGroupForm
from
'./UserGroupForm.vue'
import
{
UserVO
}
from
'@/api/system/user'
const
message
=
useMessage
()
// 消息弹窗
const
{
t
}
=
useI18n
()
// 国际化
...
...
@@ -131,7 +132,7 @@ const queryParams = reactive({
createTime
:
[]
})
const
queryFormRef
=
ref
()
// 搜索的表单
const
userList
=
ref
([])
// 用户列表
const
userList
=
ref
<
UserVO
[]
>
([])
// 用户列表
/** 查询列表 */
const
getList
=
async
()
=>
{
...
...
src/views/bpm/model/editor/index.vue
View file @
fc366f18
...
...
@@ -16,7 +16,7 @@
<!-- 流程属性器,负责编辑每个流程节点的属性 -->
<MyProcessPenal
key=
"penal"
:bpmnModeler=
"modeler"
:bpmnModeler=
"modeler
as any
"
:prefix=
"controlForm.prefix"
class=
"process-panel"
:model=
"model"
...
...
src/views/bpm/model/index.vue
View file @
fc366f18
...
...
@@ -219,7 +219,7 @@
<MyProcessViewer
key=
"designer"
v-model=
"bpmnXML"
:value=
"bpmnXML"
:value=
"bpmnXML
as any
"
v-bind=
"bpmnControlForm"
:prefix=
"bpmnControlForm.prefix"
/>
...
...
src/views/bpm/oa/leave/detail.vue
View file @
fc366f18
...
...
@@ -28,7 +28,7 @@ const props = defineProps({
id
:
propTypes
.
number
.
def
(
undefined
)
})
const
detailLoading
=
ref
(
false
)
// 表单的加载中
const
detailData
=
ref
({})
// 详情数据
const
detailData
=
ref
<
any
>
({})
// 详情数据
const
queryId
=
query
.
id
as
unknown
as
number
// 从 URL 传递过来的 id 编号
/** 获得数据 */
...
...
src/views/bpm/processInstance/create/index.vue
View file @
fc366f18
...
...
@@ -43,7 +43,7 @@
</el-col>
</el-card>
<!-- 流程图预览 -->
<ProcessInstanceBpmnViewer
:bpmn-xml=
"bpmnXML"
/>
<ProcessInstanceBpmnViewer
:bpmn-xml=
"bpmnXML
as any
"
/>
</ContentWrap>
</template>
<
script
setup
lang=
"ts"
name=
"BpmProcessInstanceCreate"
>
...
...
src/views/infra/build/index.vue
View file @
fc366f18
...
...
@@ -33,6 +33,12 @@
import
FcDesigner
from
'@form-create/designer'
import
{
useClipboard
}
from
'@vueuse/core'
import
{
isString
}
from
'@/utils/is'
import
hljs
from
'highlight.js'
// 导入代码高亮文件
import
'highlight.js/styles/github.css'
// 导入代码高亮样式
import
xml
from
'highlight.js/lib/languages/java'
import
json
from
'highlight.js/lib/languages/json'
const
{
t
}
=
useI18n
()
// 国际化
const
message
=
useMessage
()
// 消息
...
...
@@ -112,10 +118,6 @@ const copy = async (text: string) => {
/**
* 代码高亮
*/
import
hljs
from
'highlight.js'
// 导入代码高亮文件
import
'highlight.js/styles/github.css'
// 导入代码高亮样式
import
xml
from
'highlight.js/lib/languages/java'
import
json
from
'highlight.js/lib/languages/json'
const
highlightedCode
=
(
code
)
=>
{
// 处理语言和代码
let
language
=
'json'
...
...
src/views/infra/codegen/PreviewCode.vue
View file @
fc366f18
...
...
@@ -59,6 +59,14 @@ import { useClipboard } from '@vueuse/core'
import
{
handleTree2
}
from
'@/utils/tree'
import
*
as
CodegenApi
from
'@/api/infra/codegen'
import
hljs
from
'highlight.js'
// 导入代码高亮文件
import
'highlight.js/styles/github.css'
// 导入代码高亮样式
import
java
from
'highlight.js/lib/languages/java'
import
xml
from
'highlight.js/lib/languages/java'
import
javascript
from
'highlight.js/lib/languages/javascript'
import
sql
from
'highlight.js/lib/languages/sql'
import
typescript
from
'highlight.js/lib/languages/typescript'
const
{
t
}
=
useI18n
()
// 国际化
const
message
=
useMessage
()
// 消息弹窗
...
...
@@ -184,13 +192,6 @@ const copy = async (text: string) => {
/**
* 代码高亮
*/
import
hljs
from
'highlight.js'
// 导入代码高亮文件
import
'highlight.js/styles/github.css'
// 导入代码高亮样式
import
java
from
'highlight.js/lib/languages/java'
import
xml
from
'highlight.js/lib/languages/java'
import
javascript
from
'highlight.js/lib/languages/javascript'
import
sql
from
'highlight.js/lib/languages/sql'
import
typescript
from
'highlight.js/lib/languages/typescript'
const
highlightedCode
=
(
item
)
=>
{
const
language
=
item
.
filePath
.
substring
(
item
.
filePath
.
lastIndexOf
(
'.'
)
+
1
)
const
result
=
hljs
.
highlight
(
language
,
item
.
code
||
''
,
true
)
...
...
src/views/system/dict/data/DictDataForm.vue
View file @
fc366f18
...
...
@@ -122,7 +122,9 @@ const open = async (type: string, id?: number, dictType?: string) => {
dialogTitle
.
value
=
t
(
'action.'
+
type
)
formType
.
value
=
type
resetForm
()
if
(
dictType
)
{
formData
.
value
.
dictType
=
dictType
}
// 修改时,设置数据
if
(
id
)
{
formLoading
.
value
=
true
...
...
src/views/system/notify/template/NotifyTemplateSendForm.vue
View file @
fc366f18
...
...
@@ -102,7 +102,7 @@ const submitForm = async () => {
// 提交请求
formLoading
.
value
=
true
try
{
const
data
=
formData
.
value
as
SmsTemplateApi
.
SendSmsReqVO
const
data
=
formData
.
value
as
unknown
as
SmsTemplateApi
.
SendSmsReqVO
const
logId
=
await
SmsTemplateApi
.
sendSms
(
data
)
if
(
logId
)
{
message
.
success
(
'提交发送成功!发送结果,见发送日志编号:'
+
logId
)
...
...
@@ -121,7 +121,7 @@ const resetForm = () => {
mobile
:
''
,
templateCode
:
''
,
templateParams
:
new
Map
()
}
}
as
any
formRef
.
value
?.
resetFields
()
}
</
script
>
src/views/system/post/PostForm.vue
View file @
fc366f18
...
...
@@ -117,7 +117,7 @@ const resetForm = () => {
sort
:
undefined
,
status
:
CommonStatusEnum
.
ENABLE
,
remark
:
''
}
}
as
any
formRef
.
value
?.
resetFields
()
}
</
script
>
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