This commit is contained in:
parent
c03d05503f
commit
11e1c680ed
|
|
@ -161,25 +161,24 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-button">
|
<view class="right-button">
|
||||||
<view class="right-button-one" @click="jineng">
|
<view class="right-button-one" @click="clickButton(item,1)">
|
||||||
<image class="right-button-img"
|
<image class="right-button-img"
|
||||||
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
|
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
|
||||||
<view class="">
|
<view class="">
|
||||||
技能培训
|
员工信息
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right-button-one">
|
<view class="right-button-one" @click="clickButton(item,-1)">
|
||||||
<image class="right-button-img"
|
<image class="right-button-img"
|
||||||
:src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" />
|
:src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" />
|
||||||
<view class="">
|
<view class="">
|
||||||
员工功能
|
信息变更
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="white-box-father">
|
<view class="white-box-father">
|
||||||
<view v-for="(item0,index) in buttonArray" :key="index" class="white-box"
|
<view v-for="(item0,index) in buttonArray" :key="index" class="white-box" @click="jineng">
|
||||||
@click="clickButton(item,index)">
|
|
||||||
<image class="box-img"
|
<image class="box-img"
|
||||||
:src="`https://www.focusnu.com/media/directive/index/addstaff/${index+2}.png`" />
|
:src="`https://www.focusnu.com/media/directive/index/addstaff/${index+2}.png`" />
|
||||||
<view class="box-font">{{item0}}</view>
|
<view class="box-font">{{item0}}</view>
|
||||||
|
|
@ -303,7 +302,7 @@
|
||||||
// uni.showLoading()
|
// uni.showLoading()
|
||||||
}
|
}
|
||||||
|
|
||||||
const buttonArray = ref(["信息变更", "员工功能", "员工功能"])
|
const buttonArray = ref(["技能培训", "员工功能", "员工功能"])
|
||||||
const statusarray = ["loading", "success", "fail"]
|
const statusarray = ["loading", "success", "fail"]
|
||||||
const which = ref(0);
|
const which = ref(0);
|
||||||
|
|
||||||
|
|
@ -527,17 +526,15 @@
|
||||||
}
|
}
|
||||||
const clickButton = (item, index) => {
|
const clickButton = (item, index) => {
|
||||||
|
|
||||||
if (index === 0) {
|
|
||||||
getMessageList(item.orgCode).then(res => {
|
getMessageList(item.orgCode).then(res => {
|
||||||
uni.setStorageSync("changeyuangongorgCode", item.orgCode)
|
uni.setStorageSync("changeyuangongorgCode", item.orgCode)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}`
|
url: `/pages/addstaff/all?element=${JSON.stringify(res.result[0])}&code=${index}`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
const jumptolist = (res) => {
|
const jumptolist = (res) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
content.value = res;
|
content.value = res;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue