单位调整

This commit is contained in:
fan 2020-12-01 18:50:23 +08:00
parent ab7ff394ce
commit 4ac37c5d18
6 changed files with 32 additions and 26 deletions

View File

@ -678,7 +678,7 @@ class SkinCode extends defaultStyle {
trainCrewNumOffset: { x:50, y: 25} trainCrewNumOffset: { x:50, y: 25}
}, },
travelNum: { travelNum: {
trainTravelNumOffset: { x:48, y:3} trainTravelNumOffset: { x:9, y:3}
}, },
trainNumber: { trainNumber: {
targetCodePrefix: '000', // 目的地码前缀 targetCodePrefix: '000', // 目的地码前缀
@ -687,16 +687,16 @@ class SkinCode extends defaultStyle {
trainNumberOffset: { x: 48, y: 3 }// 目的地码偏移量 trainNumberOffset: { x: 48, y: 3 }// 目的地码偏移量
}, },
trainServer: { trainServer: {
serviceNumberPrefix: '00', // 服务号(表号)前缀 serviceNumberPrefix: '000', // 服务号(表号)前缀
defaultServiceNumber: 'BB', // 默认服务号(表号) defaultServiceNumber: 'BBB', // 默认服务号(表号)
trainServerOffset: { x: 35, y: 3 }, // 列车服务号偏移 trainServerOffset: { x: 33, y: 3 }, // 列车服务号偏移
fontColor: '#00C300' fontColor: '#00C300'
}, },
trainTarget: { trainTarget: {
tripNumberPrefix: '000', // 车次号前缀 tripNumberPrefix: '00', // 车次号前缀
defaultDirectionCode: '', // 默认车次号1 defaultDirectionCode: '', // 默认车次号1
defaultTripNumber: 'CCC', // 默认车次号2 defaultTripNumber: 'CC', // 默认车次号2
trainTargetOffset: { x: 10, y: 3 }, // 列车车次号偏移 trainTargetOffset: { x: 53, y: 3 }, // 列车车次号偏移
fontColor: '#00C300' fontColor: '#00C300'
}, },
trainTargetNumber: { trainTargetNumber: {

6
src/scripts/errorTip.js Normal file
View File

@ -0,0 +1,6 @@
export default {
10002: '您权限已领取权限!',
10003: '您的权限数量不足!',
10013: '很抱歉,未查找到您的权限!',
10014: '很抱歉,您的权限暂不可用!'
};

View File

@ -2,11 +2,11 @@ export function getBaseUrl() {
let BASE_API; let BASE_API;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud'; // BASE_API = 'https://joylink.club/jlcloud';
BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.129:9000'; // 旭强 // BASE_API = 'http://192.168.8.129:9000'; // 旭强
// BASE_API = 'http://192.168.8.119:9000'; // 张赛 // BASE_API = 'http://192.168.8.119:9000'; // 张赛
// BASE_API = 'http://192.168.8.110:9000'; // 杜康 BASE_API = 'http://192.168.8.110:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛

View File

@ -310,20 +310,21 @@ export default {
}, },
exportTemplate() { exportTemplate() {
const wb = XLSX.utils.book_new(); const wb = XLSX.utils.book_new();
const data1 = [{A: '序号', B: '题型', C:'题目', D:'选项', E: '', F: '', G: '', H: '答案'}]; const data1 = [{A: '序号', B: '题型', C:'题目', D:'答案', E: '', F: '', G: '', H: ''}];
const data2 = [{A: '', B: '', C:'', D:'A', E: 'B', F: 'C', G: 'D', H: ''}]; const data2 = [{A: '', B: '', C:'', D:'', E: 'A', F: 'B', G: 'C', H: 'D'}];
const data3 = [{A: '1', B: '判断', C:'题目一', D:'', E: '', F: '', G: '', H: '√'}]; const data3 = [{A: '1', B: '判断', C:'题目一', D:'√', E: '', F: '', G: '', H: ''}];
const data4 = [{A: '2', B: '判断', C:'题目二', D:'', E: '', F: '', G: '', H: '×'}]; const data4 = [{A: '2', B: '判断', C:'题目二', D:'×', E: '', F: '', G: '', H: ''}];
const data5 = [{A: '3', B: '单选', C:'题目三', D:'选项A', E: '选项B', F: '选项C', G: '选项D', H: 'A'}]; const data5 = [{A: '3', B: '单选', C:'题目三', D:'A', E: '选项A', F: '选项B', G: '选项C', H: '选项D'}];
const data6 = [{A: '4', B: '多选', C:'题目四', D:'选项A', E: '选项B', F: '选项C', G: '选项D', H: 'ABCD'}]; const data6 = [{A: '4', B: '多选', C:'题目四', D:'ABCD', E: '选项A', F: '选项B', G: '选项C', H: '选项D'}];
const data7 = [{A: '5', B: '填空', C:'题目五', D:'', E: '', F: '', G: '', H: '第一空答案&&第二空答案&&第三空答案'}]; // const data7 = [{A: '5', B: '', C:'', D:'&&&&', E: '', F: '', G: '', H: ''}];
const data8 = [{A: '6', B: '问答', C:'题目六', D:'', E: '', F: '', G: '', H: '问答题答案'}]; // const data8 = [{A: '6', B: '', C:'', D:'', E: '', F: '', G: '', H: ''}];
const data = [...data1, ...data2, ...data3, ...data4, ...data5, ...data6, ...data7, ...data8]; // const data = [...data1, ...data2, ...data3, ...data4, ...data5, ...data6, ...data7, ...data8];
const data = [...data1, ...data2, ...data3, ...data4, ...data5, ...data6];
const ws = XLSX.utils.json_to_sheet(data, {skipHeader:true}); const ws = XLSX.utils.json_to_sheet(data, {skipHeader:true});
ws['!merges'] = [ ws['!merges'] = [
{ {
s: {c: 3, r: 0}, s: {c: 4, r: 0},
e: {c: 6, r: 0} e: {c: 7, r: 0}
}, },
{ {
s: {c: 0, r: 0}, s: {c: 0, r: 0},
@ -338,8 +339,8 @@ export default {
e: {c: 2, r: 1} e: {c: 2, r: 1}
}, },
{ {
s: {c: 7, r: 0}, s: {c: 3, r: 0},
e: {c: 7, r: 1} e: {c: 3, r: 1}
} }
]; ];
ws['!cols'] = [ ws['!cols'] = [

View File

@ -196,7 +196,6 @@ export default {
importQuestionBand(this.$store.state.race.preTheoryData, this.companyId).then(resp => { importQuestionBand(this.$store.state.race.preTheoryData, this.companyId).then(resp => {
this.$store.dispatch('race/setPreTheoryData', []); this.$store.dispatch('race/setPreTheoryData', []);
// this.$message.success('!'); // this.$message.success('!');
this.$alert(`<strong>本次导入:</strong><br><strong>${judgeNum}道判断题;</strong><br><strong>${selectNum}道选择题;</strong><br><strong>${multiNum}道多选题;</strong><br>`, '导入题库成功!', { this.$alert(`<strong>本次导入:</strong><br><strong>${judgeNum}道判断题;</strong><br><strong>${selectNum}道选择题;</strong><br><strong>${multiNum}道多选题;</strong><br>`, '导入题库成功!', {
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
type: 'success', type: 'success',
@ -204,8 +203,8 @@ export default {
}); });
this.$router.go(-1); this.$router.go(-1);
this.loading = false; this.loading = false;
}).catch(()=>{ }).catch((error)=>{
this.$message.error('导入题库失败!'); this.$messageBox(error.message);
this.loading = false; this.loading = false;
}); });
}, },

View File

@ -25,6 +25,7 @@ export default {
}, },
queryForm: { queryForm: {
labelWidth: '80px', labelWidth: '80px',
beforeQuery: this.addParams,
reset: true, reset: true,
queryObject: { queryObject: {
name: { name: {
@ -43,7 +44,6 @@ export default {
}, },
queryList: { queryList: {
query: getUserList, query: getUserList,
beforeQuery: this.addParams,
onSelectionChange: this.handleSelectionChange, onSelectionChange: this.handleSelectionChange,
selectAllClick: this.selectAllClick, selectAllClick: this.selectAllClick,
selectCheckShow: true, selectCheckShow: true,