Commit 04196426 by 吴学德

修改ng配置文件

parent b1eac862
......@@ -16,8 +16,8 @@
location /auth {
proxy_pass http://gateway:10001/auth;
}
location /jyyy {
proxy_pass http://gateway:10001/jyyy;
location /schoolcenter {
proxy_pass http://gateway:10001/schoolcenter;
}
error_page 500 502 503 504 /50x.html;
......
......@@ -74,7 +74,21 @@
<a-input placeholder="简介" v-decorator="[ 'explains', {rules: [{ required: true, message: '简介不能为空!' ,whitespace:true}]}]"></a-input>
</a-form-item>
<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 :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="小图">
<img style="width: 150px">
......@@ -95,6 +109,12 @@
},
data: function () {
return {
previewVisible: false,
previewImage: '',
fileList: [
],
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
//输入框列表
autoCompleteResult:[],
......@@ -159,6 +179,27 @@
}
},
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() {
this.$refs.table.refresh({search: true})
},
......
......@@ -32,8 +32,8 @@
<a-col :md="6" :sm="24">
<a-form-item label="使用状态">
<a-select v-model="queryParams.status" placeholder="请选择" default-value="0">
<a-select-option value="">全部</a-select-option>
<a-select v-model="queryParams.status" placeholder="请选择" default-value="1">
<!-- <a-select-option value="1,2,3">全部</a-select-option>-->
<a-select-option value="1">正常</a-select-option>
<a-select-option value="2">冻结</a-select-option>
<a-select-option value="3">已失效</a-select-option>
......@@ -287,7 +287,7 @@ export default {
//查询条件
queryParams: {
account: '',
status:"",
status:"1",
deptid:"",
name:"",
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