Commit 2199c8a2 by Cat

zd 教师电子档案

parent c6373719
const { run } = require('runjs')
const chalk = require('chalk')
const config = require('../vue.config.js')
const rawArgv = process.argv.slice(2)
const args = rawArgv.join(' ')
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
const report = rawArgv.includes('--report')
run(`vue-cli-service build ${args}`)
const port = 9526
const publicPath = config.publicPath
var connect = require('connect')
var serveStatic = require('serve-static')
const app = connect()
app.use(
publicPath,
serveStatic('./dist', {
index: ['index.html', '/']
})
)
app.listen(port, function () {
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
if (report) {
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
}
})
} else {
run(`vue-cli-service build ${args}`)
}
...@@ -720,10 +720,9 @@ export default { ...@@ -720,10 +720,9 @@ export default {
handleExtract() { handleExtract() {
const id = this.form.id; const id = this.form.id;
syncNotice(id).then((res) => { syncNotice(id).then((res) => {
this.$modal.msgSuccess("提取成功");
this.tableDataInfo.forEach((item) => { this.tableDataInfo.forEach((item) => {
getFileTnfo(item).then((res) => { getFileTnfo(item).then((res) => {
this.form = res.data; // this.form = res.data;
this.tableFirstData = res.data.thesisList; this.tableFirstData = res.data.thesisList;
this.tableSecondData = res.data.materialList; this.tableSecondData = res.data.materialList;
this.tableThirdData = res.data.trainingList; this.tableThirdData = res.data.trainingList;
...@@ -766,9 +765,9 @@ export default { ...@@ -766,9 +765,9 @@ export default {
val.thesisListInfo = val.schoolAccessoryList; val.thesisListInfo = val.schoolAccessoryList;
return val; return val;
}); });
this.$modal.msgSuccess("页面已刷新");
}); });
}); });
this.$modal.msgSuccess("提取成功");
}); });
}, },
...@@ -890,13 +889,11 @@ export default { ...@@ -890,13 +889,11 @@ export default {
}, },
//提交按钮 //提交按钮
handleSubmit(row) { handleSubmit(row) {
console.log(row, "提交row");
const id = row.fid; const id = row.fid;
this.$modal this.$modal
.confirm("是否提交该活动?") .confirm("是否提交该活动?")
.then(function () { .then(function () {
return fileSubReview(id); return fileSubReview(id);
console.log(row, "提交按钮");
}) })
.then(() => { .then(() => {
this.getList(); this.getList();
......
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