|
@@ -92,7 +92,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
- @click="pushTableData()"
|
|
|
+ @click="syncproject()"
|
|
|
:disabled="from.id == ''"
|
|
|
>同步到项目</el-button
|
|
|
>
|
|
@@ -785,6 +785,36 @@
|
|
|
>确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <!-- 同步到项目 -->
|
|
|
+ <el-dialog title="同步到项目" :visible.sync="syncprojectVisible" append-to-body>
|
|
|
+ <el-alert
|
|
|
+ title="选中了项目,则表示把当前已经调整完成的HTML表单同步到该选中的项目中显示"
|
|
|
+ type="warning"
|
|
|
+ show-icon
|
|
|
+ style="margin-bottom:15px;background-color: white;"
|
|
|
+ :closable="false"
|
|
|
+ >
|
|
|
+ </el-alert>
|
|
|
+ <el-table :data="gridData" :border="true" :header-cell-style="{
|
|
|
+ background:'#e4e7ed',color:'#000000'}">
|
|
|
+ <el-table-column property="name" label="项目名称" ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="是否同步"
|
|
|
+ width="100"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-checkbox ></el-checkbox>
|
|
|
+ <!-- <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
|
|
|
+ <el-button type="text" size="small">编辑</el-button> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="syncprojectVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="syncprojectVisible = false">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -936,7 +966,25 @@ export default {
|
|
|
tr: '',
|
|
|
td: ''
|
|
|
},
|
|
|
- pkeyId:''
|
|
|
+ pkeyId:'',
|
|
|
+ syncprojectVisible:false,
|
|
|
+ gridData: [{
|
|
|
+ date: '2016-05-02',
|
|
|
+ name: '王小虎',
|
|
|
+ address: '上海市普陀区金沙江路 1518 弄'
|
|
|
+ }, {
|
|
|
+ date: '2016-05-04',
|
|
|
+ name: '王小虎',
|
|
|
+ address: '上海市普陀区金沙江路 1518 弄'
|
|
|
+ }, {
|
|
|
+ date: '2016-05-01',
|
|
|
+ name: '王小虎',
|
|
|
+ address: '上海市普陀区金沙江路 1518 弄'
|
|
|
+ }, {
|
|
|
+ date: '2016-05-03',
|
|
|
+ name: '王小虎',
|
|
|
+ address: '上海市普陀区金沙江路 1518 弄'
|
|
|
+ }],
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -2043,7 +2091,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+ //同步到项目
|
|
|
+ syncproject(){
|
|
|
+ console.log('同步到项目');
|
|
|
+ this.syncprojectVisible=true
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
created() {
|