Commit 29dd1536 by 肖康

修改code

parent 99a0af39
Showing with 117 additions and 113 deletions
......@@ -388,7 +388,7 @@
this.$refs[formName].validate((valid) => {
if (valid) {
this.$http('post', "/api/user/setpasswd", this.ruleForm).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message('修改成功');
setTimeout(() => {
Util.delCookie('token');
......@@ -398,7 +398,7 @@
history.go(0);
}, 2000)
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
}).catch(err => {
console.log(err.message);
......
......@@ -78,7 +78,7 @@ axios.interceptors.request.use((config) => {
axios.interceptors.response.use(res => {
hideLoading();
if(res.data.err_code==101){
if(res.data.code==101){
//token验证失败
var path_=window.location.hash
path_=path_.substr(1)
......
......@@ -166,12 +166,12 @@
keyword: this.formInline.keyword,
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.total) || 0;
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -194,12 +194,12 @@
internal_standard_name: this.updateBranddata[0].internal_standard_name
}
this.$http('post', "/api/brand/update_brand", arr_).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.$message("修改成功");
this.getData()
this.dialogVisible = false
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -207,7 +207,7 @@
this.$http('get', "/api/search/getbrand", {
brand_name: this.formInline.brand_name
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
this.brandList = []
this.formInline.brand_id = ""
......@@ -245,7 +245,7 @@
brand_name: this.formInline.brand_name,
keyword: this.formInline.keyword,
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.disabled = true
this.$message("正在导出中,请耐心等待")
this.timer = setInterval(() => {
......@@ -262,14 +262,14 @@
this.$http('get', "/api/export/get_export_data", {
id: id_
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.disabled = false
this.$message("导出成功")
this.downHref = res.data
setTimeout(() => {
this.$refs.downs.click()
}, 10)
} else if (res.err_code == -1) {
} else if (res.code == -1) {
//导出失败
this.$message(res.data)
this.disabled = false
......@@ -297,11 +297,11 @@
this.$http('post', "/api/brand/delete_brand", {
id: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("删除成功");
this.getData()
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
}).catch(()=>{
......
......@@ -178,7 +178,7 @@
methods: {
getClass() {
this.$http('get', "/api/class/get_class_list", {}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
var arr_ = res.data || []
for (var i = 0; i < arr_.length; i++) {
var children_arr = []
......@@ -196,7 +196,7 @@
})
}
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -212,12 +212,12 @@
class_id1: this.formInline.class_id1
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.count) || 0;
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -239,12 +239,12 @@
remark: this.updateGoodsdata[0].remark
}
this.$http('post', "/api/spu/update_spu", arr_).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.$message("修改成功");
this.getData()
this.dialogVisible = false
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -259,7 +259,7 @@
this.$http('get', "/api/search/getspu", {
spu_name: this.formInline.goods_name
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
......@@ -275,7 +275,7 @@
this.$http('get', "/api/search/getbrand", {
brand_name: this.formInline.brand_name
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
this.brandList = []
this.formInline.brand_id = ""
......@@ -311,7 +311,7 @@
class_id1: this.formInline.class_id1,
keyword: this.formInline.keyword,
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.disabled = true
this.$message("正在导出中,请耐心等待")
this.timer = setInterval(() => {
......@@ -329,14 +329,14 @@
this.$http('get', "/api/export/get_export_data", {
id: id_
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.disabled = false
this.$message("导出成功")
this.downHref = res.data
setTimeout(() => {
this.$refs.downs.click()
}, 10)
} else if (res.err_code == -1) {
} else if (res.code == -1) {
//导出失败
this.$message(res.data)
this.disabled = false
......
......@@ -260,10 +260,10 @@
methods: {
getData() {
this.$http('get', "/api/statistics/index", {}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.data = res.data
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
......
......@@ -87,22 +87,22 @@
email: this.userinfo.email,
contacts_name: this.userinfo.contacts_name
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("提交成功");
sessionStorage.removeItem('userInfox')
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
handleAvatarSuccess(res, file) {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("设置成功")
this.userinfo.avatar = URL.createObjectURL(file.raw);
sessionStorage.removeItem('userInfox')
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
},
......
......@@ -139,11 +139,11 @@ Vue.prototype.$message=Message
start_time: this.formInline.date ? this.formInline.date[0] : '',
end_time: this.formInline.date ? this.formInline.date[1] : ''
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = res.data.total;
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -220,11 +220,11 @@ Vue.prototype.$message=Message
this.$http('post', "/api/inquiry/delete", {
ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("删除成功");
this.getData();
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
}).catch(()=>{
......@@ -242,7 +242,7 @@ Vue.prototype.$message=Message
this.$http('get', "/api/search/getspu", {
spu_name: this.formInline.goods_name
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
......@@ -257,7 +257,7 @@ Vue.prototype.$message=Message
brand_name: this.formInline.brand_name,
type:2
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
this.brandList = []
this.formInline.brand_id = ""
......
......@@ -446,7 +446,7 @@
this.$http('get', "/api/inquiry/detail", {
inquiry_item_id: this.$route.query.id
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.inquiry_info = res.data.inquiry_info;
this.quote_list = res.data.quote_list;
this.ruleForm.inquiry_sn = res.data.inquiry_info.inquiry_sn;
......@@ -454,7 +454,7 @@
this.ruleForm.inquiry_items_id = res.data.inquiry_info.id;
this.getSkulist();
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
});
},
......@@ -466,7 +466,7 @@
'goods_status/condition': 1,
goods_status: 1,
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.count) || 0;
......@@ -477,7 +477,7 @@
}
this.checkBind(id_arr.join(","))
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -496,7 +496,7 @@
pin_obj_ids: ids
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
if (res.data && res.data.bind_ids && res.data.bind_ids.length > 0) {
var arr_ = this.active == 1 ? JSON.parse(JSON.stringify(this.historyList)) : JSON.parse(JSON
.stringify(this.tableData))
......@@ -535,7 +535,7 @@
brand_name: this.inquiry_info.brand_name,
inquiry_items_id: this.$route.query.id
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.total = res.data.total;
this.historyList = res.data.list || [];
var arr_ = this.historyList,
......@@ -545,7 +545,7 @@
}
this.checkBind(id_arr.join(","))
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -618,15 +618,15 @@
submitData_.tax_rate = 0
}
this.$http('post', "/api/quote/save", submitData_).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
//this.$message('操作成功');
this.$http('post', "/api/quote/pin", {
inquiry_items_id: this.ruleForm.inquiry_items_id,
pin_type: (this.active == 1 ? 1 : 2),
pin_obj_id: this.currentDataId
}).then(res => {
if (res.err_code == 0) {} else {
// this.$message(res.err_msg);
if (res.code == 0) {} else {
// this.$message(res.msg);
}
this.$message('操作成功');
this.getData()
......@@ -646,7 +646,7 @@
})
} else {
this.$message(res.err_msg);
this.$message(res.msg);
this.submitState = 0;
//loadingInstance.close();
}
......@@ -666,7 +666,7 @@
brand_name: this.ruleForm.brand,
type: 2
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
this.brandList = [];
//this.ruleForm.brand = "";
......@@ -733,7 +733,7 @@
this.$http('get', "/api/quote/getinfo", {
id: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
......@@ -771,7 +771,7 @@
this.ruleForm.brand_s = JSON.stringify(brand_ss);
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
......@@ -799,11 +799,11 @@
this.$http('post', "/api/quote/delete", {
ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("删除成功");
this.getData();
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
}).catch(() => {
......@@ -834,7 +834,7 @@
goods_id: row.goods_id,
inquiry_items_id: this.$route.query.id
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
var datap_ = res.data.trans_to_quote_info;
datap_.price_origin = this.float(datap_.price_origin)
......@@ -856,7 +856,7 @@
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
......@@ -864,7 +864,7 @@
this.$http('get', "/api/quote/getinfo", {
id: row.id
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
this.ruleForm.goods_name = res.data.quote_info.goods_name;
......@@ -901,7 +901,7 @@
this.ruleForm.brand_s = JSON.stringify(brand_ss);
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
}
......
......@@ -193,11 +193,11 @@ Vue.prototype.$message=Message
end_time: this.formInline.date ? this.formInline.date[1] : '',
status: this.formInline.status
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = res.data.total;
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -240,11 +240,11 @@ Vue.prototype.$message=Message
this.$http('post', "/api/quote/close", {
ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("关闭成功");
this.getData();
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
......@@ -266,11 +266,11 @@ Vue.prototype.$message=Message
this.$http('post', "/api/quote/delete", {
ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("删除成功");
this.getData();
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
}).catch(()=>{
......@@ -288,7 +288,7 @@ Vue.prototype.$message=Message
this.$http('get', "/api/search/getspu", {
spu_name: this.formInline.goods_name
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
......@@ -303,7 +303,7 @@ Vue.prototype.$message=Message
brand_name: this.formInline.brand_name,
type:2
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
this.brandList = []
this.formInline.brand_id = ""
......
......@@ -136,12 +136,12 @@
action_time: this.formInline.date[0],
end_time: this.formInline.date[1]
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.total) || 0;
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -154,12 +154,12 @@
if (!file.response) {
return
}
if (file.response.err_code === 0) {
if (file.response.code === 0) {
this.$message("导入成功")
this.page = 1;
this.getData();
} else {
this.$message(file.response.err_msg);
this.$message(file.response.msg);
}
},
......@@ -195,11 +195,11 @@
this.$http('get', "/api/uploadSku/del", {
log_ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("删除成功");
this.getData()
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
}).catch(()=>{
......
......@@ -293,12 +293,12 @@
action_time: this.formInline.date[0],
end_time: this.formInline.date[1]
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.count) || 0;
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -313,7 +313,7 @@
this.$http('get', "/api/search/getspu", {
spu_name: this.formInline.goods_name
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
......@@ -329,7 +329,7 @@
this.$http('get', "/api/search/getbrand", {
brand_name: this.formInline.brand_name
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
var arrlist_ = res.data || [];
this.brandList = []
this.formInline.brand_id = ""
......@@ -358,7 +358,7 @@
action_time: this.formInline.date[0],
end_time: this.formInline.date[1]
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.disabled = true
this.$message("正在导出中,请耐心等待")
this.timer = setInterval(() => {
......@@ -375,7 +375,7 @@
this.$http('get', "/api/export/get_export_data", {
id: id_
}).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.disabled = false
this.$message("导出成功")
this.downHref = res.data
......@@ -384,7 +384,7 @@
}, 10)
//window.location.href = res.data
} else if (res.err_code == -1) {
} else if (res.code == -1) {
//导出失败
this.$message(res.data)
this.disabled = false
......@@ -437,12 +437,12 @@
}
console.log(arr_)
this.$http('post', "/api/sku/updateSku", arr_).then(res => {
if (res.err_code == 0) {
if (res.code == 0) {
this.$message("修改成功");
this.getData()
this.dialogVisible2 = false
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
......@@ -458,12 +458,12 @@
}
console.log(arr_)
this.$http('post', "/api/sku/updateSku", arr_).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("修改成功");
this.getData()
this.dialogVisible = false
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -481,11 +481,11 @@
sku_ids: arr.join(","),
status: status == 1 ? 'passed' : 'offshelf'
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.$message("操作成功");
this.getData()
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
}
......
......@@ -115,10 +115,10 @@
this.$http('get', "/api/uploadSku/info", {
id: this.$route.query.id
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.detailInfo = res.data
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......@@ -128,7 +128,7 @@
limit: this.limit,
up_sn: this.$route.query.sn
}).then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
var arr = res.data.list || [];
for (var i = 0; i < arr.length; i++) {
if (arr[i]['ladder_price']) {
......@@ -146,7 +146,7 @@
this.maxPrice.push(g)
}
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
},
......
......@@ -58,7 +58,7 @@
methods: {
getData() {
this.$http('get', "/api/login/getwxqrcode").then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.hrefs = res.data.wx_login_url;
}
})
......
......@@ -112,7 +112,7 @@ Vue.prototype.$message=Message
methods: {
updateCp() {
this.$http('get', "/auth/cp").then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
this.imgSrc = res.data.url.img;
this.form.captcha_key = res.data.url.key;
}
......@@ -158,15 +158,15 @@ Vue.prototype.$message=Message
captcha_key: this.form.captcha_key
}).then(res => {
loadingInstance.close();
if (res.err_code === 0) {
if (res.code === 0) {
Util.setCookie("token", res.data.api_token, 1);
//强制要求微信绑定
if (!res.data.is_bind_wechat) {
this.$http('get', "/api/login/getwxqrcode").then(res => {
if (res.err_code === 0) {
if (res.code === 0) {
window.location.href = res.data.wx_login_url;
} else {
this.$message(res.err_msg);
this.$message(res.msg);
}
})
} else {
......@@ -176,16 +176,16 @@ Vue.prototype.$message=Message
window.location.href = '/';
}
}
} else if (res.err_code === 102) {
this.errror_text = res.err_msg;
} else if (res.code === 102) {
this.errror_text = res.msg;
//this.errorClass3 = true;
this.cp = true;
this.updateCp();
this.$message(res.err_msg);
this.$message(res.msg);
} else {
this.errror_text = res.err_msg;
this.errror_text = res.msg;
this.cp = true;
this.$message(res.err_msg);
this.$message(res.msg);
this.updateCp();
}
}).catch(err => {
......
.notfound{width:100%;margin:0 auto;text-align:center}.notfound img{display:block;margin:0 auto}
\ No newline at end of file
.el-message__closeBtn:focus,.el-message__content:focus{outline-width:0}.el-message{min-width:380px;box-sizing:border-box;border-radius:4px;border-width:1px;border-style:solid;border-color:#ebeef5;position:fixed;left:50%;top:20px;transform:translateX(-50%);background-color:#edf2fc;transition:opacity .3s,transform .4s,top .4s;overflow:hidden;padding:15px 15px 15px 20px;display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:16px}.el-message p{margin:0}.el-message--info .el-message__content{color:#909399}.el-message--success{background-color:#f0f9eb;border-color:#e1f3d8}.el-message--success .el-message__content{color:#67c23a}.el-message--warning{background-color:#fdf6ec;border-color:#faecd8}.el-message--warning .el-message__content{color:#e6a23c}.el-message--error{background-color:#fef0f0;border-color:#fde2e2}.el-message--error .el-message__content{color:#f56c6c}.el-message__icon{margin-right:10px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__closeBtn{position:absolute;top:50%;right:15px;transform:translateY(-50%);cursor:pointer;color:#c0c4cc;font-size:16px}.el-message__closeBtn:hover{color:#909399}.el-message .el-icon-success{color:#67c23a}.el-message .el-icon-error{color:#f56c6c}.el-message .el-icon-info{color:#909399}.el-message .el-icon-warning{color:#e6a23c}.el-message-fade-enter,.el-message-fade-leave-active{opacity:0;transform:translate(-50%,-100%)}#app,.user-box,body,html{height:100%}.user-box .head-box{height:80px;background:#fff}.user-box .head-box .head-wrap{width:1190px;height:100%;margin:0 auto}.user-box .head-box .head-wrap .logo,.user-box .head-box .head-wrap .logo img{width:81px;height:39px}.user-box .head-box .head-wrap .line{width:1px;height:22px;color:#e0e0e0;background:#e0e0e0;margin:0 13px 0 15px}.user-box .head-box .head-wrap .text .t1{font-size:15px;color:#333;line-height:19px;margin-bottom:4px;font-weight:700}.user-box .head-box .head-wrap .text .t2{font-size:13px;color:#666;letter-spacing:10px;font-weight:700}.user-box .section{width:100%;height:calc(100% - 80px);background:url(../img/bg.14e931c4.png) no-repeat 50%;background-size:cover}.user-box .section .section-wrap{position:relative;width:1190px;height:100%;margin:0 auto}.user-box .section .section-wrap .login-box{position:absolute;right:0;top:133px;width:400px;height:367px;background:#fff;border-radius:8px}.user-box .section .section-wrap .login-box .tit{font-size:20px;color:#333;text-align:center;margin:25px 0}.user-box .section .section-wrap .login-box .bar{width:342px;margin:0 auto}.user-box .section .section-wrap .login-box .bar .input-box{position:relative;width:328px;height:43px;background:#fff;border-radius:2px;border:1px solid #bec9df;margin-bottom:20px;transition:all .2s ease;padding-left:12px}.user-box .section .section-wrap .login-box .bar .input-box i.iconfont{padding:12px 0;font-size:20px;color:#a1acc1}.user-box .section .section-wrap .login-box .bar .input-box .inp{padding-left:9px;height:34px;font-size:14px;background:transparent;border-left:1px solid #bec9df;margin-left:12px;letter-spacing:1px}.user-box .section .section-wrap .login-box .bar .input-box .inp::-webkit-input-placeholder{color:#a1acc1}.user-box .section .section-wrap .login-box .bar .input-box .eye{position:absolute;right:19px;top:13px;font-size:20px;color:#a1acc1}.user-box .section .section-wrap .login-box .bar .input-box:focus-within{border:1px solid #1969f9}.user-box .section .section-wrap .login-box .bar .input-box.error{border:1px solid #ff1d00}.user-box .section .section-wrap .login-box .bar .code-box .l input{width:210px;height:43px;line-height:43px;border-radius:2px;border:1px solid #bec9df;text-indent:17px;font-size:14px}.user-box .section .section-wrap .login-box .bar .code-box .l input::-webkit-input-placeholder{color:#a1acc1}.user-box .section .section-wrap .login-box .bar .code-box .l input:focus{border:1px solid #1969f9}.user-box .section .section-wrap .login-box .bar .code-box.error .l input{border:1px solid #ff1d00}.user-box .section .section-wrap .login-box .bar .code-box .r{width:118px;height:43px;border-radius:2px;border:1px solid #bec9df}.user-box .section .section-wrap .login-box .bar .code-box .r img{width:100%;height:100%}.user-box .section .section-wrap .login-box .bar .text{position:relative;padding:11px 0;text-align:right}.user-box .section .section-wrap .login-box .bar .text .error{position:absolute;left:0;top:12px;font-size:12px;color:#f10909}.user-box .section .section-wrap .login-box .bar .text a{line-height:17px;font-size:12px;color:#999}.user-box .section .section-wrap .login-box .bar .btn-submit{width:342px;height:42px;line-height:42px;text-align:center;background:#a1acc1;border-radius:2px;font-size:20px;color:#fff;display:block;letter-spacing:10px;margin:0 auto;transition:all .2s ease}.user-box .section .section-wrap .login-box .bar .btn-submit.active{background:#1969f9}.user-box .section .section-wrap .login-box .bar .btn-submit:hover{background:#0050e0}
\ No newline at end of file
.listDetail .detail-nav{background:#fff;padding:20px;font-size:14px;color:#333;padding-top:28px}.listDetail .detail-nav span{margin-right:45px}.listDetail .data-box{padding:20px;padding-top:5px;background:#fff}
\ No newline at end of file
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="//yunxin.ichunt.com/favicon.ico"><title>猎芯云芯商家</title><link href="//yunxin.ichunt.com/css/chunk-0492a5ab.3d6445eb.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-04adc2b8.c038533f.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-15e903e6.72a2fc69.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-35706816.5a95e96d.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-38f382e0.143c08b9.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-5a777a60.06914ce1.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-66952b91.9970a763.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-68af1761.12ee92ce.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6a1c18a2.a51e2487.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7041f81e.903fb18e.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-752322e8.819b729c.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7c271fb9.d938ddcf.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-89bf742a.fb33d5e6.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-97cba434.c584dd9b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-d09dd692.56dd64bd.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-f06bc266.a7f65d28.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-fef16dca.0868bd02.css" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0492a5ab.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-04adc2b8.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-15e903e6.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-35706816.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-38f382e0.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-4148ebe3.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-5a777a60.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-66952b91.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-68af1761.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6a1c18a2.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7041f81e.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-752322e8.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7c271fb9.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-89bf742a.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-97cba434.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-d09dd692.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-f06bc266.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-fef16dca.1631257564033.js" rel="prefetch"><link href="//yunxin.ichunt.com/css/app.0a86e7b1.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/static/js/app.1631257564033.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/static/js/chunk-vendors.1631257564033.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="stylesheet"><link href="//yunxin.ichunt.com/css/app.0a86e7b1.css" rel="stylesheet"></head><body><noscript><strong>网络异常,请稍后加载</strong></noscript><div id="app"></div><script>window.userInfo=""</script><script src="//yunxin.ichunt.com/static/js/chunk-vendors.1631257564033.js"></script><script src="//yunxin.ichunt.com/static/js/app.1631257564033.js"></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>猎芯云芯商家</title>
<link href="http://yunxin.liexindev.net/static/js/0.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/1.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/10.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/11.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/12.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/13.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/14.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/15.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/16.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/17.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/18.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/19.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/2.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/20.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/21.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/22.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/23.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/24.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/25.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/26.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/27.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/28.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/3.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/4.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/5.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/6.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/7.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/8.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/9.1650002901433.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/app.1650002901433.js" rel="preload" as="script"></head>
<body>
<noscript>
<strong>网络异常,请稍后加载</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected2 -->
<script>
window.userInfo=""
</script>
<script type="text/javascript" src="http://yunxin.liexindev.net/static/js/app.1650002901433.js"></script></body>
</html>
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0492a5ab"],{"31f2":function(n,t,e){},"36a4":function(n,t,e){n.exports=e.p+"img/notfound.6caec236.png"},"460e":function(n,t,e){"use strict";e.r(t);var a=function(){var n=this,t=n.$createElement;n._self._c;return n._m(0)},c=[function(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",{staticClass:"notfound"},[a("img",{attrs:{src:e("36a4"),alt:""}})])}],u={name:"notfound",data:function(){return{}}},o=u,r=(e("773a"),e("2877")),s=Object(r["a"])(o,a,c,!1,null,null,null);t["default"]=s.exports},"773a":function(n,t,e){"use strict";e("31f2")}}]);
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68af1761"],{dad9:function(t,e,a){},db57:function(t,e,a){"use strict";a("dad9")},f2d5:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listDetail pagex"},[t.detailInfo?a("div",{staticClass:"detail-nav"},[a("span",[t._v("单号:"+t._s(t.detailInfo.up_sn))]),a("span",[t._v("文件名:"+t._s(t.detailInfo.file_name))]),a("span",[t._v("上传时间:"+t._s(t.detailInfo.create_time))]),a("span",[t._v("状态: "),1==t.detailInfo.status?a("span",{staticClass:"f-green"},[t._v("待处理")]):2==t.detailInfo.status?a("span",{staticClass:"f-yellow1"},[t._v("处理中")]):3==t.detailInfo.status?a("span",[t._v("已处理")]):4==t.detailInfo.status?a("span",{staticClass:"f-red1"},[t._v("其他失败")]):t._e()])]):t._e(),t.tableData?a("div",{staticClass:"data-box"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{fixed:"",prop:"item_id",label:"ID",width:"75"}}),a("el-table-column",{attrs:{prop:"status",fixed:"",label:"状态",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?a("span",{staticClass:"f-green"},[t._v("审核前失败")]):2==e.row.status?a("span",{staticClass:"f-yellow1"},[t._v("待审核")]):3==e.row.status?a("span",[t._v("审核通过")]):4==e.row.status?a("span",{staticClass:"f-red1"},[t._v("审核未通过")]):t._e()]}}],null,!1,1309998672)}),a("el-table-column",{attrs:{fixed:"",prop:"goods_sn",label:"供应商内部型号编码",width:"180"}}),a("el-table-column",{attrs:{fixed:"",prop:"goods_name",label:"型号",width:"180"}}),a("el-table-column",{attrs:{fixed:"",prop:"brand_name",label:"品牌",width:"180"}}),a("el-table-column",{attrs:{prop:"stock",label:"库存数量",width:"150"}}),a("el-table-column",{attrs:{prop:"moq",label:"起订量",width:"150"}}),a("el-table-column",{attrs:{prop:"mpq",label:"标准包装量",width:"150"}}),a("el-table-column",{attrs:{prop:"batch_sn",label:"批次",width:"150"}}),a("el-table-column",{attrs:{prop:"cn_delivery_time",label:"大陆交期",width:"150"}}),a("el-table-column",{attrs:{prop:"hk_delivery_time",label:"香港交期",width:"150"}}),a("el-table-column",{attrs:{prop:"spu_brief",label:"简短描述",width:"150"}}),t.maxPrice.length?[t._l(t.maxPrice,(function(t){return[a("el-table-column",{attrs:{prop:"purchases"+(t+1),label:"阶梯数量"+(t+1),width:"150"}}),a("el-table-column",{attrs:{prop:"price_cn"+(t+1),label:"国内含税价"+(t+1),width:"150"}}),a("el-table-column",{attrs:{prop:"price_us"+(t+1),label:"香港交货价"+(t+1),width:"150"}})]}))]:t._e()],2),a("el-pagination",{attrs:{layout:"prev, pager, next,jumper","page-size":t.limit,total:t.total,"current-page":t.page},on:{"current-change":t.handleCurrentChange}})],1):t._e(),a("Menu")],1)},s=[],i=(a("672e"),a("450d"),a("101e")),n=a.n(i),r=(a("5466"),a("ecdf")),o=a.n(r),p=(a("38a0"),a("ad41")),d=a.n(p),u=(a("0fb7"),a("f529")),c=a.n(u),f=a("2b0e"),h=a("2251");a("e8d6");f["default"].prototype.$message=c.a,f["default"].use(n.a).use(o.a).use(d.a);var _={name:"ListDetail",data:function(){return{detailInfo:"",total:0,limit:10,page:1,tableData:"",maxPrice:[]}},watch:{$route:function(t,e){t.path==e.path&&(this.getInfo(),this.getList())}},created:function(){this.getInfo(),this.getList()},computed:{},methods:{getInfo:function(){var t=this;this.$http("get","/api/uploadSku/info",{id:this.$route.query.id}).then((function(e){0===e.err_code?t.detailInfo=e.data:t.$message(e.err_msg)}))},getList:function(){var t=this;this.$http("get","/api/uploadSku/itemList",{page:this.page,limit:this.limit,up_sn:this.$route.query.sn}).then((function(e){if(0===e.err_code){for(var a=e.data.list||[],l=0;l<a.length;l++)if(a[l]["ladder_price"])for(var s=0;s<a[l]["ladder_price"].length;s++)a[l]["purchases"+(s+1)]=a[l]["ladder_price"][s]["purchases"],a[l]["price_cn"+(s+1)]=a[l]["ladder_price"][s]["price_cn"],a[l]["price_us"+(s+1)]=a[l]["ladder_price"][s]["price_us"];t.tableData=a,t.total=e.data.total||0;for(var i=e.data.max_price_count||0,n=0;n<i;n++)t.maxPrice.push(n)}else t.$message(e.err_msg)}))},handleCurrentChange:function(t){this.page=t,this.getList()}},components:{Menu:h["a"]}},b=_,m=(a("db57"),a("2877")),g=Object(m["a"])(b,l,s,!1,null,"15aefd8a",null);e["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7041f81e"],{1951:function(t,e,n){},"2c54":function(t,e,n){"use strict";n("7f1f")},"7f1f":function(t,e,n){},"8f14":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"bindError"},[n("div",{staticClass:"fixed-box"},[n("el-alert",{attrs:{title:t.text,type:"error",closable:!1,center:"","show-icon":""}}),n("a",{staticClass:"reloadBind",attrs:{href:t.hrefs}},[t._v("重新绑定")])],1)])},o=[],r=(n("1951"),n("450d"),n("eedf")),s=n.n(r),l=(n("915d"),n("e04d")),a=n.n(l),c=n("2b0e");c["default"].use(s.a).use(a.a);var u={name:"bindError",data:function(){return{text:"错误提示的文案",hrefs:""}},watch:{},created:function(){this.getData();var t=this.$route.query.err_type;1==t?this.text="微信授权失败":2==t?this.text="云芯token校验失败":3==t?this.text="请求access_token失败":4==t?this.text="open_id已绑定其他账号,不能重复绑定":5==t?this.text="更新绑定关系失败":6==t?this.text="添加绑定关系失败":7==t&&(this.text="获取微信信息失败")},computed:{},methods:{getData:function(){var t=this;this.$http("get","/api/login/getwxqrcode").then((function(e){0===e.err_code&&(t.hrefs=e.data.wx_login_url)}))}}},d=u,f=(n("2c54"),n("2877")),p=Object(f["a"])(d,i,o,!1,null,null,null);e["default"]=p.exports},"915d":function(t,e,n){},e04d:function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=100)}({0:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,l){var a,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):o&&(a=l?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(t,e){return a.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return i}))},100:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-alert",class:[t.typeClass,t.center?"is-center":"","is-"+t.effect],attrs:{role:"alert"}},[t.showIcon?n("i",{staticClass:"el-alert__icon",class:[t.iconClass,t.isBigIcon]}):t._e(),n("div",{staticClass:"el-alert__content"},[t.title||t.$slots.title?n("span",{staticClass:"el-alert__title",class:[t.isBoldTitle]},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t.$slots.default&&!t.description?n("p",{staticClass:"el-alert__description"},[t._t("default")],2):t._e(),t.description&&!t.$slots.default?n("p",{staticClass:"el-alert__description"},[t._v(t._s(t.description))]):t._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:t.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==t.closeText,"el-icon-close":""===t.closeText},on:{click:function(e){t.close()}}},[t._v(t._s(t.closeText))])])])])},o=[];i._withStripped=!0;var r={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},s={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(t){return-1!==["light","dark"].indexOf(t)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return r[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},l=s,a=n(0),c=Object(a["a"])(l,i,o,!1,null,null,null);c.options.__file="packages/alert/src/main.vue";var u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u}})},eedf:function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=97)}({0:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,l){var a,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):o&&(a=l?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(t,e){return a.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return i}))},97:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])},o=[];i._withStripped=!0;var r={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},s=r,l=n(0),a=Object(l["a"])(s,i,o,!1,null,null,null);a.options.__file="packages/button/src/button.vue";var c=a.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c271fb9"],{"1f1a":function(e,t,i){},"3db2":function(e,t,i){},"58b8":function(e,t,i){e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/",i(i.s=65)}({0:function(e,t,i){"use strict";function n(e,t,i,n,o,s,r,l){var a,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),r?(a=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=a):o&&(a=l?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(u.functional){u._injectStyles=a;var c=u.render;u.render=function(e,t){return a.call(t),c(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,a):[a]}return{exports:e,options:u}}i.d(t,"a",(function(){return n}))},10:function(e,t){e.exports=i("f3ad")},11:function(e,t){e.exports=i("2bb5")},12:function(e,t){e.exports=i("417f")},14:function(e,t){e.exports=i("14e9")},17:function(e,t){e.exports=i("0e15")},22:function(e,t){e.exports=i("12f2")},3:function(e,t){e.exports=i("8122")},4:function(e,t){e.exports=i("d010")},5:function(e,t){e.exports=i("e974")},65:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[i("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?i("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?i("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?i("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?i("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),i("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,n){return i("li",{key:n,class:{highlighted:e.highlightedIndex===n},attrs:{id:e.id+"-item-"+n,role:"option","aria-selected":e.highlightedIndex===n},on:{click:function(i){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)},o=[];n._withStripped=!0;var s=i(17),r=i.n(s),l=i(10),a=i.n(l),u=i(12),c=i.n(u),p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[i("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?i("li",[i("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},d=[];p._withStripped=!0;var h=i(5),g=i.n(h),f=i(4),m=i.n(f),b=i(14),v=i.n(b),_={components:{ElScrollbar:v.a},mixins:[g.a,m.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,i){e.dropdownWidth=i+"px",e.showPopper=t}))}},x=_,y=i(0),$=Object(y["a"])(x,p,d,!1,null,null,null);$.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var w=$.exports,S=i(11),I=i.n(S),k=i(3),A=i(22),C=i.n(A),E={name:"ElAutocomplete",mixins:[m.a,C()("input"),I.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:a.a,ElAutocompleteSuggestions:w},directives:{Clickoutside:c.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(k["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),i=t.querySelectorAll(".el-autocomplete-suggestion__list li"),n=i[e],o=t.scrollTop,s=n.offsetTop;s+n.scrollHeight>o+t.clientHeight&&(t.scrollTop+=n.scrollHeight),s<o&&(t.scrollTop-=n.scrollHeight),this.highlightedIndex=e;var r=this.getInput();r.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=r()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},O=E,D=Object(y["a"])(O,n,o,!1,null,null,null);D.options.__file="packages/autocomplete/src/autocomplete.vue";var T=D.exports;T.install=function(e){e.component(T.name,T)};t["default"]=T}})},6611:function(e,t,i){}}]);
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
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 sign in to comment