Commit 5522663b authored by 黄奎's avatar 黄奎

页面修改

parent 278c0635
...@@ -16,21 +16,22 @@ ...@@ -16,21 +16,22 @@
<div class="col-12"> <div class="col-12">
<div style="display:flex;align-items:center;"> <div style="display:flex;align-items:center;">
<a :href="fileObj.FileUrl" style="margin-right:10px;">{{fileObj.FileName}}</a> <a :href="fileObj.FileUrl" style="margin-right:10px;">{{fileObj.FileName}}</a>
<el-upload class="upload-demo" action="" :show-file-list="false" <el-upload class="upload-demo" action="" :show-file-list="false" :http-request="UploadAttachment"
:http-request="UploadAttachment" :multiple="uploadMultple"> :multiple="uploadMultple">
<q-btn color="accent" size="sm" icon="add" label="上传供应商合同" /> <q-btn color="accent" size="sm" icon="add" label="上传供应商合同" />
</el-upload> </el-upload>
<a v-if="objOption.SupplierContract" style="margin-left:10px;color:#2961FE;text-decoration:none;" :href="objOption.SupplierContract">查看合同</a> <a v-if="objOption.SupplierContract" style="margin-left:10px;color:#2961FE;text-decoration:none;"
</div> :href="objOption.SupplierContract">查看合同</a>
</div>
</div> </div>
</div> </div>
<div class="row wrap"> <div class="row wrap">
<q-input filled stack-label :dense="false" v-model="objOption.Remark" style="margin-top: 20px" type="textarea" <q-input filled stack-label :dense="false" v-model="objOption.Remark" style="margin-top: 20px" type="textarea"
class="col-12" label="备注" maxlength="300" /> class="col-12" label="备注" maxlength="300" />
</div> </div>
<div class="row wrap" style="margin-top:5px;color:red;"> <div class="row wrap" style="margin-top:5px;color:red;">
必须上传供应商合同才能上架. 必须上传供应商合同才能上架.
</div> </div>
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
...@@ -56,7 +57,7 @@ ...@@ -56,7 +57,7 @@
type: Object, type: Object,
default: null default: null
}, },
Type:{ Type: {
type: Number, type: Number,
default: null default: null
} }
...@@ -75,10 +76,10 @@ ...@@ -75,10 +76,10 @@
optionTitle: "", optionTitle: "",
saveLoading: false, saveLoading: false,
supplierList: [], //供应商下拉数据 supplierList: [], //供应商下拉数据
uploadMultple:true, uploadMultple: true,
fileObj:{ fileObj: {
FileName:'', FileName: '',
FileUrl:'' FileUrl: ''
} }
} }
}, },
...@@ -119,8 +120,16 @@ ...@@ -119,8 +120,16 @@
this.$emit('close') this.$emit('close')
this.persistent = false this.persistent = false
}, },
//保存菜单 //保存留学就业信息
saveStudyInfo() { saveStudyInfo() {
if (this.objOption.SupplierContract == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请上传供应商合同!`
})
return;
}
this.saveLoading = true; this.saveLoading = true;
saveStudyAbroad(this.objOption).then(res => { saveStudyAbroad(this.objOption).then(res => {
this.saveLoading = false this.saveLoading = false
......
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