Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_wxcp_app into dev
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const {chalkTag, findPages, fs, fsExtra} = require("./tools");
|
||||
const axios = require("axios");
|
||||
let apps = {list: [], desc: "用于产品库主页面获取应用使用"}
|
||||
let apps = {list: [], desc: "用于产品库主页面获取应用使用", type: 'wxwork'}
|
||||
const getFileInfo = (app, file) => {
|
||||
let vue = fs.readFileSync(file).toString()
|
||||
if (/appName/.test(vue)) {
|
||||
@@ -11,7 +11,7 @@ const getFileInfo = (app, file) => {
|
||||
} else
|
||||
app.style = {navigationBarTitleText: app.label}
|
||||
}
|
||||
if (/^App/.test(app.name)) {
|
||||
if (/^App/.test(app.name) && app.label) {
|
||||
let {name, label} = app,
|
||||
path = app.path.replace(/.+[\\\/]([^\\\/]+)[\\\/]([^\\\/]+)$/g, `/apps/$1/$2`)
|
||||
apps.list.push({
|
||||
@@ -27,7 +27,7 @@ const getFileInfo = (app, file) => {
|
||||
const saveApps = app => {
|
||||
if (app.list.length > 0) {
|
||||
axios.post("http://192.168.1.87:12525/node/wechatapps/addOrUpdate", app, {timeout: 1000}).then(res => {
|
||||
if (res.code == 0) chalkTag.done("产品库目录已同步至后台数据库...")
|
||||
if (res.data.code == 0) chalkTag.done("产品库目录已同步至后台数据库...")
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
<div class="record-item" v-for="(item, index) in 100" :key="index">
|
||||
<image :src="user.avatar" />
|
||||
<div class="right">
|
||||
<image src="./img/voice-icon.png" />
|
||||
<!-- <image mode="aspectFit" src="./img/voice-icon.png" /> -->
|
||||
<image src="./img/voice.gif" />
|
||||
<span>23"</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -412,8 +413,8 @@
|
||||
}
|
||||
|
||||
image {
|
||||
width: 20px;
|
||||
height: 32px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ instance.interceptors.request.use(config => {
|
||||
} else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum') {
|
||||
config.baseURL = '/aca'
|
||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||
} else if (/\/project\/beta\//.test(location.pathname)) {
|
||||
} else if (/\/project\/beta\//.test(location.pathname) || store.state.config.corpid == 'ww2a667717a70164f1' || config.module == 'wangge') {
|
||||
config.baseURL = '/wangge'
|
||||
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc') {
|
||||
config.baseURL = '/hnjc'
|
||||
|
||||
@@ -22,7 +22,8 @@ export default {
|
||||
nodeKey: {default: "idNumber"},
|
||||
selected: {default: () => []},
|
||||
placeholder: {default: "选择人员"},
|
||||
ops: {default: () => ({})}
|
||||
ops: {default: () => ({})},
|
||||
valueObj: Boolean
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -46,13 +47,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleJump() {
|
||||
let {config, nodeKey} = this,
|
||||
selected = this.value || this.selected?.map(e => e[nodeKey])
|
||||
let {config, nodeKey, valueObj} = this,
|
||||
selected = (valueObj ? this.value[nodeKey] : this.value) || this.selected?.map(e => e[nodeKey])
|
||||
uni.$once('pagePicker:' + this.type, data => {
|
||||
console.log('发送', data)
|
||||
this.$emit("update:selected", data)
|
||||
this.$emit("select", data)
|
||||
this.$emit("change", data ? [data].flat()?.map(e => e[nodeKey]) : "")
|
||||
this.$emit("change", valueObj ? data : data ? [data].flat()?.map(e => e[nodeKey]) : "")
|
||||
})
|
||||
let url = `${config.url}`,
|
||||
qsstr = qs.stringify({
|
||||
|
||||
@@ -33,7 +33,8 @@ export default {
|
||||
return decodeURIComponent(this.$route.query.back) || ""
|
||||
},
|
||||
currentApp() {
|
||||
return this.apps.find(e => this.target.indexOf(e.libPath) > -1) || {}
|
||||
let path = this.target.replace(/(.+)[\\\/][^\\\/]+\??.*/, '$1')
|
||||
return this.apps.find(e => e.libPath.indexOf(path) > -1) || {}
|
||||
},
|
||||
appPath() {
|
||||
return this.currentApp?.label || ""
|
||||
@@ -50,12 +51,15 @@ export default {
|
||||
handleLogin() {
|
||||
this.$refs.loginForm.validate(v => {
|
||||
if (v) {
|
||||
let {name: module,libPath} = this.currentApp
|
||||
if(/\/project\/police\//.test(libPath)){
|
||||
let {name: module, libPath} = this.currentApp,
|
||||
corpId = 'ww596787bb70f08288'
|
||||
if (/\/project\/police\//.test(libPath)) {
|
||||
module = 'hnjc'
|
||||
} else if (/\/project\/beta\//.test(libPath)) {
|
||||
corpId = 'ww2a667717a70164f1'
|
||||
module = 'wangge'
|
||||
}
|
||||
this.getToken({...this.form, module, corpId: 'ww596787bb70f08288'}).then(() => {
|
||||
// this.getToken({...this.form, module, corpId: 'wpytYEDgAAcpXjmlYkYwKO60JDGDWrXg'}).then(() => {
|
||||
this.getToken({...this.form, module, corpId}).then(() => {
|
||||
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
|
||||
}).catch(() => 0)
|
||||
}
|
||||
|
||||
BIN
src/project/beta/AppBroadcast1/img/voice.gif
Normal file
BIN
src/project/beta/AppBroadcast1/img/voice.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
@@ -34,7 +34,6 @@ export default {
|
||||
girdMemberManageList: [],
|
||||
girdMemberList: []
|
||||
},
|
||||
detailInfo: {},
|
||||
fromType: 'add', //add新增 edit编辑,
|
||||
}
|
||||
},
|
||||
@@ -54,13 +53,14 @@ export default {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.detailInfo = res.data
|
||||
if (this.fromType == 'edit') {
|
||||
this.form = res.data
|
||||
this.form.girdMemberList.map(e => e.id = e.wxUserId)
|
||||
this.form.girdMemberManageList.map(e => e.id = e.wxUserId)
|
||||
}
|
||||
if (this.fromType == 'add') {
|
||||
this.form.parentGirdId = this.detailInfo.id
|
||||
this.form.parentGirdName = this.detailInfo.girdName
|
||||
this.form.parentGirdId = res.data.id
|
||||
this.form.parentGirdName = res.data.girdName
|
||||
this.$forceUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="AddGird">
|
||||
<section class="AddGird">
|
||||
<div class="item-flex">
|
||||
<div class="label">
|
||||
<span class="tips">*</span>姓名
|
||||
</div>
|
||||
<div class="value">
|
||||
<u-input type="text" placeholder="请输入" input-align="right" placeholder-style="color:#999;font-size:16px;" height="48" v-model="name" maxlength="50" />
|
||||
<u-input type="text" placeholder="请输入" input-align="right" placeholder-style="color:#999;font-size:16px;" height="48" v-model="name" maxlength="50"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
@@ -13,24 +13,26 @@
|
||||
<span class="tips">*</span>手机号
|
||||
</div>
|
||||
<div class="value">
|
||||
<u-input type="text" placeholder="请输入" input-align="right" placeholder-style="color:#999;font-size:16px;" height="48" v-model="phone" maxlength="50" />
|
||||
<u-input type="text" placeholder="请输入" input-align="right" placeholder-style="color:#999;font-size:16px;" height="48" v-model="phone" maxlength="50"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">
|
||||
<span class="tips">*</span>所属网格
|
||||
</div>
|
||||
<div class="value" @click="linkTo('./SelectGird?formType=2')">
|
||||
<span v-if="selectGird.girdName">{{selectGird.girdName}}</span>
|
||||
<span style="color:#999;" v-else>请选择</span>
|
||||
<img src="./components/img/right-icon.png" alt="" /></div>
|
||||
<div class="value">
|
||||
<AiPagePicker type="custom" v-model="selectGird" valueObj nodeKey="id" :ops="{url:'./SelectGird',label: 'girdName'}" formType="2">
|
||||
<AiMore v-model="selectGird.girdName"/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
<div class="footer" @click="confirm">确认添加</div>
|
||||
</div>
|
||||
<div class="footer" @click="confirm">确认添加</div>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -41,25 +43,21 @@ export default {
|
||||
},
|
||||
computed: {...mapState(['user'])},
|
||||
onLoad() {
|
||||
console.log(this.user)
|
||||
this.name = this.user.name || ''
|
||||
this.phone = this.user.phone || ''
|
||||
uni.$on('goback', (res) => {
|
||||
this.selectGird = res
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
document.title = '网格员信息申报'
|
||||
},
|
||||
methods: {
|
||||
confirm() {
|
||||
if(!this.name){
|
||||
if (!this.name) {
|
||||
return this.$u.toast('请输入姓名')
|
||||
}
|
||||
if(!this.phone){
|
||||
if (!this.phone) {
|
||||
return this.$u.toast('请输入手机号')
|
||||
}
|
||||
if(!this.selectGird.girdName){
|
||||
if (!this.selectGird.girdName) {
|
||||
return this.$u.toast('请选择所属网格')
|
||||
}
|
||||
this.$http.post(`/app/appgirdmemberapply/girdMemberCheck?name=${this.name}&phone=${this.phone}&girdName=${this.selectGird.girdName}`).then((res) => {
|
||||
@@ -73,7 +71,7 @@ export default {
|
||||
},
|
||||
|
||||
linkTo(url) {
|
||||
uni.navigateTo({ url })
|
||||
uni.navigateTo({url})
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -81,42 +79,48 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AddGird {
|
||||
.item-flex{
|
||||
.item-flex {
|
||||
display: flex;
|
||||
padding: 34px 32px;
|
||||
background-color: #fff;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
margin-bottom: 16px;
|
||||
.label{
|
||||
|
||||
.label {
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
line-height: 22px;
|
||||
width: 150px;
|
||||
.tips{
|
||||
|
||||
.tips {
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
color: #F46;
|
||||
line-height: 44px;
|
||||
}
|
||||
}
|
||||
.value{
|
||||
|
||||
.value {
|
||||
width: calc(100% - 150px);
|
||||
line-height: 44px;
|
||||
text-align: right;
|
||||
color: #666;
|
||||
img{
|
||||
|
||||
img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
vertical-align: middle;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
.color-999{
|
||||
|
||||
.color-999 {
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
.footer{
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<div class="success">
|
||||
<img src="./components/img/success.png" alt="" v-if="status">
|
||||
<img src="./components/img/fail.png" alt="" v-else>
|
||||
<p>{{status == 1 ? '信息申报成功!' : '信息申报失败!'}}</p>
|
||||
<p class="text">{{status == 1 ? '重新进入即可开始正常使用' : '系统无法匹配该申报信息,请联系管理人员进行处理'}}</p>
|
||||
<div class="footer" @click="back">{{status == 1 ? '确定' : '我知道了'}}</div>
|
||||
<p>{{ status == 1 ? '信息申报成功!' : '信息申报失败!' }}</p>
|
||||
<p class="text">{{ status == 1 ? '重新进入即可开始正常使用' : '系统无法匹配该申报信息,请联系管理人员进行处理' }}</p>
|
||||
<div class="footer" @click="back">{{ status == 1 ? '确定' : '我知道了' }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -23,25 +23,32 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
uni.navigateBack({delta: 2})
|
||||
uni.navigateBack({
|
||||
delta: 2, success() {
|
||||
location.reload()
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
uni-page-body{
|
||||
uni-page-body {
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.success {
|
||||
text-align: center;
|
||||
img{
|
||||
|
||||
img {
|
||||
width: 192px;
|
||||
height: 192px;
|
||||
margin: 96px 0 16px 0;
|
||||
}
|
||||
p{
|
||||
|
||||
p {
|
||||
line-height: 50px;
|
||||
color: #333;
|
||||
font-size: 36px;
|
||||
@@ -49,7 +56,8 @@ uni-page-body{
|
||||
text-align: center;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.footer{
|
||||
|
||||
.footer {
|
||||
width: calc(100% - 96px);
|
||||
height: 88px;
|
||||
line-height: 88px;
|
||||
@@ -63,7 +71,8 @@ uni-page-body{
|
||||
border-radius: 8px;
|
||||
margin-left: 48px;
|
||||
}
|
||||
.text{
|
||||
|
||||
.text {
|
||||
line-height: 44px;
|
||||
font-size: 28px;
|
||||
width: 500px;
|
||||
|
||||
@@ -23,20 +23,20 @@
|
||||
<div class="info-flex" v-for="(item, index) in form.girdMemberManageList" :key="index">
|
||||
<span class="label">网格长</span>
|
||||
<span class="value">
|
||||
{{ [item.name,item.phone].join(" ") }}
|
||||
{{ [item.name, item.phone].join(" ") }}
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="form.girdMemberList && form.girdMemberList.length">
|
||||
<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 }}
|
||||
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
|
||||
v-if="item.phone">
|
||||
v-if="item.phone">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</scroll-view>
|
||||
</scroll-view>
|
||||
</div>
|
||||
</u-popup>
|
||||
</div>
|
||||
@@ -65,43 +65,14 @@ export default {
|
||||
created() {
|
||||
this.$dict.load('girdType')
|
||||
this.areaId = this.user.areaId
|
||||
// this.getLeafNodes()
|
||||
uni.$on('goback', e => {
|
||||
this.getGridList(e.id, true)
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
document.title = "网格管理"
|
||||
},
|
||||
|
||||
methods: {
|
||||
toChoose () {
|
||||
uni.navigateTo({
|
||||
url: './SelectGird?isFormMap=1'
|
||||
})
|
||||
},
|
||||
getLeafNodes() {
|
||||
this.$http.post(`/app/appgirdinfo/queryGirdMemberGirdsById`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.treeList = res.data
|
||||
|
||||
const arr = res.data.filter(v => v.points).map(e => {
|
||||
return {
|
||||
id: e.id,
|
||||
girdName: e.girdName,
|
||||
points: e.points.map(p => [p.lng, p.lat])
|
||||
}
|
||||
})
|
||||
|
||||
arr.length > 0 && this.renderGridMap(arr)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getGridList (id) {
|
||||
getGridList(id) {
|
||||
this.$loading()
|
||||
this.$http.post(`/app/appgirdinfo/queryChildGirdInfoByGirdId?girdId=${id}`).then((res) => {
|
||||
this.$hideLoading()
|
||||
if (res?.data) {
|
||||
const arr = res.data.map(v => {
|
||||
return {
|
||||
@@ -112,12 +83,11 @@ export default {
|
||||
})
|
||||
this.renderGridMap(arr)
|
||||
}
|
||||
}).catch(() => {
|
||||
}).finally(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
getGridInfo (id, flag) {
|
||||
getGridInfo(id, flag) {
|
||||
this.$loading()
|
||||
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => {
|
||||
this.$hideLoading()
|
||||
@@ -142,7 +112,6 @@ export default {
|
||||
this.$hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
renderGridMap(paths, count = 0) {
|
||||
let {map, lib: TMap, $refs: {AiTMap: {fitBounds}}} = this
|
||||
if (TMap) {
|
||||
@@ -157,58 +126,54 @@ export default {
|
||||
}
|
||||
if (paths?.length > 0) {
|
||||
let bounds = []
|
||||
|
||||
paths.forEach((path, i) => {
|
||||
let color = colors[i % colors.length]
|
||||
let polygon = new TMap.MultiPolygon({
|
||||
map, styles: {
|
||||
default: new TMap.PolygonStyle({
|
||||
showBorder: true,
|
||||
borderColor: '#5088FF',
|
||||
borderWidth: 2,
|
||||
color: this.$colorUtils.Hex2RGBA('#5088FF', 0.1)
|
||||
})
|
||||
},
|
||||
id: path.id,
|
||||
geometries: [{paths: path.points.map(e => new TMap.LatLng(e[1], e[0]))}]
|
||||
})
|
||||
this.polygons.push(polygon)
|
||||
bounds.push(fitBounds(path.points.map(e => new TMap.LatLng(e[1], e[0]))))
|
||||
|
||||
polygon.on('click', e => {
|
||||
const id = e.target.id
|
||||
this.getGridInfo(id)
|
||||
})
|
||||
|
||||
const points = path.points.map(e => new TMap.LatLng(e[1], e[0]))
|
||||
|
||||
var position = TMap.geometry.computeCentroid(points)
|
||||
|
||||
let label = new TMap.MultiLabel({
|
||||
id: `label~${path.id}`,
|
||||
data: path.id,
|
||||
map: map,
|
||||
styles: {
|
||||
building: new TMap.LabelStyle({
|
||||
color: '#3777FF',
|
||||
size: 20,
|
||||
alignment: 'center',
|
||||
verticalAlignment: 'middle'
|
||||
})
|
||||
},
|
||||
geometries: [
|
||||
{
|
||||
id: `label-class-${i}`,
|
||||
styleId: 'building',
|
||||
position: position,
|
||||
content: path.girdName,
|
||||
}
|
||||
]
|
||||
})
|
||||
this.labels.push(label)
|
||||
label.on('click', e => {
|
||||
this.getGridInfo(e.target.id.split('~')[1])
|
||||
});
|
||||
if(path.points?.length>0){
|
||||
let polygon = new TMap.MultiPolygon({
|
||||
map, styles: {
|
||||
default: new TMap.PolygonStyle({
|
||||
showBorder: true,
|
||||
borderColor: '#5088FF',
|
||||
borderWidth: 2,
|
||||
color: this.$colorUtils.Hex2RGBA('#5088FF', 0.1)
|
||||
})
|
||||
},
|
||||
id: path.id,
|
||||
geometries: [{paths: path.points.map(e => new TMap.LatLng(e[1], e[0]))}]
|
||||
})
|
||||
this.polygons.push(polygon)
|
||||
bounds.push(fitBounds(path.points.map(e => new TMap.LatLng(e[1], e[0]))))
|
||||
polygon.on('click', e => {
|
||||
const id = e.target.id
|
||||
this.getGridInfo(id)
|
||||
})
|
||||
const points = path.points.map(e => new TMap.LatLng(e[1], e[0]))
|
||||
const position = TMap.geometry.computeCentroid(points)
|
||||
let label = new TMap.MultiLabel({
|
||||
id: `label~${path.id}`,
|
||||
data: path.id,
|
||||
map: map,
|
||||
styles: {
|
||||
building: new TMap.LabelStyle({
|
||||
color: '#3777FF',
|
||||
size: 20,
|
||||
alignment: 'center',
|
||||
verticalAlignment: 'middle'
|
||||
})
|
||||
},
|
||||
geometries: [
|
||||
{
|
||||
id: `label-class-${i}`,
|
||||
styleId: 'building',
|
||||
position,
|
||||
content: path.girdName,
|
||||
}
|
||||
]
|
||||
})
|
||||
this.labels.push(label)
|
||||
label.on('click', e => {
|
||||
this.getGridInfo(e.target.id.split('~')[1])
|
||||
});
|
||||
}
|
||||
})
|
||||
bounds = bounds.reduce((a, b) => {
|
||||
return fitBounds([
|
||||
@@ -234,16 +199,9 @@ export default {
|
||||
callPhone(phone) {
|
||||
uni.makePhoneCall({phoneNumber: phone})
|
||||
},
|
||||
handleSelect(e) {
|
||||
if (e?.points?.length > 0) {
|
||||
this.form = e
|
||||
const points = e.points.map(e => new TMap.LatLng(e.lat, e.lng))
|
||||
var position = TMap.geometry.computeCentroid(points)
|
||||
this.map.setCenter(position)
|
||||
this.map.setZoom(18)
|
||||
} else {
|
||||
this.$u.toast("所选网格没有标绘!")
|
||||
}
|
||||
handleSelectGird(v) {
|
||||
this.form = v || {}
|
||||
this.getGridList(v?.id, true)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="Organization">
|
||||
<div class="title">网格人员</div>
|
||||
<div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="index">
|
||||
<div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="item.id">
|
||||
<div>
|
||||
<!-- <image :src="item.photo" alt="" mode="aspectFill" v-if="item.photo" /> -->
|
||||
<img :src="item.photo" alt="" v-if="item.photo">
|
||||
@@ -13,7 +13,7 @@
|
||||
<p>{{ item.girdName }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-content user-item" v-for="(item, index) in dataInfo.girdMembers" :key="index" @click="viewUser(item.wxUserId)">
|
||||
<div class="user-content user-item" v-for="(item, index) in dataInfo.girdMembers" :key="item.id" @click="viewUser(item.wxUserId)">
|
||||
<div>
|
||||
<!-- <image :src="item.photo" alt="" mode="aspectFill" v-if="item.photo" /> -->
|
||||
<img :src="item.photo" alt="" v-if="item.photo">
|
||||
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap"
|
||||
v-if="dataInfo.parentGirdMembers && !dataInfo.parentGirdMembers.length && !dataInfo.girdMembers.length"></AiEmpty>
|
||||
<div class="pad-b112"></div>
|
||||
<AiGap h="112"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -55,7 +55,8 @@ export default {
|
||||
return this.user.girdCheckType > 0
|
||||
},
|
||||
//是否是网格员申报
|
||||
isApply: v => v.$route.query.formType == 2
|
||||
isApply: v => v.$route.query.formType == 2,
|
||||
selected: v => [v.$route.query.selected].flat()
|
||||
},
|
||||
onLoad(option) {
|
||||
if (option.isFormMap) {
|
||||
@@ -98,7 +99,7 @@ export default {
|
||||
})
|
||||
} else {
|
||||
this.treeList = this.allData.filter(e => !e.parentGirdId || this.isMyGirds)
|
||||
this.treeList.map((item) => item.isChecked = false)
|
||||
this.treeList.map((item) => item.isChecked = this.selected.includes(item.id))
|
||||
let obj = {girdName: '可选范围', id: ''}
|
||||
this.slectList.push(obj)
|
||||
}
|
||||
|
||||
@@ -12,17 +12,17 @@
|
||||
<div class="rightes fill" flex>
|
||||
<img src="./components/img/gird--select-icon.png" alt="" class="avatras"/>
|
||||
<div class="applicationNames fill" @click="showGirdInfo(item)">{{ item.girdName }}</div>
|
||||
<u-icon v-if="item.hasChildren" @click="itemClick(item)" name="arrow-right" color="#ddd"/>
|
||||
<u-icon @click="itemClick(item)" name="arrow-right" color="#ddd"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else/>
|
||||
</AiItem>
|
||||
</AiGroup>
|
||||
<div class="subBtn" v-if="detail.girdRight==1">
|
||||
<div @click="toAddGird">添加下级网格</div>
|
||||
<div @click="edit">编辑网格</div>
|
||||
<div class="subBtn" v-if="detail.girdRight==1" flex>
|
||||
<div class="delete" @click="handleDelete">删除网格</div>
|
||||
<div @click="edit">编辑网格</div>
|
||||
<div @click="toAddGird">添加下级网格</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -57,7 +57,6 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
itemClick(row) {
|
||||
uni.navigateTo({url: `./SetGird?id=${row.id}`})
|
||||
},
|
||||
@@ -156,6 +155,7 @@ export default {
|
||||
height: 118px;
|
||||
background: #f4f8fb;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
justify-content: flex-end;
|
||||
|
||||
div {
|
||||
padding: 0 32px;
|
||||
@@ -167,7 +167,6 @@ export default {
|
||||
font-size: 32px;
|
||||
color: #fff;
|
||||
margin-left: 22px;
|
||||
float: right;
|
||||
border: 2px #1365dd solid;
|
||||
|
||||
&.delete {
|
||||
@@ -176,7 +175,7 @@ export default {
|
||||
border-color: #f46;
|
||||
}
|
||||
|
||||
&:first-of-type {
|
||||
&:last-of-type {
|
||||
margin-right: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,10 +158,7 @@ export default {
|
||||
box-shadow: 0 1px 0 0 #e4e5e6;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
// word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.empty-div {
|
||||
@@ -219,6 +216,7 @@ export default {
|
||||
}
|
||||
|
||||
.imgs {
|
||||
flex-shrink: 0;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-right: 20px;
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
<div class="item" v-else-if="item.type == 'gird'">
|
||||
<span class="label"><span class="tips">{{ item.mustFill == 1 ? '*' : '' }}</span>{{ item.fieldName }}</span>
|
||||
<div class="value" flex>
|
||||
<AiPagePicker type="custom" @select="v=>handleSelectGird(v,item)" self :ops="{url:'./SelectGird',label: 'girdName'}">
|
||||
<AiPagePicker type="custom" @select="v=>handleSelectGird(v,item)" :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||
<AiMore v-model="formData[item.fieldDbName + '_name']" :placeholder="item.fieldTips"/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
@@ -462,7 +462,7 @@ export default {
|
||||
return obj?.toString() || "-"
|
||||
},
|
||||
handleSelectGird(gird, item) {
|
||||
let info = gird?.[0] || {}
|
||||
let info = gird || {}
|
||||
this.formData[item.fieldDbName] = [info.id, info.girdName].join("_")
|
||||
this.formData[item.fieldDbName + "_name"] = info.girdName
|
||||
this.$forceUpdate()
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<div class="photo" v-if="pageShow">
|
||||
<div class="photo-header">
|
||||
<h2>{{ info.albumName }}</h2>
|
||||
<div class="right" @click="linkTo('./AddAlbum?id=' + id)" hover-class="text-hover" v-if="id !== '1' && isAdmin">
|
||||
<div
|
||||
class="right"
|
||||
@click="linkTo('./AddAlbum?id=' + id)"
|
||||
hover-class="text-hover"
|
||||
v-if="info.albumName !== '系统相册' && info.createUserId === user.wxUserId">
|
||||
<image src="./images/setting.png" />
|
||||
<span>相册设置</span>
|
||||
</div>
|
||||
@@ -95,7 +99,6 @@
|
||||
|
||||
onLoad (query) {
|
||||
this.id = query.id
|
||||
this.isAdmin = !!this.$store.state.user.adminAuthType
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.getTotalInfo(query.id)
|
||||
|
||||
@@ -57,7 +57,6 @@
|
||||
isShow: false,
|
||||
list: [],
|
||||
currIndex: 0,
|
||||
isAdmin: false,
|
||||
albumList: [],
|
||||
pageShow: false
|
||||
}
|
||||
@@ -75,7 +74,6 @@
|
||||
|
||||
onLoad (query) {
|
||||
this.$loading()
|
||||
this.isAdmin = !!this.$store.state.user.adminAuthType
|
||||
this.id = query.id
|
||||
this.getAlbumList()
|
||||
|
||||
@@ -90,7 +88,7 @@
|
||||
params: {
|
||||
albumId: this.id,
|
||||
pageSize: 100000,
|
||||
userId: this.isAdmin ? '' : this.$store.state.user.openId
|
||||
userId: this.$store.state.user.openId
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
<h2>工作相册</h2>
|
||||
<div class="album-list__wrapper">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" @click="linkTo('./AlbumDetail?id=' + item.id)">
|
||||
<span v-if="item.photoHasRead === 'NO'">未查看</span>
|
||||
<image src="./../images/icon.png" :loading-img="$cdn + 'watermark/loading.png'" v-if="!item.lastPhotoUrl" />
|
||||
<u-lazy-load class="item-img" img-mode="aspectFill" :height="328" :image="item.lastPhotoUrl" v-else></u-lazy-load>
|
||||
<div class="item-bottom">
|
||||
@@ -80,7 +79,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item item-add" @click="linkTo('./AddAlbum')" v-if="user && user.adminAuthType === '1'">
|
||||
<div class="item item-add" @click="linkTo('./AddAlbum')">
|
||||
<div class="item-add__btn"></div>
|
||||
<p>添加相册</p>
|
||||
</div>
|
||||
@@ -116,7 +115,6 @@
|
||||
},
|
||||
|
||||
mounted () {
|
||||
console.log(this.user.adminAuthType)
|
||||
this.getCountPhotoNo()
|
||||
this.getAlbumList()
|
||||
this.getMsgList()
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info-item info-work">
|
||||
<div class="info-item info-work" v-if="false">
|
||||
<div class="info-item__title">
|
||||
<h2>考勤统计</h2>
|
||||
<image src="../images/right.png" @click="linkTo('./Attendance?date=' + date.replace(/年|月/g, '-'))" />
|
||||
|
||||
@@ -10,7 +10,6 @@ let agentSignURL = "", apiList = []
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
token: "",
|
||||
corpId: "",
|
||||
openUser: {},
|
||||
user: {},
|
||||
config: {},
|
||||
@@ -65,7 +64,7 @@ const store = new Vuex.Store({
|
||||
},
|
||||
redirectCode(state, url = location.href) {
|
||||
let REDIRECT_URI = encodeURIComponent(url),
|
||||
corpid = state.corpId
|
||||
corpid = state.config.corpid
|
||||
const redirectTo = cid => {
|
||||
location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base#wechat_redirect'
|
||||
.replace(/CORPID/g, cid)
|
||||
@@ -75,7 +74,7 @@ const store = new Vuex.Store({
|
||||
redirectTo(corpid)
|
||||
} else {
|
||||
store.dispatch("agentSign").then(() => {
|
||||
corpid = state.corpId
|
||||
corpid = state.config.corpid
|
||||
redirectTo(corpid)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user