Commit a47b0f57 authored by lc@weface.com.cn's avatar lc@weface.com.cn

新闻

parent 4d40fbc1
...@@ -132,20 +132,20 @@ export const seledysqdc = (data) => { ...@@ -132,20 +132,20 @@ export const seledysqdc = (data) => {
} }
//覆盖人员查询 //覆盖人员查询
export const listAllBaseInfo = (data) => { export const listAllBaseInfo = (data) => {
return axios({ return axios({
url: '/baseInfo/getAllBaseInfo', url: '/baseInfo/getAllBaseInfo',
method: 'post', method: 'post',
data data
}) })
} }
// //
export const selectflowState = (params) => { export const selectflowState = (params) => {
return axios({ return axios({
url: '/folw/selectflowState', url: '/folw/selectflowState',
method: 'get', method: 'get',
params params
}) })
} }
//缴费信息查询 //缴费信息查询
export const listPayInfo = (data) => { export const listPayInfo = (data) => {
return axios({ return axios({
...@@ -164,12 +164,12 @@ export const getGrantList = (data) => { ...@@ -164,12 +164,12 @@ export const getGrantList = (data) => {
} }
//流程详情 //流程详情
export const selectRoleflowNo = (params) => { export const selectRoleflowNo = (params) => {
return axios({ return axios({
url: 'role/selectRoleflowNo', url: 'role/selectRoleflowNo',
method: 'get', method: 'get',
params params
}) })
} }
export const updatePassword = (data)=>{ export const updatePassword = (data)=>{
return axios({ return axios({
url: 'user/updatePassword', url: 'user/updatePassword',
...@@ -177,7 +177,6 @@ export const updatePassword = (data)=>{ ...@@ -177,7 +177,6 @@ export const updatePassword = (data)=>{
data data
}) })
} }
<<<<<<< HEAD
export const getTown = () => { export const getTown = () => {
return axios({ return axios({
url: '/dept/findTreeByUser', url: '/dept/findTreeByUser',
...@@ -186,11 +185,11 @@ export const getTown = () => { ...@@ -186,11 +185,11 @@ export const getTown = () => {
}) })
} }
//交互中心信息查询 //交互中心信息查询
export const getInteracts = () => { export const getInteracts = (params) => {
return axios({ return axios({
url: '/news/listinteract', url: '/news/listinteract',
method: 'get', method: 'get',
params
}) })
} }
...@@ -205,27 +204,16 @@ export const saveFile = (data)=>{ ...@@ -205,27 +204,16 @@ export const saveFile = (data)=>{
//更新文件状态 //更新文件状态
export const updateFileState = (id,state)=>{ export const updateFileState = (id,state)=>{
return axios({ return axios({
url: 'news/update/'+id+'/'+state, url: 'news/update/' + id + '/' + state,
method: 'post', method: 'post'
data:{} })
=======
export const getTown = () => {
return axios({
url: '/dept/findTreeByUser',
method: 'get',
})
>>>>>>> cdbd67c6b8b39eb57f99fa7312b409566ab17998
}
)
} }
//新闻预览 //新闻预览
export const newsPreView = (id)=>{ export const newsPreView = (id)=>{
return axios({ return axios({
url: 'news/view/'+id, url: 'news/view/'+id,
method: 'get', method: 'get'
} })
)
} }
// //
//参保注销导出 //参保注销导出
......
...@@ -25,27 +25,18 @@ import receivePersonnel from "@/views/Myvue/receivePersonnel"; ...@@ -25,27 +25,18 @@ import receivePersonnel from "@/views/Myvue/receivePersonnel";
import AllbaseInfo from "@/views/Myvue/allbaseInfo" import AllbaseInfo from "@/views/Myvue/allbaseInfo"
import PayInfo from "@/views/Myvue/payInfo" import PayInfo from "@/views/Myvue/payInfo"
import application from "@/views/Myvue/application" import application from "@/views/Myvue/application"
<<<<<<< HEAD
import importByExcel from "@/views/Myvue/importByExcel" import importByExcel from "@/views/Myvue/importByExcel"
import treatmentApplicationAudit from "@/views/Myvue/treatmentApplicationAudit"
import insuranceCancellationAudit from "@/views/Myvue/insuranceCancellationAudit" import insuranceCancellationAudit from "@/views/Myvue/insuranceCancellationAudit"
import supPaymentAudit from "@/views/Myvue/supPaymentAudit" import supPaymentAudit from "@/views/Myvue/supPaymentAudit"
import traRelationsAudit from "@/views/Myvue/traRelationsAudit" import traRelationsAudit from "@/views/Myvue/traRelationsAudit"
import upgradeReoAudit from "@/views/Myvue/upgradeReoAudit" import upgradeReoAudit from "@/views/Myvue/upgradeReoAudit"
import interact from "@/views/Myvue/interact" import interact from "@/views/Myvue/interact"
import preView from "@/views/Myvue/preView" import preView from "@/views/Myvue/preView"
=======
import importByExcel from "@/views/Myvue/importByExcel";
import treatmentApplicationAudit from "@/views/Myvue/treatmentApplicationAudit"; import treatmentApplicationAudit from "@/views/Myvue/treatmentApplicationAudit";
import insuranceCancellationAudit from "@/views/Myvue/insuranceCancellationAudit";
import supPaymentAudit from "@/views/Myvue/supPaymentAudit";
import traRelationsAudit from "@/views/Myvue/traRelationsAudit";
import upgradeReoAudit from "@/views/Myvue/upgradeReoAudit";
import drcbzx from "@/views/Myvue/drcbzx"; import drcbzx from "@/views/Myvue/drcbzx";
import drbjbf from "@/views/Myvue/drbjbf"; import drbjbf from "@/views/Myvue/drbjbf";
import drtsyw from "@/views/Myvue/drtsyw"; import drtsyw from "@/views/Myvue/drtsyw";
>>>>>>> cdbd67c6b8b39eb57f99fa7312b409566ab17998
Vue.use(Router) Vue.use(Router)
...@@ -176,7 +167,6 @@ const router = new Router({ ...@@ -176,7 +167,6 @@ const router = new Router({
component: traRelationsAudit component: traRelationsAudit
}, },
{ {
<<<<<<< HEAD
path:"/interact", path:"/interact",
name:"交互中心", name:"交互中心",
component: interact component: interact
...@@ -185,8 +175,7 @@ const router = new Router({ ...@@ -185,8 +175,7 @@ const router = new Router({
path:"/preView", path:"/preView",
name:"预览", name:"预览",
component:preView component:preView
} },{
=======
path:"/insCanExport", path:"/insCanExport",
name:"参保注销导出", name:"参保注销导出",
component: drcbzx component: drcbzx
...@@ -201,7 +190,6 @@ const router = new Router({ ...@@ -201,7 +190,6 @@ const router = new Router({
name:"特殊业务导出", name:"特殊业务导出",
component: drtsyw component: drtsyw
}, },
>>>>>>> cdbd67c6b8b39eb57f99fa7312b409566ab17998
] ]
}, },
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// 后台管理系统服务器地址 // 后台管理系统服务器地址
export const baseUrl2 = 'http://xclc.rensheju.com' export const baseUrl2 = 'http://xclc.rensheju.com'
export const baseUrl = 'http://xc.rensheju.com' export const baseUrl = 'http://xc.rensheju.com'
//export const baseUrl = 'http://172.16.10.33:9002' //export const baseUrl = 'http://172.16.10.33:9003'
export default { export default {
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
active-color="#13ce66" inactive-color="#ff4949" active-color="#13ce66" inactive-color="#ff4949"
active-text = "启用" inactive-text="禁用" active-text = "启用" inactive-text="禁用"
:inactive-value = "0" :active-value = "2" :inactive-value = "0" :active-value = "2"
@change="changeSwitch(scope.row.state)"> @change="changeSwitch(scope.row.state,scope.$index)">
</el-switch> </el-switch>
</template> </template>
</el-table-column> </el-table-column>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<el-dialog width="60%" :visible.sync="preViewVisible"> <el-dialog width="60%" :visible.sync="preViewVisible">
<div style="margin-top:-100px" v-html = "content"></div> <div v-html = "content"></div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -222,8 +222,23 @@ ...@@ -222,8 +222,23 @@
}) })
}, },
changeSwitch(value,row) { changeSwitch(value,index) {
console.log(value, row) let str = value == 2 ? '启用':value == 0 ? '禁用': '';
this.$confirm('确认'+ str +'?', '提示', {}).then(() => {
this.$api.getlist.updateFileState(this.tableData[index].id,value).then((res) => {
if(res.code == 200) {
this.$message({message: '操作成功', type: 'success'})
this.current_change(this.pageNum);
}else {
this.$message({message: '操作失败, ' + res.message, type: 'error'})
this.tableData[index].state = this.tableData[index].state == 0 ? 2 : 0;
}
}).catch((res) => {
});
}).catch(() => {
this.tableData[index].state = this.tableData[index].state == 0 ? 2 : 0;
})
}, },
upload(form){ upload(form){
this.$refs[form].validate((valid) => { this.$refs[form].validate((valid) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment