Commit b3ca14a7 by swl

feat: gx

parent ac47a89c
No preview for this file type
const domain = {
// dev: "http://192.168.3.87:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 姚镇接口
dev: "http://81.69.231.72:8881", // 测试接口
// dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
// dev: "http://81.69.231.72:8881", // 测试接口
dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
};
// 腾讯地图 key
const map = {
......
......@@ -5,9 +5,9 @@ import { TokenKey } from "@/utils/auth";
const config = {
// proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址
proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://192.168.3.87:8881", //本地
// proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
// proxy: "http://81.69.231.72:9089/", // 测试地址
// proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址
// proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口
......
......@@ -88,6 +88,24 @@
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
<br />
<el-form-item label="排序类型" style="margin-top: 10px">
<el-radio-group v-model="searchForm.sortType" @change="onSubmit">
<el-radio label="desc">倒序 </el-radio>
<el-radio label="asc">顺序 </el-radio>
</el-radio-group>
<!-- <el-select
v-model="searchForm.sortType"
placeholder="请选择排序类型"
style="width: 100%"
@change="onSubmit"
>
<el-option label="顺序" value="asc"> </el-option>
<el-option label="倒叙" value="desc"> </el-option>
</el-select> -->
</el-form-item>
<br />
<el-form-item label="状态" style="margin-top: 10px">
<el-radio-group v-model="searchForm.state" @change="onSubmit">
<el-radio
......@@ -111,6 +129,18 @@
>
<el-table-column
width="120"
key="updateTime"
prop="updateTime"
label="更新时间"
align="center"
>
<template slot-scope="scope">
<span>{{ scope.row.updateTime }}</span>
</template>
</el-table-column>
<el-table-column
width="120"
prop="talentClassification"
label="人才类型"
align="center"
......@@ -156,7 +186,11 @@
align="center"
>
<template slot-scope="scope">
<el-tag :type="scope.row.type">{{ scope.row.stateName }}</el-tag>
<el-tag
:type="stateFilter(scope.row.state)"
:effect="plainFilter(scope.row.state)"
>{{ scope.row.stateName }}</el-tag
>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="380" align="left">
......@@ -610,7 +644,6 @@ let stateArr = [
{
state: "",
stateName: "全部",
color: "",
},
{
state: 1,
......@@ -620,7 +653,7 @@ let stateArr = [
{
state: 2,
stateName: "公示中",
type: "warning",
type: "",
},
{
state: 3,
......@@ -635,22 +668,25 @@ let stateArr = [
{
state: 5,
stateName: "审核拒绝",
type: "warning",
type: "danger",
},
{
state: 6,
stateName: "管理撤销",
type: "danger",
effect: "plain",
},
{
state: 7,
stateName: "强制更新",
type: "danger",
type: "success",
effect: "plain",
},
{
state: 8,
stateName: "已逾期",
type: "danger",
type: "warning",
effect: "plain",
},
];
......@@ -705,6 +741,7 @@ export default {
branchCode: "", // 责任部门
talentClassification: "", // 人才分类
socialPremiumLocation: "", // 社保缴纳地
sortType: "desc", // 排序类型
},
loading: false,
// 状态
......@@ -812,6 +849,7 @@ export default {
key: "updateTime",
label: "更新时间",
width: 180,
type: "slot",
},
{
key: "recordVOS[0].name",
......@@ -848,6 +886,7 @@ export default {
this.searchForm.state = "";
this.searchForm.recordName = "";
this.searchForm.unitName = "";
this.searchForm.sortType = "desc";
this.init();
this.initType();
if (!this.branchCode) {
......@@ -857,6 +896,25 @@ export default {
},
},
methods: {
stateFilter(val) {
let type = "";
stateArr.forEach((item) => {
if (item.state === val) {
type = item.type;
}
});
return type;
},
plainFilter(val) {
let effect = "";
stateArr.forEach((item) => {
if (item.state === val) {
effect = item.effect;
}
});
return effect;
},
switechBranch(branchCode) {
switch (branchCode) {
case "5":
......@@ -875,6 +933,7 @@ export default {
// console.log(1);
// console.log("this.branchCode---", this.branchCode);
let params = {
sortType: this.searchForm.sortType,
name: this.searchForm.name,
phone: this.searchForm.phone,
typeCode: this.searchForm.typeCode,
......
const env = process.env.NODE_ENV === "production";
// const publicPath = env ? "/manage-h5/" : "/"; //正式
const publicPath = env ? "/smartExam-h5/" : "/"; //测试
const publicPath = env ? "/manage-h5/" : "/"; //正式
// const publicPath = env ? "/smartExam-h5/" : "/"; //测试
module.exports = {
publicPath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment