Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 30b5f84a
authored
Dec 14, 2023
by
liuyong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.97.176.204:19000/wangwansu/iact_jiagou_drowio
2 parents
bde79a56
1178a3e0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
308 additions
and
103 deletions
src/views/archiEleRela/index.vue
src/views/archiViewConfig/index.vue
src/views/metaModelDic/pages/page1.vue
src/views/metaModelDic/pages/page2.vue
src/views/metaModelDic/pages/page3.vue
src/views/archiEleRela/index.vue
View file @
30b5f84
...
@@ -67,10 +67,10 @@
...
@@ -67,10 +67,10 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<el-button
icon=
"el-icon-view"
size=
"mini"
@
click=
"operate('view',scope.row)"
>
查看
</el-button>
<el-button
icon=
"el-icon-view"
size=
"mini"
@
click=
"operate('view',scope.row)"
>
查看
</el-button>
<!--
<el-button
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
-->
<!--
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
-->
<el-button
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('pushEdit',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('pushEdit',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
:class=
"scope.row.state != 1 ? '':'stopBtn'"
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2
"
>
删除
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'delBtn'"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state == 1
"
>
删除
</el-button>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -407,6 +407,9 @@ export default {
...
@@ -407,6 +407,9 @@ export default {
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
else
{
}
else
{
...
@@ -416,6 +419,9 @@ export default {
...
@@ -416,6 +419,9 @@ export default {
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -428,6 +434,9 @@ export default {
...
@@ -428,6 +434,9 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
else
{
}
else
{
...
@@ -437,29 +446,49 @@ export default {
...
@@ -437,29 +446,49 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
}
else
if
(
type
==
"pushEdit"
)
{
}
else
if
(
type
==
"pushEdit"
)
{
// 编辑发布
// 编辑发布
this
.
formData
=
item
this
.
$confirm
(
"确认发布吗"
,
"提示"
,
{
this
.
formData
.
state
=
1
;
confirmButtonText
:
"确定"
,
getJGYSGLUpdate
(
this
.
formData
).
then
(
res
=>
{
cancelButtonText
:
"取消"
,
if
(
res
.
code
==
200
)
{
type
:
"warning"
this
.
$message
.
success
(
"发布成功"
);
}).
then
(()
=>
{
this
.
add_dialog
=
false
;
this
.
formData
=
item
this
.
getList
();
this
.
formData
.
state
=
1
;
}
getJGYSGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"发布成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"stop"
)
{
}
else
if
(
type
==
"stop"
)
{
// 停用
// 停用
this
.
formData
=
item
;
this
.
$confirm
(
"确认停用吗"
,
"提示"
,
{
this
.
formData
.
state
=
0
;
confirmButtonText
:
"确定"
,
getJGYSGLUpdate
(
this
.
formData
).
then
(
res
=>
{
cancelButtonText
:
"取消"
,
if
(
res
.
code
==
200
)
{
type
:
"warning"
this
.
$message
.
success
(
"停用成功"
);
}).
then
(()
=>
{
this
.
getList
();
this
.
formData
=
item
;
}
this
.
formData
.
state
=
0
;
getJGYSGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"停用成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"del"
)
{
}
else
if
(
type
==
"del"
)
{
// 删除
// 删除
...
@@ -473,6 +502,8 @@ export default {
...
@@ -473,6 +502,8 @@ export default {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
$message
.
success
(
"删除成功"
);
this
.
getList
();
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -490,11 +521,20 @@ export default {
...
@@ -490,11 +521,20 @@ export default {
params
.
eleRelaId
.
push
(
item
.
eleRelaId
)
params
.
eleRelaId
.
push
(
item
.
eleRelaId
)
})
})
getJGYSGLUpdateBatch
(
params
).
then
(
res
=>
{
this
.
$confirm
(
"确认批量发布吗"
,
"提示"
,
{
if
(
res
.
code
==
200
)
{
confirmButtonText
:
"确定"
,
this
.
$message
.
success
(
"批量发布成功"
);
cancelButtonText
:
"取消"
,
this
.
getList
();
type
:
"warning"
}
}).
then
(()
=>
{
getJGYSGLUpdateBatch
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"批量发布成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
}
},
},
...
@@ -719,6 +759,16 @@ export default {
...
@@ -719,6 +759,16 @@ export default {
height
:
30px
;
height
:
30px
;
}
}
}
}
.editBtn
{
color
:
#0D867F
;
}
.delBtn
{
color
:
#DB6209
;
}
.stopBtn
{
color
:
#E7A20E
;
}
}
}
.el-pagination
{
.el-pagination
{
margin-top
:
50px
;
margin-top
:
50px
;
...
...
src/views/archiViewConfig/index.vue
View file @
30b5f84
...
@@ -67,10 +67,10 @@
...
@@ -67,10 +67,10 @@
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<el-button
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('pushEdit',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('pushEdit',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
:class=
"scope.row.state != 1 ? '':'stopBtn'"
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
<el-button
:class=
"scope.row.state != 2 ? '':'delBtn'"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -409,6 +409,9 @@ export default {
...
@@ -409,6 +409,9 @@ export default {
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
else
{
}
else
{
...
@@ -418,6 +421,9 @@ export default {
...
@@ -418,6 +421,9 @@ export default {
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -434,6 +440,9 @@ export default {
...
@@ -434,6 +440,9 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
else
{
}
else
{
...
@@ -443,42 +452,66 @@ export default {
...
@@ -443,42 +452,66 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
}
else
if
(
type
==
"pushEdit"
)
{
}
else
if
(
type
==
"pushEdit"
)
{
// 编辑发布
// 编辑发布
this
.
formData
=
item
this
.
$confirm
(
"确认发布吗"
,
"提示"
,
{
this
.
formData
.
state
=
1
;
confirmButtonText
:
"确定"
,
getJGSTPZUpdate
(
this
.
formData
).
then
(
res
=>
{
cancelButtonText
:
"取消"
,
if
(
res
.
code
==
200
)
{
type
:
"warning"
this
.
$message
.
success
(
"发布成功"
);
}).
then
(()
=>
{
this
.
add_dialog
=
false
;
this
.
formData
=
item
this
.
getList
();
this
.
formData
.
state
=
1
;
}
getJGSTPZUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"stop"
)
{
}
else
if
(
type
==
"stop"
)
{
// 停用
// 停用
this
.
formData
=
item
;
this
.
$confirm
(
"确认停用吗"
,
"提示"
,
{
this
.
formData
.
state
=
0
;
confirmButtonText
:
"确定"
,
getJGSTPZUpdate
(
this
.
formData
).
then
(
res
=>
{
cancelButtonText
:
"取消"
,
if
(
res
.
code
==
200
)
{
type
:
"warning"
this
.
$message
.
success
(
"停用成功"
);
}).
then
(()
=>
{
this
.
getList
();
this
.
formData
=
item
;
}
this
.
formData
.
state
=
0
;
getJGSTPZUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"停用成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"del"
)
{
}
else
if
(
type
==
"del"
)
{
// 删除
// 删除
this
.
formData
=
item
;
this
.
$confirm
(
"确认删除吗"
,
"提示"
,
{
this
.
$confirm
(
"确认删除吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
formData
=
item
;
getJGSTPZDel
(
this
.
formData
).
then
(
res
=>
{
getJGSTPZDel
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
$message
.
success
(
"删除成功"
);
this
.
getList
();
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -495,11 +528,21 @@ export default {
...
@@ -495,11 +528,21 @@ export default {
this
.
selectList
.
map
(
item
=>
{
this
.
selectList
.
map
(
item
=>
{
params
.
viewId
.
push
(
item
.
viewId
)
params
.
viewId
.
push
(
item
.
viewId
)
})
})
getJGSTPZUpdateBatch
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$confirm
(
"确认批量发布吗"
,
"提示"
,
{
this
.
$message
.
success
(
"批量发布成功"
);
confirmButtonText
:
"确定"
,
this
.
getList
();
cancelButtonText
:
"取消"
,
}
type
:
"warning"
}).
then
(()
=>
{
getJGSTPZUpdateBatch
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"批量发布成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
}
},
},
...
@@ -654,6 +697,15 @@ export default {
...
@@ -654,6 +697,15 @@ export default {
.table_container
{
.table_container
{
width
:
97%
;
width
:
97%
;
margin-top
:
20px
;
margin-top
:
20px
;
.editBtn{
color
:
#0D867F
;
}
.delBtn
{
color
:
#DB6209
;
}
.stopBtn
{
color
:
#E7A20E
;
}
}
}
.el-pagination
{
.el-pagination
{
margin-top
:
50px
;
margin-top
:
50px
;
...
...
src/views/metaModelDic/pages/page1.vue
View file @
30b5f84
...
@@ -63,9 +63,9 @@
...
@@ -63,9 +63,9 @@
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<el-button
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('pushEdit',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('push',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
:class=
"scope.row.state != 1 ? '':'stopBtn'"
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<!--
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
-->
<!--
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -388,7 +388,6 @@ export default {
...
@@ -388,7 +388,6 @@ export default {
this
.
add_dialog
=
true
;
this
.
add_dialog
=
true
;
this
.
title
=
"编辑字典"
;
this
.
title
=
"编辑字典"
;
this
.
formData
=
item
;
this
.
formData
=
item
;
console
.
log
(
this
.
formData
);
this
.
getProyList
(
item
);
this
.
getProyList
(
item
);
}
else
if
(
type
==
"create"
)
{
}
else
if
(
type
==
"create"
)
{
this
.
formData
.
state
=
2
;
this
.
formData
.
state
=
2
;
...
@@ -399,6 +398,9 @@ export default {
...
@@ -399,6 +398,9 @@ export default {
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -411,9 +413,18 @@ export default {
...
@@ -411,9 +413,18 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
else
{
}
}
else
if
(
type
==
"pushEdit"
)
{
this
.
$confirm
(
"确认发布吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
formData
=
item
;
this
.
formData
=
item
;
this
.
formData
.
state
=
1
;
this
.
formData
.
state
=
1
;
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
...
@@ -421,18 +432,31 @@ export default {
...
@@ -421,18 +432,31 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}).
catch
(()
=>
{
});
}
else
if
(
type
==
"stop"
)
{
}
else
if
(
type
==
"stop"
)
{
// 停用
// 停用
this
.
formData
=
item
;
this
.
$confirm
(
"确认停用吗"
,
"提示"
,
{
this
.
formData
.
state
=
0
;
confirmButtonText
:
"确定"
,
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
cancelButtonText
:
"取消"
,
if
(
res
.
code
==
200
)
{
type
:
"warning"
this
.
$message
.
success
(
"停用成功"
);
}).
then
(()
=>
{
this
.
getList
();
this
.
formData
=
item
;
}
this
.
formData
.
state
=
0
;
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"停用成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"del"
)
{
}
else
if
(
type
==
"del"
)
{
// 删除
// 删除
...
@@ -542,6 +566,7 @@ export default {
...
@@ -542,6 +566,7 @@ export default {
this
.
add_dialog2
=
false
;
this
.
add_dialog2
=
false
;
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
}
else
{
this
.
add_dialog2
=
false
;
this
.
$message
.
error
(
res
.
msg
);
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
...
@@ -564,6 +589,9 @@ export default {
...
@@ -564,6 +589,9 @@ export default {
this
.
$message
.
success
(
"新建成功"
);
this
.
$message
.
success
(
"新建成功"
);
this
.
add_dialog2
=
false
;
this
.
add_dialog2
=
false
;
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
this
.
add_dialog2
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -579,8 +607,11 @@ export default {
...
@@ -579,8 +607,11 @@ export default {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
$message
.
success
(
"删除成功"
);
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}).
catch
(()
=>
{
});
});
break
;
break
;
}
}
...
@@ -727,6 +758,15 @@ export default {
...
@@ -727,6 +758,15 @@ export default {
.table_container
{
.table_container
{
width
:
97%
;
width
:
97%
;
margin-top
:
20px
;
margin-top
:
20px
;
.editBtn{
color
:
#0D867F
;
}
.delBtn
{
color
:
#DB6209
;
}
.stopBtn
{
color
:
#E7A20E
;
}
}
}
.el-pagination
{
.el-pagination
{
margin-top
:
50px
;
margin-top
:
50px
;
...
...
src/views/metaModelDic/pages/page2.vue
View file @
30b5f84
...
@@ -57,9 +57,9 @@
...
@@ -57,9 +57,9 @@
<el-table-column
label=
"操作"
width=
"400"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"400"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<el-button
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('pushEdit',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('push',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
:class=
"scope.row.state != 1 ? '':'stopBtn'"
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<!--
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
-->
<!--
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -379,15 +379,9 @@ export default {
...
@@ -379,15 +379,9 @@ export default {
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
}
else
{
});
}
else
{
// 新建保存
getYMXZDGLAdd
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
(
);
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -400,9 +394,18 @@ export default {
...
@@ -400,9 +394,18 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
else
{
}
}
else
if
(
type
==
"pushEdit"
)
{
this
.
$confirm
(
"确认发布吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
formData
=
item
;
this
.
formData
=
item
;
this
.
formData
.
state
=
1
;
this
.
formData
.
state
=
1
;
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
...
@@ -410,18 +413,31 @@ export default {
...
@@ -410,18 +413,31 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}).
catch
(()
=>
{
});
}
else
if
(
type
==
"stop"
)
{
}
else
if
(
type
==
"stop"
)
{
// 停用
// 停用
this
.
formData
=
item
;
this
.
$confirm
(
"确认停用吗"
,
"提示"
,
{
this
.
formData
.
state
=
0
;
confirmButtonText
:
"确定"
,
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
cancelButtonText
:
"取消"
,
if
(
res
.
code
==
200
)
{
type
:
"warning"
this
.
$message
.
success
(
"停用成功"
);
}).
then
(()
=>
{
this
.
getList
();
this
.
formData
=
item
;
}
this
.
formData
.
state
=
0
;
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"停用成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"del"
)
{
}
else
if
(
type
==
"del"
)
{
// 删除
// 删除
...
@@ -508,6 +524,7 @@ export default {
...
@@ -508,6 +524,7 @@ export default {
this
.
add_dialog2
=
false
;
this
.
add_dialog2
=
false
;
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
}
else
{
this
.
add_dialog2
=
false
;
this
.
$message
.
error
(
res
.
msg
);
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
...
@@ -530,6 +547,9 @@ export default {
...
@@ -530,6 +547,9 @@ export default {
this
.
$message
.
success
(
"新建成功"
);
this
.
$message
.
success
(
"新建成功"
);
this
.
add_dialog2
=
false
;
this
.
add_dialog2
=
false
;
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
this
.
add_dialog2
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -545,8 +565,11 @@ export default {
...
@@ -545,8 +565,11 @@ export default {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
$message
.
success
(
"删除成功"
);
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}).
catch
(()
=>
{
});
});
break
;
break
;
}
}
...
@@ -692,6 +715,15 @@ export default {
...
@@ -692,6 +715,15 @@ export default {
.table_container
{
.table_container
{
width
:
97%
;
width
:
97%
;
margin-top
:
20px
;
margin-top
:
20px
;
.editBtn{
color
:
#0D867F
;
}
.delBtn
{
color
:
#DB6209
;
}
.stopBtn
{
color
:
#E7A20E
;
}
}
}
.el-pagination
{
.el-pagination
{
margin-top
:
50px
;
margin-top
:
50px
;
...
...
src/views/metaModelDic/pages/page3.vue
View file @
30b5f84
...
@@ -60,9 +60,9 @@
...
@@ -60,9 +60,9 @@
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<el-button
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-edit"
size=
"mini"
@
click=
"operate('edit',scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
:class=
"scope.row.state == 1 ? '':'editBtn'"
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('pushEdit',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
icon=
"el-icon-upload2"
size=
"mini"
@
click=
"operate('push',scope.row)"
:disabled=
"scope.row.state == 1"
>
发布
</el-button>
<el-button
:class=
"scope.row.state != 1 ? '':'stopBtn'"
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"operate('stop',scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<!--
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
-->
<!--
<el-button
icon=
"el-icon-delete"
size=
"mini"
@
click=
"operate('del',scope.row)"
:disabled=
"scope.row.state != 2"
>
删除
</el-button>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -444,15 +444,9 @@ export default {
...
@@ -444,15 +444,9 @@ export default {
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
}
else
{
});
}
else
{
// 新建保存
getYMXZDGLAdd
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"保存成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
(
);
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -465,9 +459,18 @@ export default {
...
@@ -465,9 +459,18 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
else
{
}
}
else
if
(
type
==
"pushEdit"
)
{
this
.
$confirm
(
"确认发布吗"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
formData
=
item
;
this
.
formData
=
item
;
this
.
formData
.
state
=
1
;
this
.
formData
.
state
=
1
;
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
...
@@ -475,18 +478,31 @@ export default {
...
@@ -475,18 +478,31 @@ export default {
this
.
$message
.
success
(
"发布成功"
);
this
.
$message
.
success
(
"发布成功"
);
this
.
add_dialog
=
false
;
this
.
add_dialog
=
false
;
this
.
getList
();
this
.
getList
();
}
else
{
this
.
add_dialog
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}).
catch
(()
=>
{
});
}
else
if
(
type
==
"stop"
)
{
}
else
if
(
type
==
"stop"
)
{
// 停用
// 停用
this
.
formData
=
item
;
this
.
$confirm
(
"确认停用吗"
,
"提示"
,
{
this
.
formData
.
state
=
0
;
confirmButtonText
:
"确定"
,
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
cancelButtonText
:
"取消"
,
if
(
res
.
code
==
200
)
{
type
:
"warning"
this
.
$message
.
success
(
"停用成功"
);
}).
then
(()
=>
{
this
.
getList
();
this
.
formData
=
item
;
}
this
.
formData
.
state
=
0
;
getYMXZDGLUpdate
(
this
.
formData
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"停用成功"
);
this
.
getList
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
}).
catch
(()
=>
{
});
});
}
else
if
(
type
==
"del"
)
{
}
else
if
(
type
==
"del"
)
{
// 删除
// 删除
...
@@ -550,7 +566,6 @@ export default {
...
@@ -550,7 +566,6 @@ export default {
this
.
add_dialog2
=
true
;
this
.
add_dialog2
=
true
;
this
.
title2
=
"编辑字典属性"
;
this
.
title2
=
"编辑字典属性"
;
this
.
formData2
=
scopeRow
;
this
.
formData2
=
scopeRow
;
console
.
log
(
this
.
formData2
);
break
;
break
;
// 保存
// 保存
case
'save'
:
case
'save'
:
...
@@ -575,6 +590,7 @@ export default {
...
@@ -575,6 +590,7 @@ export default {
this
.
add_dialog2
=
false
;
this
.
add_dialog2
=
false
;
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
}
else
{
this
.
add_dialog2
=
false
;
this
.
$message
.
error
(
res
.
msg
);
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
...
@@ -597,6 +613,9 @@ export default {
...
@@ -597,6 +613,9 @@ export default {
this
.
$message
.
success
(
"新建成功"
);
this
.
$message
.
success
(
"新建成功"
);
this
.
add_dialog2
=
false
;
this
.
add_dialog2
=
false
;
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
this
.
add_dialog2
=
false
;
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}
}
...
@@ -612,8 +631,11 @@ export default {
...
@@ -612,8 +631,11 @@ export default {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
$message
.
success
(
"删除成功"
);
this
.
getProyList
(
this
.
formData
);
this
.
getProyList
(
this
.
formData
);
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
}
});
});
}).
catch
(()
=>
{
});
});
break
;
break
;
}
}
...
@@ -760,6 +782,15 @@ export default {
...
@@ -760,6 +782,15 @@ export default {
.table_container
{
.table_container
{
width
:
97%
;
width
:
97%
;
margin-top
:
20px
;
margin-top
:
20px
;
.editBtn{
color
:
#0D867F
;
}
.delBtn
{
color
:
#DB6209
;
}
.stopBtn
{
color
:
#E7A20E
;
}
}
}
.el-pagination
{
.el-pagination
{
margin-top
:
50px
;
margin-top
:
50px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment