Commit d53d18f5 by yuhao

完善

parent 388415df
...@@ -453,9 +453,10 @@ export default { ...@@ -453,9 +453,10 @@ export default {
console.log(codeResult, 55555555); console.log(codeResult, 55555555);
if (codeResult.data.code == 200) { if (codeResult.data.code == 200) {
//判断是否有下级 //判断是否有下级
// + "[" + realCodeItem.id + "]"
codeResult.data.data.rows.forEach((realCodeItem) => { codeResult.data.data.rows.forEach((realCodeItem) => {
realCodeItem.label = realCodeItem.label =
realCodeItem.label + "[" + realCodeItem.id + "]"; realCodeItem.label;
if (realCodeItem.parentFlag == "true") { if (realCodeItem.parentFlag == "true") {
realCodeItem.leaf = false; realCodeItem.leaf = false;
} else { } else {
......
...@@ -48,7 +48,27 @@ ...@@ -48,7 +48,27 @@
@handleSizeChange="handleSizeChange" @handleSizeChange="handleSizeChange"
@handleCurrentChange="handleCurrentChange" @handleCurrentChange="handleCurrentChange"
@rowBtn="rowBtn" @rowBtn="rowBtn"
@rowOperation="rowOperation"></Mytable> @rowOperation="rowOperation">
<template #btnGroup="scope">
<el-button class="hbyp"
type="text"
v-if="scope.scope.xzzt=='0'||scope.scope.xzzt=='1'"
size="mini"
@click="editBtn(scope.scope)">修改</el-button>
<el-button class="hbyp"
type="text"
v-if="scope.scope.xzzt=='0'&&scope.scope.xxczryGmsfhm==userAuth.identitycard"
size="mini"
:loading="loadingAPP"
@click="toApprovalBtn(scope.scope)">提交审核</el-button>
<el-button class="hbyp"
type="text"
:loading="loadingBack"
v-if="scope.scope.xzzt=='1'&&scope.scope.xxczryGmsfhm==userAuth.identitycard"
size="mini"
@click="backBtn(scope.scope)">退回</el-button>
</template>
</Mytable>
</div> </div>
</div> </div>
</div> </div>
...@@ -58,6 +78,7 @@ ...@@ -58,6 +78,7 @@
import Mytable from '@/components/Mytable.vue' import Mytable from '@/components/Mytable.vue'
import { import {
selectAll,//协助查询 selectAll,//协助查询
shXzqqXx,//审批
} from "@/api/statistical.js" } from "@/api/statistical.js"
import SelectTreeDialog from "@c/treeCode_components.vue"; import SelectTreeDialog from "@c/treeCode_components.vue";
import { mapGetters } from "vuex" import { mapGetters } from "vuex"
...@@ -68,12 +89,14 @@ export default { ...@@ -68,12 +89,14 @@ export default {
data () { data () {
return { return {
loadingAPP: false,
loadingBack: false,
leftMenus: [ leftMenus: [
//左侧导航(模块第一个页面需要) //左侧导航(模块第一个页面需要)
{ {
id: "queryBaxz", id: "queryBaxz",
label: "协作管理", label: "协作管理",
newAuth: ["C1901", "F010101"], newAuth: [],
index: "/queryBaxz", index: "/queryBaxz",
className: "iconfont icon-ziyuanliebiao1", className: "iconfont icon-ziyuanliebiao1",
hasChildren: true, hasChildren: true,
...@@ -81,7 +104,7 @@ export default { ...@@ -81,7 +104,7 @@ export default {
{ {
id: "queryBaxz", id: "queryBaxz",
label: "协作列表", label: "协作列表",
newAuth: ["C1901", "F010101"], newAuth: [],
index: "/queryBaxz", index: "/queryBaxz",
className: "iconfont icon-shenpi", className: "iconfont icon-shenpi",
hasChildren: false, hasChildren: false,
...@@ -89,7 +112,7 @@ export default { ...@@ -89,7 +112,7 @@ export default {
{ {
id: "queryDshxz", id: "queryDshxz",
label: "待审核协作", label: "待审核协作",
newAuth: ["C1901", "C1902", "F010101"], newAuth: ["C1902", "F010101"],
index: "/queryDshxz", index: "/queryDshxz",
className: "iconfont icon-shenpi", className: "iconfont icon-shenpi",
hasChildren: false, hasChildren: false,
...@@ -97,7 +120,7 @@ export default { ...@@ -97,7 +120,7 @@ export default {
{ {
id: "queryDbxz", id: "queryDbxz",
label: "待办协作", label: "待办协作",
newAuth: ["C1901", "F010101"], newAuth: [],
index: "/queryDbxz", index: "/queryDbxz",
className: "iconfont icon-shenpi", className: "iconfont icon-shenpi",
hasChildren: false, hasChildren: false,
...@@ -105,7 +128,7 @@ export default { ...@@ -105,7 +128,7 @@ export default {
{ {
id: "queryYbxz", id: "queryYbxz",
label: "已办协作", label: "已办协作",
newAuth: ["C1901", "F010101"], newAuth: [],
index: "/queryYbxz", index: "/queryYbxz",
className: "iconfont icon-shenpi", className: "iconfont icon-shenpi",
hasChildren: false, hasChildren: false,
...@@ -115,7 +138,7 @@ export default { ...@@ -115,7 +138,7 @@ export default {
{ {
id: "queryApproval", id: "queryApproval",
label: "注册审核管理", label: "注册审核管理",
newAuth: ["C1901", "C1903", "F010101"], newAuth: ["C1903", "F010101"],
index: "/queryApproval", index: "/queryApproval",
className: "iconfont icon-ziyuanliebiao1", className: "iconfont icon-ziyuanliebiao1",
hasChildren: false, hasChildren: false,
...@@ -186,14 +209,13 @@ export default { ...@@ -186,14 +209,13 @@ export default {
}, },
{ {
isOperation: true, isOperation: true,
type: 'basicXz', type: 'basicSlot',
label: "操作", label: "操作",
width: "180", width: "180",
align: "center", align: "center",
fixed: "right", fixed: "right",
sortable: false, sortable: false,
operation: [ operation: [
{ {
operation: "edit", operation: "edit",
type: "text", type: "text",
...@@ -215,7 +237,7 @@ export default { ...@@ -215,7 +237,7 @@ export default {
}, },
computed: { computed: {
...mapGetters(["userInfo"]) ...mapGetters(["userAuth"])
}, },
mounted () { mounted () {
document.getElementsByClassName("el-pagination__jump")[0].childNodes[0].nodeValue = "跳至"; document.getElementsByClassName("el-pagination__jump")[0].childNodes[0].nodeValue = "跳至";
...@@ -227,6 +249,46 @@ export default { ...@@ -227,6 +249,46 @@ export default {
window.removeEventListener("message", this.messageReciver, false); window.removeEventListener("message", this.messageReciver, false);
}, },
methods: { methods: {
editBtn (rows) {
this.$router.pushToTab({
path: '/editBaxz',
query: {
id: rows.xxzjbh,
}
})
},
async backBtn (rows) {
this.loadingBack = true
const params = new FormData()
params.append('xzzt', '0')
params.append('xxzjbh', rows.xxzjbh)
let res = await shXzqqXx(params)
try {
if (res && res.code == 200) {
this.loadingBack = false
this.$message.success('退回成功!')
this.getList()
}
} catch (error) {
}
},
async toApprovalBtn (rows) {
this.loadingAPP = true
const params = new FormData()
params.append('xzzt', '1')
params.append('xxzjbh', rows.xxzjbh)
let res = await shXzqqXx(params)
try {
if (res && res.code == 200) {
this.loadingAPP = false
this.$message.success('提交审核成功!')
this.getList()
}
} catch (error) {
}
},
messageReciver (e) { messageReciver (e) {
if (e.origin == location.origin && e.data == 'appReloadData') { if (e.origin == location.origin && e.data == 'appReloadData') {
this.getList(); this.getList();
......
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
let res = await selectAll(params) let res = await selectAll(params)
if (res && res.code == 200) { if (res && res.code == 200) {
this.tableData = res.data.rows this.tableData = res.data.rows
this.total = res.data.total this.pageObj.total = res.data.total
this.loadings = false; this.loadings = false;
} else { } else {
this.loadings = false; this.loadings = false;
......
...@@ -238,11 +238,21 @@ export default { ...@@ -238,11 +238,21 @@ export default {
params.append('spyj', this.formPer.spsm) params.append('spyj', this.formPer.spsm)
params.append('xzzt', this.formPer.result) params.append('xzzt', this.formPer.result)
let res = await shXzqqXx(params) let res = await shXzqqXx(params)
if (res && res.code == 200) { try {
this.$message.success('审核成功') if (res && res.code == 200) {
this.dialogVisiblePermisson = false; this.$message.success('审核成功')
this.dialogVisiblePermisson = false;
this.loadingPer = false
this, this.getList()
} else {
console.log(123, res);
this.$message.error(`${res.message}`)
this.loadingPer = false
}
} catch (error) {
console.log(error, res, 333);
this.loadingPer = false this.loadingPer = false
this, this.getList()
} }
} }
}) })
...@@ -295,7 +305,7 @@ export default { ...@@ -295,7 +305,7 @@ export default {
let res = await selectAll(params) let res = await selectAll(params)
if (res && res.code == 200) { if (res && res.code == 200) {
this.tableData = res.data.rows this.tableData = res.data.rows
this.total = res.data.total this.pageObj.total = res.data.total
this.loadings = false; this.loadings = false;
} else { } else {
this.loadings = false; this.loadings = false;
......
...@@ -219,7 +219,7 @@ export default { ...@@ -219,7 +219,7 @@ export default {
let res = await selectAll(params) let res = await selectAll(params)
if (res && res.code == 200) { if (res && res.code == 200) {
this.tableData = res.data.rows this.tableData = res.data.rows
this.total = res.data.total this.pageObj.total = res.data.total
this.loadings = false; this.loadings = false;
} else { } else {
......
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