优化代码
parent
273fdf2e84
commit
c85d488de4
|
@ -1,8 +1,13 @@
|
||||||
FROM nginx:alpine
|
FROM node:10.19.0 as build-stage
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
RUN mkdir -p /app/
|
# production stage
|
||||||
COPY ./dist /app/
|
FROM nginx:stable-alpine as production-stage
|
||||||
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]k
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#代码目录
|
||||||
|
code_path=$PWD
|
||||||
|
REGISTRY_PATH='registry.cn-hangzhou.aliyuncs.com/lilishop-ui'
|
||||||
|
BUILD_VERSION=4.2.4.1
|
||||||
|
|
||||||
|
read -p "请输入仓库地址": REGISTRY_PATH
|
||||||
|
|
||||||
|
echo $REGISTRY_PATH
|
||||||
|
|
||||||
|
docker build -t $REGISTRY_PATH/buyer-ui:$BUILD_VERSION ${code_path}/buyer
|
||||||
|
docker push $REGISTRY_PATH/buyer-ui:$BUILD_VERSION
|
||||||
|
|
||||||
|
docker build -t $REGISTRY_PATH/seller-ui:$BUILD_VERSION ${code_path}/seller
|
||||||
|
docker push $REGISTRY_PATH/seller-ui:$BUILD_VERSION
|
||||||
|
|
||||||
|
docker build -t $REGISTRY_PATH/manager-ui:$BUILD_VERSION ${code_path}/manager
|
||||||
|
docker push $REGISTRY_PATH/manager-ui:$BUILD_VERSION
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
FROM nginx:alpine
|
FROM node:10.19.0 as build-stage
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
RUN mkdir -p /app/
|
# production stage
|
||||||
COPY ./dist /app/
|
FROM nginx:stable-alpine as production-stage
|
||||||
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]k
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<FormItem label="销售模式">
|
<FormItem label="销售模式">
|
||||||
{{ goods.salesModel === "RETAIL" ? "零售型" : "批发型" }}
|
{{ goods.salesModel === "RETAIL" ? "零售型" : "批发型" }}
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="销售规则">
|
<FormItem label="销售规则" v-if="goods.salesModel !== 'RETAIL'">
|
||||||
<Table
|
<Table
|
||||||
border
|
border
|
||||||
:columns="wholesalePreviewColumns"
|
:columns="wholesalePreviewColumns"
|
||||||
|
|
|
@ -467,8 +467,8 @@ export default {
|
||||||
handleSubmitModal() {
|
handleSubmitModal() {
|
||||||
const { nickName, sex, username, face, newPassword,id } = this.form;
|
const { nickName, sex, username, face, newPassword,id } = this.form;
|
||||||
let time = new Date(this.form.birthday);
|
let time = new Date(this.form.birthday);
|
||||||
let birthday =
|
let birthday = time ?
|
||||||
time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate();
|
time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate() : '';
|
||||||
let submit = {
|
let submit = {
|
||||||
regionId: this.form.regionId,
|
regionId: this.form.regionId,
|
||||||
region: this.form.region,
|
region: this.form.region,
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="权限url" v-if="form.level != 0" class="block-tool">
|
<FormItem label="权限url" v-if="form.level != 0" class="block-tool">
|
||||||
<Tooltip placement="right" content="*号模糊匹配,逗号分割" transfer>
|
<Tooltip placement="right" content="*号模糊匹配,逗号分割" transfer>
|
||||||
<Input class="menu-input" v-model="form.permission" />
|
<Input class="menu-input" v-model="form.permission" type="textarea" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="排序值" prop="sortOrder">
|
<FormItem label="排序值" prop="sortOrder">
|
||||||
|
@ -168,7 +168,7 @@
|
||||||
<Input v-model="formAdd.frontRoute" />
|
<Input v-model="formAdd.frontRoute" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="权限url" v-if="formAdd.level != 0">
|
<FormItem label="权限url" v-if="formAdd.level != 0">
|
||||||
<Input v-model="formAdd.permission" />
|
<Input v-model="formAdd.permission" type="textarea" />
|
||||||
<div class="desc">*号模糊匹配,逗号分割</div>
|
<div class="desc">*号模糊匹配,逗号分割</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="排序值" prop="sortOrder">
|
<FormItem label="排序值" prop="sortOrder">
|
||||||
|
@ -571,6 +571,6 @@ export default {
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
.menu-input {
|
.menu-input {
|
||||||
width: 162px;
|
width: 362px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -146,7 +146,7 @@ export default {
|
||||||
email: "",
|
email: "",
|
||||||
sex: "",
|
sex: "",
|
||||||
roles: [],
|
roles: [],
|
||||||
departmentId: "",
|
departmentId: 0,
|
||||||
departmentTitle: ""
|
departmentTitle: ""
|
||||||
},
|
},
|
||||||
roleList: [], // 角色列表
|
roleList: [], // 角色列表
|
||||||
|
@ -354,7 +354,7 @@ export default {
|
||||||
this.form.departmentId = v.departmentId;
|
this.form.departmentId = v.departmentId;
|
||||||
this.form.departmentTitle = v.departmentTitle;
|
this.form.departmentTitle = v.departmentTitle;
|
||||||
} else {
|
} else {
|
||||||
this.form.departmentId = "";
|
this.form.departmentId = 0;
|
||||||
this.form.departmentTitle = "";
|
this.form.departmentTitle = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -492,7 +492,7 @@ export default {
|
||||||
email: "",
|
email: "",
|
||||||
sex: "",
|
sex: "",
|
||||||
roles: [],
|
roles: [],
|
||||||
departmentId: "",
|
departmentId: 0,
|
||||||
departmentTitle: ""
|
departmentTitle: ""
|
||||||
},
|
},
|
||||||
this.$refs.depTree.setData("", "");
|
this.$refs.depTree.setData("", "");
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
FROM nginx:alpine
|
FROM node:10.19.0 as build-stage
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
RUN mkdir -p /app/
|
# production stage
|
||||||
COPY ./dist /app/
|
FROM nginx:stable-alpine as production-stage
|
||||||
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]k
|
||||||
|
|
|
@ -554,10 +554,7 @@ export default {
|
||||||
orderDeliverFormValidate: {
|
orderDeliverFormValidate: {
|
||||||
logisticsNo: [
|
logisticsNo: [
|
||||||
{ required: true, message: "发货单号不能为空", trigger: "change" },
|
{ required: true, message: "发货单号不能为空", trigger: "change" },
|
||||||
],
|
]
|
||||||
logisticsId: [
|
|
||||||
{ required: true, message: "请选择物流公司", trigger: "blur" },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
addressRule: {
|
addressRule: {
|
||||||
consigneeName: [
|
consigneeName: [
|
||||||
|
|
Loading…
Reference in New Issue