开始评估的修改

This commit is contained in:
熊丽君
2021-09-16 15:00:59 +08:00
parent 35dc35ce83
commit cac4463c0e
4 changed files with 44 additions and 17 deletions

View File

@ -64,6 +64,7 @@ import { getChatRecords, sendMsg, readMsg } from '@/api/service';
export default {
data() {
return {
// path: 'ws://192.168.0.125:1919/webStock/' + this.$store.state.user.userId,
path: 'ws://121.5.136.69:1919/webStock/' + this.$store.state.user.userId,
socket: '',
numTop: 0,
@ -153,6 +154,7 @@ export default {
}
});
this.chats.push(msgInfo);
this.chatWindowActive();
},
send: function(params) {
this.socket.send(params);

View File

@ -4,9 +4,9 @@
<img src="@/assets/image/banner-2.png" alt="" />
</div>
<div class="btn">
<router-link target="_blank" :to="{ path: '/startEvaluation' }">
<el-button type="primary" style="font-size: 18px">开始评估</el-button>
</router-link>
<el-button type="primary" style="font-size: 18px" @click="handlePage"
>开始评估</el-button
>
</div>
<div class="list">
<div class="box">
@ -53,11 +53,23 @@
</div>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
data() {
return {};
},
methods: {},
computed: {
...mapGetters(['token'])
},
methods: {
handlePage() {
if (!this.token) return this.msgError('请先登录再做评估');
let routerJump = this.$router.resolve({
path: '/startEvaluation'
});
window.open(routerJump.href, '_blank');
}
}
};
</script>
<style lang="scss" scoped>

View File

@ -282,5 +282,8 @@ export default {
/deep/.el-form-item__label {
font-size: 16px;
}
/deep/.el-dialog {
height: auto;
}
}
</style>

View File

@ -167,7 +167,7 @@
>
<el-input-number
class="w165"
v-model="formB.ipropertyNum"
v-model="formB.propertyNumI"
></el-input-number>
<!-- <el-input v-model="formB.name" class="w120"></el-input> -->
</el-form-item>
@ -176,7 +176,7 @@
>
<el-input-number
class="w120"
v-model="formB.iipropertyNum"
v-model="formB.propertyNumII"
></el-input-number>
</el-form-item>
<el-form-item
@ -355,12 +355,13 @@ export default {
scienceEmployee: 0,
hasBad: 0
}, // 高企认定门槛
formAData: {},
badSeason: [], // A 没有通过的数据
score: 0, // 分数
badSeason1: [], // B 没有通过的数据
formB: {
ipropertyNum: 0,
iipropertyNum: 0,
propertyNumI: 0,
propertyNumII: 0,
hasStandard: 0,
achievementNum: 0,
management: [],
@ -391,10 +392,17 @@ export default {
submitFormA(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
this.formA.territoryIName = this.oneMenuList.find(item => {
return item.id == this.formA.one;
}).name;
this.formA.territoryIIName = this.twoMenuList.find(item => {
return item.id == this.formA.territoryId;
}).name;
firstAssess(this.formA).then(({ data }) => {
if (!data.badSeason.length) {
// 通过
this.status = 2;
this.formAData = data;
} else {
// 没通过
this.badSeason = data.badSeason;
@ -416,16 +424,18 @@ export default {
submitFormB(formName) {
if (!this.formB.management.length)
return this.msgError('请至少选择一项组织管理水平');
secondAssess(this.formB).then(({ data }) => {
this.badSeason1 = data.badSeason1;
this.score = data.score;
if (data.score >= 71) {
this.status = 4;
} else {
this.status = -3;
secondAssess(Object.assign({}, this.formAData, this.formB)).then(
({ data }) => {
this.badSeason1 = data.badSeason1;
this.score = data.score;
if (data.score >= 71) {
this.status = 4;
} else {
this.status = -3;
}
this.index++;
}
this.index++;
});
);
}
},
created() {