重点工程定位以及其他需求
parent
229b261a3f
commit
328e99740e
|
@ -40,14 +40,14 @@
|
|||
>
|
||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||
<el-table-column prop="CORP_NAME" label="公司名称" show-overflow-tooltip />
|
||||
<el-table-column prop="STARTTIME" label="属地" show-overflow-tooltip>
|
||||
<!-- <el-table-column prop="STARTTIME" label="属地" show-overflow-tooltip>
|
||||
<template slot-scope="{row}"/>
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.CORPINFO_ID !='1'">
|
||||
{{ row.prvinceName }} -- {{ row.cityName }} -- {{ row.countryName }}
|
||||
{{ row.prvinceName }} -- {{ row.cityName }} -- {{ row.countryName }}
|
||||
</span>
|
||||
<span v-else>
|
||||
河北省 -- 秦皇岛市 -- 海港区
|
||||
河北省 -- 秦皇岛市 -- 海港区
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -60,8 +60,10 @@
|
|||
交通运输、仓储和邮政业
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>-->
|
||||
<el-table-column prop="OUTSOURCED_COUNT" label="重点工程创建数量" />
|
||||
<el-table-column prop="STATE_COUNT" label="开工数量" />
|
||||
<el-table-column prop="END_COUNT" label="结束数量" />
|
||||
<el-table-column v-if="otherShow" prop="CHECK_COUNT" label="检查次数" />
|
||||
<el-table-column v-if="otherShow" prop="HIDDEN_COUNT" label="发现隐患数量" />
|
||||
<el-table-column v-if="otherShow" prop="PUNISH_COUNT" label="违约处罚次数" />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-if="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<OutSourced v-if="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
|
||||
<List v-if="activeName=='List'" />
|
||||
<Info v-if="activeName=='Info'" />
|
||||
<recordList v-if="activeName=='recordList'"/>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
|
||||
<List v-if="activeName=='List'" />
|
||||
<Info v-if="activeName=='Info'"/>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
|
||||
<List v-if="activeName=='List'" ref="list" />
|
||||
<Info v-if="activeName=='Info'" />
|
||||
<recordList v-if="activeName=='recordList'" />
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="状态:" prop="STATE">
|
||||
<el-select v-model="form.STATE" style="width: 100%;">
|
||||
<el-select v-model="form.STATE" disabled style="width: 100%;">
|
||||
<el-option v-for="item in stateList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -571,9 +571,11 @@ export default {
|
|||
// { ID: '0', NAME: '未申请' },
|
||||
// { ID: '1', NAME: '申请中' },
|
||||
// { ID: '2', NAME: '已完成' }
|
||||
|
||||
{ ID: '0', NAME: '未开工' },
|
||||
{ ID: '1', NAME: '进行中' },
|
||||
{ ID: '2', NAME: '已结束' }
|
||||
{ ID: '2', NAME: '已结束' },
|
||||
{ ID: '3', NAME: '开工申请中' },
|
||||
{ ID: '4', NAME: '结束申请中' }
|
||||
],
|
||||
unitsUserList: [],
|
||||
normalizer(node) {
|
||||
|
@ -635,6 +637,8 @@ export default {
|
|||
this.dialogType = 'edit'
|
||||
this.form.OUTSOURCED_ID = this.$parent.OUTSOURCED_ID
|
||||
this.getData()
|
||||
} else {
|
||||
this.form.STATE = '0'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -97,10 +97,19 @@
|
|||
<td >{{ pd.APPLICANT }}</td>-->
|
||||
<td class="tbg">状态</td>
|
||||
<td>
|
||||
<span v-if="pd.STATE == 0">未开工</span>
|
||||
<span v-if="pd.STATE == 1">进行中</span>
|
||||
<span v-if="pd.STATE == 2">已结束</span>
|
||||
<span v-if="pd.STATE == -1">开工申请中</span>
|
||||
<span v-if="pd.STATE == -2">结束申请中</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tbg">重点工程定位</td>
|
||||
<td v-if="pd.WORK_LATITUDE && pd.WORK_LONGITUDE" colspan="2">{{ pd.WORK_LATITUDE }}*{{ pd.WORK_LONGITUDE }}</td>
|
||||
<td v-else colspan="2">未定位</td>
|
||||
<td><el-button type="success" @click="handleMap(pd)">查看定位</el-button></td>
|
||||
</tr>
|
||||
<tr v-for="(item, index) in file9" :key="index">
|
||||
<td class="tbg">安全管理协议{{ index + 1 }}</td>
|
||||
<td colspan="2">{{ item.FILE_NAME }}</td>
|
||||
|
@ -133,12 +142,26 @@
|
|||
<div class="ui-foot">
|
||||
<el-button icon="el-icon-arrow-left" @click="goBack">返 回</el-button>
|
||||
</div>
|
||||
|
||||
<el-dialog :visible.sync="dialogFormMap" title="定位" width="1050px" class="dy-dialog">
|
||||
<div id="map" />
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<span>经度:</span>
|
||||
<el-input v-model="form.LONGITUDE" style="width: 200px" placeholder="请输入内容" disabled />
|
||||
<span>纬度:</span>
|
||||
<el-input v-model="form.LATITUDE" style="width: 200px" placeholder="请输入内容" disabled />
|
||||
<el-button @click="dialogFormMap = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { requestFN } from '@/utils/request'
|
||||
import TiandiMap from '../../../../components/TianMap/TiandiMap'
|
||||
|
||||
export default {
|
||||
components: { TiandiMap },
|
||||
data() {
|
||||
return {
|
||||
pd: {
|
||||
|
@ -186,7 +209,9 @@ export default {
|
|||
OATTACHMENTSPATH: '', // 其他附件
|
||||
file: '', // 相关附件
|
||||
APPLICANT: '', // 申请人
|
||||
STATE: ''// 状态
|
||||
STATE: '', // 状态
|
||||
WORK_LATITUDE: '', // 纬度
|
||||
WORK_LONGITUDE: '' // 经度
|
||||
},
|
||||
punishThePerson: [],
|
||||
treeData: [],
|
||||
|
@ -196,6 +221,14 @@ export default {
|
|||
value: 'id',
|
||||
children: 'nodes',
|
||||
label: 'name'
|
||||
},
|
||||
// 地图所需参数
|
||||
map: null,
|
||||
marker: null,
|
||||
dialogFormMap: false,
|
||||
form: {
|
||||
LONGITUDE: '',
|
||||
LATITUDE: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -223,6 +256,11 @@ export default {
|
|||
created() {
|
||||
this.getData()
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.map && this.map.removeEventListener('click', this.MapClick)
|
||||
console.log('定时器关闭')
|
||||
clearInterval(this.timer)
|
||||
},
|
||||
methods: {
|
||||
handleTreeSelected(checkedIds, checkedData) {
|
||||
this.DEPTIDS = checkedIds.join(',')
|
||||
|
@ -280,6 +318,78 @@ export default {
|
|||
goBack() {
|
||||
this.$parent.activeName = 'List'
|
||||
this.$parent.OUTSOURCED_ID = ''
|
||||
},
|
||||
/**
|
||||
* 初始化天地图对象
|
||||
*/
|
||||
initTDT() {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (window.T) {
|
||||
console.log('天地图初始化成功...')
|
||||
resolve(window.T)
|
||||
reject('error')
|
||||
}
|
||||
}).then(T => {
|
||||
window.T = T
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 初始化地图
|
||||
* @param {*} lng 经度
|
||||
* @param {*} lat 纬度
|
||||
* @param {*} zoom 缩放比例(1~18)
|
||||
*/
|
||||
initMap(lng, lat, zoom) {
|
||||
this.initTDT().then((T) => {
|
||||
const imageURL = 'http://t0.tianditu.gov.cn/img_w/wmts?' + 'SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles' + '&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=e8a16137fd226a62a23cc7ba5c9c78ce'
|
||||
// 创建自定义图层对象
|
||||
this.lay = new window.T.TileLayer(imageURL, { minZoom: 1, maxZoom: 18 })
|
||||
// 初始化地图对象
|
||||
this.map = new window.T.Map('map')
|
||||
this.initCenter(lng, lat, zoom)
|
||||
})
|
||||
},
|
||||
initCenter(lng, lat, zoom) {
|
||||
// 设置显示地图的中心点和级别
|
||||
if (!this.form.LONGITUDE && !this.form.LATITUDE) {
|
||||
this.map.centerAndZoom(new window.T.LngLat(119.58, 39.94), zoom)
|
||||
this.marker && this.map.removeOverLay(this.marker)
|
||||
} else {
|
||||
this.map.centerAndZoom(new window.T.LngLat(lng, lat), zoom)
|
||||
this.marker && this.map.removeOverLay(this.marker)
|
||||
this.form.LONGITUDE = lng
|
||||
this.form.LATITUDE = lat
|
||||
this.marker = new window.T.Marker(new window.T.LngLat(lng, lat))
|
||||
// 向地图上添加标注
|
||||
this.map.addOverLay(this.marker)
|
||||
}
|
||||
// 创建卫星和路网的混合视图
|
||||
this.map.setMapType(window.TMAP_HYBRID_MAP)
|
||||
// 允许鼠标滚轮缩放地图
|
||||
this.map.enableScrollWheelZoom()
|
||||
// 允许鼠标移动地图
|
||||
this.map.enableInertia()
|
||||
// 向地图上添加标注
|
||||
this.map.addEventListener('click', this.MapClick)
|
||||
},
|
||||
MapClick(event) {
|
||||
this.marker && this.map.removeOverLay(this.marker)
|
||||
this.form.LONGITUDE = event.lnglat.getLng()
|
||||
this.form.LATITUDE = event.lnglat.getLat()
|
||||
this.marker = new window.T.Marker(new window.T.LngLat(event.lnglat.getLng(), event.lnglat.getLat()))
|
||||
// 向地图上添加标注
|
||||
this.map.addOverLay(this.marker)
|
||||
},
|
||||
handleMap(row) {
|
||||
this.form.LATITUDE = ''
|
||||
this.form.LONGITUDE = ''
|
||||
this.dialogFormMap = true
|
||||
this.form.LATITUDE = this.pd.WORK_LATITUDE
|
||||
this.form.LONGITUDE = this.pd.WORK_LONGITUDE
|
||||
this.$nextTick(() => {
|
||||
if (!this.map) this.initMap(this.form.LONGITUDE, this.form.LATITUDE, 16)
|
||||
else this.initCenter(this.form.LONGITUDE, this.form.LATITUDE, 16)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -289,5 +399,8 @@ export default {
|
|||
.tbg{width:180px;
|
||||
/*text-align: left;*/
|
||||
}
|
||||
|
||||
#map{
|
||||
width: 1000px;
|
||||
height: 500px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -137,15 +137,27 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="STATE" label="状态" width="100" >
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.STATE == 0">未开工</span>
|
||||
<span v-if="row.STATE == 1">进行中</span>
|
||||
<span v-if="row.STATE == 2">已结束</span>
|
||||
<span v-if="row.STATE == -1">开工申请中</span>
|
||||
<span v-if="row.STATE == -2">结束申请中</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="OUTSOURCED_CREATOR_NAME" label="创建人" show-overflow-tooltip />
|
||||
<el-table-column label="视频数量" show-overflow-tooltip>
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.VIDEO_COUNT != 0">
|
||||
<a style="color: #1e9fff;text-decoration:underline" @click="clickVideoDetail(row.OUTSOURCED_ID)">{{ row.VIDEO_COUNT }}</a>
|
||||
</span>
|
||||
<span v-else>{{ row.VIDEO_COUNT }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="400">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.OUTSOURCED_ID)">查看</el-button>
|
||||
<el-button type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)">结束</el-button>
|
||||
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-1" type="success" icon="el-icon-view" size="mini" @click="handleState(row.OUTSOURCED_ID)">开工审批</el-button>
|
||||
<el-button v-if="row.CREATOR==userInfoUserId && row.STATE==-2" type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)">结束审批</el-button>
|
||||
<el-button v-show="edit" v-if="0 === row.IS_CORP_TYPE" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.OUTSOURCED_ID)">编辑</el-button>
|
||||
<el-button v-show="del" v-if="0 === row.IS_CORP_TYPE" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.OUTSOURCED_ID)">删除</el-button>
|
||||
</template>
|
||||
|
@ -183,6 +195,7 @@ export default {
|
|||
directives: { waves },
|
||||
data() {
|
||||
return {
|
||||
userInfoUserId: JSON.parse(sessionStorage.getItem('user')).USER_ID,
|
||||
qrcodeStr: '',
|
||||
listLoading: true,
|
||||
add: false,
|
||||
|
@ -238,8 +251,11 @@ export default {
|
|||
dialogFormEdit: false,
|
||||
dialogType: 'add',
|
||||
stateList: [
|
||||
{ ID: '0', NAME: '未开工' },
|
||||
{ ID: '1', NAME: '进行中' },
|
||||
{ ID: '2', NAME: '已结束' }
|
||||
{ ID: '2', NAME: '已结束' },
|
||||
{ ID: '-1', NAME: '开工申请中' },
|
||||
{ ID: '-2', NAME: '结束申请中' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -326,6 +342,10 @@ export default {
|
|||
this.$parent.OUTSOURCED_ID = ID
|
||||
this.$parent.activeName = 'Info'
|
||||
},
|
||||
clickVideoDetail(ID) {
|
||||
this.$parent.OUTSOURCED_ID = ID,
|
||||
this.$parent.activeName = 'videoList'
|
||||
},
|
||||
// 修改
|
||||
handleEdit(ID) {
|
||||
this.$parent.activeName = 'Edit'
|
||||
|
@ -351,6 +371,35 @@ export default {
|
|||
// }
|
||||
// })
|
||||
// },
|
||||
handleState(id) {
|
||||
this.$confirm('确定要开工吗?', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/outsourced/updateState',
|
||||
{
|
||||
OUTSOURCED_ID: id,
|
||||
OPERATOR: this.userInfoUserId, // 修改人
|
||||
STATE: '1'
|
||||
}
|
||||
).then((data) => {
|
||||
this.$message({
|
||||
message: '已开工',
|
||||
type: 'success'
|
||||
})
|
||||
this.listLoading = false
|
||||
this.varList = []
|
||||
this.listQuery.page = 1
|
||||
this.getList()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
handleJie(id) {
|
||||
this.$confirm('确定要结束吗?', {
|
||||
confirmButtonText: '确定',
|
||||
|
@ -359,23 +408,18 @@ export default {
|
|||
}).then(() => {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'/outsourced/jie',
|
||||
'/outsourced/updateState',
|
||||
{
|
||||
OUTSOURCED_ID: id
|
||||
OUTSOURCED_ID: id,
|
||||
OPERATOR: this.userInfoUserId, // 修改人
|
||||
STATE: '2'
|
||||
}
|
||||
).then((data) => {
|
||||
if (data.code == '500') {
|
||||
this.listLoading = false
|
||||
this.$message({
|
||||
message: data.message,
|
||||
type: 'error'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$message({
|
||||
message: '已结束',
|
||||
type: 'success'
|
||||
})
|
||||
this.listLoading = false
|
||||
this.varList = []
|
||||
this.listQuery.page = 1
|
||||
this.getList()
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
|
||||
<List v-show="activeName=='List'" ref="list" />
|
||||
<Edit v-if="activeName=='Edit'" />
|
||||
<Info v-if="activeName=='Info'" />
|
||||
<videoList v-if="activeName=='videoList'" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -12,17 +13,20 @@ import List from './components/list'
|
|||
import Edit from './components/edit'
|
||||
import Info from './components/info'
|
||||
import OutSourced from '@/components/OutSourced/index'
|
||||
import videoList from '@/views/keyprojects/videomanager/components/video-list'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
List: List,
|
||||
Edit: Edit,
|
||||
OutSourced: OutSourced,
|
||||
Info: Info
|
||||
Info: Info,
|
||||
videoList: videoList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'OutSourced'
|
||||
activeName: 'OutSourced',
|
||||
OUTSOURCED_ID: ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" :other-show="true" active-name="List"/>
|
||||
<List v-show="activeName=='List'" ref="list" />
|
||||
<List2 v-if="activeName=='List2'" />
|
||||
<Info v-if="activeName=='Info'" />
|
||||
|
|
|
@ -25,6 +25,16 @@ export default {
|
|||
UNITS_ID: '',
|
||||
OUTSOURCED_ID: ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
activeName(val) {
|
||||
if (val == 'List') {
|
||||
this.$refs.list.getQuery()
|
||||
}
|
||||
if (val == 'OutSourced') {
|
||||
this.$refs.outSourced.getQuery()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue