7.5移动端

jg-waiwang-pro
胡川虎 4 months ago
parent 67ca58f4c7
commit cb04c154d6

@ -413,6 +413,7 @@
this.close() this.close()
}, },
close() { close() {
this.keyword = '';
this.$emit('input', false); this.$emit('input', false);
} }
} }

@ -248,6 +248,9 @@
import portalItem from '@/components/visualPortal/components/index.vue' import portalItem from '@/components/visualPortal/components/index.vue'
import defaultPortal from '@/components/visualPortal/components/defaultPortal.vue' import defaultPortal from '@/components/visualPortal/components/defaultPortal.vue'
import request from '@/utils/request' import request from '@/utils/request'
import {
getFlowTodoCount
} from "@/api/workFlow/flowEngine";
import { import {
auth auth
} from '@/api/portal/portal.js' } from '@/api/portal/portal.js'
@ -265,6 +268,7 @@
}, },
data() { data() {
return { return {
flowTodoData: {},
homeInfo: {}, homeInfo: {},
showWebView: true, showWebView: true,
emptyImg: require(`@/static/image/defProtal.png`), emptyImg: require(`@/static/image/defProtal.png`),
@ -303,14 +307,26 @@
}; };
}, },
onShow() { onShow() {
this.getHomeInfo() const query = {
flowCirculateType: this.flowCirculateType,
flowDoneType: this.flowDone,
toBeReviewedType: this.toBeReviewed,
}
getFlowTodoCount(query).then(res => {
this.flowTodoData = res.data
this.getHomeInfo()
this.userInfo = uni.getStorageSync('userInfo') || {}
this.mescrollInitByRef();
this.mescroll.resetUpScroll()
})
// this.getHomeInfo()
// this.$forceUpdate() // this.$forceUpdate()
// this.token = uni.getStorageSync('token') // this.token = uni.getStorageSync('token')
// if (!this.$store.state.chat.socket) chat.initSocket() // if (!this.$store.state.chat.socket) chat.initSocket()
// this.mpPortalUrl = this.define.baseURL + '/pages/mpPortal/index?token=' + this.token // this.mpPortalUrl = this.define.baseURL + '/pages/mpPortal/index?token=' + this.token
this.userInfo = uni.getStorageSync('userInfo') || {} // this.userInfo = uni.getStorageSync('userInfo') || {}
this.mescrollInitByRef(); // this.mescrollInitByRef();
this.mescroll.resetUpScroll() // this.mescroll.resetUpScroll()
// this.$refs.mescrollRef.mescroll.resetUpScroll() // this.$refs.mescrollRef.mescroll.resetUpScroll()
// if (!this.userInfo.appPortalId) return // if (!this.userInfo.appPortalId) return
// // #ifndef MP // // #ifndef MP
@ -384,7 +400,7 @@
this.authConfig = res.data || {} this.authConfig = res.data || {}
let data = JSON.parse(res.data.formData) || {}; let data = JSON.parse(res.data.formData) || {};
this.formData = [] this.formData = []
this.formData = data.layout ? JSON.parse(JSON.stringify(data.layout)) : [] this.formData = data.layout ? JSON.parse(JSON.stringify(data.layout)) : [];
this.handelFormData(data) this.handelFormData(data)
if (data.refresh.autoRefresh) { if (data.refresh.autoRefresh) {
setInterval(() => { setInterval(() => {
@ -406,6 +422,16 @@
const loop = (list) => { const loop = (list) => {
list.forEach(o => { list.forEach(o => {
o.allRefresh = data.refresh o.allRefresh = data.refresh
o.option.defaultValue.forEach(p => {
if(p.fullName == '待办事宜'){
p.num = this.flowTodoData.toBeReviewed
}
if(p.fullName == '抄送事宜'){
p.num = 0
p.num = this.flowTodoData.flowCirculate
}
})
o.show = false o.show = false
if (o.visibility && o.visibility.length && o.visibility.includes('app')) o.show = if (o.visibility && o.visibility.length && o.visibility.includes('app')) o.show =
true true

@ -109,7 +109,7 @@
</u-button> </u-button>
</template> </template>
<u-button class="buttom-btn" type="primary" v-if="config.opType == 1&&properties.hasAuditBtn" <u-button class="buttom-btn" type="primary" v-if="config.opType == 1&&properties.hasAuditBtn"
@click.stop="eventLauncher('audit')">审批 @click.stop="eventLauncher('audit')">通过
</u-button> </u-button>
<u-button class="buttom-btn" type="error" @click.stop="eventReceiver({},'recall')" <u-button class="buttom-btn" type="error" @click.stop="eventReceiver({},'recall')"
v-if="config.opType == 2 && properties.hasRevokeBtn"> v-if="config.opType == 2 && properties.hasRevokeBtn">

@ -56,7 +56,7 @@
<u-input class="tag-ipt" v-if="inputVisible" ref="saveTagInput" v-model="tagValue" :type="type" <u-input class="tag-ipt" v-if="inputVisible" ref="saveTagInput" v-model="tagValue" :type="type"
:focus="focus" :border="border" @keyup.enter.native="handleInputConfirm" :focus="focus" :border="border" @keyup.enter.native="handleInputConfirm"
@blur="handleInputConfirm" /> @blur="handleInputConfirm" />
<u-button class="tag-btn" v-else type="info" size="mini" @click="editCommonWord">+ </u-button> <u-button class="tag-btn" v-else type="info" size="mini" @click="showInput">+ </u-button>
</view> </view>
<u-form-item :label="config.title + '附件'" prop="fileList" <u-form-item :label="config.title + '附件'" prop="fileList"
v-if="config.eventType !== 'submit' && config.hasOpinion && config.title != '拒绝'"> v-if="config.eventType !== 'submit' && config.hasOpinion && config.title != '拒绝'">
@ -74,7 +74,7 @@
</u-form> </u-form>
</view> </view>
<view v-if="isShow"> <view v-if="isShow">
<view class="flowBefore-actions" v-if="config.eventType !== 'submit'"> <view class="flowBefore-actions" v-if="config.eventType !== 'submit'" style="bottom: auto;">
<u-button class="buttom-btn" type="primary" @click="handleClick(config.eventType)"> <u-button class="buttom-btn" type="primary" @click="handleClick(config.eventType)">
{{ btnTxt }} {{ btnTxt }}
</u-button> </u-button>
@ -172,6 +172,7 @@
commonWordsText: "", commonWordsText: "",
show2: false, show2: false,
show: false, show: false,
inputVisible: false,
btnTxt: '确认', btnTxt: '确认',
typeList: [{ typeList: [{
fullName: "审批前", fullName: "审批前",
@ -310,6 +311,10 @@
uni.$off("confirm"); uni.$off("confirm");
}, },
methods: { methods: {
showInput() {
this.inputVisible = true;
this.focus = true;
},
useTag(tag) { useTag(tag) {
this.dataForm.handleOpinion = tag; this.dataForm.handleOpinion = tag;
}, },
@ -373,6 +378,35 @@
this.getSelector(); this.getSelector();
}); });
}, },
handleInputConfirm() {
this.commonWordsData.commonWordsText = this.tagValue;
this.commonWordsData.commonWordsType = 1
this.commonWordsData.sortCode = 0
this.commonWordsData.enabledMark = 1
if (this.tagValue && this.tagValue != ''){
let funs = Create;
this.tagValue = '';
funs(this.commonWordsData)
.then((res) => {
this.focus = false;
this.inputVisible = false;
uni.showToast({
title: res.msg,
icon: "none",
complete: () => {
this.getSelector();
},
});
})
.catch((err) => {
this.show2 = false;
this.getSelector();
});
}else{
this.focus = false;
this.inputVisible = false;
}
},
cancel() { cancel() {
this.show2 = false; this.show2 = false;
this.commonWordsText = ""; this.commonWordsText = "";

@ -122,6 +122,8 @@ public class CommonWordsController extends SuperController<CommonWordsService, C
public ActionResult<CommonWordsForm> create(@RequestBody CommonWordsForm commonWordsForm) { public ActionResult<CommonWordsForm> create(@RequestBody CommonWordsForm commonWordsForm) {
CommonWordsEntity entity = JsonUtil.getJsonToBean(commonWordsForm, CommonWordsEntity.class); CommonWordsEntity entity = JsonUtil.getJsonToBean(commonWordsForm, CommonWordsEntity.class);
entity.setId(RandomUtil.uuId()); entity.setId(RandomUtil.uuId());
entity.setSortCode(0L);
entity.setEnabledMark(1);
commonWordsService.save(entity); commonWordsService.save(entity);
return ActionResult.success(MsgCode.SU001.get()); return ActionResult.success(MsgCode.SU001.get());
} }

Loading…
Cancel
Save