Commit 2c8cab31 by liuyong

修改六个页面样式,接口

1 parent de8d224d
...@@ -160,22 +160,25 @@ export function getJiShuZhengCeJieGouHuaTable(params) { ...@@ -160,22 +160,25 @@ export function getJiShuZhengCeJieGouHuaTable(params) {
} }
// 技术政策结构化-新增 // 技术政策结构化-新增
export function addJiShuZhengCeJieGouHuaTable(params) { export function addJiShuZhengCeJieGouHuaTable(params) {
return get('/kl-tech-policy/create', params); return post('/kl-tech-policy/create', params);
} }
// 技术政策结构化-删除 // 技术政策结构化-删除
export function deleteJiShuZhengCeJieGouHuaTable(params) { export function deleteJiShuZhengCeJieGouHuaTable(params) {
return get('/kl-tech-policy/delete', params); return post('/kl-tech-policy/delete', params);
} }
// 技术政策结构化-编辑 // 技术政策结构化-编辑
export function editJiShuZhengCeJieGouHuaTable(params) { export function editJiShuZhengCeJieGouHuaTable(params) {
return get('/kl-tech-policy/update', params); return post('/kl-tech-policy/update', params);
} }
// 典型案例库管理-所有下拉值 // 典型案例库管理-所有下拉值
export function getDianXingAnLiSelectData(params) { export function getDianXingAnLiSelectData(params) {
// return post('/shared/vi/dict/gDictByKey', params);
return post('/dict/gDictByKey', params); return post('/dict/gDictByKey', params);
} }
// 典型案例库管理-导出 // 典型案例库管理-导出
export function exportFileDianXingAnLiSelectData(params) { export function exportFileDianXingAnLiSelectData(params) {
// return download('/knowledge/vi/excel/etTc', params);
return download('/excel/etTc', params); return download('/excel/etTc', params);
} }
// 报告模板结构化-新增,文件上传 // 报告模板结构化-新增,文件上传
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<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" 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="editItem(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 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="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> <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 { ...@@ -257,7 +257,7 @@ export default {
return true; //不禁用 return true; //不禁用
} }
}, },
edit(row) {//编辑 editItem(row) {//编辑
this.add_dialog = true; this.add_dialog = true;
this.dialog_let1 = row.elementName; this.dialog_let1 = row.elementName;
this.dialog_let2 = row.archiLevelId; this.dialog_let2 = row.archiLevelId;
...@@ -284,7 +284,7 @@ export default { ...@@ -284,7 +284,7 @@ export default {
elementId: elementIdArray, elementId: elementIdArray,
state: 1 state: 1
}; };
MessageBox.confirm('确定停用?', '提示', { MessageBox.confirm('确定发布版本?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'messageClass', customClass: 'messageClass',
......
...@@ -383,6 +383,7 @@ export default { ...@@ -383,6 +383,7 @@ export default {
} }
.table_container{ .table_container{
width: 97%; width: 97%;
height: calc(100% - 40px);
margin-top: 20px; margin-top: 20px;
} }
.el-pagination{ .el-pagination{
......
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
<div class="search_menu_item"> <div class="search_menu_item">
<span class="search_title">状态</span> <span class="search_title">状态</span>
<el-select v-model="searchParams.query_item3" placeholder="请选择" class="search_item"> <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="0"></el-option>
<el-option label="暂存" value="2"></el-option>
</el-select> </el-select>
</div> </div>
</div> </div>
...@@ -68,10 +67,10 @@ ...@@ -68,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" type="primary" 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" :disabled="scope.row.state == 1 ">发布</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" :disabled="scope.row.state != 1">停用</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" :disabled="scope.row.state == 1">删除</el-button> <el-button class="shanChu_btn" icon="el-icon-delete" size="mini" @click="deleteItem(scope.row)">删除</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -130,9 +129,8 @@ ...@@ -130,9 +129,8 @@
</el-form-item> </el-form-item>
<el-form-item label="状态:" prop="let6" style="margin-left: 27px;width: 30.5%;"> <el-form-item label="状态:" prop="let6" style="margin-left: 27px;width: 30.5%;">
<el-select v-model="ruleForm.let6" placeholder="请选择" style="width: 200px;"> <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="0"></el-option>
<el-option label="暂存" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="cross1" label="政策描述:" prop="let7"> <el-form-item class="cross1" label="政策描述:" prop="let7">
...@@ -208,6 +206,58 @@ export default { ...@@ -208,6 +206,58 @@ export default {
this.get_table(); this.get_table();
}, },
methods: { 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() {//弹框点击确定 ok() {//弹框点击确定
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if(valid) { if(valid) {
...@@ -215,14 +265,27 @@ export default { ...@@ -215,14 +265,27 @@ export default {
const params = { const params = {
tpoName: this.ruleForm.let1, tpoName: this.ruleForm.let1,
scope: this.ruleForm.let2, scope: this.ruleForm.let2,
tpoName: this.ruleForm.let1, deptName: this.ruleForm.let3,
tpoName: this.ruleForm.let1, level: this.ruleForm.let4,
tpoName: this.ruleForm.let1, startTime: this.ruleForm.let5,
tpoName: this.ruleForm.let1, state: this.ruleForm.let6,
tpoName: this.ruleForm.let1, tepContent: this.ruleForm.let7,
tpoName: this.ruleForm.let1, 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 { }else {
return false; return false;
} }
...@@ -266,11 +329,14 @@ export default { ...@@ -266,11 +329,14 @@ export default {
get_table() {//查询表格数据 get_table() {//查询表格数据
this.loading = true; this.loading = true;
getJiShuZhengCeJieGouHuaTable(this.searchParams).then(res => { getJiShuZhengCeJieGouHuaTable(this.searchParams).then(res => {
if(res.code == 200) {
this.loading = false; this.loading = false;
console.log(res) this.tableData = res.data.records;
// this.tableData = res.
} // if(res.code == 200) {
// this.loading = false;
// console.log(res)
// // this.tableData = res.
// }
}); });
}, },
} }
...@@ -447,6 +513,7 @@ export default { ...@@ -447,6 +513,7 @@ export default {
} }
.table_container{ .table_container{
width: 97%; width: 97%;
height: calc(100% - 40px);
margin-top: 20px; margin-top: 20px;
} }
.el-pagination{ .el-pagination{
......
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
} }
.table_container{ .table_container{
width: 97%; width: 97%;
height: calc(100% - 40px);
margin-top: 20px; margin-top: 20px;
} }
.el-pagination{ .el-pagination{
......
...@@ -365,6 +365,7 @@ export default { ...@@ -365,6 +365,7 @@ export default {
} }
.table_container{ .table_container{
width: 97%; width: 97%;
height: calc(100% - 40px);
margin-top: 20px; margin-top: 20px;
} }
.el-pagination{ .el-pagination{
......
...@@ -451,6 +451,7 @@ export default { ...@@ -451,6 +451,7 @@ export default {
} }
.table_container{ .table_container{
width: 97%; width: 97%;
height: calc(100% - 40px);
margin-top: 20px; margin-top: 20px;
} }
.el-pagination{ .el-pagination{
......
...@@ -324,6 +324,7 @@ export default { ...@@ -324,6 +324,7 @@ export default {
} }
.table_container{ .table_container{
width: 97%; width: 97%;
height: calc(100% - 40px);
margin-top: 20px; margin-top: 20px;
} }
.el-pagination{ .el-pagination{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!