diff --git a/src/assets/scss/common.scss b/src/assets/scss/common.scss
index b27efca2e..07c632590 100644
--- a/src/assets/scss/common.scss
+++ b/src/assets/scss/common.scss
@@ -831,6 +831,23 @@ input[type="number"] {
}
// 默认输入框placeholder样式
-html .el-input.is-disabled .el-input__inner {
+html .el-input.is-disabled .el-input__inner,
+html .el-textarea.is-disabled textarea.el-textarea__inner {
color: #333;
+ background-color: rgba(#000, 0.01);
+ border-color: rgba(#000, 0.02);
+ resize: none;
+ &::placeholder {
+ // color: rgba(#fff, 0);
+ }
+}
+html .el-checkbox.is-disabled.is-checked .el-checkbox__label {
+ color: #333;
+}
+html .el-form-item__label {
+ &::after {
+ content: " :";
+ display: inline;
+ color: #333;
+ }
}
diff --git a/src/assets/scss/modules/management/detail-main.scss b/src/assets/scss/modules/management/detail-main.scss
new file mode 100644
index 000000000..1484110ac
--- /dev/null
+++ b/src/assets/scss/modules/management/detail-main.scss
@@ -0,0 +1,386 @@
+
+@import "@/assets/scss/c/config.scss";
+@import "@/assets/scss/c/function.scss";
+
+
+
+.cell-width-area{
+ width: 450px
+}
+
+
+.div_searchmap {
+ z-index: 1000;
+ position: absolute;
+ top: 5px;
+ left: 5px;
+}
+
+.div-btn{
+ margin-top:50px;
+ // margin-bottom:20px;
+ display: flex;
+ justify-content: center;
+
+ .item_btn {
+ font-size: 14px;
+ padding: 8px 16px;
+ cursor: pointer;
+ color:#fff;
+
+ border: 1px dashed #0c81fe;
+ border-radius: 6px;
+ background-color: #0c81fe;
+ }
+
+ .mgl {
+ margin-left: 20px;
+ }
+}
+.cell-width-1{
+ width: 250px
+}
+.cell-width-long{
+ width: 450px
+}
+.cell-width-2{
+ width: 350px
+}
+
+.cell-width-map {
+ width: 200px;
+}
+.item_width_3 {
+ margin-left: 10px;
+ width: 150px;
+}
+
+.process-form{
+ margin-top:20px;
+
+ .process-title {
+ margin-bottom: 25px;
+ margin-left: -5px;
+ font-size: 16px;
+ font-family: PingFang SC;
+ font-weight: bold;
+ color: #333;
+ line-height: 18px;
+ }
+
+ .process-title-vis{
+ color: #fff;
+ }
+}
+
+.m-card {
+ overflow-x: auto;
+}
+
+
+.m-btns {
+ display: flex;
+ justify-content: center;
+}
+
+
+.m-info {
+ padding-left: 30px;
+ font-size: 15px;
+ font-family: PingFang SC;
+ font-weight: 400;
+ color: #333;
+ line-height: 24px;
+ // width: 500px;
+
+ .info-title {
+ margin-top: 30px;
+ font-size: 20px;
+ font-family: PingFang SC;
+ font-weight: bold;
+ color: #333;
+ line-height: 30px;
+ }
+ .info-content {
+ margin: 20px 0;
+ }
+ .info-pics {
+ display: flex;
+ margin: 20px 0;
+ img {
+ display: block;
+ width: 32%;
+ height: 90px;
+ margin-right: 9px;
+ object-fit: cover;
+ }
+ }
+
+ .info-prop {
+ position: relative;
+ margin: 10px 0;
+ display: flex;
+ padding-left: 15px;
+ padding-top:10px;
+ // border-bottom: 1px solid #d8d8d8;
+
+ .line{
+ text-decoration:underline;
+ color: #3e8ef7;
+ }
+ .line:hover{
+ cursor:pointer
+ }
+ .info-title-2 {
+
+ flex: 0 0 100px;
+ font-size: 15px;
+ }
+
+ > span,
+ > div {
+ display: block;
+ // max-width: 300px;
+ }
+
+ &::before {
+ content: "";
+ display: block;
+ position: absolute;
+ top: 19px;
+ left: 0;
+ width: 7px;
+ height: 7px;
+ background: #0c81fe;
+ border-radius: 3px;
+ margin-right: 10px;
+ }
+
+ .div_map {
+ width:500px;
+ padding-top:10px
+ }
+ }
+ .info-prop-vis{
+ color:#fff;
+ }
+}
+
+.m-case {
+ height: 600px;
+ padding: 20px 0 20px 0;
+ overflow-y: auto;
+}
+
+.m-row {
+ // display: flex;
+ justify-content: space-between;
+ width:100%;
+ padding-left:50px;
+}
+
+.m-hint {
+ position: relative;
+ height: 300px;
+
+ // 暂无数据
+ img {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ margin: auto;
+ }
+}
+
+.m-line {
+ min-width: 400px;
+
+ .stat {
+ margin: 20px 0 10px;
+ display: flex;
+ .stat-item {
+ width: 33%;
+ text-align: center;
+
+ div {
+ font-size: 17px;
+ font-family: Source Han Serif SC;
+ font-weight: 500;
+ color: rgba(#000, 0.5);
+ line-height: 24px;
+ &.z-weak {
+ font-size: 12px;
+ font-family: Source Han Serif SC;
+ font-weight: 500;
+ color: rgba(#000, 0.5);
+ line-height: 24px;
+ }
+ }
+ }
+ }
+}
+
+.m-process {
+ margin-top: 30px;
+ margin-left: 15px;
+ width: 400px;
+
+ .process-title {
+ margin-bottom: 25px;
+ margin-left: -5px;
+ font-size: 16px;
+ font-family: PingFang SC;
+ font-weight: bold;
+ color: #333;
+ line-height: 18px;
+ }
+
+ .process-title-vis{
+ color: #fff;
+ }
+
+ .list {
+ position: relative;
+ box-sizing: border-box;
+ margin-top: 30px/2;
+ margin-left: 50px/2;
+ padding: 0 0 0 30px/2;
+ width: 680px/2;
+ border-left: 3px solid #0c81fe;
+ padding-right: 10px;
+
+ &::before {
+ content: "";
+ position: absolute;
+ z-index: 1;
+ display: block;
+ top: -2px/2;
+ left: -2px/2;
+ width: 5px/2;
+ height: 20px/2;
+ background-color: #333;
+ }
+
+ .item {
+ position: relative;
+ z-index: 2;
+ margin-bottom: 8px;
+ padding-bottom: 8px;
+ font-size: 16px;
+ font-family: PingFang SC;
+ font-weight: 400;
+ color: #333;
+ line-height: 24px;
+ padding-left: 20px;
+ padding-top: 1px;
+
+ &::before {
+ content: "";
+ display: block;
+ position: absolute;
+ top: -5px;
+ left: -11px;
+ width: 18px;
+ height: 18px;
+ background: #0c81fe;
+ border: 4px solid lighten(#0c81fe, 15);
+ border-radius: 100%;
+ }
+
+ &.z-on {
+ &::before {
+ background: #e08400;
+ border-color: lighten(#e08400, 15);
+ }
+ }
+
+ &:last-child {
+ margin-bottom: 0;
+ padding-bottom: 0;
+ border-bottom: none;
+ }
+
+ .item-row {
+ margin-top: -10px;
+ margin-bottom: 10px;
+ display: flex;
+ }
+
+ .name {
+ position: relative;
+ padding: 0 10px;
+ font-size: 12px;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #fff;
+ line-height: 22px;
+ height: 22px;
+ border-radius: 10px 0 10px 0;
+ background-color: #0c81fe;
+ // background-color: #e08400;
+ }
+
+ .date {
+ margin-left: 10px;
+ font-size: 12px;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #7ca1d2;
+ line-height: 25px;
+ }
+
+ .detail {
+ @include cs;
+ font-size: 14px;
+ line-height: 20px;
+ margin-bottom: 5px;
+ display: flex;
+
+ .detail-field {
+ flex:0 0 100px;
+
+ text-align: justify;
+ text-align-last: justify;
+ }
+ .detail-value {
+ // width: 78%;
+ .detail-link {
+ display: inline;
+ }
+ }
+ }
+
+ .attachement-list {
+ padding-left: 80px;
+ a {
+ display: block;
+ cursor: pointer;
+ color: #4df0ff;
+ font-size: 14px;
+
+ i {
+ color: #333;
+ }
+ }
+ }
+ }
+
+ .item-vis{
+ color:#fff
+ }
+ }
+}
+
+.m-top {
+ display: flex;
+}
+
+.m-chart {
+ min-height: 200px;
+}
+
+
+
+
diff --git a/src/views/main-sidebar-sub-menu.vue b/src/views/main-sidebar-sub-menu.vue
index a4e93cd29..8aaf3bf3f 100644
--- a/src/views/main-sidebar-sub-menu.vue
+++ b/src/views/main-sidebar-sub-menu.vue
@@ -48,7 +48,7 @@ export default {
)[0];
if (route) {
console.log(route);
- if (route.meta.iframeURL.endsWith("【blank】")) {
+ if (route.meta.iframeURL.endsWith("【跳转新页面】")) {
window.open(route.meta.iframeURL.slice(0, -7));
} else {
this.$router.push({ name: route.name })
diff --git a/src/views/modules/base/epidemic/natFocus/natFocusList.vue b/src/views/modules/base/epidemic/natFocus/natFocusList.vue
index 9c7878d99..990db1df9 100644
--- a/src/views/modules/base/epidemic/natFocus/natFocusList.vue
+++ b/src/views/modules/base/epidemic/natFocus/natFocusList.vue
@@ -601,6 +601,8 @@ export default {
this.natNumList.push(obj);
}
+ this.getValiheList();
+
await this.getFmOptions("isolatedState", "/sys/dict/data/dictlist", {
dictType: "isolatedState",
});
diff --git a/src/views/modules/base/epidemic/natFocus/natFocusListHistory.vue b/src/views/modules/base/epidemic/natFocus/natFocusListHistory.vue
index 9b0423167..c0b1f8ed6 100644
--- a/src/views/modules/base/epidemic/natFocus/natFocusListHistory.vue
+++ b/src/views/modules/base/epidemic/natFocus/natFocusListHistory.vue
@@ -539,6 +539,8 @@ export default {
this.natNumList.push(obj);
}
+ this.getValiheList();
+
await this.getFmOptions("isolatedState", "/sys/dict/data/dictlist", {
dictType: "isolatedState",
});
diff --git a/src/views/modules/communityParty/orgActivity/activivityList/yearplanList.vue b/src/views/modules/communityParty/orgActivity/activivityList/yearplanList.vue
index 681757bd9..db33c74b3 100644
--- a/src/views/modules/communityParty/orgActivity/activivityList/yearplanList.vue
+++ b/src/views/modules/communityParty/orgActivity/activivityList/yearplanList.vue
@@ -346,7 +346,7 @@ export default {
},
async handleDetail (row) {
this.icPartyActId = row.icPartyActId
- this.addDiaTitle = '查看活动计划'
+ this.editDiaTitle = '查看规则'
this.formType = 'detail'
this.showEdit = true
@@ -354,6 +354,7 @@ export default {
async handleEdit (row) {
this.icPartyActId = row.icPartyActId
+ this.editDiaTitle = '修改规则'
this.formType = 'edit'
this.showEdit = true
diff --git a/src/views/modules/communityParty/regionalParty/activitys.vue b/src/views/modules/communityParty/regionalParty/activitys.vue
index 75a4d178b..b47e6d116 100644
--- a/src/views/modules/communityParty/regionalParty/activitys.vue
+++ b/src/views/modules/communityParty/regionalParty/activitys.vue
@@ -434,16 +434,19 @@ export default {
},
detailClosed () {
+ console.log(this.$refs.ref_detail)
+ this.$refs.ref_detail.diaDestroy()
this.detailShow = false
},
+
handleDetail (row) {
- // this.detailShow = true
+ this.detailShow = true
this.formTitle = '详情'
- this.formShow = true
+
this.$nextTick(() => {
- // this.$refs.ref_detail.initForm(row)
- this.$refs.ref_form.initForm('detail', row.id)
+ this.$refs.ref_detail.initForm(row)
+ // this.$refs.ref_form.initForm('detail', row.id)
})
},
diff --git a/src/views/modules/communityParty/regionalParty/activitysDetail.vue b/src/views/modules/communityParty/regionalParty/activitysDetail.vue
index d40e4accf..a97a1c177 100644
--- a/src/views/modules/communityParty/regionalParty/activitysDetail.vue
+++ b/src/views/modules/communityParty/regionalParty/activitysDetail.vue
@@ -2,119 +2,67 @@
-
-
-
-
-
-
-
-
-
- {{formData.serviceMatterShow}}
-
-
-
-
- {{formData.unitName}}
-
-
-
-
- {{formData.title}}
-
-
-
-
- {{formData.target}}
-
-
-
-
-
-
-
-
- {{formData.peopleCount}}
-
-
-
- {{formData.activityTime}}
-
-
-
-
- {{formData.address}}
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 所属网格:
+ {{ formData.gridName }}
+
+
+ 服务事项:
+ {{ formData.serviceMatterShow }}
+
+
+ 活动标题:
+ {{ formData.title }}
+
+
+ 活动目标:
+ {{ formData.target }}
+
+
+
+ 服务人数:
+ {{ formData.peopleCount }}
+
+
+ 活动时间:
+ {{ formData.activityTime }}
+
+
+ 活动地址:
+ {{ formData.address }}
+
+
+
+
+
-
-
-
+
@@ -134,6 +82,7 @@ export default {
data () {
return {
formData: {},
+ initLoading: false
}
},
components: {},
@@ -142,11 +91,19 @@ export default {
},
methods: {
- handleCancle () {
+ handleCancle () {
+ this.diaDestroy()
this.$emit('diaClose')
},
+
+ diaDestroy () {
+ if (map) {
+ map.destroy()
+ }
+ },
+
async initForm (row) {
this.startLoading()
@@ -160,8 +117,11 @@ export default {
}
this.formData = { ...row }
- map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
- this.setMarker(this.formData.latitude, this.formData.longitude)
+ this.initLoading = true
+
+ this.$nextTick(() => {
+ this.initMap()
+ })
this.endLoading()
@@ -170,9 +130,9 @@ export default {
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap () {
// 定义地图中心点坐标
- var center = new window.TMap.LatLng(36.0722275, 120.38945519)
+ var center = new window.TMap.LatLng(this.formData.latitude, this.formData.longitude)
// 定义map变量,调用 TMap.Map() 构造函数创建地图
- map = new window.TMap.Map(document.getElementById('app'), {
+ map = new window.TMap.Map(document.getElementById('app_act_detail'), {
center: center, // 设置地图中心点坐标
zoom: 17.2, // 设置地图缩放级别
pitch: 43.5, // 设置俯仰角
@@ -308,17 +268,10 @@ export default {
-
diff --git a/src/views/modules/communityParty/regionalParty/unitsForm.vue b/src/views/modules/communityParty/regionalParty/unitsForm.vue
index f6de440b1..79f801e2a 100644
--- a/src/views/modules/communityParty/regionalParty/unitsForm.vue
+++ b/src/views/modules/communityParty/regionalParty/unitsForm.vue
@@ -204,7 +204,7 @@ export default {
components: {},
mounted () {
- this.initMap()
+ // this.initMap()
},
methods: {
@@ -234,8 +234,13 @@ export default {
}
- map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
- this.setMarker(this.formData.latitude, this.formData.longitude)
+ this.$nextTick(() => {
+ this.initMap()
+
+ this.setMarker(this.formData.latitude, this.formData.longitude)
+ })
+
+
this.endLoading()
@@ -283,8 +288,6 @@ export default {
}
},
-
-
async handleComfirm () {
this.btnDisable = true
@@ -328,6 +331,7 @@ export default {
message: '操作成功'
})
this.resetData()
+
this.$emit('dialogOk')
this.btnDisable = false
} else {
@@ -456,6 +460,10 @@ export default {
resetData () {
+ if (map) {
+ console.log(map)
+ map.destroy()
+ }
this.unitId = ''
this.keyWords = ''
this.formData = {
diff --git a/src/views/modules/cpts/base/cpts/detail.vue b/src/views/modules/cpts/base/cpts/detail.vue
new file mode 100644
index 000000000..436a923bd
--- /dev/null
+++ b/src/views/modules/cpts/base/cpts/detail.vue
@@ -0,0 +1,976 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ fmData[item.keyName] || "--" }}
+
+
+
+
+
+
+
+
+ {{ fmData[item.keyName] || "--" }}
+
+
+
+
+
+
+
+
+ {{ fmData[item.keyName] || "--" }}
+
+
+
+
+
+
+ ({{ item.unitName }})
+
+
+
+ handleChangeSelect(e, item)"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ handleChangeCascader(e, item)"
+ >
+
+
+
+
+
+ 点击上传
+
+
+ --
+
+
+
+
+
+
+
查询
+
+
+ 经度
+
+
+ 纬度
+
+
+
+
+
+
+
+
+
+
+ {{
+ editConfig.cancelBtnName || "取消"
+ }}
+ {{ editConfig.confirmBtnName || "确定" }}
+
+
+
+
+
+
+
+ {{
+ editConfig.cancelBtnName || "取消"
+ }}
+ {{ editConfig.confirmBtnName || "确定" }}
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/cpts/base/index.vue b/src/views/modules/cpts/base/index.vue
index d6660da39..ec3fabc42 100644
--- a/src/views/modules/cpts/base/index.vue
+++ b/src/views/modules/cpts/base/index.vue
@@ -1,293 +1,236 @@
-
-
+
+
-
+
-
+
-
-
+
+
- handleChangeCascader(e, item)"
- >
+ handleChangeCascader(e, item)">
-
+
至
-
+
- 查询
- 重置
+ 查询
+ 重置
-
+
- 新增
-
- 下载模板
-
-
- 导入
+ 新增
+
+ 下载模板
+
+
+ 导入
- 导出
+ 导出
-
-
-
-
-
+
+
+
+
+
-
+
{{ scope.row[item.keyName].join(item.arrayDiv || ",") }}
-
+
- 查看
- {{ editBtnName(scope.row) }}
-
- 删除
+ 查看
+ {{ editBtnName(scope.row) }}
+
+ 删除
-
+
-
+
-
-
+
+
-
+
-
+
@@ -402,7 +345,7 @@ export default {
},
},
- data() {
+ data () {
return {
tableData: [],
@@ -420,7 +363,7 @@ export default {
},
computed: {
- maxTableHeight() {
+ maxTableHeight () {
const { ref_search_height } = this;
return this.$store.state.inIframe
? this.clientHeight - ref_search_height - 265 + this.iframeHeight
@@ -431,7 +374,7 @@ export default {
watch: {},
- async mounted() {
+ async mounted () {
console.log(this.$store.state);
this.user = this.$store.state.user;
@@ -445,19 +388,19 @@ export default {
this.computeSearchHeight();
},
- activated() {
+ activated () {
console.log("-------------activated");
this.$refs["ref_table"].doLayout();
},
methods: {
- computeSearchHeight() {
+ computeSearchHeight () {
this.ref_search_height = this.$refs["ref_search"].clientHeight;
console.log(this.$refs["ref_search"]);
console.log(this.ref_search_height);
},
- iniSearchData() {
+ iniSearchData () {
const { searchParams } = this;
searchParams.forEach((item, index) => {
if (item.type == "select" || item.type == "cascader") {
@@ -473,7 +416,7 @@ export default {
});
},
- async getFmOptions(index, url, params, cookFn) {
+ async getFmOptions (index, url, params, cookFn) {
const { data, code, msg } = await requestPost(url, {
...params,
});
@@ -486,19 +429,19 @@ export default {
}
},
- handleChangeCascader(vals, item) {
+ handleChangeCascader (vals, item) {
if (typeof item.handleChangeFn == "function") {
item.handleChangeFn(vals, item);
}
},
- handleSearch(val) {
+ handleSearch (val) {
this.pageNo = 1;
this.getTableData();
},
- beforeExcelUpload(file) {
+ beforeExcelUpload (file) {
console.log("file", file);
const isType = file.type === "application/vnd.ms-excel";
const isTypeComputer =
@@ -516,7 +459,7 @@ export default {
return fileType && isLt1M;
},
- async uploadHttpRequest(file) {
+ async uploadHttpRequest (file) {
let { importUrl: url } = this;
if (!url) return;
@@ -545,7 +488,7 @@ export default {
});
},
- async handleExportModule() {
+ async handleExportModule () {
let { mubanUrl: url } = this;
if (!url) return;
@@ -582,7 +525,7 @@ export default {
});
},
- async handleExport() {
+ async handleExport () {
const { exportUrl: url } = this;
if (!url) return;
@@ -620,13 +563,13 @@ export default {
});
},
- handleAdd() {
+ handleAdd () {
this.formType = "add";
this.formTitle = "新增";
this.formShow = true;
},
- handleWatch(row) {
+ handleWatch (row) {
const { idName } = this;
this.formType = "watch";
this.formId = row[idName];
@@ -634,7 +577,7 @@ export default {
this.formShow = true;
},
- handleEdit(row) {
+ handleEdit (row) {
const { idName } = this;
this.formType = "edit";
this.formId = row[idName];
@@ -642,17 +585,17 @@ export default {
this.formShow = true;
},
- handleClose() {
+ handleClose () {
this.formShow = false;
this.getTableData();
},
- handleEditSuccess() {
+ handleEditSuccess () {
this.handleClose();
// this.getTableData();
},
- async handleDelete(rowData, rowIndex) {
+ async handleDelete (rowData, rowIndex) {
console.log(rowData, rowIndex);
let { delUrl: url } = this;
if (!url) return;
@@ -675,7 +618,7 @@ export default {
}
},
- computeFmData() {
+ computeFmData () {
let fmData = {};
this.searchParams.forEach((item) => {
fmData[item.keyName] = item.value;
@@ -688,11 +631,11 @@ export default {
return fmData;
},
- refresh() {
+ refresh () {
this.getTableData();
},
- async getTableData() {
+ async getTableData () {
const { tableUrl: url } = this;
if (!url) return;
@@ -707,25 +650,25 @@ export default {
this.total = data.total || 0;
this.tableData = data.list
? data.list.map((item) => {
- return item;
- })
+ return item;
+ })
: [];
} else {
this.$message.error(msg);
}
},
- handleSizeChange(val) {
+ handleSizeChange (val) {
this.pageSize = val;
window.localStorage.setItem("pageSize", val);
this.getTableData();
},
- handleCurrentChange(val) {
+ handleCurrentChange (val) {
this.pageNo = val;
this.getTableData();
},
- resetSearch() {
+ resetSearch () {
console.log("----------------resetSearch", this.searchParams);
this.searchParams.forEach((item) => {
if (typeof item.value == "string") {
diff --git a/src/views/modules/shequzhili/csgltc/csgl.vue b/src/views/modules/shequzhili/csgltc/csgl.vue
index e092c32c3..d775eb822 100644
--- a/src/views/modules/shequzhili/csgltc/csgl.vue
+++ b/src/views/modules/shequzhili/csgltc/csgl.vue
@@ -205,9 +205,9 @@
width="950px"
top="5vh"
class="dialog-h"
- @closed="diaClose">
+ @closed="diaDetailClose">
+ @diaDetailClose="diaDetailClose">
@@ -360,22 +360,22 @@ export default {
this.$refs.ref_form.resetData()
this.formShow = false
},
- diaClose () {
+ diaDetailClose () {
+ this.$refs.ref_detail.diaDestroy()
this.detailShow = false
- this.finishDiaShow = false
- this.scoreDiaShow = false
+
},
handleDetail (row) {
- // this.detailShow = true
- // this.$nextTick(() => {
- // this.$refs.ref_detail.initForm(row)
- // })
- this.formTitle = '详情'
- this.formShow = true
+ this.detailShow = true
this.$nextTick(() => {
- this.$refs.ref_form.initForm('detail', row.icCityManagementId)
+ this.$refs.ref_detail.initForm(row)
})
+ // this.formTitle = '详情'
+ // this.formShow = true
+ // this.$nextTick(() => {
+ // this.$refs.ref_form.initForm('detail', row.icCityManagementId)
+ // })
},
handleAdd () {
diff --git a/src/views/modules/shequzhili/csgltc/csglDetail.vue b/src/views/modules/shequzhili/csgltc/csglDetail.vue
index 047a5c602..6220087e6 100644
--- a/src/views/modules/shequzhili/csgltc/csglDetail.vue
+++ b/src/views/modules/shequzhili/csgltc/csglDetail.vue
@@ -1,72 +1,60 @@
-
+
+
+
+
+ 场所名称:
+ {{ formData.name }}
+
-
-
-
- {{formData.name}}
-
-
-
-
- {{formData.categoryName}}
-
-
-
- {{formData.areaCovered+' '}}平方公里
-
-
-
- {{formData.capacity+' '}}人
-
-
- {{formData.principal?formData.principal:'无'}}
-
-
- {{formData.mobile?formData.mobile:'无'}}
-
-
-
-
{{formData.address}}
-
+
+ 场所类别:
+ {{ formData.categoryName }}
-
-
+
+ 占地面积:
+ {{ formData.areaCovered+'平方公里'}}
+
-
-
-
取 消
+
+ 容纳人数:
+ {{ formData.capacity +'人'}}
+
+
+ 负责人:
+ {{ formData.principal?formData.principal:'--'}}
+
+
+ 联系电话:
+ {{formData.mobile?formData.mobile:'--' }}
+
+
+
+ 地理位置:
+ {{ formData.address }}
+
+
+
+
+
+
+
@@ -85,6 +73,7 @@ export default {
data () {
return {
formData: {},
+ initLoading: false,
}
},
@@ -96,31 +85,38 @@ export default {
methods: {
handleCancle () {
+ this.diaDestroy()
+ this.$emit('diaDetailClose')
- this.$emit('diaClose')
+ },
+ diaDestroy () {
+ if (map) {
+ map.destroy()
+ }
},
async initForm (row) {
this.startLoading()
this.formData = { ...row }
- console.log(map)
- if (!map) {
+ this.initLoading = true
+ this.$nextTick(() => {
this.initMap()
- }
- map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
- this.setMarker(this.formData.latitude, this.formData.longitude)
-
+ })
this.endLoading()
},
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap () {
- console.log('initMap')
+
// 定义地图中心点坐标
let { latitude, longitude } = this.$store.state.user;
console.log('lat' + latitude + ',lon' + longitude)
+ if (this.formData.latitude && this.formData.longitude) {
+ latitude = this.formData.latitude
+ longitude = this.formData.longitude
+ }
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
@@ -128,7 +124,7 @@ export default {
// 定义地图中心点坐标
var center = new window.TMap.LatLng(latitude, longitude);
// 定义map变量,调用 TMap.Map() 构造函数创建地图
- map = new window.TMap.Map(document.getElementById('app'), {
+ map = new window.TMap.Map(document.getElementById('app_detail'), {
center: center, // 设置地图中心点坐标
zoom: 17.2, // 设置地图缩放级别
pitch: 43.5, // 设置俯仰角
@@ -258,20 +254,9 @@ export default {
}
diff --git a/src/views/modules/shequzhili/ggfwtc/ggfw.vue b/src/views/modules/shequzhili/ggfwtc/ggfw.vue
index 1d6813839..64e326205 100644
--- a/src/views/modules/shequzhili/ggfwtc/ggfw.vue
+++ b/src/views/modules/shequzhili/ggfwtc/ggfw.vue
@@ -201,9 +201,9 @@
width="950px"
top="5vh"
class="dialog-h"
- @closed="diaClose">
+ @closed="diaDetailClose">
+ @diaDetailClose="diaDetailClose">
@@ -380,23 +380,23 @@ export default {
this.$refs.ref_form.resetData()
this.formShow = false
},
- diaClose () {
+ diaDetailClose () {
+ this.$refs.ref_detail.diaDestroy()
this.detailShow = false
- this.finishDiaShow = false
- this.scoreDiaShow = false
+
},
handleDetail (row) {
- // this.detailShow = true
- // this.$nextTick(() => {
- // this.$refs.ref_detail.initForm(row)
- // })
-
- this.formTitle = '详情'
- this.formShow = true
+ this.detailShow = true
this.$nextTick(() => {
- this.$refs.ref_form.initForm('detail', row.icPublicServiceId)
+ this.$refs.ref_detail.initForm(row)
})
+
+ // this.formTitle = '详情'
+ // this.formShow = true
+ // this.$nextTick(() => {
+ // this.$refs.ref_form.initForm('detail', row.icPublicServiceId)
+ // })
},
//完成情况
diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue
index 7888dad9f..d486aa828 100644
--- a/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue
+++ b/src/views/modules/shequzhili/ggfwtc/ggfwDetail.vue
@@ -2,69 +2,60 @@
-
-
-
- {{formData.name}}
-
-
-
-
- {{formData.categoryName}}
-
-
-
- {{formData.areaCovered}}
-
-
-
- {{formData.capacity}}
-
-
- {{formData.principal}}
-
-
- {{formData.mobile}}
-
-
-
-
{{formData.address}}
-
+
+
+
+ 场所名称:
+ {{ formData.name }}
-
-
+
+
+ 场所类别:
+ {{ formData.categoryName }}
+
+
+
+ 占地面积:
+ {{ formData.areaCovered+'平方公里'}}
+
+
+
+ 容纳人数:
+ {{ formData.capacity +'人'}}
+
+
+ 负责人:
+ {{ formData.principal?formData.principal:'--'}}
+
+
+ 联系电话:
+ {{formData.mobile?formData.mobile:'--' }}
+
+
+
+ 地理位置:
+ {{ formData.address }}
+
+
+
+
+
+
-
+
@@ -83,34 +74,36 @@ export default {
data () {
return {
formData: {},
+ initLoading: false,
}
},
components: {},
mounted () {
- if (!map) {
- this.initMap()
- }
+
},
methods: {
handleCancle () {
+ this.diaDestroy()
+ this.$emit('diaDetailClose')
- this.$emit('diaClose')
+ },
+ diaDestroy () {
+ if (map) {
+ map.destroy()
+ }
},
async initForm (row) {
this.startLoading()
this.formData = { ...row }
- debugger
- if (!map) {
+ this.initLoading = true
+ this.$nextTick(() => {
this.initMap()
- }
- map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude))
- this.setMarker(this.formData.latitude, this.formData.longitude)
-
+ })
this.endLoading()
},
@@ -119,6 +112,10 @@ export default {
initMap () {
let { latitude, longitude } = this.$store.state.user;
console.log('lat' + latitude + ',lon' + longitude)
+ if (this.formData.latitude && this.formData.longitude) {
+ latitude = this.formData.latitude
+ longitude = this.formData.longitude
+ }
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
@@ -126,7 +123,7 @@ export default {
// 定义地图中心点坐标
var center = new window.TMap.LatLng(latitude, longitude);
// 定义map变量,调用 TMap.Map() 构造函数创建地图
- map = new window.TMap.Map(document.getElementById('app'), {
+ map = new window.TMap.Map(document.getElementById('app_detail'), {
center: center, // 设置地图中心点坐标
zoom: 17.2, // 设置地图缩放级别
pitch: 43.5, // 设置俯仰角
@@ -257,20 +254,9 @@ export default {
}