Commit 04196426 by 吴学德

修改ng配置文件

parent b1eac862
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
location /auth { location /auth {
proxy_pass http://gateway:10001/auth; proxy_pass http://gateway:10001/auth;
} }
location /jyyy { location /schoolcenter {
proxy_pass http://gateway:10001/jyyy; proxy_pass http://gateway:10001/schoolcenter;
} }
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
......
...@@ -74,7 +74,21 @@ ...@@ -74,7 +74,21 @@
<a-input placeholder="简介" v-decorator="[ 'explains', {rules: [{ required: true, message: '简介不能为空!' ,whitespace:true}]}]"></a-input> <a-input placeholder="简介" v-decorator="[ 'explains', {rules: [{ required: true, message: '简介不能为空!' ,whitespace:true}]}]"></a-input>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="背景图"> <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="背景图">
<img style="width: 150px"> <a-upload
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
listType="picture-card"
:fileList="fileList"
@preview="handlePreview"
@change="handleChange"
>
<div>
<a-icon type="plus" />
<div class="ant-upload-text"> <span v-if="fileList.length==0">上传背景图</span> <span v-if="fileList.length>0">更换背景图</span> </div>
</div>
</a-upload>
<a-modal :visible="previewVisible" :footer="null" @cancel="handleCancel">
<img alt="example" style="width: 100%" :src="previewImage" />
</a-modal>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="小图"> <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="小图">
<img style="width: 150px"> <img style="width: 150px">
...@@ -95,6 +109,12 @@ ...@@ -95,6 +109,12 @@
}, },
data: function () { data: function () {
return { return {
previewVisible: false,
previewImage: '',
fileList: [
],
Formtable: this.$form.createForm(this, {name: 'Formtable'}), Formtable: this.$form.createForm(this, {name: 'Formtable'}),
//输入框列表 //输入框列表
autoCompleteResult:[], autoCompleteResult:[],
...@@ -159,6 +179,27 @@ ...@@ -159,6 +179,27 @@
} }
}, },
methods:{ methods:{
//生成随机数
guid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0,
v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
},
handleCancel() {
this.previewVisible = false;
},
handlePreview(file) {
this.previewImage = file.url || file.thumbUrl;
this.previewVisible = true;
},
handleChange({ fileList }) {
console.log(fileList)
this.fileList = fileList;
},
search() { search() {
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}, },
...@@ -273,4 +314,4 @@ ...@@ -273,4 +314,4 @@
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item label="使用状态"> <a-form-item label="使用状态">
<a-select v-model="queryParams.status" placeholder="请选择" default-value="0"> <a-select v-model="queryParams.status" placeholder="请选择" default-value="1">
<a-select-option value="">全部</a-select-option> <!-- <a-select-option value="1,2,3">全部</a-select-option>-->
<a-select-option value="1">正常</a-select-option> <a-select-option value="1">正常</a-select-option>
<a-select-option value="2">冻结</a-select-option> <a-select-option value="2">冻结</a-select-option>
<a-select-option value="3">已失效</a-select-option> <a-select-option value="3">已失效</a-select-option>
...@@ -287,7 +287,7 @@ export default { ...@@ -287,7 +287,7 @@ export default {
//查询条件 //查询条件
queryParams: { queryParams: {
account: '', account: '',
status:"", status:"1",
deptid:"", deptid:"",
name:"", name:"",
phone:"" phone:""
......
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