Browse Source

新增显示记录,地图拖拽

V1.0
tianq 3 years ago
parent
commit
fee68af174
  1. 10
      src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/addForm.vue
  2. 17
      src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/index.vue
  3. 4
      src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/record.vue
  4. 6
      src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue
  5. 10
      src/views/modules/shequzhili/tuceng/anquan/shebei/index.vue
  6. 6
      src/views/modules/shequzhili/tuceng/anquan/yinhuan/addForm.vue
  7. 10
      src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue
  8. 4
      src/views/modules/shequzhili/tuceng/chengshiguanli/addForm.vue
  9. 10
      src/views/modules/shequzhili/tuceng/chengshiguanli/index.vue
  10. 10
      src/views/modules/shequzhili/tuceng/gonggongfuwu/index.vue
  11. 6
      src/views/modules/shequzhili/tuceng/yingji/changsuo/addForm.vue
  12. 10
      src/views/modules/shequzhili/tuceng/yingji/changsuo/index.vue
  13. 6
      src/views/modules/shequzhili/tuceng/yingji/wuzi/addForm.vue
  14. 10
      src/views/modules/shequzhili/tuceng/yingji/wuzi/index.vue
  15. 4
      src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue
  16. 10
      src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue

10
src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/addForm.vue

@ -126,7 +126,7 @@
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> -->
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm"> </el-button>
</div>
<div class="recordBox"><record v-if="pageType != 'add' && detailId" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
<div class="recordBox"><record :disabled="disabled" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
</div>
<span slot="footer" class="dialog-footer">
@ -230,7 +230,7 @@ export default {
scaleTotal: [{ required: true, validator: checkNum, trigger: 'bulr' }],
gridId: [{ required: true, message: '所属组织不能为空', trigger: 'bulr' }],
personInCharge: [{ required: true, message: '负责人不能为空', trigger: 'bulr' }],
mobile: [{ required: true,message: '联系电话不能为空', trigger: 'blur' }],
mobile: [{ required: true, message: '联系电话不能为空', trigger: 'blur' }],
address: [{ required: true, message: '场所地址不能为空', trigger: 'blur' }]
// content: [{ required: true, message: '', trigger: 'bulr' }, { max: 1000, message: '1000', trigger: 'blur' }]
},
@ -390,7 +390,9 @@ export default {
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
if (!this.disabled) {
this.handleMoveCenter(e);
}
});
map.setCenter(latitude, longitude);
@ -457,6 +459,6 @@ export default {
@import '@/assets/scss/modules/management/form.scss';
@import '@/assets/scss/modules/visual/a_customize.scss';
.el-dialog__body {
padding: 30px 80px;
padding: 30px 80px;
}
</style>

17
src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/index.vue

@ -23,8 +23,7 @@
</el-select>
</el-form-item>
<el-form-item label="场所规模" prop="scaleTotal">
<el-input type="number" v-model="formData.scaleTotal" class="u-item-width-normal" size="small" clearable placeholder="请输入">
</el-input>
<el-input type="number" v-model="formData.scaleTotal" class="u-item-width-normal" size="small" clearable placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="所属组织" prop="gridId">
<el-select class="u-item-width-normal" v-model="formData.gridId" placeholder="全部" size="small" clearable>
@ -88,8 +87,8 @@
<el-table-column prop="latestPatrolTime" align="center" width="100" label="最新检查时间" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="latestResultName" align="center" label="最新巡查结果" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span v-if="scope.row.latestResult === '0'">合格</span>
<span v-else-if="scope.row.latestResult === '1'">不合格</span>
<span v-if="scope.row.latestResult === '1'">合格</span>
<span v-else-if="scope.row.latestResult === '0'">不合格</span>
<span v-else>--</span>
</template>
</el-table-column>
@ -437,6 +436,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

4
src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/record.vue

@ -54,7 +54,7 @@
</template>
</el-table-column>
<!-- <el-table-column
<el-table-column
prop="detailed"
label="隐患明细"
align="center"
@ -74,7 +74,7 @@
{{ scope.row.detailed }}
</div>
</template>
</el-table-column> -->
</el-table-column>
<el-table-column prop="imgList" label="图片列表" align="center">
<template slot-scope="scope">

6
src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue

@ -82,7 +82,7 @@
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> -->
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm"> </el-button>
</div>
<div class="recordBox"><record v-if="pageType != 'add' && detailId" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
<div class="recordBox"><record :disabled="disabled" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleCancle"> </el-button>
@ -342,7 +342,9 @@ export default {
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
if (!this.disabled) {
this.handleMoveCenter(e);
}
});
map.setCenter(latitude, longitude);

10
src/views/modules/shequzhili/tuceng/anquan/shebei/index.vue

@ -418,6 +418,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

6
src/views/modules/shequzhili/tuceng/anquan/yinhuan/addForm.vue

@ -161,7 +161,7 @@
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> -->
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm"> </el-button>
</div>
<div class="recordBox"><record v-if="pageType != 'add' && detailId" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
<div class="recordBox"><record :disabled="disabled" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleCancle"> </el-button>
@ -403,7 +403,9 @@ export default {
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
if (!this.disabled) {
this.handleMoveCenter(e);
}
});
map.setCenter(latitude, longitude);

10
src/views/modules/shequzhili/tuceng/anquan/yinhuan/index.vue

@ -400,6 +400,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

4
src/views/modules/shequzhili/tuceng/chengshiguanli/addForm.vue

@ -345,7 +345,9 @@ export default {
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
if (!this.disabled) {
this.handleMoveCenter(e);
}
});
map.setCenter(latitude, longitude);

10
src/views/modules/shequzhili/tuceng/chengshiguanli/index.vue

@ -399,6 +399,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

10
src/views/modules/shequzhili/tuceng/gonggongfuwu/index.vue

@ -409,6 +409,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

6
src/views/modules/shequzhili/tuceng/yingji/changsuo/addForm.vue

@ -90,7 +90,7 @@
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> -->
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm"> </el-button>
</div>
<div class="recordBox"><record v-if="pageType != 'add' && detailId" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
<div class="recordBox"><record :disabled="disabled" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleCancle"> </el-button>
@ -342,7 +342,9 @@ export default {
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
if (!this.disabled) {
this.handleMoveCenter(e);
}
});
map.setCenter(latitude, longitude);

10
src/views/modules/shequzhili/tuceng/yingji/changsuo/index.vue

@ -378,6 +378,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

6
src/views/modules/shequzhili/tuceng/yingji/wuzi/addForm.vue

@ -90,7 +90,7 @@
<!-- <el-button size="small" @click="resetData" v-if="pageType != 'view'">重置</el-button> -->
<el-button size="small" type="primary" :disabled="btnDisable" @click="handleComfirm"> </el-button>
</div>
<div class="recordBox"><record v-if="pageType != 'add' && detailId" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
<div class="recordBox"><record :disabled="disabled" :formType="pageType" :id="detailId" :info="{ agencyId: agencyId }"></record></div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleCancle">关闭</el-button>
@ -360,7 +360,9 @@ export default {
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
if (!this.disabled) {
this.handleMoveCenter(e);
}
});
map.setCenter(latitude, longitude);

10
src/views/modules/shequzhili/tuceng/yingji/wuzi/index.vue

@ -421,6 +421,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

4
src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue

@ -522,7 +522,9 @@ export default {
);
//
map.on('dragend', e => {
this.handleMoveCenter(e);
if (!this.disabled) {
this.handleMoveCenter(e);
}
});
map.setCenter(latitude, longitude);

10
src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue

@ -516,6 +516,16 @@ export default {
async uploadHttpRequest(file) {
this.importLoading = true;
this.importBtnTitle = '正在上传中...';
this.$message({
showClose: true,
dangerouslyUseHTMLString: true,
message: "导入中,请到系统管理-<a id='clickA' style='cursor: pointer;'>导入记录</a>中查看进度",
duration: 3000
});
let than = this;
document.getElementById('clickA').addEventListener('click', function() {
than.$router.replace('/main/importRecord-index');
});
const formData = new FormData(); //FormDataappend('key', value)
formData.append('file', file.file); //
formData.append('code', ''); //

Loading…
Cancel
Save