Commit 281b4076 authored by dingyoujian's avatar dingyoujian

调整

parent bac62f25
......@@ -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) {
return request({
......@@ -113,3 +103,19 @@ export function doQueryCfbz(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 @@
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileShow :params="{childPath:'SWXX'}" :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<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 @@
doAdd,
doUpdate,
doDelete,
doQueryCfbz
doQueryCfbz,
doCommit,
doCancel
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
/* edit页面*/
......@@ -72,8 +78,8 @@
baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/
queryParams: {
ryxx: '',
zt:'I'
ryxx: ''
// zt:'I'
},
/* 表格标题对应参数*/
tableTitle: [
......@@ -88,6 +94,7 @@
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
{label: "三违等级", prop: "swdjName", 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: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
......@@ -120,8 +127,8 @@
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
......@@ -132,9 +139,30 @@
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: {
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