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 2c8cab31
authored
Dec 15, 2023
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改六个页面样式,接口
1 parent
de8d224d
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
100 additions
and
25 deletions
src/api/index.js
src/views/archi-ele-list/index.vue
src/views/report-template-fabric/index.vue
src/views/tech-politics-fabric/index.vue
src/views/tech-politics-relative-use/index.vue
src/views/total-archi-property-document/index.vue
src/views/typical-example-manage/index.vue
src/views/typical-example-relative-use/index.vue
src/api/index.js
View file @
2c8cab3
...
...
@@ -160,22 +160,25 @@ export function getJiShuZhengCeJieGouHuaTable(params) {
}
// 技术政策结构化-新增
export
function
addJiShuZhengCeJieGouHuaTable
(
params
)
{
return
ge
t
(
'/kl-tech-policy/create'
,
params
);
return
pos
t
(
'/kl-tech-policy/create'
,
params
);
}
// 技术政策结构化-删除
export
function
deleteJiShuZhengCeJieGouHuaTable
(
params
)
{
return
ge
t
(
'/kl-tech-policy/delete'
,
params
);
return
pos
t
(
'/kl-tech-policy/delete'
,
params
);
}
// 技术政策结构化-编辑
export
function
editJiShuZhengCeJieGouHuaTable
(
params
)
{
return
ge
t
(
'/kl-tech-policy/update'
,
params
);
return
pos
t
(
'/kl-tech-policy/update'
,
params
);
}
// 典型案例库管理-所有下拉值
export
function
getDianXingAnLiSelectData
(
params
)
{
// return post('/shared/vi/dict/gDictByKey', params);
return
post
(
'/dict/gDictByKey'
,
params
);
}
// 典型案例库管理-导出
export
function
exportFileDianXingAnLiSelectData
(
params
)
{
// return download('/knowledge/vi/excel/etTc', params);
return
download
(
'/excel/etTc'
,
params
);
}
// 报告模板结构化-新增,文件上传
...
...
src/views/archi-ele-list/index.vue
View file @
2c8cab3
...
...
@@ -66,7 +66,7 @@
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<el-button
icon=
"el-icon-edit"
type=
"primary"
size=
"mini"
@
click=
"edit(scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
icon=
"el-icon-edit"
type=
"primary"
size=
"mini"
@
click=
"edit
Item
(scope.row)"
:disabled=
"scope.row.state == 1"
>
编辑
</el-button>
<el-button
icon=
"el-icon-upload2"
type=
"primary"
size=
"mini"
@
click=
"releaseItem(scope.row)"
:disabled=
"scope.row.state == 1 "
>
发布
</el-button>
<el-button
class=
"tingYong_btn"
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"stopItem(scope.row)"
:disabled=
"scope.row.state != 1"
>
停用
</el-button>
<el-button
class=
"shanChu_btn"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"deleteItem(scope.row)"
:disabled=
"scope.row.state == 1"
>
删除
</el-button>
...
...
@@ -257,7 +257,7 @@ export default {
return
true
;
//不禁用
}
},
edit
(
row
)
{
//编辑
edit
Item
(
row
)
{
//编辑
this
.
add_dialog
=
true
;
this
.
dialog_let1
=
row
.
elementName
;
this
.
dialog_let2
=
row
.
archiLevelId
;
...
...
@@ -284,7 +284,7 @@ export default {
elementId
:
elementIdArray
,
state
:
1
};
MessageBox
.
confirm
(
'确定
停用
?'
,
'提示'
,
{
MessageBox
.
confirm
(
'确定
发布版本
?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
...
...
src/views/report-template-fabric/index.vue
View file @
2c8cab3
...
...
@@ -383,6 +383,7 @@ export default {
}
.table_container
{
width
:
97%
;
height
:
calc
(
100%
-
40px
);
margin-top
:
20px
;
}
.el-pagination
{
...
...
src/views/tech-politics-fabric/index.vue
View file @
2c8cab3
...
...
@@ -20,9 +20,8 @@
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
状态
</span>
<el-select
v-model=
"searchParams.query_item3"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
label=
"已
发布
"
value=
"1"
></el-option>
<el-option
label=
"已
启用
"
value=
"1"
></el-option>
<el-option
label=
"已停用"
value=
"0"
></el-option>
<el-option
label=
"暂存"
value=
"2"
></el-option>
</el-select>
</div>
</div>
...
...
@@ -68,10 +67,10 @@
<el-table-column
label=
"操作"
width=
"360"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
<el-button
icon=
"el-icon-edit"
type=
"primary"
size=
"mini"
:disabled=
"scope.row.state == 1
"
>
编辑
</el-button>
<el-button
icon=
"el-icon-upload2"
type=
"primary"
size=
"mini"
:disabled=
"scope.row.state == 1
"
>
发布
</el-button>
<el-button
class=
"tingYong_btn"
icon=
"el-icon-remove-outline"
size=
"mini"
:disabled=
"scope.row.state != 1
"
>
停用
</el-button>
<el-button
class=
"shanChu_btn"
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"scope.row.state == 1
"
>
删除
</el-button>
<el-button
icon=
"el-icon-edit"
type=
"primary"
size=
"mini"
@
click=
"editItem(scope.row)
"
>
编辑
</el-button>
<el-button
icon=
"el-icon-upload2"
type=
"primary"
size=
"mini"
@
click=
"releaseItem(scope.row)
"
>
发布
</el-button>
<el-button
class=
"tingYong_btn"
icon=
"el-icon-remove-outline"
size=
"mini"
@
click=
"stopItem(scope.row)
"
>
停用
</el-button>
<el-button
class=
"shanChu_btn"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"deleteItem(scope.row)
"
>
删除
</el-button>
</div>
</
template
>
</el-table-column>
...
...
@@ -130,9 +129,8 @@
</el-form-item>
<el-form-item
label=
"状态:"
prop=
"let6"
style=
"margin-left: 27px;width: 30.5%;"
>
<el-select
v-model=
"ruleForm.let6"
placeholder=
"请选择"
style=
"width: 200px;"
>
<el-option
label=
"已
发布
"
value=
"1"
></el-option>
<el-option
label=
"已
启用
"
value=
"1"
></el-option>
<el-option
label=
"已停用"
value=
"0"
></el-option>
<el-option
label=
"暂存"
value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
class=
"cross1"
label=
"政策描述:"
prop=
"let7"
>
...
...
@@ -208,6 +206,58 @@ export default {
this
.
get_table
();
},
methods
:
{
editItem
(
row
)
{
//编辑
this
.
add_dialog
=
true
;
},
releaseItem
(){
//发布
MessageBox
.
confirm
(
'确定发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
stopItem
(
row
)
{
//停用
MessageBox
.
confirm
(
'确定停用?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
deleteItem
(
row
)
{
//删除
MessageBox
.
confirm
(
'确定删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
ok
()
{
//弹框点击确定
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
...
...
@@ -215,14 +265,27 @@ export default {
const
params
=
{
tpoName
:
this
.
ruleForm
.
let1
,
scope
:
this
.
ruleForm
.
let2
,
tpoName
:
this
.
ruleForm
.
let1
,
tpoName
:
this
.
ruleForm
.
let1
,
tpoName
:
this
.
ruleForm
.
let1
,
tpoName
:
this
.
ruleForm
.
let1
,
tpoName
:
this
.
ruleForm
.
let1
,
tpoName
:
this
.
ruleForm
.
let1
,
deptName
:
this
.
ruleForm
.
let3
,
level
:
this
.
ruleForm
.
let4
,
startTime
:
this
.
ruleForm
.
let5
,
state
:
this
.
ruleForm
.
let6
,
tepContent
:
this
.
ruleForm
.
let7
,
tepRemark
:
this
.
ruleForm
.
let8
,
};
addJiShuZhengCeJieGouHuaTable
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
get_table
();
Message
({
type
:
'success'
,
message
:
'新增成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
})
}
else
{
return
false
;
}
...
...
@@ -266,11 +329,14 @@ export default {
get_table
()
{
//查询表格数据
this
.
loading
=
true
;
getJiShuZhengCeJieGouHuaTable
(
this
.
searchParams
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
;
console
.
log
(
res
)
// this.tableData = res.
}
this
.
tableData
=
res
.
data
.
records
;
// if(res.code == 200) {
// this.loading = false;
// console.log(res)
// // this.tableData = res.
// }
});
},
}
...
...
@@ -447,6 +513,7 @@ export default {
}
.table_container
{
width
:
97%
;
height
:
calc
(
100%
-
40px
);
margin-top
:
20px
;
}
.el-pagination
{
...
...
src/views/tech-politics-relative-use/index.vue
View file @
2c8cab3
...
...
@@ -223,6 +223,7 @@ export default {
}
.table_container
{
width
:
97%
;
height
:
calc
(
100%
-
40px
);
margin-top
:
20px
;
}
.el-pagination
{
...
...
src/views/total-archi-property-document/index.vue
View file @
2c8cab3
...
...
@@ -365,6 +365,7 @@ export default {
}
.table_container
{
width
:
97%
;
height
:
calc
(
100%
-
40px
);
margin-top
:
20px
;
}
.el-pagination
{
...
...
src/views/typical-example-manage/index.vue
View file @
2c8cab3
...
...
@@ -451,6 +451,7 @@ export default {
}
.table_container
{
width
:
97%
;
height
:
calc
(
100%
-
40px
);
margin-top
:
20px
;
}
.el-pagination
{
...
...
src/views/typical-example-relative-use/index.vue
View file @
2c8cab3
...
...
@@ -324,6 +324,7 @@ export default {
}
.table_container
{
width
:
97%
;
height
:
calc
(
100%
-
40px
);
margin-top
:
20px
;
}
.el-pagination
{
...
...
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