Commit 281b4076 authored by dingyoujian's avatar dingyoujian

调整

parent bac62f25
...@@ -31,16 +31,6 @@ export function doDelete(query) { ...@@ -31,16 +31,6 @@ export function doDelete(query) {
}) })
} }
/* 提交 */
export function doCommit(query) {
return request({
url: '/aqgl/swgl/swjl/doCommit',
method: 'post',
data: query||{}
})
}
/* 曝光 */ /* 曝光 */
export function doPg(query) { export function doPg(query) {
return request({ return request({
...@@ -113,3 +103,19 @@ export function doQueryCfbz(query) { ...@@ -113,3 +103,19 @@ export function doQueryCfbz(query) {
data: query||{} data: query||{}
}) })
} }
export function doCommit(query) {
return request({
url: `/aqgl/swgl/swjl/doCommit`,
method: 'post',
data: query||{}
})
}
export function doCancel(query) {
return request({
url: `/aqgl/swgl/swjl/doCancel`,
method: 'post',
data: query||{}
})
}
...@@ -20,9 +20,13 @@ ...@@ -20,9 +20,13 @@
<AddButton ref="add" :app='app'></AddButton> <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<AttachFileShow :params="{childPath:'SWXX'}" :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮--> <!-- 额外按钮-->
<el-button @click="doSwCommit" size='mini'type="primary">确认</el-button>
<el-button @click="doSwCancel" size='mini'type="primary">取消</el-button>
<!-- 表头设置 --> <!-- 表头设置 -->
<!-- 权限--> <!-- 权限-->
...@@ -44,7 +48,9 @@ ...@@ -44,7 +48,9 @@
doAdd, doAdd,
doUpdate, doUpdate,
doDelete, doDelete,
doQueryCfbz doQueryCfbz,
doCommit,
doCancel
} from '@/api/threeViolations/enterTV.js'; } from '@/api/threeViolations/enterTV.js';
/* edit页面*/ /* edit页面*/
/* edit页面*/ /* edit页面*/
...@@ -72,8 +78,8 @@ ...@@ -72,8 +78,8 @@
baseUrl: '/aqgl/swgl/swjl', baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ryxx: '', ryxx: ''
zt:'I' // zt:'I'
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
...@@ -88,6 +94,7 @@ ...@@ -88,6 +94,7 @@
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280}, {label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
{label: "三违等级", prop: "swdjName", fieldType: "ftString",width:280}, {label: "三违等级", prop: "swdjName", fieldType: "ftString",width:280},
{label: "三违类型", prop: "wglxName", fieldType: "ftString",width:280}, {label: "三违类型", prop: "wglxName", fieldType: "ftString",width:280},
{label: "处理状态", prop: "ztName", fieldType: "ftString",width:280},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300}, // {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, // {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, // {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
...@@ -120,8 +127,8 @@ ...@@ -120,8 +127,8 @@
}, },
methods: { methods: {
/* 基础查询*/ /* 基础查询*/
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
apiAdd: doAdd, apiAdd: doAdd,
/* 基础更新*/ /* 基础更新*/
...@@ -132,9 +139,30 @@ ...@@ -132,9 +139,30 @@
init() { init() {
}, },
/* 启用停用*/ doSwCommit(){
if (this.app.selectOne || this.app.clickOne) {
this.singleItem.id&&doCommit(this.singleItem).then(e=>{
if(e.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
},
doSwCancel(){
if (this.app.selectOne || this.app.clickOne) {
this.singleItem.id&&doCancel(this.singleItem).then(e=>{
if(e.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
}
}, },
components: { components: {
Edit, Edit,
......
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