|
@@ -159,7 +159,8 @@
|
|
|
<el-form-item label="提示词:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
<el-input type="textarea" v-model="form.remark" class="custom-textarea" placeholder="请输入提示词"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="网站选择" :label-width="formLabelWidth" prop="sszq" class="custom-align-right">
|
|
|
+
|
|
|
+ <!-- <el-form-item label="网站选择" :label-width="formLabelWidth" prop="sszq" class="custom-align-right">
|
|
|
<el-select v-model="form.sszq" multiple filterable placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in webSiteList"
|
|
@@ -168,7 +169,9 @@
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -263,7 +266,7 @@ export default {
|
|
|
form:{
|
|
|
|
|
|
websiteTag_arr_id:[], //站点标识下拉id only
|
|
|
- websiteTag_reg:"",
|
|
|
+ websiteTag_reg:[],
|
|
|
sszq:"", //站点标识下拉id
|
|
|
|
|
|
|
|
@@ -275,8 +278,8 @@ export default {
|
|
|
real_name:"",//真实姓名
|
|
|
id_card:"",//身份证号
|
|
|
mobile:"",//手机号
|
|
|
- city_arr_id:"",//工作区域
|
|
|
- address_arr_id:"",//详细地址
|
|
|
+ city_arr_id:[],//工作区域
|
|
|
+ address_arr_id:[],//详细地址
|
|
|
from_time:"",//有效期开始时间
|
|
|
to_time:"",//有效期结束时间
|
|
|
long_time:0,//是否为长期 //长期1:长期 0:非长期
|
|
@@ -448,18 +451,25 @@ export default {
|
|
|
},
|
|
|
//提交表单
|
|
|
addData(){
|
|
|
+
|
|
|
console.log(this.timeList)
|
|
|
- //console.log(this.form.address_arr_id)
|
|
|
//1.格式化时间戳
|
|
|
+ this.form.birthday = formatLocalDate(this.form.birthday);
|
|
|
if(this.form.long_time==0){
|
|
|
- this.form.from_time = formatLocalDate(this.timeList[0]);
|
|
|
- this.form.to_time = formatLocalDate(this.timeList[1]);
|
|
|
+ this.form.from_time = formatLocalDate(this.timeList[0]);
|
|
|
+ this.form.to_time = formatLocalDate(this.timeList[1]);
|
|
|
}else{
|
|
|
- this.form.from_time = "";
|
|
|
- this.form.to_time = "";
|
|
|
- delete this.form.from_time;
|
|
|
- delete this.form.to_time;
|
|
|
+ // this.form.from_time = "";
|
|
|
+ // this.form.to_time = "";
|
|
|
+ delete this.form.from_time;
|
|
|
+ delete this.form.to_time;
|
|
|
}
|
|
|
+ //判断用户工作区域是否为全国
|
|
|
+ if(this.isNational==1){
|
|
|
+ this.form.city_arr_id = [0];
|
|
|
+ }
|
|
|
+ console.log(this.form)
|
|
|
+
|
|
|
//2.开始验证
|
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|