Commit b12e2d02 authored by 张伯涛's avatar 张伯涛

删掉废物文件

parent 1e5047ba
...@@ -160,13 +160,6 @@ export default { ...@@ -160,13 +160,6 @@ export default {
name: 'LISTINDEX', name: 'LISTINDEX',
component: () => import('@/views/list/index'), component: () => import('@/views/list/index'),
meta: { title: '合同管理' } meta: { title: '合同管理' }
},
{
hidden: true,
path: '/contract/manage/:type',
name: 'contractManage'.toLocaleUpperCase(),
component: () => import('@/views/list/detail'),
meta: { title: '合同信息' }
} }
] ]
}, },
...@@ -240,13 +233,6 @@ export default { ...@@ -240,13 +233,6 @@ export default {
name: 'LISTINDEX', name: 'LISTINDEX',
component: () => import('@/views/list/index'), component: () => import('@/views/list/index'),
meta: { title: '合同管理' } meta: { title: '合同管理' }
},
{
hidden: true,
path: '/contract/manage/:type',
name: 'contractManage'.toLocaleUpperCase(),
component: () => import('@/views/list/detail'),
meta: { title: '合同信息' }
} }
] ]
}, },
...@@ -279,13 +265,6 @@ export default { ...@@ -279,13 +265,6 @@ export default {
name: 'LISTINDEX', name: 'LISTINDEX',
component: () => import('@/views/list/index'), component: () => import('@/views/list/index'),
meta: { title: '合同管理' } meta: { title: '合同管理' }
},
{
hidden: true,
path: '/contract/manage/:type',
name: 'contractManage'.toLocaleUpperCase(),
component: () => import('@/views/list/detail'),
meta: { title: '合同信息' }
} }
] ]
}, },
......
...@@ -133,7 +133,6 @@ ...@@ -133,7 +133,6 @@
</template> </template>
<script> <script>
import { api, statusEnum } from './mock'
export default { export default {
name: 'AdminList', name: 'AdminList',
data() { data() {
...@@ -152,8 +151,7 @@ export default { ...@@ -152,8 +151,7 @@ export default {
form: { form: {
}, },
detailShow: false, detailShow: false
statusEnum
} }
}, },
mounted() { mounted() {
...@@ -188,14 +186,6 @@ export default { ...@@ -188,14 +186,6 @@ export default {
}) })
}) })
}, },
query() {
this.queryLoading = true
api.query().then(res => {
this.total = res.total
this.data = res.rows
this.queryLoading = false
})
},
handleQuery() { handleQuery() {
this.page = 1 this.page = 1
this.findLog() this.findLog()
......
export const api = {
query(params) {
return new Promise(resolve => resolve({
rows: [
{ journalName: '日志一', createBy: 'admin', createDate: '2021-12-24', oprater: '登录', status: '0', errorMessage: '接口响应超时' },
{ journalName: '日志二', createBy: 'admin', createDate: '2021-10-24', oprater: '退出', status: '1' },
{ journalName: '日志三', createBy: 'admin', createDate: '2020-11-28', oprater: '修改合同:甲公司合作合同', status: '1' },
{ journalName: '日志四', createBy: 'admin', createDate: '2023-11-28', oprater: '新建合同:乙公司合作合同', status: '0', errorMessage: '接口错误' }
],
total: 4
}))
},
setStatus(row, status) {
return new Promise(resolve => {
row.status = status
resolve()
})
}
}
export const statusEnum = {
'0': '失败',
'1': '成功'
}
This diff is collapsed.
...@@ -430,7 +430,6 @@ ...@@ -430,7 +430,6 @@
</template> </template>
<script> <script>
import { api, statusEnum } from './mock'
import { Store } from '@/utils/storage' import { Store } from '@/utils/storage'
import { storeKey } from '@/utils/auth' import { storeKey } from '@/utils/auth'
export default { export default {
...@@ -826,8 +825,7 @@ export default { ...@@ -826,8 +825,7 @@ export default {
allPage: 1, allPage: 1,
allRows: 10, allRows: 10,
queryLoading: false, queryLoading: false,
dialogFormVisible: false, dialogFormVisible: false
statusEnum
} }
}, },
created() { created() {
...@@ -1211,14 +1209,6 @@ obj=this.typeform*/ ...@@ -1211,14 +1209,6 @@ obj=this.typeform*/
} }
}) })
}, },
query() {
this.queryLoading = true
api.query().then(res => {
this.total = res.total
this.data = res.rows
this.queryLoading = false
})
},
add(item) { add(item) {
const formType = item.type const formType = item.type
const firstList = ['1', '2', '3', '4'] const firstList = ['1', '2', '3', '4']
......
export const api = {
query(params) {
return new Promise(resolve => resolve({
rows: [
{ CONNAMECN: '合同一', createBy: 'admin', SIGNDATE: '2021-12-24', contractStartDate: '2022-03-01', PROJNAME: '项目1', PROJNUMBER: '111', contractEndDate: '0', CONSTATUS: '0', synchronization: '1', 'leastSyncDate': '2021-12-22', FROMID: '1111' },
{ CONNAMECN: '合同二', createBy: 'admin', SIGNDATE: '2021-10-24', contractStartDate: '2021-10-24', PROJNAME: '项目2', PROJNUMBER: '111', contractEndDate: '2024-10-24', synchronization: '1', 'leastSyncDate': '2021-12-22', CONSTATUS: '1', FROMID: '2222' },
{ CONNAMECN: '合同三', createBy: 'admin', SIGNDATE: '2020-11-28', contractStartDate: '2020-11-28', PROJNAME: '项目3', PROJNUMBER: '111', contractEndDate: '2022-12-28', synchronization: '1', 'leastSyncDate': '2021-12-22', CONSTATUS: '2', FROMID: '3333' },
{ CONNAMECN: '合同三', createBy: 'admin', SIGNDATE: '2023-11-28', contractStartDate: '2019-11-28', PROJNAME: '项目4', PROJNUMBER: '111', contractEndDate: '2021-11-28', synchronization: '1', 'leastSyncDate': '2021-12-22', CONSTATUS: '3', FROMID: '4444' }
],
total: 4
}))
},
setStatus(row, status) {
return new Promise(resolve => {
row.status = status
resolve()
})
}
}
export const statusEnum = {
'0': '未开始',
'1': '启用',
'2': '停用',
'3': '已过期'
}
<template>
<div class="signComChildList">
<el-dialog
class="signComDialog"
:close-on-click-modal="false"
:destroy-on-close="true"
:visible.sync="visible"
width="40%"
title="选择签约单位"
@close="closeDialog"
>
<div class="handleFather">
<div class="handleLeft">
<div class="TreeBox">
<!-- <el-form inline label-width="80px" label-position="right">-->
<!-- <el-form-item>-->
<!-- <el-input v-model.trim="searchForm.NAME" clearable placeholder="请输入" @input="queryCompany" />-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<!-- <div v-if="searchForm.NAME !== ''" v-loading="queryLoading" class="hiddenList">-->
<!-- <div v-for="(item, index) in DataList" :key="index">-->
<!-- <div style="cursor: pointer" class="name" @click="pushValue(item)">{{ item.NAME }}</div>-->
<!-- </div>-->
<!-- </div>-->
<el-tree :data="DateTree" :props="DefaultProps" @node-click="handleAbroadClick" />
</div>
</div>
<div class="handleRight">
<div class="handleRightBody">已选单位</div>
<div class="handleRightlabel">{{ companyName }}</div>
</div>
</div>
<div style="display: flex;float: right;padding-top: 20px">
<el-button type="info" @click="closeDialog">取消</el-button>
<el-button type="primary" @click="determine()">确定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { onlyGetDeptTreeParams, getCompany, onlyGetDeptTree } from '@/views/list/api'
export default {
name: 'SignCompanyDialog',
props: {
// 显示与隐藏控制
visible: {
type: Boolean,
default: false
}
},
data() {
return {
queryLoading: false,
searchForm: {
NAME: ''
},
form: {
OID: '0'
},
total: 0,
page: 1,
rows: 10,
DataList: [],
companyName: '',
companyCode: '',
DateTree: [], // tree数组
DefaultProps: {
children: 'child',
label: 'NAME'
}
}
},
mounted() {
this.getListFather()
},
methods: {
/** 点击筛选出来的人名*/
// pushValue(item) {
// this.searchForm.NAME = ''
// this.companyName = item.NAME
// this.companyCode = item.EMPCODE
// },
/** input框输入时查询*/
// queryCompany() {
// this.queryLoading = true
// getCompany(Object.assign(
// this.searchForm,
// {
// page: this.page,
// rows: this.rows
// },
// )).then(res => {
// this.DataList = res.data.records
// this.queryLoading = false
// })
// },
getListFather() {
onlyGetDeptTree().then(res => {
this.DateTree = res.data
})
},
/** 树的节点被点击时的回调*/
handleAbroadClick(data) {
this.form.OID = data.OID
onlyGetDeptTreeParams(this.form).then(res => {
this.$set(data, 'child', [])
data.child = res.data
})
this.companyName = data.NAME
this.companyCode = data.OID
console.log('境外', data)
},
/** 关闭dialog*/
closeDialog() {
this.$emit('funClose', false)
this.companyName = ''
this.companyCode = ''
},
/** dialog确定按钮*/
determine() {
if (this.companyName) {
this.$emit('getValue', this.companyName, this.companyCode)
this.$emit('funClose', false)
} else {
this.$message({
type: 'warning',
message: '请选择签约单位'
})
}
}
}
}
</script>
<style lang="scss">
.signComChildList{
.handleFather{
display: flex;
.handleLeft{
width: 300px;
float: left;
border: 1px solid #f1f1f1;
padding-top: 10px;
margin-right: 30px;
.TreeBox{
height: calc(100vh - 360px);
overflow: auto;
padding: 0 12px;
.hiddenList{
background-color: white;
height: 200px;
transform-origin: center top;
z-index: 2433;
width: 243px;
position: fixed;
top: 206px;
left: 469px;
border: 1px solid #e5e5e5;
.name{
padding: 15px 0 7px 15px;
font-size: 13px;
}
}
}
}
.handleRight{
float: right;
border: 1px solid #f1f1f1;
width: 270px;
.handleRightBody{
text-align: center;
padding-top: 7px;
border-bottom: 1px solid #f1f1f1;
height: 30px;
}
.handleRightlabel{
margin: 20px;
font-size: 15px;
}
}
}
}
.signComDialog{
.el-dialog__header{
border-bottom: 1px solid #f1f1f1!important;
}
.el-form .el-form-item{
margin: 5px 5px 15px 5px !important;
width: 100%;
}
.el-form-item__content{
width: 100%;
}
.el-dialog__body{
overflow: auto;
min-height: 71vh!important;
max-height: 71vh!important;
}
}
</style>
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