flat: 123
This commit is contained in:
@@ -96,14 +96,14 @@
|
|||||||
</template>
|
</template>
|
||||||
<template slot="policyFileUrlForm">
|
<template slot="policyFileUrlForm">
|
||||||
<div class="policyFileUrlWrapper">
|
<div class="policyFileUrlWrapper">
|
||||||
<div class="uploadWrapperAb"><avue-upload :action="action" :propsHttp="propsHttp"
|
<div class="uploadWrapperAb"><avue-upload :action="'/api/jobslink-api/resource/file/save'" :propsHttp="propsHttp"
|
||||||
v-model="form"></avue-upload></div>
|
v-model="form"></avue-upload></div>
|
||||||
<avue-input disabled v-model="policyFileUrl" placeholder="点击上传文件"></avue-input>
|
<avue-input disabled v-model="policyFileUrl" placeholder="点击上传文件"></avue-input>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template slot="guidelineFileUrlForm">
|
<template slot="guidelineFileUrlForm">
|
||||||
<div class="policyFileUrlWrapper">
|
<div class="policyFileUrlWrapper">
|
||||||
<div class="uploadWrapperAb"><avue-upload :action="action" :propsHttp="propsHttp"
|
<div class="uploadWrapperAb"><avue-upload :action="'/api/jobslink-api/resource/file/save'" :propsHttp="propsHttp"
|
||||||
v-model="form"></avue-upload></div>
|
v-model="form"></avue-upload></div>
|
||||||
<avue-input disabled v-model="guidelineFileUrl" placeholder="点击上传文件"></avue-input>
|
<avue-input disabled v-model="guidelineFileUrl" placeholder="点击上传文件"></avue-input>
|
||||||
</div>
|
</div>
|
||||||
@@ -862,7 +862,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/*新增人才*/
|
/*新增人才*/
|
||||||
rowSave(row, done) {
|
rowSave(row, done) {
|
||||||
console.log(row, this.policyContent, '000000000000000000000');
|
console.log(this.form);
|
||||||
debugger
|
debugger
|
||||||
add({
|
add({
|
||||||
// groupId: row.groupId,
|
// groupId: row.groupId,
|
||||||
@@ -882,7 +882,9 @@ export default {
|
|||||||
// status: row.status,
|
// status: row.status,
|
||||||
// issuingNumber: row.issuingNumber,
|
// issuingNumber: row.issuingNumber,
|
||||||
...row,
|
...row,
|
||||||
labelName: this.selectedWorkTypes.join(','),
|
guidelineFileUrl: row.guidelineFileUrl.join(','),
|
||||||
|
policyFileUrl: row.policyFileUrl.join(','),
|
||||||
|
labelName: this.selectedWorkTypes.map((item) => item.name).join(','),
|
||||||
policyContent: this.policyContent,
|
policyContent: this.policyContent,
|
||||||
guidelineContent: this.guidelineContent
|
guidelineContent: this.guidelineContent
|
||||||
}).then(
|
}).then(
|
||||||
@@ -1144,7 +1146,10 @@ export default {
|
|||||||
})
|
})
|
||||||
const data = res.data.data;
|
const data = res.data.data;
|
||||||
this.page.total = data.total;
|
this.page.total = data.total;
|
||||||
this.data = data.records;
|
console.log('records', data.records)
|
||||||
|
this.data = data.records.map((item) => ({
|
||||||
|
...item, guidelineFileUrl: item.guidelineFileUrl.split(','), policyFileUrl: item.policyFileUrl.split(',')
|
||||||
|
}));
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.selectionClear();
|
this.selectionClear();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
// target: 'http://localhost:8000', // 本地服务接口地址
|
// target: 'http://localhost:8000', // 本地服务接口地址
|
||||||
target: "http://39.98.184.58:8000", // 阿里云后台地址
|
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||||
// target: "http://192.168.3.108:8000", // 本地
|
// target: "http://192.168.3.108:8000", // 本地
|
||||||
// target: 'http://192.168.3.111:8000',
|
target: 'http://192.168.3.111:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user