diff --git a/bin/serve.js b/bin/serve.js
index a9cbf775..16450075 100644
--- a/bin/serve.js
+++ b/bin/serve.js
@@ -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)
})
diff --git a/src/apps/AppBroadcast1/LiveBroadcast.vue b/src/apps/AppBroadcast1/LiveBroadcast.vue
index 72c8ee14..1e57ef8e 100644
--- a/src/apps/AppBroadcast1/LiveBroadcast.vue
+++ b/src/apps/AppBroadcast1/LiveBroadcast.vue
@@ -11,7 +11,8 @@
@@ -412,8 +413,8 @@
}
image {
- width: 20px;
- height: 32px;
+ width: 28px;
+ height: 28px;
margin-right: 14px;
}
}
diff --git a/src/common/axios.js b/src/common/axios.js
index d72415d2..b72ca253 100644
--- a/src/common/axios.js
+++ b/src/common/axios.js
@@ -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'
diff --git a/src/components/AiPagePicker.vue b/src/components/AiPagePicker.vue
index 76ba8271..e8b764c9 100644
--- a/src/components/AiPagePicker.vue
+++ b/src/components/AiPagePicker.vue
@@ -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({
diff --git a/src/pages/login.vue b/src/pages/login.vue
index b72ac34e..4b100925 100644
--- a/src/pages/login.vue
+++ b/src/pages/login.vue
@@ -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)
}
diff --git a/src/project/beta/AppBroadcast1/img/voice.gif b/src/project/beta/AppBroadcast1/img/voice.gif
new file mode 100644
index 00000000..10cc2dcf
Binary files /dev/null and b/src/project/beta/AppBroadcast1/img/voice.gif differ
diff --git a/src/project/beta/AppGridManagement/AddGird.vue b/src/project/beta/AppGridManagement/AddGird.vue
index dd9bd7c0..07bf15bf 100644
--- a/src/project/beta/AppGridManagement/AddGird.vue
+++ b/src/project/beta/AppGridManagement/AddGird.vue
@@ -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()
}
}
diff --git a/src/project/beta/AppGridManagement/AddUser.vue b/src/project/beta/AppGridManagement/AddUser.vue
index 1bad91f6..88787686 100644
--- a/src/project/beta/AppGridManagement/AddUser.vue
+++ b/src/project/beta/AppGridManagement/AddUser.vue
@@ -1,11 +1,11 @@
-
+
@@ -13,24 +13,26 @@
*手机号
-
+
*所属网格
-
-
{{selectGird.girdName}}
-
请选择
-

+
+
-
-
+