Browse Source

Merge branch 'dev-tuceng0616' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-tuceng0616

shibei_master
jiangyy 3 years ago
parent
commit
ad3f36ecad
  1. 33
      src/views/modules/cpts/base/cpts/edit.vue
  2. 9
      src/views/modules/cpts/base/index.vue
  3. 1
      src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue
  4. 3
      src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
  5. 12
      src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
  6. 1
      src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue

33
src/views/modules/cpts/base/cpts/edit.vue

@ -265,10 +265,26 @@
</div> </div>
</el-form> </el-form>
<slot v-bind:id="formId" v-bind:info="fmData" v-bind:formType="formType"></slot> <div class="div_btn resi-btns" v-if="!formBtnFixed">
<el-button size="small" @click="handleCancle"> </el-button>
<el-button
v-if="formType != 'watch'"
type="primary"
size="small"
:disabled="btnDisable"
@click="handleComfirm"
> </el-button
>
</div>
<slot
v-bind:id="formId"
v-bind:info="fmData"
v-bind:formType="formType"
></slot>
</div> </div>
<div class="div_btn resi-btns"> <div class="div_btn resi-btns" v-if="formBtnFixed">
<el-button size="small" @click="handleCancle"> </el-button> <el-button size="small" @click="handleCancle"> </el-button>
<el-button <el-button
v-if="formType != 'watch'" v-if="formType != 'watch'"
@ -303,6 +319,10 @@ export default {
type: String, type: String,
default: "info", default: "info",
}, },
formBtnFixed: {
type: Boolean,
default: true,
},
idName: { idName: {
type: String, type: String,
default: "", default: "",
@ -431,8 +451,13 @@ export default {
// init // init
initMap(item) { initMap(item) {
let { latitude, longitude } = this.$store.state.user;
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
// //
var center = new window.TMap.LatLng(36.0722275, 120.38945519); var center = new window.TMap.LatLng(latitude, longitude);
// map TMap.Map() // map TMap.Map()
map = new window.TMap.Map(document.getElementById("app"), { map = new window.TMap.Map(document.getElementById("app"), {
center: center, // center: center, //
@ -545,7 +570,7 @@ export default {
console.log("------------------------------------info", this.fmData); console.log("------------------------------------info", this.fmData);
await nextTick(800); await nextTick(800);
if (map) { if (map && data.latitude) {
map.setCenter(new TMap.LatLng(data.latitude, data.longitude)); map.setCenter(new TMap.LatLng(data.latitude, data.longitude));
} }
} else { } else {

9
src/views/modules/cpts/base/index.vue

@ -212,6 +212,7 @@
:editParams="editParams" :editParams="editParams"
:editParamsDiv="editParamsDiv" :editParamsDiv="editParamsDiv"
:editFixedParams="editFixedParams" :editFixedParams="editFixedParams"
:formBtnFixed="formBtnFixed"
@close="handleClose" @close="handleClose"
@afterEdit="handleEditSuccess" @afterEdit="handleEditSuccess"
> >
@ -318,6 +319,11 @@ export default {
type: String, type: String,
default: "id", default: "id",
}, },
formBtnFixed: {
type: Boolean,
default: true,
},
}, },
data() { data() {
@ -535,11 +541,12 @@ export default {
handleClose() { handleClose() {
this.formShow = false; this.formShow = false;
this.getTableData();
}, },
handleEditSuccess() { handleEditSuccess() {
this.handleClose(); this.handleClose();
this.getTableData(); // this.getTableData();
}, },
async handleDelete(rowData, rowIndex) { async handleDelete(rowData, rowIndex) {

1
src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue

@ -12,6 +12,7 @@
:importUrl="importUrl" :importUrl="importUrl"
:mubanUrl="mubanUrl" :mubanUrl="mubanUrl"
:editParams="editParams" :editParams="editParams"
:editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
idName="icDangerousChemicalsId" idName="icDangerousChemicalsId"
></base-page> ></base-page>
</div> </div>

3
src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue

@ -125,7 +125,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-if="scope.row.isEdit" v-if="scope.row.isEdit"
type="number" type="text"
v-model="scope.row.detailed" v-model="scope.row.detailed"
placeholder="请输入" placeholder="请输入"
class="input-width" class="input-width"
@ -224,6 +224,7 @@
v-if="formType == 'edit'" v-if="formType == 'edit'"
title="删除之后无法恢复,确认删除?" title="删除之后无法恢复,确认删除?"
@onConfirm="del(scope.row)" @onConfirm="del(scope.row)"
@confirm="del(scope.row)"
> >
<el-button <el-button
slot="reference" slot="reference"

12
src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue

@ -16,11 +16,17 @@
:editParams="editParams" :editParams="editParams"
:editFixedParams="editFixedParams" :editFixedParams="editFixedParams"
:editParamsDiv="5" :editParamsDiv="5"
:editBtnName="(item) => (item.sourceType == 'import' ? '待完善' : '修改')" :editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
:formBtnFixed="false"
idName="enterpriseId" idName="enterpriseId"
> >
<template v-slot:editElse="{ id, formType, info }"> <template v-slot:editElse="{ id, formType, info }">
<record v-if="formType != 'add' && id" :formType="formType" :enterpriseId="id" :enterpriseInfo="info"></record> <record
v-if="formType != 'add' && id"
:formType="formType"
:enterpriseId="id"
:enterpriseInfo="info"
></record>
</template> </template>
</base-page> </base-page>
</div> </div>
@ -93,7 +99,7 @@ export default {
{ field: "场所名称", keyName: "placeOrgName", type: "text" }, { field: "场所名称", keyName: "placeOrgName", type: "text" },
{ field: "场所地址", keyName: "address", type: "text" }, { field: "场所地址", keyName: "address", type: "text" },
{ field: "场所类型", keyName: "placeTypeName", type: "text" }, { field: "场所类型", keyName: "placeTypeName", type: "text" },
{ field: "规模", keyName: "scale", type: "text" }, { field: "规模", keyName: "scaleName", type: "text" },
{ field: "负责人", keyName: "personInCharge", type: "text" }, { field: "负责人", keyName: "personInCharge", type: "text" },
{ field: "联系电话", keyName: "mobile", type: "text" }, { field: "联系电话", keyName: "mobile", type: "text" },
{ field: "最新检查时间", keyName: "latestPatrolTime", type: "text" }, { field: "最新检查时间", keyName: "latestPatrolTime", type: "text" },

1
src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue

@ -12,6 +12,7 @@
:importUrl="importUrl" :importUrl="importUrl"
:mubanUrl="mubanUrl" :mubanUrl="mubanUrl"
:editParams="editParams" :editParams="editParams"
:editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
idName="icSuperiorResourceId" idName="icSuperiorResourceId"
></base-page> ></base-page>
</div> </div>

Loading…
Cancel
Save