Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_wxcp_app into dev
This commit is contained in:
@@ -15,9 +15,9 @@ instance.interceptors.request.use(config => {
|
|||||||
} else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum') {
|
} else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum') {
|
||||||
config.baseURL = '/aca'
|
config.baseURL = '/aca'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
} else if (/\/grid\//.test(location.pathname)) {
|
} else if (/\/project\/beta\//.test(location.pathname)) {
|
||||||
config.baseURL = '/wangge'
|
config.baseURL = '/wangge'
|
||||||
} else if (/\/project\/police\//.test(location.pathname)||config.module=='hnjc') {
|
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc') {
|
||||||
config.baseURL = '/hnjc'
|
config.baseURL = '/hnjc'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
} else if (sessionStorage.getItem("prj") == "saas") {
|
} else if (sessionStorage.getItem("prj") == "saas") {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default {
|
|||||||
let {search, currentLib} = this
|
let {search, currentLib} = this
|
||||||
return this.apps.filter(e => {
|
return this.apps.filter(e => {
|
||||||
return (currentLib == "apps" && e.libPath.indexOf("project") > -1) || e.libPath.indexOf(currentLib) > -1
|
return (currentLib == "apps" && e.libPath.indexOf("project") > -1) || e.libPath.indexOf(currentLib) > -1
|
||||||
}).filter(e => !!search ? e.label.indexOf(search) > -1 : true) || []
|
}).filter(e => !!search ? e.label?.indexOf(search) > -1 : true) || []
|
||||||
},
|
},
|
||||||
currentApp() {
|
currentApp() {
|
||||||
return this.apps.find(e => e.key == this.$route.query.app) || {}
|
return this.apps.find(e => e.key == this.$route.query.app) || {}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "AppEquipment",
|
name: "AppEquipment",
|
||||||
|
appName: '设备管理',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
areaId: '',
|
areaId: '',
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="form.girdMemberList && form.girdMemberList.length">
|
<div v-if="form.girdMemberList && form.girdMemberList.length">
|
||||||
<div class="info-flex" v-for="(item, index) in form.girdMemberList" :key="index">
|
<div class="info-flex" v-for="(item, index) in form.girdMemberList" :key="index">
|
||||||
<span class="label">网格管理员</span>
|
<span class="label">网格长</span>
|
||||||
<span class="value">{{ item.name }} {{ item.phone }}
|
<span class="value">{{ item.name }} {{ item.phone }}
|
||||||
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
|
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
|
||||||
v-if="item.phone">
|
v-if="item.phone">
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<div class="SelectGird">
|
<div class="SelectGird">
|
||||||
<div class="header-middle">
|
<div class="header-middle">
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
<AiGap/>
|
|
||||||
<span v-for="(item, index) in slectList" :key="index">
|
<span v-for="(item, index) in slectList" :key="index">
|
||||||
<span v-if="index" style="margin:0 4px;" v-text="`/`"/>
|
<span v-if="index" style="margin:0 4px;" v-text="`/`"/>
|
||||||
<span style="color:#3F8DF5" @click="girdNameClick(item, index)" v-text="item.girdName"/>
|
<span style="color:#3F8DF5" @click="girdNameClick(item, index)" v-text="item.girdName"/>
|
||||||
@@ -22,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty :description="isGridMember?`暂无数据`:`当前人员不是网格员或网格管理员`" class="emptyWrap" v-else/>
|
<AiEmpty :description="isGridMember?`暂无数据`:`当前人员不是网格员或网格长`" class="emptyWrap" v-else/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="padding-bottom: 70px;"></div> -->
|
<!-- <div style="padding-bottom: 70px;"></div> -->
|
||||||
@@ -43,7 +42,6 @@ export default {
|
|||||||
allData: null,
|
allData: null,
|
||||||
treeList: [],
|
treeList: [],
|
||||||
slectList: [],
|
slectList: [],
|
||||||
userList: [],
|
|
||||||
parentGirdId: '',
|
parentGirdId: '',
|
||||||
isFormMap: 0, //1为网格地图 一级不允许选中
|
isFormMap: 0, //1为网格地图 一级不允许选中
|
||||||
}
|
}
|
||||||
@@ -61,7 +59,7 @@ export default {
|
|||||||
if (option.isFormMap) {
|
if (option.isFormMap) {
|
||||||
this.isFormMap = option.isFormMap
|
this.isFormMap = option.isFormMap
|
||||||
}
|
}
|
||||||
this.isGridMember ? this.getAllGrids() : this.$u.toast('当前人员不是网格员或网格管理员')
|
this.isGridMember ? this.getAllGrids() : this.$u.toast('当前人员不是网格员或网格长')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getAllGrids() {
|
getAllGrids() {
|
||||||
@@ -81,9 +79,9 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
treeInit() {
|
treeInit(isClick) {
|
||||||
let last = uni.getStorageSync("lastSelectedGrid")
|
let last = uni.getStorageSync("lastSelectedGrid")
|
||||||
if (last) {
|
if (!isClick && last) {
|
||||||
this.$http.post("/app/appgirdinfo/listFatherGirdInfo", null, {
|
this.$http.post("/app/appgirdinfo/listFatherGirdInfo", null, {
|
||||||
params: {girdId: last}
|
params: {girdId: last}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -114,18 +112,11 @@ export default {
|
|||||||
this.treeList = this.allData.filter(e => e.parentGirdId == parentGirdId)
|
this.treeList = this.allData.filter(e => e.parentGirdId == parentGirdId)
|
||||||
},
|
},
|
||||||
girdNameClick(row, index) {
|
girdNameClick(row, index) {
|
||||||
this.userList = []
|
|
||||||
if (!index) { //第一级别
|
if (!index) { //第一级别
|
||||||
this.slectList = []
|
this.slectList = []
|
||||||
this.treeInit()
|
this.treeInit(true)
|
||||||
} else {
|
} else {
|
||||||
var list = []
|
this.slectList.splice(index, 8)
|
||||||
this.slectList.map((item, i) => {
|
|
||||||
if (i <= index) {
|
|
||||||
list.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.slectList = list
|
|
||||||
this.getGridsByGridMemberAndParent(row)
|
this.getGridsByGridMemberAndParent(row)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppResourcesManage",
|
name: "AppResourcesManage",
|
||||||
|
appName: '媒资管理',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tab: [{name: '音频素材'}, {name: '文本素材'}],
|
tab: [{name: '音频素材'}, {name: '文本素材'}],
|
||||||
|
|||||||
@@ -196,8 +196,18 @@ export default {
|
|||||||
if(!this.form.content) {
|
if(!this.form.content) {
|
||||||
return this.$u.toast('请输入文本内容')
|
return this.$u.toast('请输入文本内容')
|
||||||
}
|
}
|
||||||
|
if(this.form.contentType == 'image' && !this.formData.imgList.length) {
|
||||||
|
return this.$u.toast('请上传图片')
|
||||||
|
}
|
||||||
|
if(this.form.contentType == 'video' && !this.formData.fileList.length) {
|
||||||
|
return this.$u.toast('请上传视频')
|
||||||
|
}
|
||||||
|
if(this.form.contentType == 'file' && !this.formData.fileList.length) {
|
||||||
|
return this.$u.toast('请上传文件')
|
||||||
|
}
|
||||||
if(this.formData.fileList.length) {
|
if(this.formData.fileList.length) {
|
||||||
this.formData.file = this.formData.fileList[0]
|
this.formData.file = this.formData.fileList[0]
|
||||||
|
this.formData.accessUrl = this.formData.fileList[0].url
|
||||||
}
|
}
|
||||||
if(this.formData.imgList.length) {
|
if(this.formData.imgList.length) {
|
||||||
this.formData.accessUrl = this.formData.imgList[0].url
|
this.formData.accessUrl = this.formData.imgList[0].url
|
||||||
@@ -220,7 +230,11 @@ export default {
|
|||||||
this.areaIdList = []
|
this.areaIdList = []
|
||||||
this.tagIdList = []
|
this.tagIdList = []
|
||||||
this.formDataInit()
|
this.formDataInit()
|
||||||
|
}else {
|
||||||
|
this.$u.toast(res.msg)
|
||||||
}
|
}
|
||||||
|
}).catch((err) => {
|
||||||
|
this.$u.toast(err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
formDataInit() {
|
formDataInit() {
|
||||||
|
|||||||
Reference in New Issue
Block a user