diff --git a/config/dev.env.js b/config/dev.env.js index f323d5b0..86969884 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,5 +4,5 @@ const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', - VUE_APP_BASE_API: '"/dev-api"' + VUE_APP_BASE_API: '"/api"' }) diff --git a/config/index.js b/config/index.js index 462e9127..7e58e1c7 100644 --- a/config/index.js +++ b/config/index.js @@ -10,13 +10,13 @@ module.exports = { assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { - "/dev-api": { + "/api": { // 请求的目标主机 //target: 'http://116.255.135.38:8081/nsgk_test/', target: 'http://localhost:8080/', changeOrigin: true, pathRewrite: { - '^/dev-api': '' + '^/api': '' } } }, diff --git a/src/views/authenticRight/index.vue b/src/views/authenticRight/index.vue index 17f6fdbe..5d6ec46f 100644 --- a/src/views/authenticRight/index.vue +++ b/src/views/authenticRight/index.vue @@ -100,18 +100,10 @@ - - - + + +
提交
@@ -354,34 +344,26 @@ -

农村土地承包经营权证

@@ -422,15 +404,14 @@ name="fileTime" label="影像起始时间" label-width="120px" + @click="showPop1" placeholder="影像起始时间" :rules="[{ required: true, message: '请填写影像起始时间' }]" > - + + +
提交
@@ -439,7 +420,7 @@ { if(res.data){ - this.option1=[{ text: '区县', value: 0 }] + this.option1=[{ text: '请选择区县', value: 0 }] res.data.map(item => { this.option1.push({ "text":item.countName,"value": item.countName}) }) @@ -630,12 +629,29 @@ export default { getInfo().then(response => { console.log(response) this.userId = response.user.userId - /* getMember(response.user.userId).then(response => { - console.log(response) - });*/ + this.nickName = response.user.nickName }); }, methods:{ + changeFn(val) { + }, + confirmFn(){ + this.xcdcform.fileTime = getNowFormatDate(this.currentValue) + this.dhdcform.fileTime = getNowFormatDate(this.currentValue) + this.showDate = false; + this.showDate1 = false; + }, + cancelFn(){ + this.showDate = false; + this.showDate1 = false; + } + , + showPop(){ + this.showDate = true; + }, + showPop1(){ + this.showDate1 = true; + }, changeDept(val){ if(val==1){ this.queryParams.countName = this.value1 @@ -644,7 +660,7 @@ export default { this.queryParams.cooperativeName = null listSamplingDept(this.queryParams).then(res => { if(res.data){ - this.option11=[{ text: '乡镇', value: 0 }] + this.option11=[{ text: '请选择乡镇', value: 0 }] res.data.map(item => { this.option11.push({ "text":item.townName,"value": item.townName}) }) @@ -660,7 +676,7 @@ export default { this.queryParams.cooperativeName = null listSamplingDept(this.queryParams).then(res => { if(res.data){ - this.option2=[{ text: '村级', value: 0 }] + this.option2=[{ text: '请选择村级', value: 0 }] res.data.map(item => { this.option2.push({ "text":item.villageName,"value": item.villageName}) }) @@ -675,7 +691,7 @@ export default { this.queryParams.cooperativeName = null listSamplingDept(this.queryParams).then(res => { if(res.data){ - this.option22=[{ text: '合作社', value: 0 }] + this.option22=[{ text: '请选择合作社', value: 0 }] res.data.map(item => { this.option22.push({ "text":item.cooperativeName,"value": item.cooperativeName}) }) @@ -692,21 +708,20 @@ export default { } }, reset(){ - this.queryParams = { - // 分页 + this.queryform={ pageNum: 1, - pageSize: 10, - // 查询排序 - //orderByColumn: "id", - //isAsc: "desc", - countName: null, - townName: null, - villageName: null, - cooperativeName: null, - farmerName: null, - status: null, - id:null, - }; + pageSize: 10, + // 查询排序 + //orderByColumn: "id", + //isAsc: "desc", + countName: null, + townName: null, + villageName: null, + cooperativeName: null, + farmerName: null, + status: null, + id: null, + } this.xcdcform={ countName: null, townName: null, @@ -778,6 +793,20 @@ export default { }, onClickRight() { this.show = true + this.queryform = { + pageNum: 1, + pageSize: 10, + // 查询排序 + //orderByColumn: "id", + //isAsc: "desc", + countName: null, + townName: null, + villageName: null, + cooperativeName: null, + farmerName: null, + status: null, + id: null, + } }, onSearch() { @@ -824,7 +853,6 @@ export default { /** 判断是否有证书 */ haveCertificate(id){ if(id == "1"){ - console.log(this.xcdcform.item1); if(this.xcdcform.item1=='N'){ this.xcdcform.item2 = 'N' this.xcdcform.item3 = 'N' @@ -841,7 +869,6 @@ export default { this.xcdcform.item9 = null } }if(id == "2") { - console.log(this.xcdcform.item10); if(this.xcdcform.item10=='N'){ this.xcdcform.item11 = 'N' this.xcdcform.item12 = 'N' @@ -898,6 +925,8 @@ export default { this.xcdcform["farmerName"] = data.farmerName this.xcdcform["samplingId"] = data.id this.xcdcform["fileName"] = data.townName+data.villageName + this.xcdcform["checkedBy"] = this.nickName + this.xcdcform["fileTime"] = getNowFormatDate() } }) @@ -922,15 +951,16 @@ export default { this.dhdcform["farmerName"] = data.farmerName this.dhdcform["samplingId"] = data.id this.dhdcform["fileName"] = data.townName+data.villageName + this.dhdcform["checkedBy"] = this.nickName + this.dhdcform["fileTime"] = getNowFormatDate() } }) } }, onSubmit(values) { - this.queryParams = values - this.queryParams["createBy"] = this.userId - this.queryParams["createTime"] = "2020-01-01 00:00:00" - addSampling(values).then(res => { + this.queryform["createBy"] = this.userId + this.queryform["createTime"] = getNowFormatDate() + addSampling(this.queryform).then(res => { console.log(res) this.show = false this.getList(); @@ -938,9 +968,9 @@ export default { }, onSubmitXCDC(values) { this.xcdcform["createBy"] = this.userId - this.xcdcform["createTime"] = "2020-01-01 00:00:00" + this.xcdcform["createTime"] = getNowFormatDate() this.xcdcform["updateBy"] = this.userId - this.xcdcform["updateTime"] = "2020-01-01 00:00:00" + this.xcdcform["updateTime"] = getNowFormatDate() let i = 0 if(this.xcdcform.item1=='N'){ i++ @@ -978,7 +1008,6 @@ export default { this.xcdcform["lackCount"] = i if(this.xcdcform.id){ updateInvestigate(this.xcdcform).then(res => { - console.log(res) this.showXCDC = false let _this = this this.xcdcform.status = "2" @@ -1017,9 +1046,9 @@ export default { }}, onSubmitDHDC(values) { this.dhdcform["createBy"] = this.userId - this.dhdcform["createTime"] = "2020-01-01 00:00:00" + this.dhdcform["createTime"] = getNowFormatDate() this.dhdcform["updateBy"] = this.userId - this.dhdcform["updateTime"] = "2020-01-01 00:00:00" + this.dhdcform["updateTime"] = getNowFormatDate() console.log(this.dhdcform) if(this.dhdcform.id){ updateInvestigate(this.dhdcform).then(res => { diff --git a/启动.bat b/启动.bat new file mode 100644 index 00000000..259fe003 --- /dev/null +++ b/启动.bat @@ -0,0 +1,18 @@ +@echo off + +D: +cd D:\workspace\code\nsgk_mobile + + +::安装依赖 +:: npm install + +::强烈建议不要用直接使用 cnpm 安装,会有各种诡异的 bug,可以通过重新指定 registry 来解决 npm 安装速度慢的问题。 +:: npm install --registry=https://registry.npm.taobao.org + +::本地开发 启动项目 +npm run dev + + +@echo SUCCESS +pause \ No newline at end of file diff --git a/安装.bat b/安装.bat new file mode 100644 index 00000000..cc11e237 --- /dev/null +++ b/安装.bat @@ -0,0 +1,18 @@ +@echo off + +D: +cd D:\workspace\code\nsgk_mobile + + +::安装依赖 +npm install + +::强烈建议不要用直接使用 cnpm 安装,会有各种诡异的 bug,可以通过重新指定 registry 来解决 npm 安装速度慢的问题。 +npm install --registry=https://registry.npm.taobao.org + +::本地开发 启动项目 +:: npm run dev + + +@echo SUCCESS +pause \ No newline at end of file diff --git a/打包.bat b/打包.bat new file mode 100644 index 00000000..8f786c02 --- /dev/null +++ b/打包.bat @@ -0,0 +1,14 @@ +@echo off + +D: +cd D:\workspace\code\nsgk_mobile + + + + +:: 打包预发布环境 +npm run build + + +@echo SUCCESS +pause \ No newline at end of file