Commit 39644a74 authored by 李苏's avatar 李苏 💬

1.组件,2.稽核双击,3.预算展示列,4.导出。5保系统名

parent fb2dd784
......@@ -61,7 +61,7 @@ const permission = {
// 向后端请求路由数据
getRouters({}).then(res => {
let appName=res.data.appName||''
let appName=res.data.appName||'国网淮安供电公司财务展示系统'
commit('SET_APPNAME', appName)
localStorage.setItem('appName',appName)
......
......@@ -138,7 +138,7 @@ export default {
// this.getCode();
this.getCookie();
systeminfo({}).then(res=>{
this.appName=res.data.records.appName||''
this.appName=res.data.records.appName||'网淮安供电公司财务展示系统'
document.title=this.appName
})
},
......
......@@ -2,7 +2,7 @@
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
<div class="full">
<EditTable :allowEdit='false' :spanMethod='spanMethod' ref="editTable" :editTableData='newFormDetail'
<EditTable @initTableTitle='initTableTitle' :allowEdit='false' :spanMethod='spanMethod' ref="editTable" :editTableData='newFormDetail'
:app='this'></EditTable>
</div>
</div>
......@@ -28,6 +28,7 @@
}
},
async mounted() {
},
......@@ -126,6 +127,26 @@
}
},
methods: {
initTableTitle(){
const list = this.$refs.editTable.tableTitle
const showList = [
'pje', 'mje', 'tzhje'
]
if(this.app.queryParams.xsystz=='Y'){
list.forEach(item => {
if (item && item.prop && showList.includes(item.prop)) {
item.show = true
}
})
}else{
list.forEach(item => {
if (item && item.prop && showList.includes(item.prop)) {
item.show = false
}
})
}
},
spanMethod({
row,
column,
......
This diff is collapsed.
......@@ -65,6 +65,7 @@
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='this' />
<el-button size='mini' @click="dcmb()" type="primary">导出模板</el-button>
<!-- <el-button size='mini' @click="yssqsp()" type="primary">预算申请审批</el-button> -->
<!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<!-- 额外按钮-->
......@@ -83,6 +84,9 @@
</div>
</template>
<script>
import {
download
} from 'common/src/utils/request.js'
import {
doQuery,
doAdd,
......@@ -147,6 +151,9 @@
}
},
methods: {
dcmb() {
download('hafms/yssq/ystz/model/export', {}, '预算申请导出.xlsx')
},
yssqsp(){
if (this.app.selectOne || this.app.clickOne) {
submit(this.singleItem).then(res=>{
......
......@@ -90,7 +90,7 @@
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
<TablePager @dblclick.native="xq()" @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
:operateButtons='false' :multipleTrans="[
'wtlxids','chooseLrzxids'
]" @getRow='getRow'>
......
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